dparlevliet / node.bittrex.api

Node Bittrex API is an asynchronous node.js library for the Bittrex API, the data can be received either via GET request or Stream.
MIT License
253 stars 100 forks source link

depth param in orderbook request doesn't affect the result #121

Closed VasilySizov closed 6 years ago

VasilySizov commented 6 years ago
bittrex = require('node-bittrex-api')
bittrex.options 'verbose': true
console.log 'Connecting ....'

bittrex.getorderbook {
  market: 'USDT-BTC'
  depth: 10
  type: 'both'
}, (data, err) ->
  console.log data.result.buy.length
  console.log data.result.sell.length

results with the following regardless of what depth parameter you set:

>coffee run.coffee 
Connecting ....
requested from https://bittrex.com/api/v1.1/public/getorderbook?market=USDT-BTC&depth=10&type=both in: 0.07s
100
100
dparlevliet commented 6 years ago

Seems like this option might have been removed by Bittrex. Not much we can do about it, sorry.