Trading Access
For dYdX, the important distinction is not public vs API-key access. It is indexer vs node access.
Public Usage
No credentials are required for:
IndexerPublicNode
Use these imports for public/read-only workflows:
Private Trading Setup
DYDX and PrivateNode currently use mnemonic-based access.
export DYDX_MNEMONIC="your twelve or twenty-four word mnemonic"
export DYDX_TESTNET_MNEMONIC="your testnet twelve or twenty-four word mnemonic"
Security Notes
- never commit your mnemonic
- treat
DYDX_MNEMONICandDYDX_TESTNET_MNEMONICas high-sensitivity secrets - assume
DYDXandPrivateNodeexamples are mainnet-sensitive unless you change the underlying connection logic - keep read-only workflows on
IndexerorPublicNodewhenever possible