Open lazzrov opened 5 years ago
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); }); }();
Are you using testnet credentials?
Position takes different parameters: { "currency": "XBTUSD" , "columns": ... , "count": ... }
I'm getting the error message:
for the following code: