Jump to content

Will7

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Will7's Achievements

1

Reputation

  1. I'm experiencing the same issue. I can call top-level nodes but when I try to call '/markets' I get the same '{"errorCode":"error.better-search.invalid-call"}' response. https://demo-api.ig.com/gateway/deal/markets?searchTerm=FTSE is working in the API companion but when I use exactly the same string on my node server it returns the error. const headers = { 'CST': cst, 'X-IG-API-KEY': key, 'IG-ACCOUNT-ID': accountId, } const markets = () => { console.log(headers) request({ url: `https://demo-api.ig.com/gateway/deal/markets?searchTerm=FTSE`, method: "GET", headers }, function (error, response, body) { console.log(body) }); } markets() returns '{"errorCode":"error.better-search.invalid-call"}'
×
×
  • Create New...
us