Replies

66281850
11 Mar 2022, 02:34

RE:

PanagiotisCharalampous said:

Dear 66281850,

Unfortunately there is no such option at the moment

FishProvider,

We offer higher limits to our clients.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

Are there plans to provide such an API in the future?

I think it is technically possible to combine multiple closing orders into one request。


@66281850

66281850
06 Feb 2020, 09:05

RE:

PanagiotisCharalampous said:

Hi 66281850,

I just tried this with my token and it works fine. Try with getting new tokens.

Best Regards,

Panagiotis 

Join us on Telegram

Oh well, let me try again, let me ask another question by the way:
expires_in => 2628000
This number indicates when the token expires? So how long does 2628000 represent? one day? Still an hour?


@66281850

66281850
06 Feb 2020, 08:52 ( Updated at: 21 Dec 2023, 09:21 )

RE:

PanagiotisCharalampous said:

Hi 66281850,

It means that you are using wrong credentials. Make sure that refresh_token, client_id and client_secret are correct.

Best Regards,

Panagiotis 

Join us on Telegram

 

But my refresh_token is not wrong。

 


@66281850

66281850
06 Feb 2020, 08:44

RE:

PanagiotisCharalampous said:

Hi 66281850,

If you manually get the initial token, then everything else can be done automatically. No further user interaction is required.

Best Regards,

Panagiotis 

Join us on Telegram

but when I use this link refresh token,

https://connect.spotware.com/apps/token?  
grant_type=refresh_token&  
refresh_token=3_PjO8ONazporH2oQrh77S6r_1vCA2MSzWjf2wl4iq8&  
client_id=781_t9SJJNtFqyr7Q0l9MBoCA903ZyQAgSbmg3e7nbudVJrKjGVr7W&  
client_secret=0kBTax9FNoIbgatU4WJtCPHxqxiyJDXCBrLylcieatm84WgrYp

 

The server responded to me with the following information:

{"errorCode":"ACCESS_DENIED","description":"Access denied. Make sure the credentials are valid."}

@66281850

66281850
06 Feb 2020, 08:26

RE:

PanagiotisCharalampous said:

Hi 66281850,

There is no way to get a token automatically. The user needs to give his explicit permission at least once. After you receive the token, you can use the refresh token to automatically refresh your token without user interaction.

Best Regards,

Panagiotis 

Join us on Telegram

 

Then can I manually visit https://connect.spotware.com/apps with a browser to get the token, and then record this token in the configuration file. Then when starting the automatic machine transaction program on the remote machine, use the refresh token to automatically refresh my token.
If so, does it also require at least one manual interactive authorization before refresh token?
My automated trading program runs on a linux system. If it is necessary to perform a manual interactive authorization before refreshing the token, can't my fully automatic machine trading program be implemented on the Linux system?


@66281850

66281850
30 Jul 2019, 05:57

I found that all currency pairs related to the yen  and USDHUF  have this problem. Its spot value is always 2 more zeros.

The correct conversion formula should be :

spot -》 double   = spot price  *10^(-(Symbol Digits+2) ).

 

Is this a server bug?   Either the spot value is wrong or the Symbol.Digits   is wrong?


@66281850

66281850
29 Jul 2019, 09:27

RE:

Panagiotis Charalampous said:

Hi 66281850,

Use spot price * 10^(-Symbol Digits).

Best Regards,

Panagiotis

 

That's what I thought. But this method is useless for certain currency pairs. For example, GBPJPY, Is it a bug in the spot value of the GBPJPY?

GBPJPY : spot  is   13472100   ,  ProtoOASymbol.digits  is 3,  

  spot price  *10^(-Symbol Digits).   = 13472100 * 0.001= 13472.1


@66281850

66281850
05 Jul 2019, 04:51

RE:

canbitwell said:

I am using TLS_client_method which works fine for me.

 

For certificate verification, I use: SSL_CTX_load_verify_locations(m_sslCtx, "ca-certs.pem", NULL);

You can get the ca-certs from Mozilla CA bundle. Or you can just copy one from a stunnel release.

 

I also have a custom OnSSLVerify which I think is optional (just some caching mechanism and unknown cert msgbox)

SSL_CTX_set_verify(m_sslCtx, SSL_VERIFY_PEER, &OnSSLVerify);

Thank you very much.


@66281850

66281850
04 Jul 2019, 18:04

RE:

Panagiotis Charalampous said:

Hi ggan,

Thanks for posting in our forum. May I ask why do you need this information? This is usually handled automatically by the libraries you use to connect e.g. SslStream.

Best Regards,

Panagiotis

HI Panagiotis Charalampous

    I have the same problem. I am a c++ developer。I built a connection to the ctrader server based on the c++ boost::asio::ssl library. But it failed when ssl handshake.

There are a lot of parameters to set in C++. 


@66281850

66281850
04 Jul 2019, 17:25

RE:

ClickAlgo said:

Hi,

I do not think the API provides this, but I may be wrong, you have a few other options, one is to create a robot which saves the data during a backtest, the others are listed below.

Purchase & download free market data

https://www.histdata.com/download-free-forex-data/

Use our free data converter tool

https://clickalgo.com/free-ctrader-historical-data-limited

Get the data via an API

https://www.dxfeed.com/consolidated-data-feed/forex/

Paul Hayes
Sales & Marketing
Emailcontact@clickalgo.com
Phone: (44) 203 289 6573
Websitehttps://clickalgo.com

Twitter | Facebook | YouTube | Pinterest | LinkedIn

 

Hi,Paul Hayes,thank you very much!

 


@66281850