/price2token/{assetPair}

Crypto pair quotation.

Parameters

  • {assetPair} [required] Crypto symbols, such as: BTCUSDT, ETHUSDT, etc.

  • exchangeName [optional] Specify the exchange, ranges: BINANCECOINBASEHUOBIOKX

Request

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

curl -X GET 'https://api.solarpath.io/v1/YOUR-API-KEY/price2token/ethusdt?exchangeName=BINANCE'

Response

{
  "code": 200,
  "msg": "successful",
  "status": "success",
  "result": [
    {
      "symbol": "ETHUSDT",     // crypto pair
      "price": "3900.82",      // The latest quotation in USDT
      "exchange": "BINANCE",   // exchange name
      "change": "-3.37353635", 
      "changeAbs": "-136.19",
      "high": "4037.23",       // highest price of the day
      "low": "3877",           // lowest price of the day
      "volume": "159029.3331", // Total transaction volume of the day
      "vol24H2USD": "526390930.10411056", // 24Hours total transaction amount(USD)
      "type": "crypto",
      "description": "Ethereum / TetherUS",
      "time": 1570684543470    // update time
    }
  ]
}

This API automatically refreshes every 3~5 minutes.

Last updated