Skip to main content

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.


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-config

Request Parameters

None

Response Parameters

ParameterTypeComments
resultarrayObject
> lpaSpotboolean
  • true: If the order price exceeds the limit, the system will automatically adjust the price to the nearest allowed price
  • false: If the order price exceeds the limit, the system rejects the request.
> lpaPerpboolean
  • true: If the order price exceeds the limit, the system rejects the request.
  • false: If the order price exceeds the limit, the system will automatically adjust the price to the nearest allowed price.

Request Example

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

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"lpaSpot": true,
"lpaPerp": false
},
"retExtInfo": {},
"time": 1756794317787
}