Margin
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
Cookbook
Need just the steps? Expand the cookbook below to get started:
Fund Collateral AccountOpen CookbookDeposit 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 \
http://$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"
}
}