Wrong account id in OnProtoOAGetTrendbarsRes

Created at 12 Feb 2024, 05:35
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CT

ctid2032775

Joined 03.05.2020

Wrong account id in OnProtoOAGetTrendbarsRes
12 Feb 2024, 05:35


Dear all,

I have a strange behavior with a simple prototype of an optimization application…

As mentioned here this application starts the following sequence of requests (subsequent requests are sent in the preceding response):

  1. ProtoOAApplicationAuthReq
  2. OnProtoOaApplicationAuthRes → ProtoOAGetAccountListByAccessTokenReq
  3. ProtoOaGetAccountListByAccessTokenRes → ProtoOAAccountAuthReq
  4. ProtoOAAccountAuthRes → …
    (here some steps are done to get the symbol details, latest spot prices, conversion chain, …)
  5. … → ProtoOAUnsubscribeSpotsReq
  6. ProtoOAUnsubscribeSpotsRes → ProtoOAGetTrendbarsReq
  7. ProtoOAGetTrendbarsRes

For debugging purposes I log the returned CtidTraderAccountId of each response (among other properties) and use it for the corresponding subsequent request)!

The issue is that all steps return the right account id except the last (bold) one - there I always get 1799 no matter which account id is sent by ProtoOAGetTrendbarsReq

Can you please help me to fix this issue or confirm that there is a known bug in open api!

Please do not hesitate to get in contact with me in case of further questions.

Many thanks in advance and best regards,
Christian


@ctid2032775
Replies

PanagiotisCharalampous
12 Feb 2024, 06:58

Hi there,

There is no known bug in cTrader API. If you can reproduce the issue with any of the .Net examples I would be happy to have a look as well.

Best regards,

Panagiotis


@PanagiotisCharalampous

ctid2032775
12 Feb 2024, 08:23

RE: Wrong account id in OnProtoOAGetTrendbarsRes

 

PanagiotisCharalampous said: 

Hi there,

There is no known bug in cTrader API. If you can reproduce the issue with any of the .Net examples I would be happy to have a look as well.

Best regards,

Panagiotis

Hi Panagiotis,

just now I could reproduce this issue with the .Net Console.Sample…

This is the reply of ProtoOASymbolsListReq with the correct account id:

And this is the reply of ProtoOAGetTrendbarsReq:

In both requests I used the same account id as part of the command line options…

Best regards,
Christian


@ctid2032775

ctid2032775
17 Feb 2024, 08:37

Hi,

just wanted to ask if there are any news for this issue…

BR,
Christian


@ctid2032775