JSOG get position size in volume
05 Dec 2023, 22:40
Is there a way to get the size of a position using it's position id? I am able to open, close and list positions but would love to get the volume of the position since I need this to close the position.
I haven't found this out myself and am desperate for some help! If there is anyone that can push me in the right direction that would be very helpfull! 😀
Isn't there an payload ID to use? For eg ProtoOAOrderListByPositionIdReq uses payloadType as ‘2179’. What's that for this message?
Hi there,
No because this is not a message, it's a data structure(ProtoOATradeData) which is a member of another data structure(ProtoOAPosition), returned by the ProtoOAReconcileRes
Isn't there an payload ID to use? For eg ProtoOAOrderListByPositionIdReq uses payloadType as ‘2179’. What's that for this message?
Hi there,
No because this is not a message, it's a data structure(ProtoOATradeData) which is a member of another data structure(ProtoOAPosition), returned by the ProtoOAReconcileRes
Isn't there an payload ID to use? For eg ProtoOAOrderListByPositionIdReq uses payloadType as ‘2179’. What's that for this message?
Hi there,
No because this is not a message, it's a data structure(ProtoOATradeData) which is a member of another data structure(ProtoOAPosition), returned by the ProtoOAReconcileRes
This website uses cookies to enhance site navigation, analyze site usage, and assist in our marketing efforts. By clicking “Accept All” you are providing your consent to our use of all cookies. Alternatively, please provide your choice by pressing “Customize Cookies”. For more information, please read our Privacy policy
PanagiotisCharalampous
06 Dec 2023, 06:27
Hi there,
The position's volume is available in ProtoOAPosition.ProtoOATradeData
Best regards,
Panagiotis
@PanagiotisCharalampous