question

Aby avatar image
1 0 1 2

Python API call to get Bid and Ask size

I would like an example to get the bid and ask size for a bin interval using a Python API call.

pythontick-history-rest-apifields
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gurpreet avatar image
14.7k 39 12 18

Hi @Aby, it seems like rolling up your own bars is the only way to get it.

10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gurpreet avatar image
14.7k 39 12 18

@Aby Which Tick History data call are you interested in? I can see Bid and Ask size are available for TickHistoryTimeAndSalesExtractionRequest.

10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Aby avatar image
1 0 1 2

I was calling the TickHistoryIntradaySummariesExtractionRequest, where there is the Number of Bids/Asks but not the size. I assume it should be possible to get the Bid/Ask size in the bin?

10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Aby avatar image
1 0 1 2

The Bid/Ask size in TickHistoryTimeAndSalesExtractionRequest is not binned data and I am not interested in the tick data.

10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gurpreet avatar image
14.7k 39 12 18

Sorry @Aby. That data is not available for Intraday bars.

10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Aby avatar image
1 0 1 2

I am looking to get this info for all history so the only way would be to download all the tick data using TickHistoryTimeAndSalesExtractionRequest and have to do the binning at my end for a number of RICs. Is there anyway other way to do this? There are a number of RICs that I am looking to do this for.

The documentation for Intraday summaries also says that the VWAP is listed but I cannot find that either. Is that available?

10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.