Get Maximum Open Size
Calculate the maximum position size that can be opened based on available balance, leverage, and current market conditions.
HTTP Request
GET /api/v1/future/account/max-open
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Trading pair symbol (e.g., BTCUSDT) |
| posSide | string | Yes | Position side: "LONG" or "SHORT" |
| orderType | string | Yes | Order type: "LIMIT" or "MARKET" |
| openPrice | string | No | Opening price (required when orderType is "LIMIT") |
Request Example
Market Order Request
curl -X GET "https://open-api.bydoxe.com/api/v1/future/account/max-open?symbol=BTCUSDT&posSide=LONG&orderType=MARKET" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000"
Limit Order Request
curl -X GET "https://open-api.bydoxe.com/api/v1/future/account/max-open?symbol=BTCUSDT&posSide=LONG&orderType=LIMIT&openPrice=90000.00" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000"
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code |
| msg | string | Response message |
| requestTime | number | Request timestamp in milliseconds |
| data | object | Maximum open data |
| > maxOpen | string | Maximum position size that can be opened |
Response Example
Success Response
{
"code": "00000",
"msg": "success",
"requestTime": 1732000000000,
"data": {
"maxOpen": "317.54"
}
}
Error Codes
| Code | Message |
|---|---|
| 40034 | symbol does not exist |
| 40001 | Order price is required |
| 40002 | Order price decimal precision is too high |