Skip to content

simran487/Tradingbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tradingbot

💹 Binance Futures Testnet Trading Bot (Web UI)

A simple web-based trading bot that lets you place market, limit, and stop-market orders on the Binance Futures Testnet using the official Binance API.

Built with:

  • 🔧 Python
  • 🖥️ Flask (for the web server)
  • 📊 TradingView widget (for live BTCUSDT chart)
  • 🗝️ .env for API security

🚀 Features

  • ✅ Place Market, Limit, and Stop-Market Orders
  • 🔐 Password-Protected Web Interface
  • 📈 View Real-Time BTCUSDT Chart (via TradingView)
  • 📉 Displays Current Market Price
  • ✅ Clean and Minimal HTML UI
  • 🛠️ Easily Extensible

📁 Project Structure

TadingBot/ │ ├── app.py # Flask web server ├── bot.py # BasicBot class using binance-python ├── .env # API credentials (not committed) ├── requirements.txt ├── templates/ │ ├── index.html # Web form for placing trades │ └── login.html # Login page


⚙️ Setup Instructions

🔐 1. Get Binance Futures Testnet API Keys

  1. Go to Binance Futures Testnet
  2. Log in and go to API Management
  3. Create a new API key pair

🧪 2. Clone & Setup the Project

git clone https://github.com/your-username/TadingBot.git
cd TadingBot

Create a .env file and add: API_KEY=your_testnet_api_key API_SECRET=your_testnet_api_secret

📦 3. Install Dependencies pip install -r requirements.txt

requirements.txt should include: flask python-binance python-dotenv

▶️ 4. Run the Flask App python app.py Go to: http://localhost:5000 🔐 Default password: admin123

🔧 Customize You can modify: The login password in app.py Supported order types Add order history display or SQLite integration

📸 Screenshot image image

⚠️ Disclaimer This bot uses the Binance Futures Testnet and does not execute real trades. Do not use real credentials or funds with this code in production without proper security measures.

🧠 Inspired by Binance API Docs python-binance

📃 License MIT License – use it freely and responsibly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors