REST : companion answer is false

6 posts / 0 new
Last post
falex
REST : companion answer is false

Hi,

I've notice several mistake between the REST documentation, the result provide by the companion and the real stream (on the same account).

For exemple if I request https://demo-api.ig.com/gateway/deal/markets/CS.D.EURCAD.MINI.IP

The companion answer is "currencies": [{
"code": "CAD",
"symbol": "CD",

But if I send the same request with my programme the answer is :
"currencies": [{
"name": "CAD",

The /positions url has the same caveats. Some key value are not the real one.

Coudl you correct this point because I spend hours and hours debugging before I found that it was "only" a key name problem.

belfort
Hi falex,

Hi falex,

Notice that for some resources and methods there are two versions (and there will be probably more in the future). This goes in a header. The companion requests the latest version for each resource and method, which is 2 for GET /markets. I think you are requesting version 1.

falex
Hi agree belfort,

Hi agree belfort,

And if you check the documentation, there is no difference from version 1 and 2 for the POST request /markets/{epic}

It's not a real matter, it was just boring the first time I check why my code wasn't working has expected.
It's just an exemple and my goal is that IG tam will correct the documentation and the companion :-)

falex
Oups sorry I've read and

Oups sorry I've read and answer too fast.

You're right belfort.
I've to ask for the V2.

Sorry
sorry
sorry

belfort
yep, it's difficult to see

yep, it's difficult to see the differences between versions on the Reference. Maybe the team could mark the new or removed items in subsequent versions. That way we could see the changes when new versions come.

Chris
REST : companion answer is false

Hi Belfort,

Showing what has changed between versions would require a significant change in our systems, but this is something we will look into.

Thanks for the feedback!
Chris

Log in or register to post comments