All Projects → salimane → cryptodiversify

salimane / cryptodiversify

Licence: MIT License
Automatically check your portfolio on the Binance exchange and advice you on rebalancing your portfolio into the top 20 cryptocurrencies by market capitalization

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to cryptodiversify

BitView
A crypto portfolio written in Flutter. It supports Binance, Bittrex, HitBTC, Coinbase, Coinbase Pro and Mercatox
Stars: ✭ 50 (+16.28%)
Mutual labels:  portfolio, binance, binance-api
CryptoCurrency
Page to keep track of value & profits of a portfolio of cryptocurrency (based on Coinmarketcap, Bitfinex and Binance)
Stars: ✭ 27 (-37.21%)
Mutual labels:  portfolio, coinmarketcap, binance
binapi
Binance API C++ implementation
Stars: ✭ 129 (+200%)
Mutual labels:  binance, binance-api
Bybit-Auto-Trading-Bot-Ordes-placed-via-TradingView-Webhook
Python based Trading Bot that uses TradingView.com webhook JSON alerts to place orders(buy/sell/close/manage positions/TP/SL/TS etc.) on Bybit.com. Hire me directly here https://www.freelancer.com/u/Beannsofts for any assistance
Stars: ✭ 235 (+446.51%)
Mutual labels:  binance, binance-api
binance-spot-order-notification-heoku
[binance order trade fill notification] Telegram Notification when Binance order created, cancelled or filled. Ready to Deploy on Heroku
Stars: ✭ 30 (-30.23%)
Mutual labels:  binance, binance-api
unicorn-binance-suite
The UNICORN Binance Suite is a Python Meta Package of unicorn-fy, unicorn-binance-local-depth-cache, unicorn-binance-rest-api, unicorn-binance-trailing-stop-loss and unicorn-binance-websocket-api.
Stars: ✭ 35 (-18.6%)
Mutual labels:  binance, binance-api
binance-technical-algorithm
Technical trading algorithm for Binance
Stars: ✭ 44 (+2.33%)
Mutual labels:  binance, binance-api
twitter-crypto-bot
This is a Twitter bot that tweets about cryptocurrencies prices every certain amount of minutes
Stars: ✭ 21 (-51.16%)
Mutual labels:  binance, binance-api
binance-rs-async
Async client for the Binance APIs
Stars: ✭ 74 (+72.09%)
Mutual labels:  binance, binance-api
binancer
An R client to the Public Rest API for Binance.
Stars: ✭ 51 (+18.6%)
Mutual labels:  binance, binance-api
multi pairs martingle bot
A muti pairs martingle trading bot for Binance exchange.
Stars: ✭ 55 (+27.91%)
Mutual labels:  binance, binance-api
binance-connector-dotnet
Lightweight connector for integration with Binance API
Stars: ✭ 77 (+79.07%)
Mutual labels:  binance, binance-api
binance-client-websocket
🛠️ C# client for Binance websocket API
Stars: ✭ 41 (-4.65%)
Mutual labels:  binance, binance-api
Twitter Activated Crypto Trading Bot
Buys crypto through keyword detection in new tweets. Executes buy in 1 second and holds for a given time (e.g. Elon tweets 'doge', buys Dogecoin and sells after 5 minutes). Tested on Kraken and Binance exchanges
Stars: ✭ 92 (+113.95%)
Mutual labels:  binance, binance-api
coinmarketcap-icons-cryptos
Repository of all crypto icons, and allows you to download all images of icons of crypto currencies listed on the coinmarketcap site 9129 icons
Stars: ✭ 17 (-60.47%)
Mutual labels:  coinmarketcap, binance
binance-downloader
Python tool to download Binance Candlestick (k-line) data from REST API
Stars: ✭ 44 (+2.33%)
Mutual labels:  binance, binance-api
java-binance-api
Java Binance API Client
Stars: ✭ 72 (+67.44%)
Mutual labels:  binance, binance-api
hands-on-elixir-and-otp-cryptocurrency-trading-bot
Source code to generate the "Hands-on Elixir & OTP: Cryptocurrency trading bot" book
Stars: ✭ 210 (+388.37%)
Mutual labels:  binance, binance-api
howtrader
Howtrader is a crypto currency quant framework, you can easily develop, backtest and run your own strategy in real market. It also supports tradingview or other 3rd party signals, just simply send a post request and it will help trade automatically. Now it only support binance spot, futures and inverse futures exchange. It will support okex, ftx…
Stars: ✭ 294 (+583.72%)
Mutual labels:  binance, binance-api
binance-bot
Very simple binance trading Bot using Binance REST API
Stars: ✭ 108 (+151.16%)
Mutual labels:  binance, binance-api

cryptodiversify

Build Status Maintenance

Automatically check your portfolio on the Binance exchange and advice you on rebalancing your portfolio into the top 20 cryptocurrencies by market capitalization.

Example

Coin              % Optimal  % Current  Optimal Amount       % Divergence    BUY                  SELL

bitcoin           10.00      10.57      0.008319037083134169  -5.42                                0.0004768099168658307
ethereum          10.00      9.50       0.11374289215895854   5.27            0.005694237158958537
ripple            10.00      9.83       88.94362214163014     1.74
bitcoin-cash      10.00      10.40      0.05405687847437973   -3.89
eos               10.00      10.60      3.769455245585323     -5.68                                0.2268937544146773
cardano           7.15       7.05       151.62943088392988    1.47
litecoin          6.46       6.33       0.32924505647911273   2.04
stellar           6.24       6.11       108.6101863258544     2.08
iota              4.30       4.23       16.255542418832175    1.70
tron              4.24       4.17       384.5150471381602     1.56
neo               3.85       3.79       0.3801398616726232    1.74
monero            3.07       2.99       0.09344853195578331   2.79
dash              2.96       2.91       0.04699815459345396   1.83
nem               2.88       2.83       52.63475007774783     1.71
vechain           1.72       1.67       3.0749170564285194    2.60
ethereum-classic  1.64       1.61       0.5931927386020068    1.85
qtum              1.46       1.44       0.5179110625799085    1.65
omisego           1.38       1.36       0.596776023220714     1.49
icon              1.35       1.33       2.264647249669606     1.46
binance-coin      1.29       1.27       0.6669483114341143    1.87

Estimated Total Value:    $788.0573914630499

How does it work ?

The algorithm takes the top 20 coins by market capitalization and assign each coin a % allocation based on their weighted market capitalization.

Then it caps every coin to be at most 10% of the total portfolio value. Anything above 10% gets redistributed to all the coins below by weighted market capitalization until the entire sum of the portfolio adds up to 100%.

It then fetches your current portofolio on the Binance exchange and suggests a buy and sell strategy based on the divergence of the % allocated if the divergence is greater than 10%.

Cost / Benefit

For a long term cryptocurrency strategy, you want to keep your portfolio at a similar risk profile to the original design. If you don’t “reset”, one asset can overwhelm your entire portfolio. This is a starting point for users who want to make a bet on the entire crypto market.

Don’t bet it all on one coin, you should bet on the long-term success of the whole cryptocurrency market.

Which exchange does it support ?

It only currently supports the Binance exchange

How can I trust this with my API Keys?

The code runs on your computer, the API keys are on your computer. The APIs keys should be trade-only and are only used to fetch your current Binance portfolio.

Prerequisites

  • Binance Account. If you haven't set up an account yet,register here.
  • Trade-only API Keys, generate an API Key and assign relevant permissions. Only enable trade-only permissions.
  • $200 USD in Cryptocurrencies (The minimum $200 protects investors from Binance's minimum trading limit and make sure that diversified portfolios can be created properly.)
  • Git
  • A working Python 3.6.5 installation with virtualenv and pip. **
    # Mac OS X
    brew update
    brew install pyenv pyenv-virtualenv
    pyenv install 3.7.1

Setup

  • Clone repository with git clone https://github.com/salimane/cryptodiversify.git
  • Copy config/config.py.example,and save as config/config.py
  • Edit config/config.py, customize configuration and add your trade-only binance api keys
  • Run make setup

Running

  • Run in console with python hodl.py

TODO

  • Online trading via APIs
  • Multiple exchanges

Contributing

Our goal is for this project to be used by the cryptocurrency community to maximize their investment, so we'd love your input! Got a question or an idea? Create an issue or a pull-request.

Maintainers

Copyright Notice

Copyright (C) 2018 Salimane Adjao Moustapha, authors, and contributors. Licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].