-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Description
Using the master (not tag 2.0.0).
When doing the auth via ws I'm getting the error: auth failed: nonce: small (FAILED)
The following is the used snippet
"use strict";
var EventEmitter = require('events').EventEmitter;
var util = require('util');
const BFX = require('bitfinex-api-node');
const bfx = new BFX({
apiKey: 'removed',
apiSecret: 'removed',
ws: {
autoReconnect: true,
seqAudit: true,
packetWDDelay: 10 * 1000
}
})
const rest = bfx.rest(2, {
// options
})
var ws = bfx.ws(2);
ws.on('error', (err) => {
console.log("Error received: ");
console.log(err)
})
ws.on('auth', (msg) => {
console.log('ws: authenticated')
})
ws.on('open', () => {
//this.wsMain.auth.bind(this.wsMain);
ws.auth();
console.log('open ws Bitfinex');
})
ws.on('close', () => {
console.log('close ws Bitfinex');
})
ws.open();
Metadata
Metadata
Assignees
Labels
No labels