binance-exchange / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(solved) ws.depth not logging anything

hp8wvvvgnj6asjm7 opened this issue · comments

/ SORRY, I HAD SOME CONNECTION ISSUES /

WORKS.CLOSE

_I'm using your function as in the examples, but my console doesn't show anything.

const Binance = require('binance-api-node').default;

const client = Binance({
  apiKey: 'xxx',
  apiSecret: 'xxx',
});

client.ws.depth('ETHBTC', depth => {
  console.log(depth)
})

Literally nothing..._