- Framework: Use openctp_ctp as the base framework for the auto trading system.
- Strategy: Prefer the Moving Average (MA) crossover strategy for trading decisions.
- Code Style: Follow the Django style guide for code consistency and readability.
- Database: Use PostgreSQL for production databases to ensure robust and scalable data storage.
- API Development: Use Django REST Framework (DRF) for developing APIs to interact with the trading system.
- Background Tasks: Use Celery for handling background tasks to ensure non -blocking operations.
- Caching and Task Queues: Use Redis for caching and task queues to improve performance and manage task execution.
- Documentation: Maintain comprehensive documentation for all code, including comments and docstrings, to facilitate understanding and maintenance.
- Testing: Write unit tests and integration tests to ensure the reliability and correctness of the trading system.
- Version Control: Use Git for version control and follow best practices for branching, committing, and merging.
- Security: Implement security best practices, including data encryption, secure authentication, and protection against common vulnerabilities.
- Logging: Implement logging to track system behavior, errors, and performance metrics.
- Continuous Integration/Continuous Deployment (CI/CD): Set up CI/CD pipelines to automate testing and deployment processes.
- Performance Monitoring: Use monitoring tools to track system performance and identify bottlenecks.
- User Feedback: Regularly collect and incorporate user feedback to improve the system.