Topics
06 Jun 2019, 05:41
 1379
 3
30 Nov 2018, 10:28
 1551
 2
06 Nov 2018, 07:18
 4559
 18
Replies

hsbcstor
30 Jan 2019, 03:06

RE:

Hello,

Actually ProtoOAExecutionEvent.errorCode is a string field (instead of the ProtoErrorCode enum).

I am asking this because last time I received a "NOT_ENOUGH_MONEY" string which is not documented anywhere.  Just wonder if there are other possible errors.

Thanks


@hsbcstor

hsbcstor
07 Nov 2018, 04:27

RE: ProtoOACashFlowHistoryListReq unsupported

ok I sent the wrong payload type. my fault.

 


@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
06 Nov 2018, 10:51

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


@hsbcstor

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