get_trading_cost_estimate
Estimate trading costs for a hypothetical order before placing it. Get detailed cost breakdown including markup, spreads, fees, and overnight charges.
Instructions
Estimate the costs of a hypothetical open order without placing it.
Takes the same arguments as create_order (exactly one of symbol/instrument_id, exactly one of amount/units/contracts) and returns the cost breakdown: one entry per cost type (markup, marketSpread, transactionFee, overnightFee, overWeekendFee, sdrt) with an amount and currency, plus the quote timestamp (ISO 8601). Rate limit: dedicated 20 requests/60s quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Position size in asset units. | |
| amount | No | Position size as money in order_currency (typically USD). | |
| symbol | No | Ticker symbol, e.g. AAPL. Alternative to instrument_id. | |
| leverage | No | Leverage; 1 = no leverage. | |
| contracts | No | Position size in contracts (futures). | |
| order_type | No | mkt = market, mit = market-if-touched. | mkt |
| transaction | Yes | Trade direction. | |
| trigger_rate | No | Absolute trigger price; required when order_type is mit. | |
| instrument_id | No | Instrument id. Alternative to symbol. | |
| order_currency | No | Currency of amount, typically usd. | |
| settlement_type | No | Settlement type for the hypothetical open. | cfd |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||