Get Token Price - Relay

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

cURL

curl --request GET \
  --url https://api.relay.link/currencies/token/price

JavaScript

const options = {method: 'GET'};

fetch('https://api.relay.link/currencies/token/price', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));

Python

import requests

url = "https://api.relay.link/currencies/token/price"

response = requests.get(url)

print(response.text)

Status Codes

Response Examples

{
  "price": 123
}
{
  "error": "<string>"
}

Headers

Query Parameters

Response

{ "price": 123 }

  
- **Error Response Example:**  
  ```json
{
  "error": "<string>"
}