Skip to content

acalog/binance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Binance API

By: Alex Caloggero

Python wrapper to work with the Binance API.


General Information

  • Pass query strings as named arguments i.e. symbol='BTC', limit=5
  • Methods prefixed with 'get_' return a JSON object.
  • No authentication required for public requests.
  • Be mindful of API limits.
  • For detailed information on Binance's REST API visit here.

Initialize

Public API Endpoints

client = Client()
client.ping()
b'{}'

average_price = client.get_average_price(symbol='BTCUSDT')

Methods for public Endpoints

  • server_time()
  • ping()
  • exchange_info()
  • get_order_book(symbol, limit)
  • get_average_price(symbol)
  • get_trades_list(symbol, limit)
  • get_historical_trades(symbol, limit, fromId)
  • get_aggregate_trades(symbol, fromId, startTime, endTime, limit)
  • get_candlesticks(symbol, interval, startTime, endTime, limit)
  • get_24_hr_price(symbol)
  • get_price_ticker(symbol)
  • get_book_ticker(symbol)

About

Python wrapper for Binance API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages