Documentation Index
Fetch the complete documentation index at: https://docs.magic.link/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
All endpoints require the following headers unless otherwise noted:Bearer token (JWT) for end-user authentication. Format:
Bearer YOUR_JWT_TOKENYour Magic secret key for application-level authentication.
Check DEX Requirements
Check whether the authenticated user meets the requirements to initialize a perp DEX venue (e.g., minimum balance, gas availability).cURL
Request Parameters
The DEX venue to check. Values:
extended, hyperliquid, paradex, nado, polymarketResponse Fields
Whether the check completed successfully.
The DEX venue that was checked.
Whether all requirements are satisfied for initialization.
Detailed requirements breakdown. Common fields include
requirements_met, message, usdc_required, usdc_available, usdc_sufficient, chain_balances, eth_required, eth_available, and eth_sufficient; venues may add fields.Human-readable status message.
Initialize DEX
Initialize a perp DEX venue for the authenticated user. This handles venue-specific account creation and onboarding.cURL
Request Parameters
The DEX venue to initialize. Values:
extended, hyperliquid, paradex, nado, polymarketForce re-initialization even if the venue is already set up.
Optional venue-specific initialization metadata.
Response Fields
Whether initialization completed successfully.
The DEX venue that was initialized.
Venue-specific initialization status persisted for the user’s account. For example, Hyperliquid includes
initialized and account_address; Extended, Paradex, Nado, and Polymarket include their own account configuration fields.Human-readable status message.
Initialize Trading
Initialize venue-specific trading setup after the account is initialized and funded. Some venues require an initial deposit before trading credentials or signer setup can be completed.cURL
Request Parameters
The DEX venue to initialize for trading. Values:
extended, hyperliquid, paradex, nado, polymarketOptional venue-specific trading setup metadata. Hyperliquid accepts
agent_name, builder_address, and max_builder_fee_rate; Paradex and Nado accept name.Force trading setup even if the venue is already trade-initialized.
Response Fields
Whether trading setup completed successfully.
The DEX venue that was initialized for trading.
Human-readable status message.
Venue-specific trading setup status. Some fields are returned only once in this response and are not persisted, such as Hyperliquid
agent_private_key, Extended stark_private_key, Paradex subkey_private_key, and Nado linked_signer_private_key.Get DEX Assets
Get perp DEX asset state including balances and transfer rules for a specific venue.cURL
Query Parameters
The DEX venue to query. Values:
extended, hyperliquid, paradex, nado, polymarketResponse Fields
The DEX venue queried.
Whether the venue is initialized for this user.
Shared asset fields from the venue:
balance, account_value, and available_for_withdrawal. Polymarket may also include proxy_wallet_usdc_e and proxy_wallet_pusd. null if not initialized.Deposit and withdrawal rules including minimum amounts and fees.
null if not initialized.Error message if the query failed.
null on success.Get DEX Credentials
Get platform-specific API credentials for the authenticated user’s DEX account.cURL
Query Parameters
The DEX venue to query credentials for. Values:
extended, hyperliquid, paradex, nado, polymarketResponse Fields
The DEX venue queried.
Whether the venue is initialized for this user.
Whether post-funding trading setup has completed for this venue.
Error message if the query failed.
null on success.Additional credential fields are venue-specific and vary by DEX. This endpoint returns persisted credential metadata only; one-time private keys are returned from
POST /account/init-perp-dex-trading.