curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders/{order_id}/amend \
--header 'Content-Type: application/json' \
--data '{
"action": "<string>",
"client_order_id": "<string>",
"count": 123,
"no_price": 123,
"side": "<string>",
"ticker": "<string>",
"updated_client_order_id": "<string>",
"yes_price": 123
}'
{
"old_order": {
"action": "<string>",
"client_order_id": "<string>",
"created_time": "<any>",
"expiration_time": "<any>",
"fill_count": 123,
"initial_count": 123,
"last_update_time": "<any>",
"maker_fees": 123,
"maker_fill_cost": 123,
"no_price": 123,
"order_group_id": "<string>",
"order_id": "<string>",
"queue_position": 123,
"remaining_count": 123,
"self_trade_prevention_type": "<string>",
"side": "<string>",
"status": "<string>",
"taker_fees": 123,
"taker_fill_cost": 123,
"ticker": "<string>",
"type": "<string>",
"user_id": "<string>",
"yes_price": 123
},
"order": {
"action": "<string>",
"client_order_id": "<string>",
"created_time": "<any>",
"expiration_time": "<any>",
"fill_count": 123,
"initial_count": 123,
"last_update_time": "<any>",
"maker_fees": 123,
"maker_fill_cost": 123,
"no_price": 123,
"order_group_id": "<string>",
"order_id": "<string>",
"queue_position": 123,
"remaining_count": 123,
"self_trade_prevention_type": "<string>",
"side": "<string>",
"status": "<string>",
"taker_fees": 123,
"taker_fill_cost": 123,
"ticker": "<string>",
"type": "<string>",
"user_id": "<string>",
"yes_price": 123
}
}
Endpoint for amending the max number of fillable contracts and/or price in an existing order. Max fillable contracts is remaining_count
+ fill_count
.
curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders/{order_id}/amend \
--header 'Content-Type: application/json' \
--data '{
"action": "<string>",
"client_order_id": "<string>",
"count": 123,
"no_price": 123,
"side": "<string>",
"ticker": "<string>",
"updated_client_order_id": "<string>",
"yes_price": 123
}'
{
"old_order": {
"action": "<string>",
"client_order_id": "<string>",
"created_time": "<any>",
"expiration_time": "<any>",
"fill_count": 123,
"initial_count": 123,
"last_update_time": "<any>",
"maker_fees": 123,
"maker_fill_cost": 123,
"no_price": 123,
"order_group_id": "<string>",
"order_id": "<string>",
"queue_position": 123,
"remaining_count": 123,
"self_trade_prevention_type": "<string>",
"side": "<string>",
"status": "<string>",
"taker_fees": 123,
"taker_fill_cost": 123,
"ticker": "<string>",
"type": "<string>",
"user_id": "<string>",
"yes_price": 123
},
"order": {
"action": "<string>",
"client_order_id": "<string>",
"created_time": "<any>",
"expiration_time": "<any>",
"fill_count": 123,
"initial_count": 123,
"last_update_time": "<any>",
"maker_fees": 123,
"maker_fill_cost": 123,
"no_price": 123,
"order_group_id": "<string>",
"order_id": "<string>",
"queue_position": 123,
"remaining_count": 123,
"self_trade_prevention_type": "<string>",
"side": "<string>",
"status": "<string>",
"taker_fees": 123,
"taker_fill_cost": 123,
"ticker": "<string>",
"type": "<string>",
"user_id": "<string>",
"yes_price": 123
}
}
Order ID
The response is of type object
.