preflight_call_debit_spread
Estimate costs for a bull call spread by buying a lower-strike call and selling a higher-strike call. Does not execute the trade.
Instructions
Estimate costs for a Bull Call Spread (call debit spread) before placing it.
Buy a lower-strike call, sell a higher-strike call. Pays a net debit. Does NOT place an order.
Args: sell_contract_osi: OSI symbol of the call to sell (higher strike). buy_contract_osi: OSI symbol of the call to buy (lower strike). quantity: Number of spreads. limit_price: Net debit to pay per spread (positive = debit paid). time_in_force: DAY or GTD. Default is DAY. expiration_time: Required when time_in_force is GTD. ISO 8601 format. account_id: Account ID. Optional if PUBLIC_COM_ACCOUNT_ID is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sell_contract_osi | Yes | ||
| buy_contract_osi | Yes | ||
| quantity | Yes | ||
| limit_price | Yes | ||
| time_in_force | No | DAY | |
| expiration_time | No | ||
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |