The global
--jsonflag is supported on every command and prints the raw API response as indented JSON instead of a table.
Transfer assets between spot and futures wallets.
./aster-cli wallet transfer --kindType=SPOT_FUTURE --asset=USDT --amount=100Supported transfer types:
SPOT_FUTURE: Transfer from spot wallet to futures walletFUTURE_SPOT: Transfer from futures wallet to spot wallet
Parameters:
--kindType, -t: Transfer type: SPOT_FUTURE or FUTURE_SPOT (required)--asset, -a: Asset to transfer, e.g., USDT, BTC (required)--amount, -m: Amount to transfer (decimal string, must be greater than 0)
Examples:
Transfer 100 USDT from spot to futures:
./aster-cli wallet transfer --kindType=SPOT_FUTURE --asset=USDT --amount=100Transfer 50 USDC from futures to spot:
./aster-cli wallet transfer --kindType=FUTURE_SPOT --asset=USDC --amount=50Output:
┌────────────────┬─────────┐
│ TRANSACTION ID │ STATUS │
├────────────────┼─────────┤
│ 50548639 │ SUCCESS │
└────────────────┴─────────┘With --json:
{
"tranId": 50548639,
"status": "SUCCESS"
}