{
"success": false,
"error": {
"code": "FEATURE_DISABLED",
"message": "Trading is paused for this key or its trading account, or Lean has paused limit chases on the venue"
},
"meta": {
"timestampMs": 1792771200000,
"requestId": "7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"
}
}
Limit chases
Update a limit chase
Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.
PATCH
/
limit-chases
/
{id}
Error
A valid request URL is required to generate request examples
{
"success": false,
"error": {
"code": "FEATURE_DISABLED",
"message": "Trading is paused for this key or its trading account, or Lean has paused limit chases on the venue"
},
"meta": {
"timestampMs": 1792771200000,
"requestId": "7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"
}
}
Authorizations
Authorization
string
header
required
A Lean API key, sent as Authorization: Bearer <key>. A test key (lean_sk_test_...) simulates orders and fills with no money; a live key (lean_sk_live_...) trades for real within the key's limits. Every successful response says which mode answered in data.livemode.
Path Parameters
id
string
required
Required string length: 1 - 64
Example:
"7b2f4e19-0c6d-4a83-9e51-d4a8b3c2f706"
Body
application/json
quantity
string
The new total shares, counting what has already filled. It cannot be less than the filled quantity.
Pattern: ^\d+(?:\.\d+)?$
offset_ticks
integer
How many price ticks behind the best price on its own side the order rests, from 0 to 10. Give at most one of offset_ticks, offset_price, offset_shares and offset_beat_best.
Required range: 0 <= x <= 10
offset_price
string
How far behind the best price on its own side the order rests, in dollars from 0 to 0.1. Give at most one of offset_ticks, offset_price, offset_shares and offset_beat_best.
offset_shares
string
The most shares the order lets rest ahead of it in the queue, from 0 to 10,000,000 in steps of 0.01. The order rests one tick inside the first price level that would put more shares ahead of it. Give at most one of offset_ticks, offset_price, offset_shares and offset_beat_best.
Pattern: ^\d+(?:\.\d+)?$
offset_beat_best
enum<boolean>
Set to true to rest one tick better than the best price on its own side, so the order is first in the queue. It stops one tick short of the other side, so it never crosses the spread. Give at most one of offset_ticks, offset_price, offset_shares and offset_beat_best.
Available options:
true
price_limit
string | null
The new worst price the order rests at, in dollars between 0.0001 and 0.9999. Send null to remove the limit and follow the book wherever it goes.
Response
The limit chase, with the edit accepted
Option 1
Option 2
success
enum<boolean>
required
Available options:
true
data
object
required
Hide child attributes
data.id
string
required
Minimum string length: 1
data.market_id
string | null
required
Minimum string length: 1
data.venue
enum<string>
required
Available options:
kalshi,
polymarket,
polymarket_us,
hyperliquid
data.ticker
string
required
Minimum string length: 1
data.side
enum<string>
required
Available options:
yes,
no
data.action
enum<string>
required
Available options:
buy,
sell
data.quantity
string
required
Pattern: ^\d+(?:\.\d+)?$
data.offset_ticks
integer | null
required
Ticks behind the best price, or null when the chase uses another offset.
Required range: 0 <= x <= 10
data.offset_price
string | null
required
Dollars behind the best price, or null when the chase uses another offset.
data.offset_shares
string | null
required
The most shares the order lets rest ahead of it in the queue, or null when the chase uses another offset.
Pattern: ^\d+(?:\.\d+)?$
data.offset_beat_best
boolean
required
True when the order rests one tick better than the best price on its own side.
data.offset_midpoint
string | null
required
For a limit chase made in the Lean app that rests as far back as it can within this many dollars of the midpoint, ignoring the best price on its own side. Null when the chase uses another offset. A request cannot set it.
data.price_limit
string | null
required
data.status
enum<string>
required
Available options:
active,
filled,
canceled,
failed,
expired
data.current_price
string | null
required
The price the order rests at now, or null while it waits for a book to follow.
data.filled_quantity
string
required
Pattern: ^\d+(?:\.\d+)?$
data.avg_fill_price
string | null
required
data.expires_at
string<date-time> | null
required
data.cancel_requested_at
string<date-time> | null
required
When a cancel was asked for, or null. A live limit chase keeps its status until Lean applies the cancel a moment later, then reads canceled.
data.edit_pending
boolean | null
required
True while Lean has accepted an edit but not yet applied it; the other fields show the edited values meanwhile. A list can trail an edit accepted a moment earlier; read the limit chase by id to confirm.
data.last_error
string | null
required
Why Lean last refused an edit or could not rest the order, or null. An edit Lean refuses, such as a smaller size that fills overtook, leaves the earlier values in place.
data.created_at
string<date-time>
required
data.updated_at
string<date-time>
required
data.livemode
boolean
required
meta
object
required
Hide child attributes
meta.timestampMs
integer
required
Required range: x >= 0
meta.requestId
string
required
Minimum string length: 1
meta.traceId
string
Minimum string length: 1
meta.cachedAtMs
integer
Required range: x >= 0
meta.source
enum<string>
Available options:
cache,
database,
clickhouse,
upstream,
fallback,
internal
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lean API","colors":{"primary":"#2F5BFF","light":"#8EA6FF","dark":"#3D66FF"},"logo":{"light":"https://mintcdn.com/lean/aK_dPkAAQjEsgndO/logo/light.svg?fit=max\u0026auto=format\u0026n=aK_dPkAAQjEsgndO\u0026q=85\u0026s=6f5d064937ce6cfedc8198e9ba927287","dark":"https://mintcdn.com/lean/aK_dPkAAQjEsgndO/logo/dark.svg?fit=max\u0026auto=format\u0026n=aK_dPkAAQjEsgndO\u0026q=85\u0026s=6d4c29348beb6f1c14aa1aecb4003afd","href":"/"},"api":{"params":{"expanded":"all"},"playground":{"display":"interactive"},"examples":{"defaults":"all","languages":["curl","python","javascript"],"prefill":true}},"appearance":{"default":"light"},"background":{"color":{"light":"#FFFFFF","dark":"#0C0F17"}},"navbar":{"links":[{"href":"https://lean.mintlify.site/api-reference/openapi.json","label":"OpenAPI spec"},{"href":"mailto:s@lean.xyz","label":"Contact us"}],"primary":{"type":"button","label":"Quickstart","href":"/quickstart"}},"footer":{"links":[{"header":"Lean API v0.1","items":[{"label":"Limitations","href":"/orders"},{"label":"Changelog","href":"/changelog"},{"label":"OpenAPI spec","href":"https://lean.mintlify.site/api-reference/openapi.json"}]}]},"fonts":{"family":"Geist"},"styling":{"codeblocks":"dark","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","mcp"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lean","hasAudioNarration":false,"actualSubdomain":"lean","customDomains":["docs.lean.xyz"],"gitSource":{"type":"github","owner":"nivasaurus","repo":"lean-api-docs-demo","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae2d9189e92e136d8b49833"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b13538d5694ed350414c8f3","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API reference","count":82},{"language":"default","tag":"Guides","count":32},{"language":"default","tag":"Account","count":14},{"language":"default","tag":"Orders","count":13},{"language":"default","tag":"Use cases","count":13},{"language":"default","tag":"API keys","count":11},{"language":"default","tag":"Markets","count":9},{"language":"default","tag":"Limit chases","count":5},{"language":"default","tag":"Stop losses","count":5},{"language":"default","tag":"Transfers","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--lean-ink: #09090b;--lean-ink-2: #2b2d34;--lean-slate: #5d6270;--lean-faint: #8a8f9c;--lean-line: #e7e8ec;--lean-line-2: #f0f1f4;--lean-mist: #f7f8fa;--lean-cobalt: #2f5bff;--lean-cobalt-ink: #1f43d6;--lean-night: #0c0f17;--lean-night-2: #131826;--lean-night-line: #1f2536}code,pre,kbd{font-family:'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace}.prose h1,.prose h2,.prose h3{letter-spacing:-0.025em;font-weight:600}.prose h2{padding-top:28px;border-top:1px solid var(--lean-line)}.dark .prose h2{border-top-color:#ffffff14}.prose :not(pre)>code{font-size:.86em;background:var(--lean-mist);border:1px solid var(--lean-line-2);padding:1px 5px;border-radius:5px;color:var(--lean-ink-2)}.dark .prose :not(pre)>code{background:#ffffff0d;border-color:#ffffff14;color:#e6e9f2}.prose table{font-size:14px}.prose thead th{font-weight:500;font-size:13px;color:var(--lean-faint);border-bottom:1px solid var(--lean-ink)}.prose tbody td{border-bottom:1px solid var(--lean-line-2);vertical-align:top}.dark .prose thead th{border-bottom-color:#ffffff55}.dark .prose tbody td{border-bottom-color:#ffffff12}#content-area:has(.lean-hero)>#header{display:none}#content-area:has(.lean-hero)>#content{margin-top:0}.lean-hero{background:var(--lean-night);color:#fff;border-radius:18px;padding:56px 48px;margin:8px 0 56px;border:1px solid var(--lean-night-line);background-image:radial-gradient(1200px 400px at 85% -10%, #2f5bff33, transparent 60%)}.lean-kicker{display:inline-flex;align-items:center;gap:10px;font-size:13px;color:#b9c1d4;border:1px solid #ffffff1f;background:#ffffff08;border-radius:999px;padding:5px 14px 5px 6px;margin-bottom:24px}.lean-kicker b{font:500 11.5px/1 'Geist Mono', monospace;color:#fff;background:var(--lean-cobalt);border-radius:999px;padding:5px 8px}.lean-hero h1.lean-title{font-size:clamp(36px, 4.6vw, 56px);line-height:1.04;letter-spacing:-0.045em;font-weight:600;margin:0 0 20px;max-width:14ch;color:#fff;border:0;padding:0}.lean-lede{font-size:18px;line-height:1.6;color:#aeb6c8;max-width:48ch;margin:0 0 32px}.lean-cta{display:flex;gap:12px;flex-wrap:wrap}.lean-btn{display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:10px;font-size:14.5px;font-weight:500;text-decoration:none!important;border:1px solid transparent}.lean-btn-primary{background:var(--lean-cobalt);color:#fff!important}.lean-btn-primary:hover{background:var(--lean-cobalt-ink)}.lean-btn-ghost{color:#fff!important;border-color:#ffffff2e;background:#ffffff08}.lean-btn-ghost:hover{background:#ffffff14;border-color:#ffffff44}.lean-facts{display:flex;flex-wrap:wrap;gap:20px 36px;margin-top:44px;padding-top:24px;border-top:1px solid #ffffff14;color:#8d95a8;font-size:13.5px}.lean-facts strong{display:block;color:#fff;font-weight:500;font-size:15px;margin-bottom:2px}.lean-steps{list-style:none;margin:24px 0 8px;padding:0!important;display:grid;grid-template-columns:repeat(5, minmax(0, 1fr));border-top:1px solid var(--lean-ink)}.dark .lean-steps{border-top-color:#ffffff55}.lean-steps li{padding:20px 20px 4px 0;margin:0!important}.lean-steps li+li{padding-left:20px;border-left:1px solid var(--lean-line)}.dark .lean-steps li+li{border-left-color:#ffffff14}.lean-steps li::marker{content:none}.lean-step-n{font:500 13px/1 'Geist Mono', monospace;color:var(--lean-faint);display:block;margin-bottom:28px}.lean-steps h3{font-size:16px;margin:0 0 6px;border:0;padding:0}.lean-steps p{margin:0 0 14px;color:var(--lean-slate);font-size:14px;line-height:1.6}.dark .lean-steps p{color:#9aa2b5}.lean-chip{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:100%;padding:7px 10px;border-radius:8px;background:var(--lean-mist);border:1px solid var(--lean-line);font:500 12.5px/1.2 'Geist Mono', monospace;color:var(--lean-ink-2)!important;text-decoration:none!important;border-bottom-width:1px!important}.lean-chip:hover{border-color:#cfd3dc;color:var(--lean-ink)!important}.lean-chip code{background:none!important;border:0!important;padding:0!important;font:inherit!important;color:inherit!important}.dark .lean-chip{background:var(--lean-night-2);border-color:var(--lean-night-line);color:#d5dae6!important}.dark .lean-chip:hover{border-color:#3a4258;color:#fff!important}.lean-verb{font:600 10.5px/1 'Geist Mono', monospace;letter-spacing:.02em;padding:3px 5px;border-radius:4px}.lean-verb-get{color:#0f8a5f;background:#e7f6ef}.lean-verb-post{color:#2f5bff;background:#eef2ff}.dark .lean-verb-get{color:#4fd1a0;background:#0f8a5f26}.dark .lean-verb-post{color:#8ea6ff;background:#2f5bff26}@media (max-width: 1279px){.lean-steps{grid-template-columns:repeat(2, minmax(0, 1fr))}.lean-steps li,.lean-steps li+li{padding:20px 20px 16px 0;border-left:0;border-bottom:1px solid var(--lean-line)}.dark .lean-steps li,.dark .lean-steps li+li{border-bottom-color:#ffffff14}.lean-step-n{margin-bottom:14px}}@media (max-width: 700px){.lean-hero{padding:40px 24px}.lean-steps{grid-template-columns:1fr}}body,body *{-webkit-hyphens:none!important;hyphens:none!important}"}]}
{"page":{"pagePath":"api-reference/limit-chases/update-limit-chase","slug":"/api-reference/limit-chases/update-limit-chase","pageMetadata":{"title":"Update a limit chase","openapi":"api-reference/openapi.json PATCH /limit-chases/{id}","description":"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.","href":"/api-reference/limit-chases/update-limit-chase"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Update a limit chase","openapi":"api-reference/openapi.json PATCH /limit-chases/{id}","description":"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.","href":"/api-reference/limit-chases/update-limit-chase"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateLimitChase","summary":"Update a limit chase","description":"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.","tags":["Limit chases"],"parameters":["892e801e-679a-4429-b317-e8eee408c663"],"requestBody":"5a44bbbd-5b83-4633-b485-61b0d5dc03ce","responses":{"200":"4c074cfb-59a4-43b0-bdbc-7aacbef94ee7","400":"254d96d4-aab7-410e-b444-3f4716da3ed5","401":"5b016e2d-47d3-4562-b4d8-01eed4abfcc0","403":"26589ed9-e474-4bbb-924f-3fa73977a759","404":"0c28e6ca-858a-4506-b42b-c0c0db255556","409":"505d165b-2228-4d3e-a2cd-d96ccfebdd9f","422":"daf7934d-bef0-4290-ac16-b49e29a2c2b6","429":"561f5eed-a1ee-4849-a83a-d933401b9488","500":"6ef65e91-6404-4f6e-a72a-e63fcdeb1806","503":"5989f443-c908-4e48-af85-acc4f47edb17"},"method":"patch","type":"path","servers":["894478ad-c0aa-48e5-b27a-65dade413d28"],"security":["86fe2799-57c0-4471-b76d-0bc74988a220"],"path":"/limit-chases/{id}","baseUrlOptions":["{baseUrl}/v1"],"title":"Update a limit chase","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.quantity":"40","body.offset_beat_best":true}]},"dependencies":{"parameters":{"892e801e-679a-4429-b317-e8eee408c663":{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"7b2f4e19-0c6d-4a83-9e51-d4a8b3c2f706","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"name":"id","in":"path"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quantity":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$","description":"The new total shares, counting what has already filled. It cannot be less than the filled quantity.","uniqueKey":"quantity","typeLabel":"string"},"offset_ticks":{"type":"integer","minimum":0,"maximum":10,"description":"How many price ticks behind the best price on its own side the order rests, from 0 to 10. Give at most one of offset_ticks, offset_price, offset_shares and offset_beat_best.","uniqueKey":"offset_ticks","typeLabel":"integer"},"offset_price":{"type":"string","description":"How far behind the best price on its own side the order rests, in dollars from 0 to 0.1. Give at most one of offset_ticks, offset_price, offset_shares and offset_beat_best.","uniqueKey":"offset_price","typeLabel":"string"},"offset_shares":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$","description":"The most shares the order lets rest ahead of it in the queue, from 0 to 10,000,000 in steps of 0.01. The order rests one tick inside the first price level that would put more shares ahead of it. Give at most one of offset_ticks, offset_price, offset_shares and offset_beat_best.","uniqueKey":"offset_shares","typeLabel":"string"},"offset_beat_best":{"type":"boolean","enum":[true],"description":"Set to true to rest one tick better than the best price on its own side, so the order is first in the queue. It stops one tick short of the other side, so it never crosses the spread. Give at most one of offset_ticks, offset_price, offset_shares and offset_beat_best.","uniqueKey":"offset_beat_best","typeLabel":"enum\u003cboolean>"},"price_limit":{"oneOf":[{"type":"string","description":"The new worst price the order rests at, in dollars between 0.0001 and 0.9999. Send null to remove the limit and follow the book wherever it goes.","uniqueKey":"price_limit.oneOf.0","typeLabel":"string"},{"type":"null","description":"The new worst price the order rests at, in dollars between 0.0001 and 0.9999. Send null to remove the limit and follow the book wherever it goes.","uniqueKey":"price_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_limit","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"quantity":"40","offset_beat_best":true},"examples":{"Example":{"title":"Example","value":{"quantity":"40","offset_beat_best":true}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"4c074cfb-59a4-43b0-bdbc-7aacbef94ee7":{"description":"The limit chase, with the edit accepted","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["success","data","meta"],"properties":{"success":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"oneOf.0.success","typeLabel":"enum\u003cboolean>"},"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.data.id","typeLabel":"string"},"market_id":{"oneOf":[{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.data.market_id.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.data.market_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.market_id","typeLabel":"string | null"},"venue":{"type":"string","enum":["kalshi","polymarket","polymarket_us","hyperliquid"],"isRequired":true,"uniqueKey":"oneOf.0.data.venue","typeLabel":"enum\u003cstring>"},"ticker":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.data.ticker","typeLabel":"string"},"side":{"type":"string","enum":["yes","no"],"isRequired":true,"uniqueKey":"oneOf.0.data.side","typeLabel":"enum\u003cstring>"},"action":{"type":"string","enum":["buy","sell"],"isRequired":true,"uniqueKey":"oneOf.0.data.action","typeLabel":"enum\u003cstring>"},"quantity":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$","isRequired":true,"uniqueKey":"oneOf.0.data.quantity","typeLabel":"string"},"offset_ticks":{"oneOf":[{"type":"integer","minimum":0,"maximum":10,"description":"Ticks behind the best price, or null when the chase uses another offset.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_ticks.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"maximum":10,"description":"Ticks behind the best price, or null when the chase uses another offset.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_ticks.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.offset_ticks","typeLabel":"integer | null"},"offset_price":{"oneOf":[{"type":"string","description":"Dollars behind the best price, or null when the chase uses another offset.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_price.oneOf.0","typeLabel":"string"},{"type":"null","description":"Dollars behind the best price, or null when the chase uses another offset.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_price.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.offset_price","typeLabel":"string | null"},"offset_shares":{"oneOf":[{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$","description":"The most shares the order lets rest ahead of it in the queue, or null when the chase uses another offset.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_shares.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d+(?:\\.\\d+)?$","description":"The most shares the order lets rest ahead of it in the queue, or null when the chase uses another offset.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_shares.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.offset_shares","typeLabel":"string | null"},"offset_beat_best":{"type":"boolean","description":"True when the order rests one tick better than the best price on its own side.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_beat_best","typeLabel":"boolean"},"offset_midpoint":{"oneOf":[{"type":"string","description":"For a limit chase made in the Lean app that rests as far back as it can within this many dollars of the midpoint, ignoring the best price on its own side. Null when the chase uses another offset. A request cannot set it.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_midpoint.oneOf.0","typeLabel":"string"},{"type":"null","description":"For a limit chase made in the Lean app that rests as far back as it can within this many dollars of the midpoint, ignoring the best price on its own side. Null when the chase uses another offset. A request cannot set it.","isRequired":true,"uniqueKey":"oneOf.0.data.offset_midpoint.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.offset_midpoint","typeLabel":"string | null"},"price_limit":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.data.price_limit.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.data.price_limit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.price_limit","typeLabel":"string | null"},"status":{"type":"string","enum":["active","filled","canceled","failed","expired"],"isRequired":true,"uniqueKey":"oneOf.0.data.status","typeLabel":"enum\u003cstring>"},"current_price":{"oneOf":[{"type":"string","description":"The price the order rests at now, or null while it waits for a book to follow.","isRequired":true,"uniqueKey":"oneOf.0.data.current_price.oneOf.0","typeLabel":"string"},{"type":"null","description":"The price the order rests at now, or null while it waits for a book to follow.","isRequired":true,"uniqueKey":"oneOf.0.data.current_price.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.current_price","typeLabel":"string | null"},"filled_quantity":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$","isRequired":true,"uniqueKey":"oneOf.0.data.filled_quantity","typeLabel":"string"},"avg_fill_price":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.data.avg_fill_price.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.data.avg_fill_price.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.avg_fill_price","typeLabel":"string | null"},"expires_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.data.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.data.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.expires_at","typeLabel":"string\u003cdate-time> | null"},"cancel_requested_at":{"oneOf":[{"type":"string","format":"date-time","description":"When a cancel was asked for, or null. A live limit chase keeps its status until Lean applies the cancel a moment later, then reads canceled.","isRequired":true,"uniqueKey":"oneOf.0.data.cancel_requested_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When a cancel was asked for, or null. A live limit chase keeps its status until Lean applies the cancel a moment later, then reads canceled.","isRequired":true,"uniqueKey":"oneOf.0.data.cancel_requested_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.cancel_requested_at","typeLabel":"string\u003cdate-time> | null"},"edit_pending":{"oneOf":[{"type":"boolean","description":"True while Lean has accepted an edit but not yet applied it; the other fields show the edited values meanwhile. A list can trail an edit accepted a moment earlier; read the limit chase by id to confirm.","isRequired":true,"uniqueKey":"oneOf.0.data.edit_pending.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"True while Lean has accepted an edit but not yet applied it; the other fields show the edited values meanwhile. A list can trail an edit accepted a moment earlier; read the limit chase by id to confirm.","isRequired":true,"uniqueKey":"oneOf.0.data.edit_pending.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.edit_pending","typeLabel":"boolean | null"},"last_error":{"oneOf":[{"type":"string","description":"Why Lean last refused an edit or could not rest the order, or null. An edit Lean refuses, such as a smaller size that fills overtook, leaves the earlier values in place.","isRequired":true,"uniqueKey":"oneOf.0.data.last_error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why Lean last refused an edit or could not rest the order, or null. An edit Lean refuses, such as a smaller size that fills overtook, leaves the earlier values in place.","isRequired":true,"uniqueKey":"oneOf.0.data.last_error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.data.last_error","typeLabel":"string | null"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"oneOf.0.data.updated_at","typeLabel":"string\u003cdate-time>"},"livemode":{"type":"boolean","isRequired":true,"uniqueKey":"oneOf.0.data.livemode","typeLabel":"boolean"}},"required":["id","market_id","venue","ticker","side","action","quantity","offset_ticks","offset_price","offset_shares","offset_beat_best","offset_midpoint","price_limit","status","current_price","filled_quantity","avg_fill_price","expires_at","cancel_requested_at","edit_pending","last_error","created_at","updated_at","livemode"],"isRequired":true,"uniqueKey":"oneOf.0.data","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"oneOf.0.meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"oneOf.0.meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"oneOf.0.meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"oneOf.0.meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"oneOf.0.meta","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["success","error","meta"],"properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"oneOf.1.success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"oneOf.1.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"oneOf.1.error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"oneOf.1.meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"oneOf.1.meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"oneOf.1.meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"oneOf.1.meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"oneOf.1.meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"example":{"success":true,"data":{"id":"7b2f4e19-0c6d-4a83-9e51-d4a8b3c2f706","market_id":"mkt_bmZsOjIwMjYtMTAtMTE6REVOLUxBQwpzcHJlYWQ6Z2FtZTpERU46LTMuNQpERU4","venue":"polymarket","ticker":"pm:0x2222222222222222222222222222222222222222222222222222222222222222","side":"yes","action":"buy","quantity":"40","offset_ticks":null,"offset_price":null,"offset_shares":null,"offset_beat_best":true,"offset_midpoint":null,"price_limit":"0.45","status":"active","current_price":"0.39","filled_quantity":"0","avg_fill_price":null,"expires_at":null,"cancel_requested_at":null,"edit_pending":true,"last_error":null,"created_at":"2026-11-11T15:00:00.000Z","updated_at":"2026-11-11T15:00:00.000Z","livemode":false},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"id":"7b2f4e19-0c6d-4a83-9e51-d4a8b3c2f706","market_id":"mkt_bmZsOjIwMjYtMTAtMTE6REVOLUxBQwpzcHJlYWQ6Z2FtZTpERU46LTMuNQpERU4","venue":"polymarket","ticker":"pm:0x2222222222222222222222222222222222222222222222222222222222222222","side":"yes","action":"buy","quantity":"40","offset_ticks":null,"offset_price":null,"offset_shares":null,"offset_beat_best":true,"offset_midpoint":null,"price_limit":"0.45","status":"active","current_price":"0.39","filled_quantity":"0","avg_fill_price":null,"expires_at":null,"cancel_requested_at":null,"edit_pending":true,"last_error":null,"created_at":"2026-11-11T15:00:00.000Z","updated_at":"2026-11-11T15:00:00.000Z","livemode":false},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"254d96d4-aab7-410e-b444-3f4716da3ed5":{"description":"The offset, price limit or quantity are invalid for this market, the quantity is less than already filled, a test key’s buy costs more than its simulated balance, a sell is more than the account holds beyond its other resting sells and stop losses, or the limit chase has ended","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"VALIDATION_ERROR","message":"Invalid request"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"VALIDATION_ERROR","message":"Invalid request"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5b016e2d-47d3-4562-b4d8-01eed4abfcc0":{"description":"Missing, invalid, expired or revoked API key","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"UNAUTHORIZED","message":"Invalid, expired or revoked API key"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"UNAUTHORIZED","message":"Invalid, expired or revoked API key"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"26589ed9-e474-4bbb-924f-3fa73977a759":{"description":"The key lacks the scope this route needs","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"FORBIDDEN","message":"This API key lacks the scope this route needs"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"FORBIDDEN","message":"This API key lacks the scope this route needs"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0c28e6ca-858a-4506-b42b-c0c0db255556":{"description":"API error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"NOT_FOUND","message":"Not found"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"NOT_FOUND","message":"Not found"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"505d165b-2228-4d3e-a2cd-d96ccfebdd9f":{"description":"A cancel is already pending for the limit chase, an earlier edit has not been applied yet (edit_pending is true), another edit changed it while this one was being checked, or its resting order moved above the price or size this edit was checked at; try again","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"CONFLICT","message":"The request conflicts with the current state"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"CONFLICT","message":"The request conflicts with the current state"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"daf7934d-bef0-4290-ac16-b49e29a2c2b6":{"description":"details.reason is VENUE_NOT_ALLOWED, ORDER_NOTIONAL_LIMIT or DAILY_NOTIONAL_LIMIT","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"VALIDATION_ERROR","message":"Refused by a limit; nothing was changed"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"VALIDATION_ERROR","message":"Refused by a limit; nothing was changed"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"561f5eed-a1ee-4849-a83a-d933401b9488":{"description":"API error","headers":{"Retry-After":{"description":"Seconds remaining in the upstream read cooldown, when available","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"RATE_LIMITED","message":"Too many requests for this API key"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"RATE_LIMITED","message":"Too many requests for this API key"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"6ef65e91-6404-4f6e-a72a-e63fcdeb1806":{"description":"API error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"INTERNAL_ERROR","message":"An internal error occurred."},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"INTERNAL_ERROR","message":"An internal error occurred."},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5989f443-c908-4e48-af85-acc4f47edb17":{"description":"Trading is paused for this key or its trading account, or Lean has paused limit chases on the venue","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR","NOT_FOUND","UNAUTHORIZED","FORBIDDEN","CONFLICT","UPSTREAM_ERROR","RATE_LIMITED","INTERNAL_ERROR","FEATURE_DISABLED","CONDITIONAL_SELL_REJECTED","CONDITIONAL_SELL_ACTIVE"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{},{"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"null"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"timestampMs":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"meta.timestampMs","typeLabel":"integer"},"requestId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meta.requestId","typeLabel":"string"},"traceId":{"type":"string","minLength":1,"uniqueKey":"meta.traceId","typeLabel":"string"},"cachedAtMs":{"type":"integer","minimum":0,"uniqueKey":"meta.cachedAtMs","typeLabel":"integer"},"source":{"type":"string","enum":["cache","database","clickhouse","upstream","fallback","internal"],"uniqueKey":"meta.source","typeLabel":"enum\u003cstring>"}},"required":["timestampMs","requestId"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["success","error","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"FEATURE_DISABLED","message":"Trading is paused for this key or its trading account, or Lean has paused limit chases on the venue"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"FEATURE_DISABLED","message":"Trading is paused for this key or its trading account, or Lean has paused limit chases on the venue"},"meta":{"timestampMs":1792771200000,"requestId":"7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"86fe2799-57c0-4471-b76d-0bc74988a220":{"apiKey":{"type":"http","scheme":"bearer","description":"A Lean API key, sent as `Authorization: Bearer \u003ckey>`. A test key (`lean_sk_test_...`) simulates orders and fills with no money; a live key (`lean_sk_live_...`) trades for real within the key's limits. Every successful response says which mode answered in `data.livemode`.","scopes":[],"schemeName":"apiKey"}}},"servers":{"894478ad-c0aa-48e5-b27a-65dade413d28":{"url":"{baseUrl}/v1","description":"Lean API","variables":{"baseUrl":{"default":"https://api.lean.xyz","description":"The Lean API base URL, without /v1. Same value as LEAN_API_URL in the guides."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A Lean API key, sent as `Authorization: Bearer \u003ckey>`. A test key (`lean_sk_test_...`) simulates orders and fills with no money; a live key (`lean_sk_live_...`) trades for real within the key's limits. Every successful response says which mode answered in `data.livemode`.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A Lean API key, sent as `Authorization: Bearer \u003ckey>`. A test key (`lean_sk_test_...`) simulates orders and fills with no money; a live key (`lean_sk_live_...`) trades for real within the key's limits. Every successful response says which mode answered in `data.livemode`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"lean","siteName":"Lean API","title":"Update a limit chase - Lean API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T23:45:07.883Z","originalFileLocation":"api-reference/limit-chases/update-limit-chase.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lean API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/lean/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/lean/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/lean/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/lean/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a limit chase - Lean API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lean API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lean.mintlify.site/_mintlify/api/og/v2?division=Limit+chases\u0026amp;title=Update+a+limit+chase\u0026amp;description=Changes+the+quantity%2C+offset+or+price+limit+of+a+limit+chase+that+is+still+resting%2C+keeping+its+id.+Fields+left+out+keep+their+values%2C+and+giving+one+offset+rep\u0026amp;theme=479271959554d25dc0271270\u0026amp;signature=039fce755b7a215a7a558224ebeaeeeca0f77d5e4774662b4b25fc772c2b2fc8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update a limit chase - Lean API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lean.mintlify.site/_mintlify/api/og/v2?division=Limit+chases\u0026amp;title=Update+a+limit+chase\u0026amp;description=Changes+the+quantity%2C+offset+or+price+limit+of+a+limit+chase+that+is+still+resting%2C+keeping+its+id.+Fields+left+out+keep+their+values%2C+and+giving+one+offset+rep\u0026amp;theme=479271959554d25dc0271270\u0026amp;signature=039fce755b7a215a7a558224ebeaeeeca0f77d5e4774662b4b25fc772c2b2fc8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/lean/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lean API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2F5BFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/limit-chases/update-limit-chase.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lean.xyz/#organization\",\"name\":\"Lean API\",\"url\":\"https://docs.lean.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lean/aK_dPkAAQjEsgndO/logo/light.svg?fit=max\u0026auto=format\u0026n=aK_dPkAAQjEsgndO\u0026q=85\u0026s=6f5d064937ce6cfedc8198e9ba927287\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lean.xyz#website\",\"name\":\"Lean API\",\"url\":\"https://docs.lean.xyz\",\"publisher\":{\"@id\":\"https://docs.lean.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase#webpage\",\"url\":\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase\",\"name\":\"Update a limit chase\",\"description\":\"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.\",\"dateModified\":\"2026-11-19T23:45:07.883Z\",\"isPartOf\":{\"@id\":\"https://docs.lean.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Limit chases\",\"item\":\"https://docs.lean.xyz/api-reference/limit-chases/create-limit-chase\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update a limit chase\",\"item\":\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase#apireference\",\"headline\":\"Update a limit chase\",\"name\":\"Update a limit chase\",\"description\":\"Changes the quantity, offset or price limit of a limit chase that is still resting, keeping its id. Fields left out keep their values, and giving one offset replaces the current one. quantity is the new total, counting what has already filled. The new values pass the same checks as at creation, with one difference: shares that can still fill on either the current or the edited values, or on the chase’s resting order at the size it still rests at, up to the new quantity, are counted at the highest of the old price limit, the new price limit and the price that order is resting at, because that order can fill before Lean moves or resizes it. Shares that have filled count at what they cost. A buy is checked as a whole on that basis against the per-order cap, and whatever the edit adds to the most the chase can trade for counts toward the rolling day: a larger size, a higher or removed price limit on a buy, or any edit while the order still rests above a lowered price limit. On Kalshi, the order is amended in place rather than canceled and placed again, so a smaller size at the same price keeps its place in the queue. A limit chase that has ended or has a cancel pending cannot be changed. A live limit chase answers with the edited values and edit_pending true; Lean moves the resting order a moment later. Read it by id to confirm: edit_pending turns false once Lean applies the edit, and another edit is refused until then. If Lean refuses it, for example because fills overtook a smaller size, the earlier values stay and last_error says why. Every venue supports it.\",\"url\":\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lean.xyz/api-reference/limit-chases/update-limit-chase#webpage\"},\"dateModified\":\"2026-11-19T23:45:07.883Z\",\"publisher\":{\"@id\":\"https://docs.lean.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lean.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lean API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lean API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/limit-chases/update-limit-chase.md","siteName":"Lean API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Use cases","pages":[{"title":"Use cases","href":"/use-cases"}]},{"tab":"Data","pages":[{"title":"Data","href":"/historical-data"}]},{"tab":"API reference","groups":[{"group":"Markets","pages":[{"title":"List markets","openapi":"api-reference/openapi.json GET /markets","href":"/api-reference/markets/list-markets"},{"title":"Get a market","openapi":"api-reference/openapi.json GET /markets/{id}","href":"/api-reference/markets/retrieve-market"},{"title":"Quote a market","openapi":"api-reference/openapi.json GET /markets/{id}/quote","href":"/api-reference/markets/quote-market"},{"title":"Get a market orderbook","openapi":"api-reference/openapi.json GET /markets/{id}/book","href":"/api-reference/markets/retrieve-market-book"},{"title":"Get recent trades","openapi":"api-reference/openapi.json GET /markets/{id}/trades","href":"/api-reference/markets/list-market-trades"},{"title":"Get price candles","openapi":"api-reference/openapi.json GET /markets/{id}/candles","href":"/api-reference/markets/get-market-candles"},{"title":"Get prices","openapi":"api-reference/openapi.json GET /prices","href":"/api-reference/markets/list-prices"},{"title":"List recently resolved markets","openapi":"api-reference/openapi.json GET /resolution/markets","href":"/api-reference/markets/list-resolved-markets"},{"title":"Get weather for a station","openapi":"api-reference/openapi.json GET /weather/{stationCode}","href":"/api-reference/markets/get-weather-station"}]},{"group":"Orders","pages":[{"title":"Preview an order","openapi":"api-reference/openapi.json POST /orders/preview","href":"/api-reference/orders/preview-order"},{"title":"Preview several orders","openapi":"api-reference/openapi.json POST /orders/preview-batch","href":"/api-reference/orders/preview-orders-batch"},{"title":"Create an order","openapi":"api-reference/openapi.json POST /orders","href":"/api-reference/orders/create-order"},{"title":"List orders","openapi":"api-reference/openapi.json GET /orders","href":"/api-reference/orders/list-orders"},{"title":"Retrieve an order","openapi":"api-reference/openapi.json GET /orders/{id}","href":"/api-reference/orders/retrieve-order"},{"title":"Amend an order","openapi":"api-reference/openapi.json PATCH /orders/{id}","href":"/api-reference/orders/amend-order"},{"title":"Cancel an order","openapi":"api-reference/openapi.json POST /orders/{id}/cancel","href":"/api-reference/orders/cancel-order"},{"title":"Cancel every open order","openapi":"api-reference/openapi.json POST /orders/cancel-all","href":"/api-reference/orders/cancel-all-orders"},{"title":"Set a cancel timer","openapi":"api-reference/openapi.json POST /orders/cancel-after","href":"/api-reference/orders/set-cancel-after"},{"title":"Cancel several orders","openapi":"api-reference/openapi.json POST /orders/cancel-batch","href":"/api-reference/orders/cancel-orders-batch"},{"title":"List fills","openapi":"api-reference/openapi.json GET /fills","href":"/api-reference/orders/list-fills"},{"title":"Place a routed order","openapi":"api-reference/openapi.json POST /routed-orders","href":"/api-reference/orders/create-routed-order"},{"title":"Execute a routed order","openapi":"api-reference/openapi.json POST /routed-orders/{id}/execute","href":"/api-reference/orders/execute-routed-order"}]},{"group":"Stop losses","pages":[{"title":"Create a stop loss or take profit","openapi":"api-reference/openapi.json POST /stop-losses","href":"/api-reference/stop-losses/create-stop-loss"},{"title":"List stop losses","openapi":"api-reference/openapi.json GET /stop-losses","href":"/api-reference/stop-losses/list-stop-losses"},{"title":"Get a stop loss","openapi":"api-reference/openapi.json GET /stop-losses/{id}","href":"/api-reference/stop-losses/retrieve-stop-loss"},{"title":"Update a stop loss","openapi":"api-reference/openapi.json PATCH /stop-losses/{id}","href":"/api-reference/stop-losses/update-stop-loss"},{"title":"Cancel a stop loss","openapi":"api-reference/openapi.json DELETE /stop-losses/{id}","href":"/api-reference/stop-losses/cancel-stop-loss"}]},{"group":"Limit chases","pages":[{"title":"Create a limit chase","openapi":"api-reference/openapi.json POST /limit-chases","href":"/api-reference/limit-chases/create-limit-chase"},{"title":"List limit chases","openapi":"api-reference/openapi.json GET /limit-chases","href":"/api-reference/limit-chases/list-limit-chases"},{"title":"Get a limit chase","openapi":"api-reference/openapi.json GET /limit-chases/{id}","description":"One limit chase of this key’s trading account by id.","href":"/api-reference/limit-chases/retrieve-limit-chase"},{"title":"Update a limit chase","openapi":"api-reference/openapi.json PATCH /limit-chases/{id}","href":"/api-reference/limit-chases/update-limit-chase"},{"title":"Cancel a limit chase","openapi":"api-reference/openapi.json DELETE /limit-chases/{id}","description":"Stops a limit chase and cancels its resting order. Shares it already bought or sold stay with the account. Canceling works while trading is paused. A live limit chase answers with cancel_requested_at set and its status unchanged; it reads canceled a moment later, once Lean has applied the cancel. A test limit chase reads canceled at once.","href":"/api-reference/limit-chases/cancel-limit-chase"}]},{"group":"Conditional sells","pages":[{"title":"Create a conditional sell","openapi":"api-reference/openapi.json POST /conditional-sells","href":"/api-reference/conditional-sells/create-conditional-sell"},{"title":"List conditional sells","openapi":"api-reference/openapi.json GET /conditional-sells","href":"/api-reference/conditional-sells/list-conditional-sells"},{"title":"Get a conditional sell","openapi":"api-reference/openapi.json GET /conditional-sells/{id}","href":"/api-reference/conditional-sells/retrieve-conditional-sell"},{"title":"Cancel a conditional sell","openapi":"api-reference/openapi.json DELETE /conditional-sells/{id}","href":"/api-reference/conditional-sells/cancel-conditional-sell"}]},{"group":"RFQs","pages":[{"title":"Create a combo RFQ","openapi":"api-reference/openapi.json POST /rfqs","href":"/api-reference/rfqs/create-combo-rfq"},{"title":"Retrieve a combo RFQ","openapi":"api-reference/openapi.json GET /rfqs/{id}","href":"/api-reference/rfqs/retrieve-combo-rfq"},{"title":"Accept a combo RFQ quote","openapi":"api-reference/openapi.json POST /rfqs/{id}/accept","href":"/api-reference/rfqs/accept-combo-rfq"},{"title":"Cancel a combo RFQ","openapi":"api-reference/openapi.json DELETE /rfqs/{id}","href":"/api-reference/rfqs/cancel-combo-rfq"}]},{"group":"Account","pages":[{"title":"List positions","openapi":"api-reference/openapi.json GET /positions","href":"/api-reference/account/list-positions"},{"title":"Close positions","openapi":"api-reference/openapi.json POST /positions/close","href":"/api-reference/account/close-positions"},{"title":"Redeem positions","openapi":"api-reference/openapi.json POST /positions/redeem","href":"/api-reference/account/redeem-positions"},{"title":"Merge positions","openapi":"api-reference/openapi.json POST /positions/merge","href":"/api-reference/account/merge-positions"},{"title":"Get convertible balances","openapi":"api-reference/openapi.json GET /conversions","href":"/api-reference/account/get-convertible-balances"},{"title":"Convert to pUSD","openapi":"api-reference/openapi.json POST /conversions","href":"/api-reference/account/convert-to-pusd"},{"title":"List balances","openapi":"api-reference/openapi.json GET /balances","href":"/api-reference/account/list-balances"},{"title":"List Kalshi subaccounts","openapi":"api-reference/openapi.json GET /kalshi/subaccounts","href":"/api-reference/account/list-kalshi-subaccounts"},{"title":"Get profit and loss","openapi":"api-reference/openapi.json GET /pnl","href":"/api-reference/account/get-pnl"},{"title":"Get profit and loss history","openapi":"api-reference/openapi.json GET /pnl/history","href":"/api-reference/account/get-pnl-history"},{"title":"Get risk","openapi":"api-reference/openapi.json GET /risk","href":"/api-reference/account/get-risk"},{"title":"Get account configuration","openapi":"api-reference/openapi.json GET /account/config","href":"/api-reference/account/retrieve-account-config"},{"title":"Lower this key's limits","openapi":"api-reference/openapi.json POST /account/limits","href":"/api-reference/account/lower-key-limits"},{"title":"Pause order placement","openapi":"api-reference/openapi.json POST /account/pause","href":"/api-reference/account/pause-trading"}]},{"group":"Rewards","pages":[{"title":"Get reward earnings today","openapi":"api-reference/openapi.json GET /rewards/earnings","href":"/api-reference/rewards/get-reward-earnings"},{"title":"List reward programs","openapi":"api-reference/openapi.json GET /rewards/programs","href":"/api-reference/rewards/list-reward-programs"}]},{"group":"Deposits","pages":[{"title":"List deposit assets","openapi":"api-reference/openapi.json GET /deposits/assets","href":"/api-reference/deposits/list-deposit-assets"},{"title":"Get deposit addresses","openapi":"api-reference/openapi.json GET /deposits/addresses","href":"/api-reference/deposits/list-deposit-addresses"},{"title":"Create deposit addresses","openapi":"api-reference/openapi.json POST /deposits/addresses","href":"/api-reference/deposits/create-deposit-addresses"},{"title":"List deposits","openapi":"api-reference/openapi.json GET /deposits","href":"/api-reference/deposits/list-deposits"}]},{"group":"Withdrawals","pages":[{"title":"Withdraw cash","openapi":"api-reference/openapi.json POST /withdrawals","href":"/api-reference/withdrawals/create-withdrawal"},{"title":"List withdrawals","openapi":"api-reference/openapi.json GET /withdrawals","href":"/api-reference/withdrawals/list-withdrawals"},{"title":"Get a withdrawal","openapi":"api-reference/openapi.json GET /withdrawals/{id}","href":"/api-reference/withdrawals/retrieve-withdrawal"}]},{"group":"Transfers","pages":[{"title":"Quote a transfer","openapi":"api-reference/openapi.json POST /transfers/quote","href":"/api-reference/transfers/quote-transfer"},{"title":"Create a transfer","openapi":"api-reference/openapi.json POST /transfers","href":"/api-reference/transfers/create-transfer"},{"title":"Execute a transfer","openapi":"api-reference/openapi.json POST /transfers/{id}/execute","href":"/api-reference/transfers/execute-transfer"},{"title":"List transfers","openapi":"api-reference/openapi.json GET /transfers","href":"/api-reference/transfers/list-transfers"},{"title":"Get a transfer","openapi":"api-reference/openapi.json GET /transfers/{id}","href":"/api-reference/transfers/retrieve-transfer"}]},{"group":"Streaming","pages":[{"title":"Create a stream ticket","openapi":"api-reference/openapi.json POST /ws/token","href":"/api-reference/streaming/create-stream-ticket"},{"title":"WebSocket","href":"/api-reference/streaming/websocket"}]},{"group":"Test mode","pages":[{"title":"Reset test mode","openapi":"api-reference/openapi.json POST /test/reset","href":"/api-reference/test-mode/reset-test-mode"}]},{"group":"API keys","pages":[{"title":"Create an API key","openapi":"api-reference/openapi.json POST /api-keys","href":"/api-reference/api-keys/create-api-key"},{"title":"List API keys","openapi":"api-reference/openapi.json GET /api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Revoke an API key","openapi":"api-reference/openapi.json DELETE /api-keys/{id}","href":"/api-reference/api-keys/revoke-api-key"},{"title":"Change an API key's limits","openapi":"api-reference/openapi.json PATCH /api-keys/{id}/limits","href":"/api-reference/api-keys/update-api-key-limits"},{"title":"Pause an API key","openapi":"api-reference/openapi.json PUT /api-keys/{id}/suspension","href":"/api-reference/api-keys/pause-api-key"},{"title":"Resume an API key","openapi":"api-reference/openapi.json DELETE /api-keys/{id}/suspension","href":"/api-reference/api-keys/resume-api-key"},{"title":"Get a trading account's API limits","openapi":"api-reference/openapi.json GET /api-keys/accounts/{tradingAccountId}/limits","href":"/api-reference/api-keys/retrieve-account-limits"},{"title":"Set a trading account's API limits","openapi":"api-reference/openapi.json PUT /api-keys/accounts/{tradingAccountId}/limits","href":"/api-reference/api-keys/update-account-limits"},{"title":"List trading pauses","openapi":"api-reference/openapi.json GET /api-keys/suspensions","href":"/api-reference/api-keys/list-trading-pauses"},{"title":"Pause API trading on a trading account","openapi":"api-reference/openapi.json PUT /api-keys/accounts/{tradingAccountId}/suspension","href":"/api-reference/api-keys/pause-account-api-trading"},{"title":"Resume API trading on a trading account","openapi":"api-reference/openapi.json DELETE /api-keys/accounts/{tradingAccountId}/suspension","href":"/api-reference/api-keys/resume-account-api-trading"}]}]}]},"basePath":"","title":"Update a limit chase - Lean API","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}