binance-trader
💰 Cryptocurrency Trading Bot for Binance (Experimental)
시스템 구조
저장소별 전략/실행 조건 확인 필요
거래소 API 기반 자동 주문 실행
에디터 요약저장소 설명과 공개 메타데이터 기준으로 Python 기반 구현, 암호화폐 거래 봇, 거래소 API/프레임워크, 차익거래 성격의 프로젝트로 파악했습니다. 확인 근거는 README, 저장소 토픽, 저장소 설명, GitHub 지표, 파이프라인 필드이며, 주요 데이터는 Binance, 가격/거래량 데이터입니다. 전략/실행 조건은 저장소별 문서와 코드 확인이 필요하며, 실행 방식은 "거래소 API 기반 자동 주문 실행"라고 보수적으로 기록했습니다. GitHub 지표는 별 2735개, 포크 827개입니다.
| 저장소 | yasinkuyu/binance-trader |
|---|---|
| 제작자 | yasinkuyu |
| 스타 / 포크 | ★ 2735 / 827 |
| 최근 업데이트 | 2026-01-03 |
| 스냅샷 시점 | 2026-07-08 (아래 README는 이 시점의 사본입니다) |
아래는 제3자가 작성·공개한 오픈소스 코드입니다. QuantField는 해당 코드의 동작과 안전성을 보증하지 않으며, 설치·실행 전 코드를 직접 검토하시기 바랍니다.
README
Binance Trader (v1.1.0)
This is an experimental bot for auto trading the binance.com exchange. @yasinkuyu

Changelog
v1.1.0 (2026-01-01)
- 🐛 Fixed: Bot not selling after buy order filled (#66, #134, #166)
- 🐛 Fixed: KeyError when API returns error (#139, #154)
- 🐛 Fixed: LOT_SIZE filter precision issues (#159)
- 🐛 Fixed: Partially filled orders now correctly calculate sell quantity (#133, #178, #200)
- 🐛 Fixed: NameError for undefined sell_price variable (#172)
- 🔒 Improved: Thread safety with proper locking mechanism
- ⚡ Improved: Better exception handling throughout the codebase
Configuration
Signup for Binance
Enable Two-factor Authentication
Go API Center, Create New Api Key
[✓] Read Info [✓] Enable Trading [X] Enable WithdrawalsRename config.sample.py to
config.py/ orders.sample.db toorders.dbGet an API and Secret Key, insert into
config.pyAPI key for account access api_key = '' Secret key for account access api_secret = '' [API Docs](https://www.binance.com/restapipub.html)Optional: Modify recv_window value (not recommended)
Optional: run as an excutable application in Docker containers
Support
https://www.binance.com/?ref=10701111
Requirements
sudo pip install requests
Python 3
import os
import sys
import time
import config
import argparse
import threading
import sqlite3
Usage (trading module)
python trader.py --symbol XVGBTC
Example parameters
# Profit mode (default)
python trader.py --symbol XVGBTC --quantity 300 --profit 1.3
or by amount
python trader.py --symbol XVGBTC --amount 0.0022 --profit 3
# Range mode
python trader.py --symbol XVGBTC --mode range --quantity 300 --buyprice 0.00000780 --sellprice 0.00000790
or by amount
python trader.py --symbol XVGBTC --mode range --amount 0.0022 --buyprice 0.00000780 --sellprice 0.00000790
--quantity Buy/Sell Quantity (default 0) (If zero, auto calc)
--amount Buy/Sell BTC Amount (default 0)
--symbol Market Symbol (default XVGBTC or XVGETH)
--profit Target Profit Percentage (default 1.3)
--stop_loss Decrease sell price at loss Percentage (default 0)
--orderid Target Order Id (default 0)
--wait_time Wait Time (seconds) (default 0.7)
--increasing Buy Price Increasing +(default 0.00000001)
--decreasing Sell Price Decreasing -(default 0.00000001)
--prints Scanning Profit Screen Print (default True)
--loop Loop (default 0 unlimited)
--mode Working modes profit or range (default profit)
profit: Profit Hunter. Find defined profit, buy and sell. (Ex: 1.3% profit)
range: Between target two price, buy and sell. (Ex: <= 0.00000780 buy - >= 0.00000790 sell )
--buyprice Buy price (Ex: 0.00000780)
--sellprice Buy price (Ex: 0.00000790)
Symbol structure;
XXXBTC (Bitcoin)
XXXETH (Ethereum)
XXXBNB (Binance Coin)
XXXUSDT (Tether)
All binance symbols are supported.
Every coin can be differ