confirmOrder
Preview order costs and requirements before executing trades. Check commission fees, margin requirements, and order validation for stocks and options without placing actual trades.
Instructions
Preview order costs and requirements (READ-ONLY - does not execute trades)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | No | Account ID (optional, uses TRADESTATION_ACCOUNT_ID from env if not provided) | |
| symbol | Yes | Symbol to trade (e.g., SPY, SPY 251121C580) | |
| quantity | Yes | Order quantity | |
| orderType | Yes | Order type | |
| tradeAction | Yes | Trade action | |
| limitPrice | No | Limit price (required for Limit and StopLimit orders) | |
| stopPrice | No | Stop price (required for Stop and StopLimit orders) | |
| duration | No | Time in force duration | DAY |
Input Schema (JSON Schema)
{
"properties": {
"accountId": {
"description": "Account ID (optional, uses TRADESTATION_ACCOUNT_ID from env if not provided)",
"type": "string"
},
"duration": {
"default": "DAY",
"description": "Time in force duration",
"enum": [
"DAY",
"GTC",
"GTD",
"DYP",
"GCP"
],
"type": "string"
},
"limitPrice": {
"description": "Limit price (required for Limit and StopLimit orders)",
"type": "number"
},
"orderType": {
"description": "Order type",
"enum": [
"Market",
"Limit",
"Stop",
"StopLimit"
],
"type": "string"
},
"quantity": {
"description": "Order quantity",
"type": "number"
},
"stopPrice": {
"description": "Stop price (required for Stop and StopLimit orders)",
"type": "number"
},
"symbol": {
"description": "Symbol to trade (e.g., SPY, SPY 251121C580)",
"type": "string"
},
"tradeAction": {
"description": "Trade action",
"enum": [
"BUY",
"SELL",
"BUYTOOPEN",
"BUYTOCLOSE",
"SELLTOOPEN",
"SELLTOCLOSE"
],
"type": "string"
}
},
"required": [
"symbol",
"quantity",
"orderType",
"tradeAction"
],
"type": "object"
}