REST API Reference

Base URL: https://api.waretto.com

GET/v1/quotes/{symbol}

Get the latest quote for a single symbol.

ParamTypeDescription
symbolstringPath — e.g. BTC-USD, EUR-USD, AAPL
POST/v1/quotes/batch

Get quotes for multiple symbols in one request.

ParamTypeDescription
symbolsstring[]Body — ["BTC-USD", "ETH-USD"]. Max per plan.
GET/v1/history/{symbol}

Get OHLC historical bars.

ParamTypeDescription
intervalstring1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w (default: 1d)
fromintUnix timestamp (seconds)
tointUnix timestamp (default: now)
limitint1–5000 (default: 200)
GET/v1/search

Search supported symbols by ticker or name.

ParamTypeDescription
qstringSearch query (required, min 1 char)
typestringCRYPTO, EQUITY, ETF, FX, COMMOD
limitint1–50 (default: 10)
GET/v1/snapshot

Latest quotes for all tracked symbols.

Example Response

{
  "status": "ok",
  "symbol": "BTC/USD",
  "data": {
    "price": 67432.80,
    "bid": 67432.10,
    "ask": 67433.50,
    "volume_24h": 28540.5,
    "asset_type": "CRYPTO",
    "source": "binance"
  },
  "request_id": "a1b2c3d4"
}

Rate Limit Headers

HeaderDescription
X-RateLimit-Limit-MinuteYour plan's per-minute limit
X-RateLimit-Remaining-MinuteRequests remaining this minute
X-RateLimit-Limit-DayYour plan's daily limit
X-RateLimit-Remaining-DayRequests remaining today
X-RateLimit-ResetUnix timestamp when the minute window resets

Error Codes

StatusCodeMeaning
401missing_api_keyNo API key provided
401invalid_api_keyKey not found or expired
404symbol_not_foundSymbol not tracked
429rate_limit_exceededPlan rate limit hit
400batch_limit_exceededToo many symbols in batch