/price2forex/{fiatPair}

Get quotes on fiat currency exchange rates.

Parameters

  • {fiatPair} [required] Fiat currency trading pair,such as: USDEURUSDGBPUSDSGDUSDCNYUSDJPYUSDKRW, etc.

Request

  • Please replace YOUR-API-KEY with your API-KEY.

curl -X GET https://api.solarpath.io/v1/YOUR-API-KEY/price2forex/usdsgd

Response

{
  "code": 200,
  "msg": "successful",
  "status": "success",
  "result": {
    "symbol": "USDSGD",
    "price": "1.33135",      // current latest price
    "change": "-0.01952524",
    "changeAbs": "-0.00026",
    "bid": "1.33137",        // current bid price
    "ask": "1.33156",        // current ask price
    "high": "1.3329",        // Highest price of the day
    "low": "1.329",          // lowest price of the day
    "type": "forex",
    "description": "U.S. DOLLAR / SINGAPORE DOLLAR",
    "time": 1570684543470    // update time
  }
}

This API automatically refreshes every 3~5 minutes.

Last updated