suggest_order_size
Wielkość zlecenia z uwzględnieniem dostępnej gotówki na konkretnym rachunku.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| broker | Yes | Broker fee schedule to use. 'bossa' (0.291% min 5 PLN), 'xtb' (0% to 100k EUR MTD turnover, then 0.2% min 10 EUR), 'mbm' (0.39% min 5 PLN). | |
| intent | Yes | Direction. Affects commission for some brokers (currently none — symmetric — but kept for future). | |
| symbol | No | Ticker. Used for commission calculation only — server canonicalizes for diagnostics. | |
| targetQty | Yes | How many shares to transact total. | |
| currentPrice | No | Last known price PLN/share. If omitted, server reads price_history_daily. | |
| xtbCurrentMtdEur | No | XTB only: user's MTD stocks turnover EUR. Default 0 (assume tier-1 free). Used to compute when remaining order cliffs into 0.2% paid tier. |