API Overview
The package exposes three public entry points:
IndexerPublicNodePrivateNode
That split mirrors the official dYdX documentation, which separates the indexer APIs from the node APIs.
Indexer
Use Indexer for most data retrieval.
Indexer.data
Implemented read methods include:
get_markets,get_marketget_order_bookget_tradesget_candles,get_candles_pagedget_fills,get_fills_pagedget_funding_payments,get_funding_payments_pagedget_historical_funding,get_historical_funding_pagedget_subaccount,get_subaccountsget_transfers,get_transfers_pagedlist_orderslist_positions
Indexer.streams
Current stream coverage:
subaccounts(address, subaccount=0, batched=True)
PublicNode
Use PublicNode for public node reads backed by the dYdX node client.
Implemented methods:
get_clob_pair(id)get_price(id)get_user_fee_tier(address)
PrivateNode
Use PrivateNode for signed trading actions.
Implemented methods:
place_order(market, order, ...)cancel_order(order_id, ...)batch_cancel_orders(order_ids, ...)
Credentials
Indexerrequires no credentialsPublicNoderequires no credentialsPrivateNodecurrently supports mnemonic-based access
See Trading Access for the current authentication model.