API Overview
The package exposes four public entry points:
DYDXIndexerPublicNodePrivateNode
That split mirrors the official dYdX documentation, which separates the indexer APIs from the node APIs.
DYDX
Use DYDX by default when you need authenticated/private usage. It combines the indexer and node clients behind one context manager.
DYDX.indexer exposes the full Indexer surface, and DYDX.node exposes the combined node surface.
Indexer
Use Indexer for public/read-only data retrieval when you do not need trading access.
Indexer.data
Implemented HTTP read methods include:
get_asset_positionsget_candles,get_candles_pagedget_compliance_screenget_fills,get_fills_pagedget_funding_payments,get_funding_payments_pagedget_funding_payments_for_parent_subaccountget_heightget_historical_funding,get_historical_funding_pagedget_historical_pnlget_markets,get_marketget_megavault_historical_pnlget_order,get_order_bookget_parent_asset_positionsget_parent_fillsget_parent_historical_pnlget_parent_subaccountget_parent_transfersget_rewards,get_rewards_aggregatedget_screen,get_sparklinesget_subaccount,get_subaccountsget_time,get_tradesget_transfers,get_transfers_paged,get_transfers_betweenget_vaults_historical_pnllist_orders,list_parent_orderslist_parent_positions,list_positions,get_open_position
Indexer.data includes the full documented read surface, along with convenience methods such as get_market(), get_open_position(), and the *_paged() iterators.
Indexer.streams
Current stream coverage:
block_height(batched=True)candles(market, resolution=..., batched=True)markets(batched=True)orders(id=..., batched=True)parent_subaccounts(address, subaccount=0, batched=True)subaccounts(address, subaccount=0, batched=True)trades(id=..., 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 directly only when you specifically want the lower-level node wrapper. Prefer DYDX for most authenticated workflows.
Implemented methods:
place_order(market, order, ...)cancel_order(order_id, ...)batch_cancel_orders(order_ids, ...)
Credentials
Indexerrequires no credentialsPublicNoderequires no credentialsDYDXcurrently supports mnemonic-based access fornodePrivateNodecurrently supports mnemonic-based accessPrivateNode.testnet()readsDYDX_TESTNET_MNEMONICwhen no mnemonic is passed explicitly
See Trading Access for the current authentication model.