Get status (balance, orders, symbols, history, etc), place orders (spot and margin accounts. Types: market, limit, stop/OCO) to Binance account through command line.
Dependence:
- Python >= 3.5
- Binance Python API >= 0.2.0 from https://pypi.org/project/python-binance/ (Can be installed with pip comamand: pip install python-binance)
- virtualenv is not mandatory, but a good python practice
Setup:
1. Create Binance API from their site.
2. Insert Binance API Key and Securiry Key into follow variables into walletId.sh file:
export BINANCE_APIKEY='AAABBBCCCDDDEEE'
export BINANCE_SEKKEY='AAABBBCCCDDDEEE'
export BINANCE_RECVWINDOW=6000
Usage:
# source ./walletId.sh
# ./Binance.py
Screenshots:
Listing spot and margin orders.
Canceling margin order.
Placing a margin order.


