BinanceTradingBot
A crypto trading bot, using Binance exchange futures market.
시스템 구조
저장소별 전략/실행 조건 확인 필요
거래소 API 기반 자동 주문 실행
에디터 요약저장소 설명과 공개 메타데이터 기준으로 암호화폐 거래 봇, 거래소 API/프레임워크, 기술적 분석, 뉴스·소셜 신호 성격의 프로젝트로 파악했습니다. 확인 근거는 README, 저장소 토픽, 저장소 설명, GitHub 지표, 파이프라인 필드이며, 주요 데이터는 Binance, OHLCV/호가/체결 데이터입니다. 전략/실행 조건은 저장소별 문서와 코드 확인이 필요하며, 실행 방식은 "거래소 API 기반 자동 주문 실행"라고 보수적으로 기록했습니다. GitHub 지표는 별 149개, 포크 50개입니다.
| 저장소 | yonathan95/BinanceTradingBot |
|---|---|
| 제작자 | yonathan95 |
| 스타 / 포크 | ★ 149 / 50 |
| 라이선스 | MIT |
| 최근 업데이트 | 2025-05-09 |
| 스냅샷 시점 | 2026-07-08 (아래 README는 이 시점의 사본입니다) |
아래는 제3자가 작성·공개한 오픈소스 코드입니다. QuantField는 해당 코드의 동작과 안전성을 보증하지 않으며, 설치·실행 전 코드를 직접 검토하시기 바랍니다.
README
Binance Trading Bot
This repo is no longer supported.
Overview
A crypto trading bot, using Binance exchange futures market.
This is a bot that's written in Java that buys and sells cryptocurrency using Binance's API, managing user balances and dispalys information. This project incorporate multiple threads, use of WebSocket and Rest APIs and object-oriented programming. It required research on cryptocurrency strategies and their employment in Java with Binance's API.
Strategies
The bot acquires the 150 most recent candles from Binance based on the symbol typed in by the user, and then runs on one or more from the strategies described below. It will try to buy in the right time as defined by the strategy and sell as well. Methodolodgy - each entry strategy corresponds to its similary-named exit strategies. For example, RSI entry strategy will enter into position that listens on the four possible RSI exit strategies.
Entry strategies
- Relative Strength Index (RSI) with 9 candles.
- To enter position the RSI needs to cross 27,30 and 35 fast (last 2 close candles).
- Long MACD Over RSI with 9 rsi values, fast bar: 14, slow bar: 24.
- If the price is above SMA 100, we need or that macd over rsi value crossed zero upwards, or we have a three negative downwards pyramid.
- If the price is below SMA 100, we need that macd over rsi value crossed zero downwards or that we have three positive upwards pyramid.
The Long MACD and Short MACD are in the same class, while the RSI is in its own class.
Exit strategies
- Four possible RSI Exit strategies.
- Cross 65 and until 73 up -> cross 60 down (selling 50% of position) -> cross 50 down (selling all position).
- Cross 73 up -> cross 70 down (selling 40% of position) -> cross 60 down (selling all position).
- The RSI loses a value of at least 15 in the last 2 candles (including the open one) - selling all position
- Crossing 30 down (selling all position), safety net.
- Five possible Long MACD Over RSI strategies.
- Current price below SMA 100 -> Market
- Crossing the zero line downwards -> Limit
- Not currently trailing -> If we have three positive candles downwards pyramid, activate trailing. Currently trailing -> two positive candles pyramid, deactivate trailing. Currently trailing -> If we need to sell by our trailing rules -> sell.
- Not currently trailing -> If we have three negative downwards pyramid, activate trailing. Not currenly trailing -> three negative candle values and the current candle is not bigger than the prev, deactivate trailing. Not Currently trailing -> If we need to sell by trailing rules -> sell.
- Safety net.
- Five possible Short MACD Over RSI strategies.
- Current price above SMA 100 -> Market
- Crossing the zero line upwards -> Limit
- Not currently trailing -> If we have three negative downwards pyramid, activate trailing. Currently trailing -> if the current candle is bigger than the previous and are both negative, deactivate trailing. Not currently trailing -> If we need to sell by our trailing rules -> sell.
- Not currently trailing -> If we have three positive upwards pyramid, activate trailing. Currently trailing -> if the current candle is not bigger than the previous one and are positive, deactivate trailing. Not currently trailing -> If we need to sell by our own trail