Topics
13 Sep 2023, 06:28
 592
 7
18 Mar 2023, 19:07
 712
 6
22 Sep 2022, 15:20
 920
 2
14 Jul 2022, 00:26
 775
 2
07 Jan 2022, 10:08
 956
 3
Replies

noob7
18 Sep 2023, 20:44

RE: Could not download history candles

PanagiotisChar said: 

It's not only about your connection to the internet but the entire route to the server. Something can happen on between and packages can be lost

I understand that, it can happen. If within 30 seconds I dont get any response I send request again and again and again.  Within 9 minutes Ive sent more than 10 requests to get candles and still I couldnt get response within reasonable time. What I can do to fix issue as I cannot wait 9 minutes for candles. 


@noob7

noob7
16 Sep 2023, 05:08 ( Updated at: 16 Sep 2023, 06:35 )

RE: RE: Could not download history candles

PanagiotisChar said: 

noob7 said: 

@PanagiotisChar I found more info about issue. We did actualy get the date but it was after waiting around 8 minutes for it. Normally it works very fast we get data in matter of seconds but ocasionally we wait like 8 minutes. Is it a bug or thats the design?

Sounds like none of the two. Such issues can occasionally when you work over the internet 

Its not the case of internet. I didn`t lose connection with api. In this 9 minutes period I was still receiving messages like: PROTO_OA_SPOT_EVENT. If my program wont get candles within 30 seconds it sends again message with request for candles few times. Even for these new requests it had to wait around 9 minutes. 

Is it possible that If I subscribed for message PROTO_OA_SPOT_EVENT its delaying message PROTO_OA_GET_TRENDBARS_RES  ?


@noob7

noob7
15 Sep 2023, 08:27 ( Updated at: 15 Sep 2023, 08:28 )

@PanagiotisChar I found more info about issue. We did actualy get the date but it was after waiting around 8 minutes for it. Normally it works very fast we get data in matter of seconds but ocasionally we wait like 8 minutes. Is it a bug or thats the design?


@noob7

noob7
14 Sep 2023, 08:21

I cannot reproduce it. It happens on average once per month. 


@noob7

noob7
07 Jun 2023, 11:26

RE:

Spotware said:

Dear trader,

Thank you. For point 4, we need the Open API host name you are connecting to.

Best regards,

cTrader Team

live-use.ctraderapi.com


@noob7

noob7
05 Jun 2023, 18:53 ( Updated at: 07 Jun 2023, 11:26 )

RE:

Spotware said:

Dear trader,

Please provide us with the following information

  1. Broker
  2. Account Number
  3. Account Type
  4. Host Name
  5. The exact time your position close messages were sent. 

Best regards,

cTrader Team

1. IcMarkets

2. 23542885

3. Raw Spread

4. My ip?

5. 2023-05-30T21:01:49.561

2023-05-30T21:02:05.566

2023-05-30T21:02:21.572 

2023-05-30T21:02:37.566 

2023-05-30T21:02:53.567 

2023-05-31T21:01:20.398

2023-05-31T21:01:36.392

Finally managed to close position at 2023-05-31T21:01:52.370.

 


@noob7

noob7
21 Mar 2023, 16:50

RE: RE:

Turns out my disk space run out thats why it hang. Weird that I didnt get any exception nor information from windows that I`m out of disk space. 

 


@noob7

noob7
20 Mar 2023, 17:33

Got error: 

heartbeat finished with Faulted Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host..

 

And my code in c# hangs. Maybe you did lower number of active connections available on real accounts vs demo ones? Because my demo account running same code same configuration works fine. 


@noob7

noob7
25 Aug 2022, 12:15

RE:

PanagiotisCharalampous said:

Hi noob7,

Did you try checking executionEvent.Position.HasStopLoss and  executionEvent.Position.HasTakeProfit?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 

Yes and it was false also.


@noob7

noob7
14 Jul 2022, 00:31

I found that I havent been disposing sslStream as well after Logout. Issue is resolved.


@noob7

noob7
12 May 2022, 19:01

RE: RE:

amusleh said:

noob7 said:

@amusleh

Because of this change Ive lost over 100 euro.

Why you didnt notify me about this breaking changes?

Hi,

The change was not a breaking change, our old proxies are still working and they resolve to new nearest proxies.

We are still investigating the connection issue.

On Old proxy I couldnt connect. On new one everything is working fine.


@noob7

noob7
12 May 2022, 12:01 ( Updated at: 12 May 2022, 12:06 )

@amusleh

Because of this change Ive lost over 100 euro.

Why you didnt notify me about this breaking changes?


@noob7