Get Trade Behaviour Config
You can get configuration how the system behaves when your limit order price exceeds the highest bid or lowest ask price. The response also includes whether Delta Neutral mode is enabled.
Where x% is priceLimitRatioX; and y% is the priceLimitRatioY:
Spot
- Maximum buy price: Min[Max(Index Price, Index Price × (1 + x%) + 2-Minute Average Premium), Index Price × (1 + y%)]
- Minimum sell price: Max[Min(Index Price, Index Price × (1 – x%) + 2-Minute Average Premium), Index Price × (1 – y%)]
Futures
- Maximum buy price: Min (Max (Index Price, Mark Price × (1 + x%)), Mark Price × (1 + y%))
- Minimum sell price: Max (Min (Index Price, Mark Price × (1 - x%)), Mark Price × (1 - y%))
Default Setting
Spot: lpaSpot = false. If the order price exceeds the limit, the system rejects the request.
Futures: lpaPerp = false. If the order price exceeds the limit, the system will automatically adjust the price to the nearest allowed price (i.e., highest bid or lowest ask).
HTTP Request
GET/v5/account/user-setting-configRequest Parameters
None
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| result | array | Object |
| > lpaSpot | boolean |
|
| > lpaPerp | boolean |
|
| > deltaEnable | boolean | Whether Delta Neutral mode is enabled. true: enabled; false: disabled |
| > smsef | boolean | Whether Spot MNT fee deduction is enabled. true: enabled; false: disabled |
| > fmsef | boolean | Whether Futures MNT fee deduction is enabled. true: enabled; false: disabled |
Request Example
- HTTP
- Python
- Node.js
GET /v5/account/user-setting-config HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1753255927950
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 52
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="xxxxxxxxxxxxxxxxxx",
api_secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
)
print(session.get_user_setting_config())
Response Example
{
"retCode": 0,
"retMsg": "OK",
"result": {
"lpaSpot": false,
"lpaPerp": false,
"smsef": false,
"fmsef": false
},
"retExtInfo": {},
"time": 1773234932707
}