Topics
Replies
glikoz
22 Jun 2020, 19:20
RE:
glikoz said:
There is a question https://ctrader.com/forum/fix-api/11447 workaround this issue.
But it seems not solved?
By the way, changing TargetSubID to "TRADE" does not work also.
Do I have to implement two different threads?
@glikoz
glikoz
22 Jun 2020, 13:48
RE: Weird Now works
glikoz said:
I implemented PriceSubscription, MakeOrder, and OrderEventSubscription for Bitmex via API and WebSocket in JUST ONE day.
But when I tried it with CTrader FixAPI, this is 4th day and I can just logon!
Although I have 15+ years of experience with c#.
Lack of documentation, false flags, etc.
We have https://github.com/spotware/FIX-API-Sample joke. It is 3 years old. Works just for login on the demo server.
I met more mature http://quickfixn.org/ and it seems up to date. But it seems that there is nuances broker to broker.
I need PriceSubscription, MakeMarketOrder, and OrderEventSubscription.
The last problem is when I tried to MarketOrderSubscription via
FIX {
BeginString = FIX.4.4;
MsgSeqNum = 2;
MsgType = MARKET_DATA_REQUEST (V);
SenderCompID = xxxxxxxxxx;
SendingTime = 20200621-23:30:45.559;
TargetCompID = cServer;
TargetSubID = QUOTE;
MDReqID = MARKETDATAID;
SubscriptionRequestType = SNAPSHOT_PLUS_UPDATES (1);
MarketDepth = 0;
NoMDEntryTypes (count 1) {
{
MDEntryType = BID (0);
}
};
NoRelatedSym (count 1) {
{
Symbol = 1;
}
};
}, SessionId: FIX.4.4:icmarkets.xxxxxxxx->cServer/QUOTE
I am getting strange response
<incoming> FIX {
BeginString = FIX.4.4;
MsgSeqNum = 3;
MsgType = REJECT (3);
SenderCompID = xxxxxxxxxxxx;
SenderSubID = QUOTE;
SendingTime = 20200621-23:30:46.701;
TargetCompID = cServer;
TargetSubID = QUOTE;
RefSeqNum = 2;
Text = Tag appears more than once;
RefTagID = 278;
RefMsgType = W;
SessionRejectReason = TAG_APPEARS_MORE_THAN_ONCE (13);
}, SessionId: FIX.4.4:icmarkets.xxxxxxxxx>cServer/QUOTEAnyone can suggest something...
Note: xxxxxxxxxxxx is mask for my accountId
No change on source code, altough same error message now data is coming
@glikoz
glikoz
19 Jun 2020, 13:03
RE:
PanagiotisCharalampous said:
Hi glikoz,
Open API streams spot prices over TCP connections. Check our examples to find out how it works.
Best Regards,
Panagiotis
Firsty,Thanks for fast response.
I have the same problem https://ctrader.com/forum/connect-api-support/12764 . Do I have to take action about it. (Error authenticating application: OA client is not in active state)
@glikoz
glikoz
22 Jun 2020, 19:52
RE: RE:
glikoz said:
I've implemented two threads, and everything is ok for now.
@glikoz