Edit an order
Change the price or volume of a resting order
Change the price (Documentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
orderOdds) and/or volume (orderVolume) of an existing limit order.
For partially-filled orders, 4casters cancels the existing order and submits a new one with the supplied values. The new orderVolume does not account for previously filled volume — if you originally placed bet: 10, 5) and a new order is created for 10), leaving you net $5 down.
POST /session/v4/editOrder. It accepts the same request body and additionally returns errorType on validation failures. Prefer it for new integrations once you’ve confirmed the shape works for you.Request
POST /session/editOrder
data.unmatched.orderID of /session/v3/place or id from /user/getUnmatched.null to leave odds unchanged.bet amount. Pass null to leave volume unchanged.limit. See order types.userReference on the order.Response
The result mirrors the place order response shape — acancelled summary plus the new matched / unmatched outcome:
MatchedFill in place order.Errors
| Status | Meaning |
|---|---|
400 | Validation error (v4/editOrder returns errorType for these). |
503 | Orders service unreachable. |
Authorizations
Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.
Body
Order id to edit.
New American odds. Pass null to leave odds unchanged.
New bet amount. Pass null to leave volume unchanged. Does not account for previously-filled volume.
Order placement strategy.
limit— default. Match against any liquidity at your price or better as a taker, rest the remainder as a maker.post— guarantee maker. Reject if the order would match resting liquidity.postArb— likepost, but allowed to match if the matched odds are within 1% of yours, avoiding taker fees.fillAndKill— guarantee taker. Match immediately or reject.
limit, post, postArb, fillAndKill Optional. The volume you originally intended to place; used by the server when reconciling partial fills.
Optional. New expiration in minutes (string).
v4 only. Reject the edit if there is no resting opposite-side liquidity.
Response
Edit result. Mirrors the place-order response shape: a cancelled summary plus the new matched / unmatched outcome.