Status of OpenAPI v2

Created at 06 Nov 2018, 07:18
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!
HS

hsbcstor

Joined 06.11.2018

Status of OpenAPI v2
06 Nov 2018, 07:18


I am evaluating the spotware APIs. Please help to answer my questions.

- How is the status of OpenAPI v2 at this moment?

- when I tried to send ProtoOAAccountAuthReq message with my ctidTraderAccountId and accessToken, I got reply as follows
ProtoOAErrorRes, errorCode: "CANT_ROUTE_REQUEST"
description: "No environment connection"

Is it my problem?

- Is there a v2 for connect API?

- can we test FIX API using the demo account (without a real broker)?

Thank you very much.

 


@hsbcstor
Replies

PanagiotisCharalampous
06 Nov 2018, 10:07

Hi hsbcstor,

Thanks for posting in our forum. Regarding your questions.

1) Open API v2.0 has not been officially released yet, however it has been deployed on production servers and being tested and used by some major partners. The message you receive indicates that you are not using the correct proxy. Can you please advise which proxy do you use?

2) Yes you can use FIX API with demo accounts.

Best Regards,

Panagiotis


@PanagiotisCharalampous

hsbcstor
06 Nov 2018, 10:28

Hi Panagiotis,

 

1) I was connecting to tradeapi.spotware.com port 5035,  is it correct?

 

2) I got TCP disconnected after sending this login FIX... was connecting h4.p.ctrader.cn port 5211

8=FIX.4.4|9=127|35=A|49=CTRADER.13534169|56=CSERVER|34=1|52=20181106-08:24:52|57=QUOTE|50=S954906d|98=0|108=30|141=Y|553=account_id|554=password|10=000|

 

Thanks

HS


@hsbcstor

PanagiotisCharalampous
06 Nov 2018, 10:35

Hi hsbcstor,

1) No this is the proxy for v1.0. For v2.0 you need to use demo.ctraderapi.com for demo accounts and live.ctraderapi.com for live accounts. You can also find an example in C# here

2) Which broker's account is it? Does this happen every time you send this message or was it something temporary?

Best Regards,

Panagiotis


@PanagiotisCharalampous

hsbcstor
06 Nov 2018, 10:51

2) it is a demo account, no brokers. It happens every time.


@hsbcstor

hsbcstor
07 Nov 2018, 04:24

ProtoOACashFlowHistoryListReq unsupported

trying out the v2 API, looks like ProtoOACashFlowHistoryListReq is not handled. Not sure why.

 

2018-11-07 10:20:42 [TradingApiClient => demo.ctraderapi.com] ProtoOACashFlowHistoryListReq, ctidTraderAccountId: <account_id>
fromTimestamp: 1541125185209
toTimestamp: 1541557185209

2018-11-07 10:20:42 [demo.ctraderapi.com => TradingApiClient] ProtoOAErrorRes, errorCode: "UNSUPPORTED_MESSAGE"
description: "Request is not supported: class com.xtrader.protocol.openapi.v2.ProtoOACashFlowHistoryListRes"

 

Grateful if there are more docs on the OpenAPI v2.


@hsbcstor

hsbcstor
07 Nov 2018, 04:27

RE: ProtoOACashFlowHistoryListReq unsupported

ok I sent the wrong payload type. my fault.

 


@hsbcstor

tetra
11 Nov 2018, 17:59

RE:

Hi,

 

What is new with the openapi 2.0? Is there a documentation for that?

The Open_API_2._0_Sample 'Get Account List' hang permanently, does the sample or the openapi 2.0 in alpha/beta status?

 

Tetra

Panagiotis Charalampous said:

Hi hsbcstor,

Thanks for posting in our forum. Regarding your questions.

1) Open API v2.0 has not been officially released yet, however it has been deployed on production servers and being tested and used by some major partners. The message you receive indicates that you are not using the correct proxy. Can you please advise which proxy do you use?

2) Yes you can use FIX API with demo accounts.

Best Regards,

Panagiotis

 


@tetra

PanagiotisCharalampous
12 Nov 2018, 12:49

Hi tetra,

As I said above, Open API v2.0 has not been officially released yet. Documentation has not been completed. For the sample, you will need to send me your application credentials and the token you use at connect@spotware.com to check.

Best Regards,

Panagiotis


@PanagiotisCharalampous

tetra
13 Nov 2018, 20:49

RE:

Hi,

I can't really follow the answer, what is new in openapi 2.0? What is the difference or new? Why openapi 2.0 created?

Tetra

Panagiotis Charalampous said:

Hi tetra,

As I said above, Open API v2.0 has not been officially released yet. Documentation has not been completed. For the sample, you will need to send me your application credentials and the token you use at connect@spotware.com to check.

Best Regards,

Panagiotis

 


@tetra

PanagiotisCharalampous
14 Nov 2018, 10:09

Hi tetra,

We will announce more details soon.

Best Regards,

Panagiotis


@PanagiotisCharalampous

ycomp
18 Feb 2019, 11:42

RE: RE:

 

Hi,

I can't really follow the answer, what is new in openapi 2.0? What is the difference or new? Why openapi 2.0 created?

Tetra

it says on the web page, that the benefit is no longer having to use REST

 


@ycomp

ycomp
18 Feb 2019, 11:43

has Open API v2 been released yet? It is safe to start moving my code over to it?


@ycomp

PanagiotisCharalampous
18 Feb 2019, 11:47

Hi ycomp,

Yes Open API 2.0 has been released. See here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

viniciusfre
21 Mar 2019, 11:06

Hi Panagiotis,

Do you know which brokers offer Open API 2.0 or even 1.0? 


@viniciusfre

PanagiotisCharalampous
21 Mar 2019, 11:09

Hi viniciusfre,

By default the API is enabled for all cTrader brokers. However a broker can block specific API applications. For more information, you need to contact your broker.

Best Regards,

Panagiotis


@PanagiotisCharalampous

viniciusfre
21 Mar 2019, 12:53

Ok, this is great.

But I was in contact with Pepperstone and apparently they do not even know the difference between FIX API and Open API. They just say: "yes, we support API. Email us and ask to activate API access"... I bet the other brokers also does not know the difference.

So we need that spotware inform them about the Open API and how to give us Open API access.

Thanks.


@viniciusfre

PanagiotisCharalampous
21 Mar 2019, 16:34

Hi viniciusfre,

You can find all necessary documentation for Open API here

Best Regards,

Panagiotis


@PanagiotisCharalampous