Historical listener with layer1 API

Custom indicators, trading strategies, data export and recording and more...
Posts: 104
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 12 times

Historical listener with layer1 API

Post by zcsoka » Tue Apr 06, 2021 8:03 am


I am implementing a layer1 version2 API based indicator (no simplified) and I did not find a way to apply it to historical data. Although you have posted multiple examples of mixing the simplified and the low level API, it seems not to work in my code. Even if I implement the HistoricalDataListener, the plugin will not be calculated on the historical data (I mean the data since the start of Bookmap, not talking about the cloud data). Am I doing something wrong? Is there an example of historical indicators for  the non simplified interface? 

Many thanks in advance,

Kind Regards,


Site Admin
Posts: 183
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 25 times

Re: Historical listener with layer1 API

Post by Svyatoslav » Tue Apr 06, 2021 8:36 am

Hi. Since you are using core L1 API, please clarify how are you accessing the history, since there are few ways of doing that. If you are using "Generators extension" (which is what simplified "HistoricalDataListener" uses under the hood) you just need to make sure that you set "shouldReceiveHistory" and "shouldReceiveBackfilledData" flags inside Layer1ApiUserMessageAddStrategyUpdateGenerator

Post Reply