preflight_put_credit_spread
Estimate costs for a bull put spread (put credit spread) before placing it. Sell a higher-strike put, buy a lower-strike put to receive a net credit. Does not place an order.
Instructions
Estimate costs for a Bull Put Spread (put credit spread) before placing it.
Sell a higher-strike put, buy a lower-strike put. Receives a net credit. Does NOT place an order.
Args: sell_contract_osi: OSI symbol of the put to sell (higher strike). buy_contract_osi: OSI symbol of the put to buy (lower 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 |