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 [email protected].
Prerequisites
Deposit Assets
Endpoint: Transfer Collateral for Margin
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/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
{
"currency": "BTC",
"quantity": "2",
"balanceValue": {
"quantity": "1000000",
"currency": "USD"
}
}
Next
See Also
Updated 22 days ago