Market Data

public/get_ticker

Changed on

Returns the latest ticker snapshot for a single instrument named by instrument_name. The payload matches the data of a ticker_slim.{instrument}.{interval} subscription update (mark/index prices, best bid/ask, sizes, greeks, and related fields). Returns an error if no ticker is available. Public endpoint.

post/public/get_ticker

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    none declared

Request body

GetTickerRequest required
instrument_name, string required

Response

Success

TickerSlimSnapshot required
A, string required

Amount of contracts / tokens available at the best ask price.

B, string required

Amount of contracts / tokens available at the best bid price.

I, string required

Index price.

M, string required

Mark price.

a, string required

Best ask price.

b, string required

Best bid price.

f, string nullable

Current hourly funding rate (perpetuals only; null otherwise).

maxp, string required

Maximum price at which an aggressive buyer can be matched. Any portion of a market order that would execute above this price is cancelled. A limit buy order with limit price above this value is treated as post only (i.e. it is rejected if it would cross any existing resting order).

minp, string required

Minimum price at which an aggressive seller can be matched. Any portion of a market order that would execute below this price is cancelled. A limit sell order with limit price below this value is treated as post only (i.e. it is rejected if it would cross any existing resting order).

option_pricing, OptionPricing nullable
stats, DailyTradingStatistics required

Trailing 24-hour trading statistics.

t, integer required

Snapshot creation timestamp, in milliseconds since the Unix epoch.

Changes