Minimum Deposit: All deposits must meet the minimum amount enforced by
MINIMUM_DEPOSIT_AMOUNT. Requests below this value return a 400 error.Endpoints
Prerequisites
Before depositing, ensure your server wallet has:- Trading tokens (USDT, USDC) - The asset you want to deposit
- Gas tokens (BNB, ETH) - Native currency for transaction fees
Aster Deposit
Deposits USDT on BNB Chain to the Aster exchange. The server automatically handles token approval and deposit transactions.Endpoint
POST /api/trading/aster/deposit
Request Body
Request Parameters
What Happens
- Balance Check - Verifies server wallet has sufficient tokens and gas
- Token Approval (if needed) - Signs and broadcasts ERC20 approve transaction
- Deposit Transaction - Signs and broadcasts deposit to Aster contract
- Confirmation - Waits for blockchain confirmation
Example Request
Success Response
Status Codes
200– Deposit completed successfully400– Missing required parameters or amount below minimum500– Server error during deposit process
Hyperliquid Deposit
Transfers USDC on Arbitrum directly to Hyperliquid. The server handles transaction signing and broadcasting.Endpoint
POST /api/trading/hyperliquid/deposit
Request Body
Request Parameters
Example Request
Success Response
Status Codes
200– Transfer completed successfully400– Invalid payload or amount below minimum500– Broadcast failure
Transfer Between Spot and Perp Accounts (Aster Only)
Move funds internally between Spot and Futures (Perp) wallets within Aster exchange.Endpoint
POST /api/aster/wallet/transfer
Request Body
Request Parameters
*Either
walletId or address is required
Transfer Directions
SPOT_FUTURE- Transfer from Spot → FuturesFUTURE_SPOT- Transfer from Futures → Spot
Example Request
Success Response
Common Error Responses
400 Bad Request - Missing Parameters
400 Bad Request - Below Minimum
400 Unsupported Exchange
500 Internal Server Error
Supported Networks & Tokens
Important Notes
Automatic Approval: The server automatically handles token approvals when needed. You don’t need to manage allowances separately.
Broker ID: For Aster deposits, the broker ID defaults to 1000 if not specified.