Skip to main content
PUT
Set a trading account's API limits

Authorizations

Authorization
string
header
required

The session token of a Lean user who is signed in, sent as Authorization: Bearer <token>. Only the API key endpoints accept it, and an API key cannot create or revoke keys.

Path Parameters

tradingAccountId
string<uuid>
required

Body

application/json
maxOrderNotionalMicros
integer | null
required
Required range: 0 < x <= 100000000000000
dailyNotionalLimitMicros
integer | null
required
Required range: 0 < x <= 100000000000000
allowedVenues
enum<string>[] | null
required
Minimum array length: 1
Available options:
kalshi,
polymarket,
polymarket_us,
hyperliquid
maxSlippageBps
integer | null
required
Required range: 0 <= x <= 10000

Response

The account's settings after the change

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required