A high-concurrency, asynchronous trading bot built for the GoQuant ecosystem. This system manages automated execution across multiple exchanges simultaneously with a focus on capital preservation.
- Multi-Exchange Synchronization: Unified portfolio tracking across OKX, Bybit, and KuCoin.
- Asynchronous Architecture: Built using
asyncioandwebsocketsfor non-blocking, real-time market data processing. - Dynamic Rebalancing: Automatically transitions between 'Strategic Buying' and 'Liquidity Recovery' modes based on a $2,000 reserve threshold.
- Critical Stop Protection (CSP): An automated circuit-breaker that liquidates positions and shuts down the bot if total USDT drops below $0.00.
- Language: Python 3.12+
- Libraries:
websockets,aiohttp,requests - APIs: GoQuant WebSocket V1, Coinbase Spot Price API
- Short-Covering: Closes any risky net short positions immediately.
- Liquidity Check: If USDT < $2,000, the bot sells long positions to free up capital.
- Algorithmic Entry: If USDT > $2,000, the bot places $100 trades using the
market_edgealgorithm.
- Clone the repository.
- Install dependencies:
pip install -r requirements.txt. - Update
USER_EMAILandUSER_PASSWORDin the script. - Run the bot:
python trading_bot.py.