curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders \
--header 'Content-Type: application/json' \
--data '{
"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
}'
{
"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 orders in a market.
curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders \
--header 'Content-Type: application/json' \
--data '{
"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
}'
{
"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
.