Question: ReconcileList does not return PositionID only "ID: True"
Question: ReconcileList does not return PositionID only "ID: True"
24 Oct 2022, 10:48
Dear community,
I kindly ask for a little hint what I am doing wrong. I have written an application using OpenAPI. I successfully authorized my account and application. I am able to open trades.
Now I want to fetch my list of open positions using reconcile request. I get the following response:
ProtoMessage{ReconcileList{ID: True
Status: PositionStatusOpen
Volume: 100000
}, clientMsgId:Client Message}
How am I able to access all the position details e.g. ID?
Thank you
Replies
FX.Berlin
02 Nov 2022, 09:10
Solution: The issue was in my code. The output I copied was received by "OnMessage(ProtoMessage message)". The correct way to request open positions is the following:
_client.ObserveOn(SynchronizationContext.Current).OfType<ProtoOAReconcileRes>().Subscribe(OnPositionListResponse);
...
private void OnPositionListResponse(ProtoOAReconcileRes response)
....
@FX.Berlin
PanagiotisChar
24 Oct 2022, 13:21
Hi there,
This looks more of an issue with your code. This does not look like the actual response of a reconcile request so probably its your code that constructs it. Reconcile response includes a list of positions and pending orders. Check the way you read the messages.
Aieden Technologies
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar