In order to ease market maker onboarding, the dYdX team created this guide. Please read through the document in its entirety before beginning any integration steps.
dYdX Suggested Market Maker Onboarding Flow:
Connect your preferred ethereum wallet to dYdX L2 Perpetual protocol.
Deposit $USDC into your Perpetual account.
You will need to generate a STARK Key which identifies your account on Layer 2 and is saved locally on your browser. The Stark Key associates dYdX users with Ethereum account addresses so a user must first request to sign the linkage of an Ethereum key to a STARK Key and then register the STARK Key on dYdX’s smart contract before any other operation can take place. Click “Generate Stark Key” and sign the transaction. Signing is free and will not send a transaction. You can recover your Stark Key at any time with your wallet.
Alternatively, programmatic traders may derive their STARK key pair using the following method:
# Optional if eth_private_key or web3.eth.defaultAccount was provided.
More about STARK Keys can be found here.
4. Next you will need an API key which will require your Ethereum signature, or via a web3 provider. Note, Eth signatures are needed only for onboarding and managing API keys but not for trading—STARK key signatures are required for trading. API Keys can be registered and obtained using the following functions: