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

What is the Sell Type 0 or 1? Why Quantity 0? #95

Closed stefek99 closed 6 years ago

stefek99 commented 6 years ago

Just figuring out how to interpret the data...

Market Update for BTC-ETH { MarketName: 'BTC-ETH',
  Nounce: 299553,
  Buys: [],
  Sells:
   [ { Type: 1, Rate: 0.0456203, Quantity: 0 },
     { Type: 0, Rate: 0.04579994, Quantity: 0.1600311 } ],
  Fills:
   [ { OrderType: 'BUY',
       Rate: 0.0456203,
       Quantity: 0.9866154,
       TimeStamp: '2017-12-19T16:29:29.577' } ] }
BenedictKing commented 6 years ago

The market update only show diff with last order book for reduce network usage. So Quantity:0 means this Rate:0.0456203 was just removed from order book. And Quantity:0.1600311 means the quantity of Rate:0.04579994 was modified to 0.1600311. You don't have to check what is the type.

aloysius-pgast commented 6 years ago

More info in https://github.com/dparlevliet/node.bittrex.api/issues/80