binance-futures-trading-bot
Easy-to-use multi-strategic automatic trading for Binance Futures with Telegram integration
시스템 구조
저장소별 전략/실행 조건 확인 필요
거래소 API 기반 자동 주문 실행
에디터 요약저장소 설명과 공개 메타데이터 기준으로 Python 기반 구현, 암호화폐 거래 봇, 거래소 API/프레임워크, 백테스트 성격의 프로젝트로 파악했습니다. 확인 근거는 README, 저장소 토픽, 저장소 설명, GitHub 지표, 파이프라인 필드이며, 주요 데이터는 Binance, OHLCV/호가/체결 데이터입니다. 전략/실행 조건은 저장소별 문서와 코드 확인이 필요하며, 실행 방식은 "거래소 API 기반 자동 주문 실행"라고 보수적으로 기록했습니다. GitHub 지표는 별 401개, 포크 96개입니다.
| 저장소 | Erfaniaa/binance-futures-trading-bot |
|---|---|
| 제작자 | Erfaniaa |
| 스타 / 포크 | ★ 401 / 96 |
| 라이선스 | GPL-3.0 |
| 최근 업데이트 | 2024-03-13 |
| 스냅샷 시점 | 2026-07-08 (아래 README는 이 시점의 사본입니다) |
아래는 제3자가 작성·공개한 오픈소스 코드입니다. QuantField는 해당 코드의 동작과 안전성을 보증하지 않으며, 설치·실행 전 코드를 직접 검토하시기 바랍니다.
README
Binance Futures Trading Bot
Easy-to-use multi-strategic automatic trading for Binance Futures with Telegram integration
Features
- You can run it fast and it's easy to use.
- This project can handle multiple strategies at the same time.
- There are no complexities and no database usage in this project. Even dependencies are a few.
- It's easy to modify and customize.
- It automatically stores recent candles that can be used for machine learning model input.
- You can read the code for educational purposes.
- You can be notified with Telegram messages
Run
- Clone the repository.
- Generate a Binance API key (with Futures access) and put it in
credentials.py. - Run
pip3 install -r requirements.txt. - Run
python3 init_indicators_dict.py. - Run
python3 init_orders_dict.py. - Run
python3 main.py.
This will run an example bot on trading Bitcoin with 4 strategies simultaneously.
Config
To write custom bots you can:
- Set an initial indicators setting in
init_indicators_dict.py(because we are handling indicators in the client side with pickle files). - Set an initial orders setting in
init_orders_dict.py(because we are handling orders in the client side with pickle files). - Define new indicators in
indicators.py. - Define a new strategy in
main.py(especially insideis_it_time_to_open_long_positionandis_it_time_to_open_short_positionfunctions). - Config your bot settings in
config.py.
Note: If you define any machine learning model, you can use recent_prices_list as its input.
Warning: Binance has a maximum limit of 10 take-profit and stop-loss open orders, therefore do not use more than 5 strategies at the same time.
Telegram Config
- Firstly, you need to create a Telegram bot, so talk to @botfather.
- Secondly, need to know your own Telegram user ID, so the bot will know who to send messages to. Talk to @userinfobot to get this information.
- Thirdly, you have to
/startyour bot. Open up a private message with your bot by searching its username, then hit the start button. - Finally, set
TELEGRAM_API_KEYandTELEGRAM_USER_IDincredentials.py, andSEND_TELEGRAM_MESSAGEinconfig.py.
To-do
- Import modules, not variables.
- Use classes and make
main.pysmaller. - Add more indicators to
indicators.py. - Find a better way to handle error codes.
- Unify get candles functions.
See Also
- Crypto Trading Strategy Backtester
- Binance Spot Trading Bot
- Finestel: Our automated trading bot can be used on Finestel & Finestel Pro: a crypto copy trading platform where pro traders & asset managers can connect their exchange accounts and manage their clients and communities of investors’ assets by using Finestel/Finestel Pro in conjunction with our Binance futures bot. Investors have the opportunity to profit the same as you while learning from more experienced traders.