Page 1 of 1

Identifying seller/buyer side from IB's tick data

Posted: Mon Jan 28, 2019 8:37 am
by ryu557
Hi,

Can you please explain how you determine the buyer/seller side (the red/green pie-charts in your visualization) from the IB's tick data?

I've been working with IB's API for a few months and AFAIK, none of their data have any labels or sides pre-determined. The most commonly used call for tick data when viewing live is `reqTickByTickData` with tick type field set to `BidAsk`. The data you get will have bidPrice, askPrice, bidSize and askSize fields. Does Bookmap assume that the bids are buyers and the ask are sellers?

Re: Identifying seller/buyer side from IB's tick data

Posted: Tue Jan 29, 2019 4:47 pm
by ryu557
no replies? is the forum dead?....

Re: Identifying seller/buyer side from IB's tick data

Posted: Wed Jan 30, 2019 10:42 am
by Svyatoslav
Hi! When trade is received from a data source that does not provide aggressor information (or other info that allows to determine it reliably) bookmap tries to determine the aggressor based on relative position of the trade (i.e. trade on best bid usually means that seller is aggressor). Quality of detection heavily depends on the quality of incoming data (it can be 100% reliable in the best case).

Re: Identifying seller/buyer side from IB's tick data

Posted: Thu Jan 31, 2019 4:02 pm
by ryu557
Svyatoslav wrote:
Wed Jan 30, 2019 10:42 am
Hi! When trade is received from a data source that does not provide aggressor information (or other info that allows to determine it reliably) bookmap tries to determine the aggressor based on relative position of the trade (i.e. trade on best bid usually means that seller is aggressor). Quality of detection heavily depends on the quality of incoming data (it can be 100% reliable in the best case).
Thanks for the reply!
In the demo mode, I see AAPL data. Even though it's delayed, since it's data from one of your data providers, can I reliably assume in the pie charts, green are buyers and red are sellers? or can I only assume green = bid and red = ask?

Re: Identifying seller/buyer side from IB's tick data

Posted: Fri Feb 01, 2019 7:26 am
by Sandra
ryu557 wrote:
Thu Jan 31, 2019 4:02 pm
Svyatoslav wrote:
Wed Jan 30, 2019 10:42 am
Hi! When trade is received from a data source that does not provide aggressor information (or other info that allows to determine it reliably) bookmap tries to determine the aggressor based on relative position of the trade (i.e. trade on best bid usually means that seller is aggressor). Quality of detection heavily depends on the quality of incoming data (it can be 100% reliable in the best case).
Thanks for the reply!
In the demo mode, I see AAPL data. Even though it's delayed, since it's data from one of your data providers, can I reliably assume in the pie charts, green are buyers and red are sellers? or can I only assume green = bid and red = ask?
Hi! That's correct. Please get more info from this short video.