Market Data

public/get_instrument

Changed on

Returns the full public definition of one instrument named by instrument_name: type, activation window and active status, tick size, min/max/step amounts, maker/taker/base fee rates, pro-rata matching parameters, base/quote currencies, and type-specific details (option, perp, or spot). Expired options remain queryable by instrument_name. Public endpoint.

post/public/get_instrument

Request

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

Request body

GetInstrumentRequest required
instrument_name, string required

Response

Success

Instrument required
amount_step, string required
base_asset_address, string required

The traded asset's contract address — word 0 (asset) of the order action data. Use this (not erc20_details) when signing an order.

base_asset_sub_id, string required

The traded asset's sub-id — word 1 (subId) of the order action data. Decimal string; "0" for perps and spot.

base_currency, string required
base_fee, string required
erc20_details, SpotPublicDetails nullable
fifo_min_allocation, string required
instrument_name, string required
instrument_type, 'option' | 'perp' | 'erc20' required

Asset type of the instrument: "option", "perp", or "erc20".

is_active, boolean required
maker_fee_rate, string required
mark_price_fee_rate_cap, string nullable
maximum_amount, string required
minimum_amount, string required
option_details, OptionDetails nullable
perp_details, PerpDetails nullable
pro_rata_amount_step, string required
pro_rata_fraction, string required
quote_currency, string required
risk_universe_id, integer required

Only subaccounts in this risk universe can trade the instrument.

scheduled_activation, integer required
scheduled_deactivation, integer required
taker_fee_rate, string required
tick_size, string required

Changes