curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders/batched \
--header 'Content-Type: application/json' \
--data '{
"orders": [
{
"action": "<string>",
"buy_max_cost": 123,
"client_order_id": "<string>",
"count": 123,
"expiration_ts": 123,
"no_price": 123,
"order_group_id": "<string>",
"post_only": true,
"self_trade_prevention_type": "<string>",
"sell_position_capped": true,
"sell_position_floor": 123,
"side": "<string>",
"ticker": "<string>",
"time_in_force": "<string>",
"type": "<string>",
"yes_price": 123
}
]
}'
{
"orders": [
{
"client_order_id": "<string>",
"error": {
"code": "<string>",
"details": "<string>",
"message": "<string>",
"service": "<string>"
},
"order": {
"action": "<string>",
"client_order_id": "<string>",
"created_time": "<any>",
"expiration_time": "<any>",
"no_price": 123,
"order_group_id": "<string>",
"order_id": "<string>",
"self_trade_prevention_type": "<string>",
"side": "<string>",
"status": "<string>",
"ticker": "<string>",
"type": "<string>",
"user_id": "<string>",
"yes_price": 123
}
}
]
}
Endpoint for submitting a batch of orders. Each order in the batch is counted against the total rate limit for order operations. Consequently, the size of the batch is capped by the current per-second rate-limit configuration applicable to the user. At the moment of writing, the limit is 20 orders per batch. Available to members with advanced access only.
curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders/batched \
--header 'Content-Type: application/json' \
--data '{
"orders": [
{
"action": "<string>",
"buy_max_cost": 123,
"client_order_id": "<string>",
"count": 123,
"expiration_ts": 123,
"no_price": 123,
"order_group_id": "<string>",
"post_only": true,
"self_trade_prevention_type": "<string>",
"sell_position_capped": true,
"sell_position_floor": 123,
"side": "<string>",
"ticker": "<string>",
"time_in_force": "<string>",
"type": "<string>",
"yes_price": 123
}
]
}'
{
"orders": [
{
"client_order_id": "<string>",
"error": {
"code": "<string>",
"details": "<string>",
"message": "<string>",
"service": "<string>"
},
"order": {
"action": "<string>",
"client_order_id": "<string>",
"created_time": "<any>",
"expiration_time": "<any>",
"no_price": 123,
"order_group_id": "<string>",
"order_id": "<string>",
"self_trade_prevention_type": "<string>",
"side": "<string>",
"status": "<string>",
"ticker": "<string>",
"type": "<string>",
"user_id": "<string>",
"yes_price": 123
}
}
]
}
The response is of type object
.