GithubHelp home page GithubHelp logo

le025 / binance-asset-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmackenz/binance-asset-manager

0.0 0.0 0.0 4 KB

Extension of binance-python to automatically calculate balances and trade any trading pair.

Python 100.00%

binance-asset-manager's Introduction

Binance Asset Manager

This is an extension of binance-python library to automatically calculate Binance API filter restrictions and trade any trading pair. Given an API key and API secret, this library will automatically move all of your holdings in one currency to another currency on Binance. This library does all of the complex filters required for the Binance API in the background and boils the code down to a simple buy() and sell() method.

from keys import api_key, api_secret
base_currency = 'USDT'
coin_currency = 'BTC'

bh = BinanceHelper.BinanceHelper(api_key, api_secret, base_currency, coin_currency)

# Automatically calculate step size, tick size, float precision and balance to work with API filters.

# Decide to sell.
if SELL:
  
  # transfer entire holding of coin_currency into base_currency.
  bh.sell()

# Decide to buy.
else:

  # transfer entire holding of base_currency into coin_currency.
  bh.buy()

binance-asset-manager's People

Contributors

dmackenz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.