How to get the position value/updates from Core API

Custom indicators, trading strategies, data export and recording and more...
blk
Posts: 44
Joined: Fri Nov 01, 2019 8:59 pm
Has thanked: 7 times

How to get the position value/updates from Core API

Post by blk » Fri Feb 12, 2021 3:29 am

Hi,

Is it possible to get updates when position changes via Core API? In this case I don't want to have an indicator, I just need the position value update from Rithmic/CQG in order to do some algo work.

Something similar to PositionListener? Do you have any examples?

Thanks,
blk

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: How to get the position value/updates from Core API

Post by Svyatoslav » Fri Feb 12, 2021 8:57 am

That's "onStatus" callback of Layer1ApiTradingListener interface. There is a catch though - it's currently not implemented in bookmap simulation, which means you have to use 3rd mode on the launchpad for it to work (still can use the simulation provided by, say, Rithmic)

blk
Posts: 44
Joined: Fri Nov 01, 2019 8:59 pm
Has thanked: 7 times

Re: How to get the position value/updates from Core API

Post by blk » Fri Feb 12, 2021 1:04 pm

Thank you, I will give it a try on Rithmic.

Post Reply