Topics
Replies
ycomp
30 Mar 2017, 10:41
RE:
Spotware said:
Hi ycomp,
1) what is this heartbeat thing? I assume I can ignore using it if I ping the servers routinely?
Heartbeat is used to keep the communication link alive while there is no activity from the client side. Preferably use heartbeat.
just to confirm.. if I use heartbeat, then I don't need to ping at all ?
@ycomp
ycomp
30 Mar 2017, 01:12
RE:
Spotware said:
Hi ycomp,
1) You need to get an authorization every time you establish the connection. Then you need to ping the server every ath least ten seconds to keep the connections alive.
2) If you have a trading api token you can access both scopes.
what is this heartbeat thing? I assume I can ignore using it if I ping the servers routinely?
@ycomp
ycomp
29 Mar 2017, 11:05
RE: RE: RE:
mindbreaker said:
ycomp said:
mindbreaker said:
My youtube video:
Spotware Connect Api how to get access token and get data from cTrader server from url (connect api, cTID, link accounts to cTID).
thanks, the video was useful
I have a problem now that I have Trading and Accounts API access via the sandbox test account (connect@spotware.com), however I can't get a list of symbols (empty) nor trade "EURUSD" with a market order ("CH_SYMBOL_NOT_FOUND")
Do you know how I can get a demo account to try that has symbols available?
I tried to make my own Application and cTraderID but I have even less success, I think maybe because the Application says "submitted" next to it - so maybe it is not active yet ?So with those tokens I can't connect and authorize
Do you know when I authorize the trading API, how often is that required?
Don't test on sandbox (create new email on google, create new cTID connect new demo account from fxpro.co.uk or fro other broker and test whitout sandbox).
I dont know but when i try on sandbox it does not work, i try many times on sandbox but same results (does not work)
get all account symbols
https://api.spotware.com/connect/tradingaccounts/{id}/symbols?access_token=XXXXXXXXXX
thanks, now I got the symbols to work this way (eliminating sandbox urls and going to the connect (not sandbox-connect) cTrader ID site)
@ycomp
ycomp
29 Mar 2017, 07:27
RE:
mindbreaker said:
My youtube video:
Spotware Connect Api how to get access token and get data from cTrader server from url (connect api, cTID, link accounts to cTID).
thanks, the video was useful
I have a problem now that I have Trading and Accounts API access via the sandbox test account (connect@spotware.com), however I can't get a list of symbols (empty) nor trade "EURUSD" with a market order ("CH_SYMBOL_NOT_FOUND")
Do you know how I can get a demo account to try that has symbols available?
I tried to make my own Application and cTraderID but I have even less success, I think maybe because the Application says "submitted" next to it - so maybe it is not active yet ?So with those tokens I can't connect and authorize
Do you know when I authorize the trading API, how often is that required?
@ycomp
ycomp
30 Mar 2017, 10:45
how should I handle the situation where my program:
1. sends a market order request
2. connection drops
3. market order filled
4. response message missed (because not connected)
5. reconnected
so now on the server will be an open trade, that my program doesn't know was opened
@ycomp