Hello,
How can I update trade panel components (Position, P&L, etc.) with my own values?
Thanks
How to update Trade Status panel
-
- Site Admin
- Posts: 278
- Joined: Mon Jun 11, 2018 11:44 am
- Has thanked: 2 times
- Been thanked: 31 times
Re: How to update Trade Status panel
Hi. If you are writing a Layer0 adapter (connector) you can send updates via onStatus and onBalance callbacks.
Re: How to update Trade Status panel
Hi Svyatoslav!
Update after a short research.
I need implememtation in @Layer1Injectable (extends Layer1ApiInjectorRelay) class. I have implemented BalanceListener, PositionListener interfaces - no effect. onStatus, onBalance, onPositionUpdate aren't called.
Thanks
Update after a short research.
I need implememtation in @Layer1Injectable (extends Layer1ApiInjectorRelay) class. I have implemented BalanceListener, PositionListener interfaces - no effect. onStatus, onBalance, onPositionUpdate aren't called.
Thanks
-
- Site Admin
- Posts: 278
- Joined: Mon Jun 11, 2018 11:44 am
- Has thanked: 2 times
- Been thanked: 31 times
Re: How to update Trade Status panel
Hi. Is your intention to listen for that data or to send this data into bookmap?
Please note, that when selecting the 1st or 2nd mode on the launchpad (trading simulated by bookmap) you will not receive those events in your indicators since simulated trading layer just does not currently support that. We'll eventually improve the simulation, but I can't tell you when that will happen. Until then it's best to use server-side simulations, such as paper trading accounts.
Also note that Layer1Injectable is core API annotation and PositionListener / BalanceListener are classes from simplified API. So they won't do anything outside of simplified.
Please note, that when selecting the 1st or 2nd mode on the launchpad (trading simulated by bookmap) you will not receive those events in your indicators since simulated trading layer just does not currently support that. We'll eventually improve the simulation, but I can't tell you when that will happen. Until then it's best to use server-side simulations, such as paper trading accounts.
Also note that Layer1Injectable is core API annotation and PositionListener / BalanceListener are classes from simplified API. So they won't do anything outside of simplified.
Re: How to update Trade Status panel
The main purpose is to send positon,balance updates from external source to bookmap and display them in trading panel namely in a separate thread I get repetive events which I'd like to push to the position/balance listener