How can I run your sample program?

Created at 06 Feb 2020, 13:20
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!
YS

ysdytk1973

Joined 06.02.2020

How can I run your sample program?
06 Feb 2020, 13:20


I'm a AXIORY trader.

I downloaded your example project from "https://github.com/spotware/Open-API-2.0-.Net-Sample" and tried connecting AXIORY cTrader web with it.

But the program is not running. It stopped in the main function. The stopped position is "_apiSocket.AuthenticateAsClient(_apiHost);" of the main function.

I set clientId, secret, token, server url, server port and demo account id like this.

        private string _clientId = "...";
        private string _clientSecret = "...";
        private string _token = "fE1zEiQ_eGWpI0SQRdvSMdqyUylAAgRyIEqE_3OrEoI";
        private string _apiHost = "ct.axiory.com";

        private int _apiPort = 80;
        private long _accountID = 8020864; //demo acount

And the rest of codes are same as your example.

Is there a problem with me or in your example project?

Please kindly teach me.


@ysdytk1973
Replies

PanagiotisCharalampous
06 Feb 2020, 14:21

Hi ysdytk1973,

Your host is wrong. You can find the correct hosts here.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous