Replies

adrian.buzatu
03 Jun 2023, 11:49

RE: RE: RE: RE:

> I have never used "Open API" and can only speak to "FIX API". 

> I currently have connections to 16 broker accounts via FIX api and the execution is pretty much seamless across all. I am able to buy and sell across all brokers pretty much at the same time. I have never experienced an issue where I have vastly different execution times across brokers, provided you have a vps.... to reduce latency. 

> FIX took me a while to code up and get into the hang of things, but once up and running the system works flawlessly. My client was happy to copy trades across multiple platforms with FIX platform we designed. 

Hi, Thank you for the answer, that is very helpful to show this is possible with FIX, as it is designed to be low level and thus flexibile.

Did you code the FIX code from scratch, or on the top of the FIX API provided by cTrader?

Do you use C# or Python with https://github.com/spotware/cTraderFixPy ? I tried the latter and I can place trades, but I struggle with seeing the list of positions so that I can close them back; I also struggle with TP and SL in FixAPI, I know about the 721 to the main position. I wonder if you would able to help me get started with a hello world?

Do you keep all 16 connnections opened all the time and send heartbeats to them? Or you open and close them after every time the client presses a button in their platform? 

Thank you!


@adrian.buzatu

adrian.buzatu
03 Jun 2023, 10:33 ( Updated at: 21 Dec 2023, 09:23 )

RE:

Hello, thank you. I know that page and I tried the code, but I am not sure what these credentials mean and how to get them.

```

request.clientId = "Your application Client ID"
request.clientSecret = "Your application Client secret"

```

By my application does it mean my cTrader demo account for the FixAPI?

I guess not and OpenAPI I need to get a key from cTrader? I read here 

That I need to

> After deciding the purpose of your application and its key functionality, you should be ready to register the service at the cTrader Open API Portal. You can read a detailed overview of this process in a separate guide.

I did that and I have an application for one week with no answer. Here is what I asked. I am not clear what they actually want. I do not build a formal app for others. Just for me to be able to place and close some trades. They ask for a redirect URI. What is a redirect URI and where it is needed? I could run my script from my computer, or from a VPS server, so the IP would change. 

After we set this up, the webside does not show an example how to actually place a buy market trade with a target price and stop loss. It just has an example of how to connect to the server. A complete hello world example would be very useful to me how to get started. After that I can develop in Python further. 

If there is a way I can have a short call with someone, or even a live chat, that would be very useful to me. Thank you, 

Adrian


@adrian.buzatu

adrian.buzatu
02 Jun 2023, 13:05

Hello, does anyone have a hello world example how to get started to get the OpenAPI token approved?


@adrian.buzatu