Skip to main content
The examples below show common REST request shapes. Replace https://exchange.derivadex.com with the base URL for the deployment you are integrating against.

Market data

L3 order book

curl "https://exchange.derivadex.com/exchange/api/v1/order_book?symbol=ETHP&depth=4"
Query parameterMeaning
symbolProduct symbol, such as ETHP or BTCP.
depthBest N bids and asks to return.
sideOptional side filter: 0 for bid, 1 for ask.
traderOptional trader address with the blockchain discriminant prefix.
strategyIdHashOptional strategy ID hash.

L2 order book

curl "https://exchange.derivadex.com/stats/api/v1/order_book_l2?symbol=ETHP&depth=4&priceAggregation=1"
Query parameterMeaning
symbolProduct symbol.
depthBest N bids and asks to return.
priceAggregationAggregation level for L2 prices. Current values are 0.1, 1, and 10 for ETHP; 1, 10, and 100 for BTCP.
sideOptional side filter: 0 for bid, 1 for ask.

Tickers

curl "https://exchange.derivadex.com/exchange/api/v1/tickers?symbol=ETHP"
Query parameterMeaning
symbolOptional product symbol.
marketKindOptional market type filter. 0 is single-name perpetual, 2 is index-fund perpetual, and 3 is fixed-expiry future.

Trader and strategy state

Strategy metrics

curl "https://exchange.derivadex.com/stats/api/v1/strategy_metrics?trader=0xb993e587c15a9e0a0fe4f111de98fd6b5ce7067d&strategyId=main"
Query parameterMeaning
traderRequired trader address.
strategyIdRequired strategy ID, such as main.

Strategy positions

curl "https://exchange.derivadex.com/stats/api/v1/positions?trader=0xb993e587c15a9e0a0fe4f111de98fd6b5ce7067d&strategyId=main&symbol=ETHP&limit=500&offset=0"
Query parameterMeaning
traderRequired trader address.
strategyIdRequired strategy ID.
symbolOptional product symbol.
limitNumber of rows to return. Defaults to 500.
offsetOffset for returned rows. Defaults to 0.

Trader state

curl "https://exchange.derivadex.com/stats/api/v1/trader?trader=0xb993e587c15a9e0a0fe4f111de98fd6b5ce7067d"
Query parameterMeaning
traderRequired trader address.

History and pagination

Order updates

curl "https://exchange.derivadex.com/exchange/api/v1/order_updates?trader=0x00b993e587c15a9e0a0fe4f111de98fd6b5ce7067d&strategyIdHash=0x2576ebd1&symbol=ETHP&limit=500&order=asc"
Query parameterMeaning
traderOptional trader address with the blockchain discriminant prefix.
strategyIdHashOptional strategy ID hash.
symbolOptional product symbol.
reasonOptional order-update reason. 0 post, 1 trade, 2 liquidation, 3 cancel, 4 order rejection, 5 cancel rejection.
limitNumber of rows to return. Defaults to 500.
globalOrdinalBoundary used when fetching the next timeseries page.
orderResult order: asc or desc.
sinceEarliest timestamp in seconds. Cannot be used with order=desc.
orderHashOptional order hash. Multiple values can be provided.

Strategy updates

curl "https://exchange.derivadex.com/exchange/api/v1/strategy_updates?trader=0x00b993e587c15a9e0a0fe4f111de98fd6b5ce7067d&strategyIdHash=0x2576ebd1&reason=5&limit=500&order=asc"
Query parameterMeaning
traderOptional trader address with the blockchain discriminant prefix.
strategyIdHashOptional strategy ID hash.
reasonOptional strategy-update reason. 0 deposit, 1 withdraw, 2 withdraw intent, 3 funding payment, 4 PnL settlement, 5 trade, 6 fee, 7 liquidation, 8 ADL, 9 withdrawal rejection.
limitNumber of rows to return. Defaults to 500.
globalOrdinalBoundary used when fetching the next timeseries page.
orderResult order: asc or desc.
Last modified on April 27, 2026