question

Upvotes
Accepted
89 13 21 24

correctly sorted

If in real-time data in one stream, then how to combine historical data?

code:

UInt64 handle1 = consumer.registerClient( ReqMsg().domainType( MMT_MARKET_PRICE ).serviceName( "ELEKTRON_DD" ).name( "ESM1m" ), client ); 

UInt64 handle2 = consumer.registerClient( ReqMsg().domainType( MMT_MARKET_PRICE ).serviceName( "ELEKTRON_DD" ).name( "ESM1" ), client );

real-time data is mixed (Level 2+trade) in one stream, historical data two files (RawLegacyMarketDepth and Market Price).

is it possible to get the order book and trades from history in the formats we need in one file, sorted by time?

How to combine these two files correctly?

tick-history-rest-api
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvote
Accepted
22k 58 14 21

Hi @s61670,

You cannot make a single file request for market depth and Time and Sales data for tick history. If you intend to merge the files, then the you can use the timestamp, since it should be consistent between the two files.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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