Modify a Korea order
POST{BASE_URL}/kr/orders/modify
Replaces an eligible whole-quantity Korea equity or standalone FX order.
The replacement needs a new replacement_order_id. Fractional and
notional replacements are rejected. AutoFX orders created for equity
funding are internal workflow orders and cannot be modified directly.
Korea equity modifies are passed to the broker as sent, and exchange amend rules apply there: the price or order type can change, or the quantity can be reduced, but not both in one request, and the quantity cannot be increased. The broker rejects modifies that break these rules, and the client receives a replace reject.
The /kr/orders/new acceptance window also applies to modifies:
outside 09:00-15:30 KST only limit replacements on a KRW account are
accepted.
Modifying an order that is already working at the exchange is possible
only in the Opening Auction, Regular, Closing Auction and After-Market
regimes; at other times the request is rejected with
DisallowedOrderAction_Error (order ineligible to be canceled or modified). The new quantity must be greater than the quantity already
filled.
Request
Responses
- 201
- 400
- 401
- 403
- 500
- 503
Replacement accepted.
The request could not be accepted, for example because the account or
symbol is unavailable, a required paired account is missing, buying power
or position is insufficient, required market pricing is unavailable, an
identifier is duplicated, or an order field or requested lifecycle action
is invalid. A missing account_number, or one not linked to the API key,
also returns 400 BasicInput_Error.
Missing or invalid X-API-KEY.
The API key is read-only and the request is not a GET.
Unexpected server-side failure, for example the order service did not
answer in time (AVInternal_Error, system too busy) or was
unreachable (Misc_Error). For order requests, check the order's
status before retrying: a retried order_id that was already
accepted is rejected as a duplicate.
A required service is temporarily unavailable (for example the database, or for Hong Kong requests that read from GigaMoney Whale, the Whale connection). Retry later.