- TypeScript
- Python
- API
The TypeScript examples on this page use a
PublicClient. The same market-data
methods are also available on SecureClient instances.Fetch Instruments
Fetch instruments before your integration lets users choose or submit orders for a Perps market. Instrument data gives you the constraints needed to validate that workflow.- TypeScript
- Python
- API
Fetch the available instruments.where
PerpsInstrument is:PerpsInstrument includes the market metadata and trading constraints your app
needs before submitting orders.| Field | Description |
|---|---|
id | Instrument identifier. |
category | Market category, such as crypto, index, equity, or commodity. |
symbol | Human-readable market symbol. |
baseAsset | Base asset for the instrument. |
quoteAsset | Quote asset used for prices. |
fundingInterval | Funding interval for the instrument, such as 1h. |
quantityDecimals | Decimal precision for quantities. |
priceDecimals | Decimal precision for prices. |
priceBounds | Price-bound value for the instrument. |
liquidationFee | Liquidation fee value for the instrument. |
maxOrderCount | Maximum order count for the instrument. |
minNotional | Minimum notional value for orders. |
maxMarketNotional | Maximum notional value for market orders. |
maxLimitNotional | Maximum notional value for limit orders. |
maxLeverage | Maximum leverage allowed for the instrument. |
riskTiers | Risk tiers for larger position sizes. |
Fetch Tickers
Use tickers when you need a lightweight view of where one or more markets are trading now.- TypeScript
- Python
- API
Fetch one ticker when you already know which instrument your integration is
tracking.Fetch all tickers to build a market list or refresh a dashboard.where
PerpsTicker is:Fetch the Order Book
Use the order book before choosing an order price or size. It shows available liquidity at the requested depth.- TypeScript
- Python
- API
Choose how many price levels to request. Supported depths are Fetch the book for the selected instrument. Bids and asks are returned as price
levels with decimal string prices and quantities.where
10, 100,
500, and 1000. When omitted, the SDK requests 100 levels.PerpsBook and PerpsBookLevel are:List Candles
Use candles when your workflow needs time-bucketed price history for charts, backtests, or trading signals.- TypeScript
- Python
- API
The SDK paginates candle history. When where
start is omitted, it starts from the
past 24 hours.PerpsCandle is:List Trades
Use public trades when recent executions matter more than aggregated candles. This is useful for trade tape views and execution analysis.- TypeScript
- Python
- API
The SDK paginates trade history, including cursor handling and boundary
deduplication.where
PerpsPublicTrade is:List Funding History
Use funding-rate history when estimating carry costs or explaining why Perps prices differ from the index over time.- TypeScript
- Python
- API
The SDK paginates funding-rate history.where
PerpsFundingRate is: