pre_trade_check
Check a crypto perpetual futures order against your risk rules before placing it; get pass/fail metrics and GO, CAUTION, or WAIT. Read-only, places no orders.
Instructions
Returns a pre-trade check of a crypto perpetual futures order against your own rules: each passes or fails with its numbers, then GO, CAUTION or WAIT. Adds isolated liquidation distance, whether it hits before your stop, fees, accuracy needed to break even over your hold, funding by venue (cross-venue) and the regime. Read-only: places no orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Asset symbol, e.g. BTC, ETH, SOL. | |
| side | Yes | Direction of the order you intend to place: long or short. | |
| rules | No | Your rules, each key optional. A rule of yours that fails returns WAIT. | |
| sizeUsd | Yes | Order notional in USD, e.g. 10000. | |
| stopPct | No | Stop-loss distance from entry in percent, e.g. 2. | |
| leverage | No | Isolated leverage you will use, e.g. 10. Enables the liquidation checks. | |
| equityUsd | No | Account equity in USD. Enables the percent-of-equity rules. | |
| exchanges | No | Only compare these venues (default: every supported venue). | |
| holdHours | No | Expected holding time in hours (default 8); sets the funding cost window. | |
| orderType | No | market (taker entry) or limit (maker entry). Default market. | market |
| targetPct | No | Target distance from entry in percent, e.g. 4. | |
| timeframe | No | Market-regime timeframe: 1h, 4h or 1d (default 4h). | 4h |