-
Notifications
You must be signed in to change notification settings - Fork 134
Dev branch, Binance, order_book formatted issue? #190
Comments
You're on the right track, yes! There are examples for the expected outputs. |
Accoording to base, then it should be "in format [ts, price, size]":
Then this should be filed as a bug. |
It should be indeed. Or the docs changes - It may be better to sort the data by quality. The thing is, |
Ok, then we have 2 issues:
Correct? |
|
Probably you've seen my binance PR, but I didn't address this issue. I tried to have a look at this, but I'm having some difficulty to understand how it works:
The namedtuple creates the array containing the bids, the asks, timestamp and error. So far so good. But I don't understand where do you configure how a single value of the array can be changed as discussed? I mean the bid or ask in the bid or ask array, where do I modify that? |
|
Dev branch:
I did a test to understand how the formatted order_book should look like, here my test:
Result (I just included 3 bids and 3 asks for the sake of simplicity):
OrderBook(bids=[['0.00009160', '10203.00000000', []], ['0.00009157', '1026.00000000', []], ['0.00009156', '465.00000000', []]], asks=[['0.00009163', '1096.00000000', []], ['0.00009164', '12.00000000', []], ['0.00009165', '268.00000000', []]], timestamp=datetime.datetime(2018, 5, 1, 17, 30, 52, 392448), error=None)
Is this supposed to look like this? Every bid/ask should rather contain the timestamp, but not an empty array, right?
Also the format of bid or ask, I'm guessing it, is: price, then size, then timestamp?
The text was updated successfully, but these errors were encountered: