Fix Api issue price from data request message

Created at 05 May 2023, 19:37
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!
EM

emahohaz

Joined 02.11.2022

Fix Api issue price from data request message
05 May 2023, 19:37


Hi, when i get the price from the market data request method sometimes i obtain the following error in the cell 58="ALREADY_SUBSCRIBED:An attempt to subscribe twice"

I'm trying to build a real time data chart display with the currently update price.

How can i manage to fix this problem??

Thanks


@emahohaz
Replies

ctid1980098
07 May 2023, 12:11

RE:

Without seeing your code I probably would guess that somewhere you are sending a 35=V market request twice and getting the response ALREADY_SUBSCRIBED. 

I send a 35=V market request once and thereafter just receive price updates from the server. 

or maybe you have not logged out of your fix tcp connection or something along those lines. 

 


@ctid1980098