binance-trader
π° Cryptocurrency Trading Bot for Binance (Experimental)
System Structure
μ μ₯μλ³ μ λ΅/μ€ν 쑰건 νμΈ νμ
κ±°λμ API κΈ°λ° μλ μ£Όλ¬Έ μ€ν
Editor Summaryμ μ₯μ μ€λͺ κ³Ό κ³΅κ° λ©νλ°μ΄ν° κΈ°μ€μΌλ‘ Python κΈ°λ° κ΅¬ν, μνΈνν κ±°λ λ΄, κ±°λμ API/νλ μμν¬, μ°¨μ΅κ±°λ μ±κ²©μ νλ‘μ νΈλ‘ νμ νμ΅λλ€. νμΈ κ·Όκ±°λ README, μ μ₯μ ν ν½, μ μ₯μ μ€λͺ , GitHub μ§ν, νμ΄νλΌμΈ νλμ΄λ©°, μ£Όμ λ°μ΄ν°λ Binance, κ°κ²©/κ±°λλ λ°μ΄ν°μ λλ€. μ λ΅/μ€ν 쑰건μ μ μ₯μλ³ λ¬Έμμ μ½λ νμΈμ΄ νμνλ©°, μ€ν λ°©μμ "κ±°λμ API κΈ°λ° μλ μ£Όλ¬Έ μ€ν"λΌκ³ 보μμ μΌλ‘ κΈ°λ‘νμ΅λλ€. GitHub μ§νλ λ³ 2735κ°, ν¬ν¬ 827κ°μ λλ€.
| Repository | yasinkuyu/binance-trader |
|---|---|
| Creator | yasinkuyu |
| Stars / Forks | β 2735 / 827 |
| Last Updated | 2026-01-03 |
| Snapshot Date | 2026-07-08 (README below is a copy from this date) |
This is third-party open-source code. QuantField does not guarantee its behavior or safety. Review the code before installing or running it.
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