Overview
Horizon is a complete solution for managing PTN miners and exchange connectivity.
- Watcher: Backend service monitoring exchange orders and forwarding them to PTN
- Easy Miner: Web interface for managing PTN miners and monitoring order flow
Features
Order Watcher
- Real-time order monitoring
- Automated order-to-signal conversion
- Dynamic leverage calculation
- WebSocket status updates
- Exchange sandbox/testnet support
- Modular exchange integration
Easy Miner
Miner Management
- Start/stop miners
- Real-time log viewing
Order Monitoring
- Live order feed
- Status tracking
- Error reporting
Architecture
Prerequisites
- Node.js 20+
- Python 3.8+
- PTN installed and configured
- Exchange API credentials
Installation
- Clone the repository
- Install dependencies:
- Configure the project:
- Update configuration:
Usage
Development Mode
Start both components:
Start individually:
The application automatically starts watching orders on the configured exchanges and processes them into signals.
Exchange Integration
- Create exchange module (
/watcher/modules/exchanges/[exchange-id].js
):
- Add to exchange registry (
./watcher/modules/exchanges/index.js
):
Signal Processing
File: ./watcher/modules/orders/toSignal.js
Converts orders and balances into signals:
Production Mode
Contributing
- Fork the repository
- Create a feature branch
- Submit a pull request
Ensure your PR:
- Includes tests
- Updates documentation
- Maintains code style
- Has clear description
License
MIT License
Support
- GitHub Issues
- Discord: Join
- Email: support@taoshi.io
Built by Taoshi