API Documentation

Simple REST API delivering Forex, Crypto, and Stocks data with JSON responses.

Authentication

Pass your API key in the access_key query parameter.

GET https://api.example.com/forex/list?access_key=YOUR_KEY

Latest Prices

Return all supported symbols and latest quotes.

GET https://api.example.com/forex/latest?symbols=EUR/USD,GBP/USD&access_key=YOUR_KEY
{
  "status": true,
  "code": 200,
  "msg": "Successfully",
  "response": [
    { "s": "EUR/USD", "o": 1.14896, "h": 1.05065, "l": 1.13410, "c": 1.10492 },
    { "s": "GBP/USD", "o": 1.2746, "h": 1.2810, "l": 1.2703, "c": 1.2790 }
  ]
}

Historical Candles

Query OHLCV candles by period.

GET https://api.example.com/forex/history?symbol=EUR/USD&period=1h&access_key=YOUR_KEY
{
  "status": true,
  "code": 200,
  "response": {
    "1679050800": { "o": 1.06335, "h": 1.0640, "l": 1.0616, "c": 1.0630, "v": 1, "t": 1679050800 }
  }
}

Errors

{
  "status": false,
  "code": 401,
  "msg": "Invalid API key"
}