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
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! 😀
Sure, I can help you understand how to resolve the error you're encountering when sending a close request for a position ID.
The error message indicates that the clientRequestId length is invalid. The clientRequestId is a unique identifier for each request that you send to the cTrader API. It must be between 1 and 64 characters long.
To resolve this error, you need to add a clientRequestId to your request. You can generate a unique clientRequestId using any method you like, such as using a UUID generator.
Here is an example of how to modify your request to include a clientRequestId:
{'payloadType': 2132, 'clientMsgId': '', 'payload': {'errorCode': 'INVALID_REQUEST', 'ctidTraderAccountId': 31913053, 'description': 'Invalid clientRequestId length: 0. ClientRequestId length must be more then 0 and less or equal then 64'}}
1. Google Chrome version 73.0.3683.103
2. Windows 10 Version 1809 OS Build 17763.437
3. There is no error message. I click login after entering my credetials and I get redirected back to the login screen
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
bruce.kristelijn
18 Dec 2023, 18:12 ( Updated at: 21 Dec 2023, 09:23 )
RE: RE: RE: JSOG get position size in volume
PanagiotisCharalampous said:
Thank you so much!
@bruce.kristelijn