trade_check
Trade economics check
Deterministic pre-trade economics check for a long (buy) round trip. Call it before placing a trade: given size, entry/exit reference prices, maker/taker roles, fees, spread and slippage, it returns whether the trade still clears after all costs (result.economically_clears, result.reason), the net P&L and return, a per-leg cost breakdown, the break-even and minimum profitable exit prices, and every assumption applied. No predictions, no market data, no execution. Costs 1 prepaid credit per successful check; invalid input costs nothing. Requires "Authorization: Bearer smk_..." (get a key at https://smolabot.arison8.com).
siderequiredsizerequiredsymbolrequiredexit_pricerequiredspread_bpsrequiredentry_pricerequiredslippage_bpsrequiredmaker_fee_bpsrequiredtaker_fee_bpsrequiredexit_liquidityrequiredentry_liquidityrequiredprofit_buffer_bps