Lynx API
Search
K
Comment on page
🔮

Coin Price

Endpoint

GET /v1/coins/price?symbol=<SYMBOL>

Description

This endpoint provides the current price and price change of the most common cryptos such as BTC, ETH, SOL, MATIC, etc.

Query String Parameters

  • symbol (required): Symbol of the coin. Example: BTC, ETH, BNB

Headers

  • x-api-key (required): A valid API key.

Example

curl --location --request GET 'https://api.lynxcrypto.app/v1/coins/price?symbol=ETH' \
--header 'x-api-key: <API-KEY>'

Response

{
"price": "1621.28",
"change": "2.5"
}

Response Codes

  • 200: Success. Returns the current price and price change for the given coin.
  • 400: Bad Request. The symbol query string parameter is missing or invalid.
  • 500: Internal Server Error. An unexpected error occurred while processing the request.