Skip to main content
Deposit funds from your server wallet to exchange accounts. The server handles transaction signing and broadcasting using MPC-secured wallets.
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:
  1. Trading tokens (USDT, USDC) - The asset you want to deposit
  2. 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

  1. Balance Check - Verifies server wallet has sufficient tokens and gas
  2. Token Approval (if needed) - Signs and broadcasts ERC20 approve transaction
  3. Deposit Transaction - Signs and broadcasts deposit to Aster contract
  4. Confirmation - Waits for blockchain confirmation

Example Request

Success Response

Status Codes

  • 200 – Deposit completed successfully
  • 400 – Missing required parameters or amount below minimum
  • 500 – 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 successfully
  • 400 – Invalid payload or amount below minimum
  • 500 – 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 → Futures
  • FUTURE_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

Server-Side Signing: All transactions are signed server-side using MPC-secured wallets. Never expose wallet credentials to clients.
Automatic Approval: The server automatically handles token approvals when needed. You don’t need to manage allowances separately.
Transaction Tracking: Use the returned txHash and txUrl to track deposit progress on block explorers.
Broker ID: For Aster deposits, the broker ID defaults to 1000 if not specified.