Skip to content

Python package allowing set up/customize bot to auto trade in Entrade/DNSE platform

Notifications You must be signed in to change notification settings

m2quant/AutoTrade

 
 

Repository files navigation

📈 AutoTrade

A modular system to automatically connect to DNSE/Entrade, receive price data and execute trades based on user-defined strategies.

Features

  • 🧠 Define and plug in your own trading strategies
  • ⚡ Automated trade execution when signals are triggered
  • 📊 Real-time market data
  • 🛠 Modular design for brokers, strategies, and risk modules

Quick Start

1. Clone the repo

git clone https://github.com/ChungkhoanPhaisinh/AutoTrade.git
cd AutoTrade

2. Install dependencies

pip install -r requirements.txt

3. Configure your settings

Fill-in your login data & other configures to "config.json" file

4. Run the system

python main.py

🤖 Creating Your Own Agent

All trading bots (agents) are stored in the agents/ folder. To build your own bot:

  1. Create a new file inside the agents/ folder.
  2. Inherit from the Agent class.
  3. Implement your custom trading logic.
  4. Add the bot to ACTIVE_BOT variable inside logic_processor.py.
  5. Change logic in logic_processor.py to execute more complex logic.

Using tunnel

The folder /tunnel is an independent module, used to create a tunnel to execute order through API. To use it:

  1. Download cloudflared at: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/
  2. Run main.py to generate "entrade_client_data.json" inside "/tunnel" (main.py could be closed after)
  3. Run tunnel.py

⚠️ Disclaimer

This project is for educational and research purposes only. Trading involves risk, and past performance does not guarantee future results. Use at your own responsibility.

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to open a PR.

About

Python package allowing set up/customize bot to auto trade in Entrade/DNSE platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%