Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication: Invalid signature #3

Open
lazzrov opened this issue Dec 29, 2018 · 1 comment
Open

Authentication: Invalid signature #3

lazzrov opened this issue Dec 29, 2018 · 1 comment

Comments

@lazzrov
Copy link

lazzrov commented Dec 29, 2018

I'm getting the error message:

{
  "message": "Signature not valid.",
  "name": "HTTPError"
}

for the following code:

const r = require('bitmex-node');

const BITMEX_API_KEY = .....
const BITMEX_API_SECRET = .....

const bitmex = new r.BitmexAPI({
    "apiKeyID": BITMEX_API_KEY,
    "apiKeySecret": BITMEX_API_SECRET
});

!async function () {

    const position = await bitmex.Position
        .get({message: 'messageIncoming' })
        .catch(err => {console.log(err);
        });

}();
@Gblumentals
Copy link

Gblumentals commented Oct 29, 2019

Are you using testnet credentials?

Position takes different parameters: { "currency": "XBTUSD" , "columns": ... , "count": ... }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants