curl --request POST \
--url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders \
--header 'Content-Type: application/json' \
--data '{
"action": "buy",
"buy_max_cost": 123,
"client_order_id": "<string>",
"count": 123,
"expiration_ts": 123,
"no_price": 50,
"no_price_dollars": "0.2300",
"order_group_id": "<string>",
"post_only": true,
"self_trade_prevention_type": "<string>",
"sell_position_capped": true,
"sell_position_floor": 123,
"side": "yes",
"ticker": "<string>",
"time_in_force": "fill_or_kill",
"type": "limit",
"yes_price": 50,
"yes_price_dollars": "0.2300"
}'
{
"order": {
"action": "<string>",
"client_order_id": "<string>",
"created_time": "<any>",
"expiration_time": "<any>",
"no_price": 123,
"no_price_dollars": "0.2300",
"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,
"yes_price_dollars": "0.2300"
}
}
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": "buy",
"buy_max_cost": 123,
"client_order_id": "<string>",
"count": 123,
"expiration_ts": 123,
"no_price": 50,
"no_price_dollars": "0.2300",
"order_group_id": "<string>",
"post_only": true,
"self_trade_prevention_type": "<string>",
"sell_position_capped": true,
"sell_position_floor": 123,
"side": "yes",
"ticker": "<string>",
"time_in_force": "fill_or_kill",
"type": "limit",
"yes_price": 50,
"yes_price_dollars": "0.2300"
}'
{
"order": {
"action": "<string>",
"client_order_id": "<string>",
"created_time": "<any>",
"expiration_time": "<any>",
"no_price": 123,
"no_price_dollars": "0.2300",
"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,
"yes_price_dollars": "0.2300"
}
}
The response is of type object
.