{"repo":"leionion/emergency-exit-multi-exchange-killswitch","free":true,"listed":false,"github":"https://github.com/leionion/emergency-exit-multi-exchange-killswitch","clone":"git clone https://github.com/leionion/emergency-exit-multi-exchange-killswitch.git","description":"A single-button script that flattens all open positions and cancels all pending orders across 5+ major exchanges simultaneously.","language":"Python","stars":15,"topics":["algo-trading","bitget","bybit","ccxt","cli-tool","crypto-trading","emergency-tool","exchange-api","kucoin","position-management"],"license":null,"category":"trading","readme_excerpt":"Emergency Exit Multi Exchange Killswitch Production-ready Python CLI to cancel open orders and flatten positions across multiple exchanges in one coordinated emergency run. What is implemented - Multi-exchange orchestration with configurable concurrency - Deterministic execution order: cancel first, flatten second, verify last - Actions: status , cancel-only , flatten-all - Exchange filtering ( --exchanges bybit,okx ) - Adapter architecture: - mock adapter (fully testable, deterministic local runs) - ccxt adapter (real exchange integration path) - Residual risk verification and fail-fast thresholds ( max residual notional ) - Safe live execution guard requiring explicit confirmation - Structured run summary with per-exchange and total metrics - Automated local test suite Project structure How it works 1. Load selected profile and runtime safety limits. 2. Resolve enabled exchanges (or user-selected subset). 3. For each exchange (concurrently): - Fetch and cancel all open orders. - If action is flatten-all , fetch and close all open positions using reduce-only semantics. - Verify residual open orders and residual notional. 4. Aggregate per-exchange results into a final status: - OK - PARTIAL FAILURE - FAILED (for threshold/scope validation failures) Installation Quick start 1) Check profile and enabled exchanges 2) Paper cancel-only run 3) Paper flatten-all run 4) Scope to selected exchanges 5) Live mode safety confirmation Live mode requires explicit confirmation: Or set: Con","default_branch":null,"files":null,"tree":[],"storefront":"/r/leionion","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leionion/emergency-exit-multi-exchange-killswitch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}