Get Margin Account Summary
Retrieves comprehensive margin account information including collateral, leverage, buying/selling power, and liquidation risk.
This endpoint provides real-time margin statistics for spot margin trading accounts, helping you monitor your account health and manage risk.
Roles
The API key you use to access this endpoint must have the Trader, Fund Manager or Auditor role assigned. See Roles for more information.
The OAuth scope must have balances:read assigned to access this endpoint. See OAuth Scopes for more information.
Account Type
This endpoint is only available for margin trading accounts. Standard exchange accounts will receive an error.
Headers
X-GEMINI-APIKEYYour API key
X-GEMINI-SIGNATUREHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADBase64-encoded JSON payload
Content-TypeContent-LengthCache-ControlGet Margin Account Summary › Request Body
requestThe literal string "/v1/margin/account"
The nonce, as described in Private API Invocation
accountRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group.
Get Margin Account Summary › Responses
Margin account summary with risk statistics
leverageThe current leverage ratio (notionalValue / marginAssetValue)
Get Margin Interest Rates
Retrieves current margin interest rates for all borrowable assets.
Returns hourly, daily, and annual borrow rates for each currency that can be borrowed on margin. Interest is charged on borrowed amounts at the hourly rate and compounds over time.
Roles
The API key you use to access this endpoint must have the Trader, Fund Manager or Auditor role assigned. See Roles for more information.
The OAuth scope must have balances:read assigned to access this endpoint. See OAuth Scopes for more information.
Account Type
This endpoint is only available for margin trading accounts.
Headers
X-GEMINI-APIKEYYour API key
X-GEMINI-SIGNATUREHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADBase64-encoded JSON payload
Content-TypeContent-LengthCache-ControlGet Margin Interest Rates › Request Body
requestThe literal string "/v1/margin/rates"
The nonce, as described in Private API Invocation
accountRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group.
Get Margin Interest Rates › Responses
Current margin interest rates for all borrowable assets
Array of interest rates for all borrowable currencies
Preview Margin Order Impact
Previews the margin impact of a hypothetical spot order without actually placing it.
Returns both pre-order and post-order margin risk statistics, allowing you to understand how an order would affect your margin account before execution. This is useful for risk management and planning trades.
Roles
The API key you use to access this endpoint must have the Trader or Auditor role assigned. See Roles for more information.
The OAuth scope must have orders:read assigned to access this endpoint. See OAuth Scopes for more information.
Account Type
This endpoint is only available for margin trading accounts.
Headers
X-GEMINI-APIKEYYour API key
X-GEMINI-SIGNATUREHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADBase64-encoded JSON payload
Content-TypeContent-LengthCache-ControlPreview Margin Order Impact › Request Body
requestThe literal string "/v1/margin/order/preview"
The nonce, as described in Private API Invocation
symbolThe trading pair symbol (e.g., "btcusd")
sideThe order side
typeThe order type
amountThe order amount in base currency (required for limit orders and sell market orders)
priceThe limit price (required for limit orders)
totalSpendTotal spend in quote currency (required for buy market orders)
accountRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group.
Preview Margin Order Impact › Responses
Pre-order and post-order margin risk statistics

