Skip to main content
The REST API is the request-response interface for DerivaDEX. Use it when your client needs to fetch current state, inspect market data, or submit signed and encrypted trading requests. Realtime is the companion interface for live updates. A trading client usually uses REST first, then subscribes to Realtime for changes.

Overview

All paths are relative to the DerivaDEX deployment you are integrating against. Choose the base URL for the target environment first, then append the documented path.
EnvironmentBase URL
Testnethttps://testnet.derivadex.io
AreaUse it for
SystemExchange metadata, products, status, time, and supply state.
MarketOrder books, prices, tickers, volume, funding, insurance-fund history, and market aggregations.
TradeTrader, strategy, position, fee, account-update, and signed private-request surfaces.

System endpoints

MethodPathUse it for
GET/exchange/api/v1/exchange_infoGlobal exchange configuration.
GET/exchange/api/v1/pingConnectivity check.
GET/exchange/api/v1/symbolsTradable product symbols and active-state filters.
GET/exchange/api/v1/timeServer time for client clock synchronization.
GET/stats/api/v1/statusHigh-level exchange status.
GET/stats/api/v1/specsCurrent operator configuration settings.
GET/stats/api/v1/supplyDDX circulation information.
GET/stats/api/v1/tradable_productsAvailable trading products.
GET/contract-server/addressesDeployment contract addresses when exposed by the target environment.

Market endpoints

MethodPathUse it for
GET/exchange/api/v1/mark_pricesMark price history by symbol, epoch, and paging cursor.
GET/exchange/api/v1/order_bookCurrent L3 order book, optionally filtered by trader, strategy, symbol, side, or depth.
GET/exchange/api/v1/tickersMarket ticker data such as funding rate, open interest, price data, and 24-hour volume.
GET/stats/api/v1/aggregations/funding_rate_comparisonFunding-rate comparison between DerivaDEX and major exchanges.
GET/stats/api/v1/aggregations/insurance_fundInsurance fund value aggregation.
GET/stats/api/v1/aggregations/tradersTop traders by volume.
GET/stats/api/v1/aggregations/volumeTrading volume aggregation.
GET/stats/api/v1/epochsEpoch history and paging cursors.
GET/stats/api/v1/funding_rate_historyFunding rates over time.
GET/stats/api/v1/insurance_fundInsurance fund balance history.
GET/stats/api/v1/open_interest_historyOpen interest over time.
GET/stats/api/v1/order_book_l2Current L2 aggregated order book by symbol, depth, side, and price aggregation.
GET/stats/api/v1/price_checkpointsPrice checkpoint history.

Trade endpoints

MethodPathUse it for
GET/exchange/api/v1/order_updatesOrder posts, fills, cancellations, liquidations, and rejection history.
GET/exchange/api/v1/strategy_updatesStrategy update history for collateral, funding, PnL, fees, withdrawals, liquidations, and ADL.
GET/exchange/api/v1/trader_updatesTrader DDX balance, fee-preference, admission, denial, and profile update history.
GET/stats/api/v1/aggregations/balanceStrategy balance changes over a recent lookback window.
GET/stats/api/v1/aggregations/collateralCollateral inflow and outflow aggregation.
GET/stats/api/v1/aggregations/ddxDDX inflow and outflow aggregation.
GET/stats/api/v1/aggregations/feesFee aggregation by symbol, fee symbol, period, and grouping.
GET/stats/api/v1/feesMaker and taker fee history for a strategy.
GET/stats/api/v1/positionsCurrent positions for a strategy.
GET/stats/api/v1/strategyCurrent state of a trader strategy.
GET/stats/api/v1/strategiesStrategy list for a trader when exposed by the target deployment.
GET/stats/api/v1/strategy_metricsStrategy KPIs and risk metrics such as margin fraction, leverage, available collateral, and strategy value.
GET/stats/api/v1/traderCurrent trader DDX balance and profile.
GET/v2/encryption-keyOperator public key for encrypted private request submission.
POST/v2/requestSigned and encrypted private order, cancel, cancel-all, profile-update, or withdrawal request submission.
See Signed Private Requests for the private request envelope, intent fields, receipts, and submission errors.

REST and Realtime together

StageTypical API choice
Bootstrap market or account stateREST
Submit a signed trading requestREST
Watch order book and mark-price changesRealtime
Track order, strategy, and trader updates after bootstrapRealtime

Integration notes

TopicDetail
Endpoint detailsOperation-specific parameter and response schemas appear under the generated REST endpoint pages.
Private trading requestsSigned and encrypted write requests use Signed Private Requests.
PaginationHistorical endpoints commonly use limit, order, epoch, ordinal, timestamp, cursor, or offset fields.
Numeric valuesDecimal quantities are represented as strings where precision matters.
Limits and errorsUse Rate Limits and Access Tiers and Error Reference.
Live updatesUse Realtime Channels after REST bootstrap when a client needs continuous updates.
Last modified on May 5, 2026