REST

REST endpoints for protocol information.

Tickers

To retrieve the latest price information for pricing display:

Candlesticks

To retrieve candlesticks data:

Required query parameters:

  • tokenSymbol

  • period: 1m, 5m, 15m, 1h, 4h, or 1d

Optional query parameters:

  • limit: The maximum number of candles to return. Defaults to 1000 if not specified.

    • Minimum: 1

    • Maximum: 10000

Response format:

Each candle is an array with 5 values:

  1. timestamp - Unix timestamp (seconds) of the candle period start

  2. open - Opening price

  3. high - Highest price during the period

  4. low - Lowest price during the period

  5. close - Closing price

Candles are returned in descending order (most recent first).

Fee APYs

To retrieve PX fee APYs:

Accepted query parameters:

  • period: 1d, 7d, 30d, 90d, 180d, 1y, total. If no period is set, 30d is returned by default.

Performance

To retrieve PX annualized performance:

Accepted query parameters:

  • period: 7d, 30d, 90d, 180d, 1y, total. If no period is set, 90d is returned by default.

  • address: The address of a specific GM or GLV if data for only one entity is required.

Last updated