I use the TD Ameritrade API as documented on the API documentation.
The URL to get the price history contains the symbol of the asset to fetch.
The documentation says:
Replace the
{symbol}in the URL with the actual symbol
It works well with stock symbols like GOOG or AAPL or FB.
For example for AAPL, the url would be: https://api.tdameritrade.com/vi/marketdata/AAPL/pricehistory
But with symbols that contain a backslash like the EUR/USD spot, it does not work because the backslash is considered as an additional path to the URL
So I get URL not found with https://api.tdameritrade.com/vi/marketdata/EUR/USD/pricehistory
Same with EUR/CAD, EUR/GBP, and other forex spots.
How to fetch forex spot?
