Skip to content

Authentication: Invalid signature #3

@lazzrov

Description

@lazzrov

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);
        });

}();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions