Fund Collateral Account
Overview
Before you can being trading on margin, you must transfer assets from your Go Account to your Collateral Account.
BitGo accepts the following assets as collateral:
- USD
- USDT
- USDC
- BTC
After transferring assets into your Collateral Account, the assets lock and you can only withdraw them by contacting support@bitgo.com.
Prerequisites
Deposit Assets
Endpoint: Transfer Collateral for Margin
1 2 3 4 5 6 7 8 9 10 11 12 13
export BITGO_EXPRESS_HOST="<YOUR_LOCALHOST>" export ACCOUNT_ID="<YOUR_ACCOUNT_ID>" export ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>" export CURRENCY="<ASSET_ID>" export QUANTITY="<AMOUNT_IN_BASE_UNITS>" curl -X POST \ https://$BITGO_EXPRESS_HOST:3080/api/prime/trading/v1/accounts/$ACCOUNT_ID/margin/collateral/transfer \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -d '{ "currency": "'"$CURRENCY"'", "quantity": "'"$QUANTITY"'", }'
Step Result
1 2 3 4 5 6 7 8
{ "currency": "BTC", "quantity": "2", "balanceValue": { "quantity": "1000000", "currency": "USD" } }