Replies

lukepoga
23 Jul 2023, 22:03 ( Updated at: 23 Jul 2023, 22:12 )

Can mod delete this please? no way to delete thread.

 

 

 


@lukepoga

lukepoga
13 Jul 2023, 02:02 ( Updated at: 13 Jul 2023, 06:31 )

RE:

PanagiotisChar said:

Hi there,

It is not very clear to me what are you looking for but if you are looking to bypass the OAuth authentication, you can generate your own tokens from the Playground area.

Aieden Technologies

Need help? Join us on Telegram

 

 

its not normal for an API to have an interactive user step. Oauth 2.0 has a version called client_credentials which allow programs to log on without human intervention. Support for this is what I am looking for. But because you dont have it, i can't use Open API. And so I will just use the FIX API.

you could suggest this to your openapi programmers.

 


@lukepoga

lukepoga
12 Jul 2023, 23:36 ( Updated at: 12 Jul 2023, 23:38 )

yes it was down

cTrader crashed at 8.33am during NY open. It crashed the desktop AND the FIX API. So the price service was down.

Not sure when it came back but it was a long time so I gave up. Does this happen much? I guess since they are UK based they thought they could do an update in the middle of the night (12:33am UK time) and noone would notice. 


@lukepoga

lukepoga
12 Jul 2023, 10:03 ( Updated at: 12 Jul 2023, 10:05 )

RE: RE: RE:

if any one finds it in the future, the MarketDataRequest is broken, the field orders are defined wrong (ROFL). I just replaced it with my own class:

 

class BidAskMarketDataRequest(RequestMessage):
    def __init__(self, config):
        super().__init__("V", config)

    def _getBody(self):
        fields = []
        fields.append(f"262={self.MDReqID}")
        fields.append(f"263=1")
        fields.append(f"264=1")
        fields.append(f"265=1")
        fields.append(f"146=1")
        fields.append(f"55={self.Symbol}")
        fields.append(f"267=2")
        fields.append(f"269=0")
        fields.append(f"269=1")

        return f"{self.delimiter.join(fields)}"

and it works fine now.

 

Sent:  8=FIX.4.4|9=144|35=V|49=xxxxx.icmarkets.xxxxxxx|56=cServer|57=QUOTE|50=QUOTE|34=2|52=20230712-06:59:11|262=12345|263=1|264=1|265=1|146=1|55=1|267=2|269=0|269=1|10=028|

Received:  8=FIX.4.4|9=138|35=W|34=2|49=cServer|50=QUOTE|52=20230712-06:59:15.541|56=xxxxx.icmarkets.xxxxxxx|57=QUOTE|55=1|268=2|269=0|270=1.10213|269=1|270=1.10217|10=073|
 

Hope it helps people in the future.


@lukepoga

lukepoga
12 Jul 2023, 09:39

RE: RE:

its mentioned here:

 

 

its supposed to work with two 269 records, which i have tried and it still fails.


@lukepoga

lukepoga
12 Jul 2023, 09:35 ( Updated at: 12 Jul 2023, 09:55 )

RE:

i tried to hack in two 269 fields:

        mr = MarketDataRequest(config)
        mr.MDReqID = "1"
        mr.SubscriptionRequestType="1"
        mr.MarketDepth=1
        mr.MDUpdateType=1
        mr.NoMDEntryTypes=2
        mr.MDEntryType="0|269=1"
        mr.NoRelatedSym=1
        mr.Symbol=7

but still same error!?

Sent:  8=FIX.4.4|9=140|35=V|49=xxxxx.icmarkets.xxxxxxx|56=cServer|57=QUOTE|50=QUOTE|34=2|52=20230712-06:22:33|262=1|263=1|264=1|265=1|267=2|269=0|269=1|146=1|55=7|10=197|

Received:  8=FIX.4.4|9=178|35=3|34=2|49=cServer|50=QUOTE|52=20230712-06:22:37.167|56=xxxxx.icmarkets.xxxxxxx|57=QUOTE|45=2|58=Incorrect NumInGroup count for repeating group, field=267|371=267|372=V|373=16|10=244|
 


@lukepoga

lukepoga
10 Jul 2023, 09:42

did they fix this?

Looking to consider cTrader FIX. Did they give you a solution? What did you do?


@lukepoga

lukepoga
04 Nov 2015, 06:05

Thanks. How often is Server.Time updated? Does it come in the tick packet from the server or is it simulated from somewhere else?

 


@lukepoga

lukepoga
16 Oct 2015, 11:01

Its a basic requirement of any forex API. 


@lukepoga

lukepoga
16 Oct 2015, 10:59

2 years and all your features yet noone has thought that an algo trader would want to launch a bot programatically?


@lukepoga