Hello I need to send to an REST API this command:
C:\>curl -s -k -H “Authorization: Bearer MyToken” "https://api-fxpractice.oanda.com/v1/candles?instrument=EUR\_USD&granularity=D&count=5&candleFormat=bidask
It works without problems. getting a json structure. but when using q:
q)c:system “curl -s -k -H "Authorization: Bearer MyToken" https://api-fxpractice.oanda.com/v1/candles?instrument=EUR\_JPY&granularity=D&count=5&candleFormat=bidask”
The first parameter instrument is sent correctly, but the parameters granularity, count and candleFormat are not sent:
“granularity” is not recognized as an internal or external command.
“count” is not recognized as an internal or external command.
“candleFormat” is not recognized as an internal or external command.
'os
changing & by %26 sends the whole string but it’s not accepted by the REST API
Any hint please?
Cheers
Francisco