coingraph_validate_trade
Pre-trade validation for an order of a given size: estimated slippage from order books CoinGraph sampled itself, the size as a share of resting depth, the median spread, supply unlocking inside the horizon, contract flags, and the asset's health and risk. Slippage is estimated only inside the depth actually measured; a larger order is reported as exceeding sampled depth rather than extrapolated. Send your own thresholds as policy and each is evaluated against the observed values and returned rule by rule — the verdict is your rule's, never CoinGraph's. CoinGraph ratings are opinions derived from disclosed market inputs — never predictions, never financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| asset | Yes | The coin's id, symbol or name. | |
| policy | No | Your own thresholds. Each is evaluated against the observed value and returned with whether it held. | |
| size_usd | Yes | Order size in US dollars. | |
| horizon_days | No | How long the position is expected to be held; sets the unlock window. |