Currencies

This endpoint can be called using:

https://api.adiinvestments.net/v1/markets/currencies

Returns the following information for five currency pairs:

  • Current Price

  • Name

  • Percent Change

  • Symbol

Indices provided are EUR/USD, USD/JPY, GBP/USD, AUD/USD, USD/CAD.

Responses

200 Successful
[
  {
    "currentPrice": 1.04,
    "longName": "EUR/USD",
    "percentChange": -0.96,
    "symbol": "EURUSD=X"
  },
  {
    "currentPrice": 157.1,
    "longName": "USD/JPY",
    "percentChange": -0.49,
    "symbol": "JPY=X"
  },
  {
    "currentPrice": 1.25,
    "longName": "GBP/USD",
    "percentChange": -0.79,
    "symbol": "GBPUSD=X"
  },
  {
    "currentPrice": 0.62,
    "longName": "AUD/USD",
    "percentChange": -0.0,
    "symbol": "AUDUSD=X"
  },
  {
    "currentPrice": 1.44,
    "longName": "USD/CAD",
    "percentChange": 0.0,
    "symbol": "USDCAD=X"
  }
]
401 Unauthorized
{"error_code":403,
"error_message":"Invalid API key."}
429 Too Many Requests
{"error_code":429,
"error_message":"Rate limit exceeded. Please try again later."}

Last updated