preflight_call_credit_spread
Estimate net credit for a bear call spread strategy before order placement. Specify sell and buy call OSI symbols, quantity, and limit price.
Instructions
Estimate costs for a Bear Call Spread (call credit spread) before placing it.
Sell a lower-strike call, buy a higher-strike call. Receives a net credit. Does NOT place an order.
Args: sell_contract_osi: OSI symbol of the call to sell (lower strike). buy_contract_osi: OSI symbol of the call to buy (higher strike). quantity: Number of spreads. limit_price: Net credit to receive per spread (positive = credit received). 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 |