check_trade_safety
Run the pre-trade oracle safety gate for swaps, lending, perps, vault deposits and position stress tests across Base, Monad, multichain EVM, Solana and Hyperliquid. Use it immediately before an agent trades or signs, and pass the family native payload in guard when the venue needs exact-call fields. Do not use it after execution (use issue_execution_receipt) and do not treat its ALLOW as principal authorization. Returns a verdict (ALLOW/CAUTION/DANGER/BLOCK), reason codes, oracle evidence and a signed attestation or decision when the family supports one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date for liquidation stress | |
| mode | No | Generic oracle gate mode when no family-specific guard applies | pre_trade |
| side | No | Perp side | |
| asset | No | Asset traded or collateral symbol | |
| guard | No | Exact-call guard input for family-specific exact tools | |
| order | No | Exact Hyperliquid order envelope | |
| action | Yes | Trade action being considered | |
| market | No | Perp market | |
| borrows | No | ||
| chain_id | Yes | Execution chain: numeric EVM id, "solana", or "hyperliquid" | |
| position | No | Position payload for action=check_position | |
| market_id | No | Isolated lending market id when required | |
| providers | No | Oracle providers to gate on | |
| amount_usd | No | Trade size in USD | |
| profile_id | No | Reviewed pool/profile id | |
| collaterals | No | ||
| loan_symbol | No | ||
| protocol_id | No | Lending/protocol id | |
| transaction | No | Exact unsigned transaction for exact-call guards | |
| margin_asset | No | ||
| borrow_amount | No | ||
| borrow_symbol | No | ||
| token_address | No | ||
| debt_value_usd | No | ||
| decision_input | No | Caller decision/quote evidence (old camelCase shape) | |
| margin_value_usd | No | ||
| collateral_amount | No | ||
| collateral_symbol | No | ||
| destination_asset | No | Destination asset for swaps | |
| reputation_opt_in | No | ||
| reputation_agent_id | No | ||
| collateral_value_usd | No |