preflight_buy_event_contract
Prices a DAY limit buy of an event contract without placing the order, returning the limit price used and a preflight cost estimate that includes commission and exchange fees.
Instructions
Price a buy of an event contract (a YES or NO side) without placing it.
Prices a DAY limit buy of the contract. The response holds the limit price used and the preflight estimate, whose estimatedCost includes the commission and exchange fee. Does NOT place an order.
Args: contract_symbol: The contract to buy, from get_event_details, e.g. "KALSHI.KXBTC15M-26OCT201200-00.Y" (".Y" = YES, ".N" = NO). Not the "-EVENTCONTRACT" symbol that get_event_contract_bars takes. quantity: Number of contracts (default "1"); at most 2 decimal places. limit_price: Most to pay per contract, in dollars with whole cents between 0.01 and 0.99 (e.g. "0.55"). If omitted, the contract's current ask is looked up via event_symbol and rounded up to a whole cent. event_symbol: The contract's eventSymbol, e.g. "KALSHI.KXBTC15M-26OCT201200". Required when limit_price is omitted. account_id: Account ID. Optional if PUBLIC_COM_ACCOUNT_ID is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | 1 | |
| account_id | No | ||
| limit_price | No | ||
| event_symbol | No | ||
| contract_symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |