Topics
Replies
kostya.bartchenkov
09 Apr 2023, 15:44
RE:
swapd0 said:
No one is using OpenAPI and ICMarkets to access historical data? This is a bit frustrating :(
I also have an icMarkets account . I may try it out tomorrow if I have some time. What PAIR are you trying?
@kostya.bartchenkov
kostya.bartchenkov
04 Apr 2023, 16:02
Thank you. Mine was with Pepperstone. Saying that everything works fine now again
@kostya.bartchenkov
kostya.bartchenkov
03 Apr 2023, 14:49
I get the same issue. No code changes were done at all but ProtoOAGetTrendbarsReq stopped returning results.
This is for demo account, I tried multiple proxies - AU and EU, tried multiple bar sizes and pairs with the same result. Other calls seem to work.
@kostya.bartchenkov
kostya.bartchenkov
16 Mar 2022, 23:27
RE:
Has anyone managed to resolve it with Telstra?
what do you even tell them?
@kostya.bartchenkov
kostya.bartchenkov
15 Mar 2022, 14:32
RE:
amusleh said:
Hi,
Are you using Open API or cTrader automate API?
If you are using Open API then please check the order docs: https://spotware.github.io/open-api-docs/models/#protooaorder
To change relative stop loss or take profit to price levels you should divide the relative value to 100000 and then round it to symbol digits:
Round(relative / 100000.0, symbol.Digits);
Hi Amusleh,
Thanks a lot for your help in this forum.
Does it mean that in ETHUSD example, If I wanted to set relativeStopLoss to 2% of the price which was 2536.75 I would use the following formula?
```
2536.75 * 0.02 * 100000 = 5073500
```
I guess not, since I get "Relative stop loss has invalid precision" error. For me, I couldn't quite get what "Specified in 1/100_000 of unit of a price" meant.
@kostya.bartchenkov
kostya.bartchenkov
09 Mar 2022, 14:55
RE:
Everything is working now. Thanks a lot for your help @amusleh
@kostya.bartchenkov
kostya.bartchenkov
08 Mar 2022, 12:00
RE:
amusleh said:
Hi,
The delta close is not included because it's already there, the latest bid price that you get from spot event.
If you use the latest bid price as close price for current bar then it should match with the ProtoOAGetTrendbarsReq result.
Amusleh, thanks a lot for a prompt reply. I think something doesn't add up.
I just ran an this example. Below is historic tredbar:
volume: 150
low: 257175000
deltaOpen: 120000 = 2572.95000
deltaClose: 200000 = 2573.75000
deltaHigh: 290000 = 2574.65000
utcTimestampInMinutes: 27445532
And this is the last live ProtoOASpotEvent for the period:
symbolId: 10029
bid: 257295000
ask: 257995000
trendbar { volume: 2 period: M1 low: 257295000 deltaOpen: 0 deltaHigh: 0 utcTimestampInMinutes: 27445532 }
And this is what i get from CTrade Mobile App(which matches historical data):
low: 2571.75
high: 2574.65
open: 2572.95
close: 2573.75
So the bid from the last ProtoOASpotEvent doesn't seem to match the close price.
@kostya.bartchenkov
kostya.bartchenkov
04 Aug 2020, 00:31
RE:
PanagiotisCharalampous said:
Hi kostya.bartchenkov,
The request requires UNIX timestamps as input which are measured in milliseconds. You need to change your code accordingly.
Best Regards,
Panagiotis
Thanks a lot. I must have missed that. It all works.
Is it possible to get list of closed orders with labels as ProtoOADealListRes doesn't have labels. Or is there a Order Details API?
Thanks a lot in advance.
@kostya.bartchenkov
kostya.bartchenkov
11 Apr 2023, 08:08
Just tried my ICMarkets account - works fine for me (used GBPUSD M5)
@kostya.bartchenkov