Account Contract Config
Query the account configuration for a specified futures trading pair, including current leverage, margin mode, and available leverage tiers.
API Information
- Method:
GET - Path:
/api/v1/futures/open-api/account/config
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Futures trading pair, e.g. AAPL |
Request Example
GET /api/v1/futures/open-api/account/config?symbol=AAPL
Response Fields
| Field | Type | Description |
|---|---|---|
| code | int | Status code, 0 indicates success |
| data.id | int64 | Config record ID |
| data.coType | int | Contract type: 1=US stocks, 2=Hong Kong stocks, 3=Cryptocurrency |
| data.symbol | string | Futures trading pair |
| data.leverage | string | Current leverage multiplier |
| data.marginMode | int | Current margin mode: 1=Cross, 2=Isolated. The server uses this value when creating orders; do not pass it in the order request |
| data.leverTypes | string | Available leverage tiers, comma-separated, e.g. "2,5,10,20" |
Response Example
{
"code": 0,
"data": {
"id": 1,
"coType": 1,
"symbol": "AAPL",
"leverage": "10",
"marginMode": 1,
"leverTypes": "2,5,10,20"
}
}