Topics
31 Dec 2021, 16:28
 987
 4
15 Mar 2019, 16:44
 4549
 13
28 Feb 2019, 11:28
 1416
 6
14 Jun 2018, 19:00
 1628
 2
14 Jun 2018, 15:14
 1462
 2
12 Apr 2018, 12:41
 1360
 2
07 Nov 2017, 06:42
 1997
 6
24 Oct 2017, 03:38
 2109
 7
17 Oct 2017, 12:08
 0
 912
 1
16 Oct 2017, 08:26
 2380
 5
Replies

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

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, 08:06

how can I convert an orderID into a positionID so that I can call ProtoOAClosePositionReq ?


@ycomp

ycomp
30 Mar 2017, 06:35

and what is a positionId ? like in ProtoOACreateOrderReq ?

 


@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).

https://youtu.be/SRoKIpp-Gog

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).

https://youtu.be/SRoKIpp-Gog

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
27 Mar 2017, 09:07

how does one connect to the sandbox? I get errors when clicking the link 403 Forbidden


@ycomp

ycomp
24 Dec 2014, 02:25

Customizeable Renko Charts, Range Charts and x Tick Charts!


@ycomp

ycomp
24 Dec 2014, 02:24

I can live without BitCoin, just don't forget ITA40


@ycomp

ycomp
23 Dec 2014, 03:50

Please make it flexible like UniRenko ( https://www.bigmiketrading.com/ninjatrader/24408-unirenko-universal-renko-bar-type.html )


@ycomp

ycomp
07 Dec 2014, 15:21

RE:

cAlgo_Fanatic said:

Thank you for the suggestion. Range Bars will be available in the future.

Are they available yet? (In the regular platform)


@ycomp

ycomp
16 Oct 2013, 12:45

RE:

thanks

 

Spotware said:

We are implementing this functionality, it will be released soon.

 


@ycomp