Skip to main content

Binance API wrapper with backtesting tools.

Project description

Welcome to BinPan's documentation!

BinPan is a Python wrapper for Binance API. Useful creating objects with many capabilities in data analysis.

BinPan can show plots easily and fetch API requests into the same object. It can also obtain some technical indicators.

The target of this module is to have a fast tool for collecting and handling data from the Binance API easily.

It is intended to be useful in Jupyter Notebooks or even the python console, but it can be used in many other ways.

BinPan manages symbol objects that can do:

  • get candles with time zone and indexing options.
  • get trades.
  • calculate technical indicators.
  • plot candles, histograms, indicators, etc in a very simple and beautiful way.
  • check applied fees.

An example of a plot for candles and indicators:

BinPan contains no binance order method, withdraw method or any dangerous command.

If you decide to add API keys for using some account methods, BinPan will encrypt it in a file, and in memory, but it is better not enabling trading capability on the Binance API key configuration, just for your own peace of mind.

Be careful out there!

Documentation

Take a look to the basic tutorial. Find it in the Jupyter Notebook file tutorial.ipynb

Also, can be found Sphinx documentation at:

https://nand0san.github.io/binpan_studio/

Hope you find it useful breaking the market!!!

Python Version and Google Colab

Please install in google colab with: !pip install binpan, then push restart runtime button and import library as usual.

Recommended Python version: 3.7

GitHub repo

https://github.com/nand0san/binpan_studio

Installation

Pypi repository: https://pypi.org/project/binpan/

   pip install binpan

Usage

Importing just like this:

    from binpan import binpan

    btcusdt = binpan.Symbol(symbol='btcusdt',
                            tick_interval='15m',
                            time_zone='Europe/Madrid',
                            start_time='2021-10-31 01:00:00',
                            end_time='2021-10-31 03:00:00')
                            
    btcusdt.sma(21)
    
    btcusdt.plot()
    

Greetings

Thank you for the pandas_ta people for that great library.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

binpan-0.0.78.tar.gz (73.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page