Hawk Trading is a high-frequency cryptocurrency trading system designed for speed, accuracy, and flexibility.
- 📈 Real-time market data streaming
- ⚡ High-frequency trading support
- 📊 Order book visualization
- 💼 Trading history and position management
- 📋 Performance analytics
- 🔄 Backtesting capabilities
-
Clone the repository:
git clone https://github.com/yourusername/hawk-trading.git cd hawk-trading/backend
-
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # macOS/Linux .venv\Scripts\activate # Windows
-
Install dependencies:
pip install -r requirements.txt
To train the model and perform backtesting, run:
python scripts/train_and_backtest.py
Before training and backtesting, ensure market data retrieval is properly configured. Verify that the data source provides data with a timestamp
column.
Check the data retrieval logic in src/services/market_data_service.py
.
Encountering this error?
KeyError: "None of ['timestamp'] are in the columns"
Here’s how to resolve it:
-
✅ Confirm that the data source includes the
timestamp
column. -
🐛 Debug by printing the DataFrame's column names in the
get_market_data
method:print("DataFrame columns:", df.columns)
-
⚙️ Double-check the data loading logic and format.
Contributions are welcome! 🙌 Submit your issues or pull requests to help us improve. 🚀
This project is licensed under the MIT License. See the LICENSE file for details. 📄
Happy Trading! 🎉