Replies

csafx1
03 Nov 2024, 23:48

RE: RE: RE: RE: Historical Bid/Ask prices for pair are not synced by timestamp

PanagiotisCharalampous said: 

csafx1 said: 

PanagiotisCharalampous said: 

csafx1 said: 

I am using the Open API to get historical tick data (ProtoOAGetTickDataReq). It doesn't allow me to obtain the Bid / Ask prices together, and so I populate a Bid and Ask table with the respective returned data for each call. Some of the price points match on symbol and unix timestamp,  but many other do not. In reconciling the Bid and Ask prices, what is the process (outside of a actual match on symbol and timestamp), in resolving the other price data. Is there an approximate formula used or something else?

Hi there,

Bid and ask prices are independent from each other. Sometimes are updated together but most of the times they are updated separately.

Best regards,

Panagiotis

Thank you for the prompt response and clarification. So in an effort to facilitate back testing with the historical tick data in Open Api, similar to the OnTick event in cautomate, is it safe to say the cbot OnTick event simply raises the OnTick event with an SymbolTickEventArgs obj as soon as it has both an Ask and Bid price?

No, OnTick is raised whenever any of the two prices is updated.

Ah! I see. Now that makes a lot of sense. Thanks again


@csafx1

csafx1
18 Oct 2024, 17:37

RE: RE: Historical Bid/Ask prices for pair are not synced by timestamp

PanagiotisCharalampous said: 

csafx1 said: 

I am using the Open API to get historical tick data (ProtoOAGetTickDataReq). It doesn't allow me to obtain the Bid / Ask prices together, and so I populate a Bid and Ask table with the respective returned data for each call. Some of the price points match on symbol and unix timestamp,  but many other do not. In reconciling the Bid and Ask prices, what is the process (outside of a actual match on symbol and timestamp), in resolving the other price data. Is there an approximate formula used or something else?

Hi there,

Bid and ask prices are independent from each other. Sometimes are updated together but most of the times they are updated separately.

Best regards,

Panagiotis

Thank you for the prompt response and clarification. So in an effort to facilitate back testing with the historical tick data in Open Api, similar to the OnTick event in cautomate, is it safe to say the cbot OnTick event simply raises the OnTick event with an SymbolTickEventArgs obj as soon as it has both an Ask and Bid price?


@csafx1

csafx1
17 Oct 2024, 23:52 ( Updated at: 18 Oct 2024, 05:19 )

Historical Bid/Ask prices for pair are not synced by timestamp

I am using the Open API to get historical tick data (ProtoOAGetTickDataReq). It doesn't allow me to obtain the Bid / Ask prices together, and so I populate a Bid and Ask table with the respective returned data for each call. Some of the price points match on symbol and unix timestamp,  but many other do not. In reconciling the Bid and Ask prices, what is the process (outside of a actual match on symbol and timestamp), in resolving the other price data. Is there an approximate formula used or something else?


@csafx1