python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

incorrect order book interpretation

Open vldslvk opened this issue 8 years ago • 2 comments

python 3

Let's say that I want to get order book. I run code like this:

#---------------------------------------------code--------------------------------------------- order_book = client.get_order_book(symbol=symbol, limit=10) order_book = pd.DataFrame(order_book) order_book.to_excel('order_book.xlsx') #----------------------------------------------------------------------------------------------

and .xslx file looks like (look at attachments) According to the table ask price exceed bid price. So, name of columns(asks, bids) are incorrect. Because asks(buyers) always want to buy at less price and bids(sellers) always want to sell at high price.

order_book.xlsx

vldslvk avatar Nov 15 '18 15:11 vldslvk

no you just got it wrong. Ask and bid refers to price. So sellers, ASK for a certain (high) price and buyers BID a certain (low) price

tropo84 avatar Nov 19 '18 18:11 tropo84

Got it, thank you.

vldslvk avatar Nov 21 '18 14:11 vldslvk