User rating: 0
Joined: Mon 29 May, 2017, 17:19 Posts: 21 Location: Germany,
Hey,
I am wondering what the best approach is to get history and live data "all at once"?
My current understanding: 1. subscribe to an instrument, 2. record the ticks that come via onTick(), 3. use the oldest / first tick that came via onTick and use IHistorys readTicks, using the oldest known tick as a starting point to get all history to a predefined point x, and merge that data with the data already recorded by step 2.
Is there a method that already does this, or do I need to implement it myself?
Demo and live ticks are different because they are created on different servers. Historical data on demo is based on live trading data by design. It is required in order to make testing closer to live environment. Therefore, combining realtime ticks with historical data is not meaningful.