curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders/{order_id}/decrease \
--header 'Content-Type: application/json' \
--data '{
"reduce_by": 123,
"reduce_to": 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 decreasing the number of contracts in an existing order. This is the only kind of edit available on order quantity. Cancelling an order is equivalent to decreasing an order amount to zero.
curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders/{order_id}/decrease \
--header 'Content-Type: application/json' \
--data '{
"reduce_by": 123,
"reduce_to": 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
.