/price2usd/{assetName}

Get the crypto asset quote (USD).

Parameters

  • {assetName} [required] Crypto asset name, such as: BTC, ETH, etc.

Request

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

curl -X GET https://api.solarpath.io/v1/YOUR-API-KEY/price2usd/eth

Response

{
  "code": 200,
  "msg": "successful",
  "status": "success",
  "result": {
    "id": "ethereum",
    "rank": "2",        // Asset ranking
    "symbol": "ETH",    // Asset abbr
    "name": "Ethereum", // Asset Name
    "priceUsd": "1263.5276200050543593"  // Quoted in USD
  }
}

This API automatically refreshes every 3~5 minutes.

Last updated