시스템자가 보고크립토Pythonalgorithmic-tradingbacktestingbinancebinance-botbinance-futures

Binance-Futures-Trading-Bot

A Technical Analysis Bot that trades leveraged USDT futures markets on Binance.

시스템 구조

활용 데이터
Binance가격/거래량 데이터
규칙 / 전략

저장소별 전략/실행 조건 확인 필요

실행

거래소 API 기반 자동 주문 실행

에디터 요약

저장소 설명과 공개 메타데이터 기준으로 Python 기반 구현, 암호화폐 거래 봇, 거래소 API/프레임워크, 백테스트 성격의 프로젝트로 파악했습니다. 확인 근거는 README, 저장소 토픽, 저장소 설명, GitHub 지표, 파이프라인 필드이며, 주요 데이터는 Binance, 가격/거래량 데이터입니다. 전략/실행 조건은 저장소별 문서와 코드 확인이 필요하며, 실행 방식은 "거래소 API 기반 자동 주문 실행"라고 보수적으로 기록했습니다. GitHub 지표는 별 661개, 포크 196개입니다.

저장소conor19w/Binance-Futures-Trading-Bot
제작자conor19w
스타 / 포크★ 661 / 196
최근 업데이트2024-07-28
스냅샷 시점2026-07-08 (아래 README는 이 시점의 사본입니다)

아래는 제3자가 작성·공개한 오픈소스 코드입니다. QuantField는 해당 코드의 동작과 안전성을 보증하지 않으며, 설치·실행 전 코드를 직접 검토하시기 바랍니다.

README

Binance-Futures-Trading-Bot Tweet

Technical Analysis driven Crypto Trading bot on Binance Futures 📈 ₿ 🚀

Join My public Discord Server & Follow The Twitter

  • Comes with 11 pre-built strategies found in TradingStrats.py
  • See Documentation below to implement your TA strategies. (currently working on new documentation)
  • If you enjoy the repo please share it around to friends & tweet about it using the tweet button above 😃
    or Buy me a Coffee

This Bot currently only works on windows OS, in future I hope to support linux but I don't have the time right now


This Bot utilizes:

  • python-Binance Client to execute orders and pull data from Binance
  • ta library for Technical indicators
  • plotly for generating interactive Trade graphs.
  • tabulate for logging trades in a table format
  • colorlog for adding colour to logs

Important for live trading on windows:

Set up windows to sync time once a day if you don't do this binance will eventually reject orders with a timestamp error.


Creating Custom Strategies:

Strategies are implemented in TradingStrats.py as functions and then referenced in Bot_Class.Bot.make_decision()

  • Make_decision() must return Trade_Direction, stop_loss_val, take_profit_val for the strategy to work properly
  • You might draw inspiration for a strategy from one of the samples in TradingStrats.py
    Docs are being updated currently for the new bot
    Create Custom Strategies
    Create Custom TP/SL functions

Binance Setup

  • Create a Binance Account (This link uses my referral which gives you 5% kickback on trades & would be greatly appreciated)
  • Enable Two-factor Authentication in the security section to keep your crypto safe.
  • Create a new API key under the API Management section.
  • [✓] Read Info [✓] Enable Trading [✓] Enable Futures [X] Enable Withdrawals
  • Fill in your api keys into api_secret and api_key in live_trading_config.py

Running the live trading bot

Run strategies at your own risk I am not responsible for your trading decisions, futures are risky and proper risk management should be adhered to at all times, always have a stoploss

python3 live_trading.py

Settings are in live_trading_config.py

  • Trade a single position at a time by setting max_number_of_positions = 1, to trade multip