{"id":"btc-gate","card_id":"card_btc_gate","name":"BTCGate","description":"Evaluates whether a BTC move breaches a configured defensive gate.","stage":1,"safety_level":"data_only_read_only","auth":{"type":"hmac-sha256","required_headers":["x-apex-tool-timestamp","x-apex-tool-nonce","x-apex-tool-content-sha256","x-apex-tool-signature"],"canonical_payload":"APEX-TOOL-V1\\n{tool_id}\\n{timestamp}\\n{nonce}\\n{sha256(canonical_json(body))}"},"permissionless":{"enabled":true,"tier":"bounded_public","rate_limit":"Shared 20 calls per IP per hour across permissionless bounded tools plus global agent-write protection","review_required":false,"note":"Anonymous bounded execution is allowed because this is a deterministic DATA ONLY threshold check over caller-supplied prices. It never releases source, keys, orders, wallets, private balances, or raw datasets."},"input_schema":{"type":"object","properties":{"current_price":{"type":"number"},"reference_price":{"type":"number"},"threshold_pct":{"type":"number"}}},"output_schema":{"type":"object","properties":{"decision":{"type":"string"},"move_pct":{"type":"number"}}},"sample_input":{"current_price":97000,"reference_price":100000,"threshold_pct":-3},"test_vectors":[{"input":{"current_price":97000,"reference_price":100000,"threshold_pct":-3},"expected":{"result":{"decision":"BLOCK","move_pct":-3,"threshold_pct":-3}},"match":"subset","verified_at":"2026-07-04T06:30:00.000Z"},{"input":{"current_price":99000,"reference_price":100000,"threshold_pct":-3},"expected":{"result":{"decision":"ALLOW","move_pct":-1,"threshold_pct":-3}},"match":"subset","verified_at":"2026-07-04T06:30:00.000Z"}]}