Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sertexity.com/llms.txt

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

Exchange Rates

Get live exchange rates between crypto assets. Rates are refreshed every 60 seconds. GET /assets/rates  ·  🔒 Auth required

Query parameters

ParameterTypeRequiredDescription
basestringBase asset ticker (e.g. BTC)
targetsstringComma-separated target tickers. Omit to return all.

Response 200 OK

{
  "base": "BTC",
  "timestamp": "2024-09-15T10:30:00Z",
  "rates": {
    "ETH": 18.42,
    "SOL": 2041.87,
    "USDT": 62450.00,
    "BNB": 97.13
  }
}
FieldTypeDescription
basestringThe base asset
timestampstringISO 8601 time the rates were last updated
ratesobjectticker → rate — how much 1 unit of base buys in the target asset

Converting amounts

converted = amount × rates[target]
Example: convert 0.5 BTC to ETH:
0.5 × 18.42 = 9.21 ETH

Example

curl "https://api.sertexity.com/v1/assets/rates?base=BTC&targets=ETH,SOL,USDT" \
  -H "Authorization: Bearer <access_token>"