GithubHelp home page GithubHelp logo

kivu's Introduction

Setup

Start an XI

git clone

cd kivu

virtualenv --python=python3 env

source env/bin/activate

pip install .

pytest

cp config_template config

Then fill in the config. Some example [settings] for use later:

[settings]

xi_url=http://localhost:9000

aes_key=0123456789101112 test=True

target_exchange=binance

target_universe=[ETH,NEO]

excluded_currencies=[]

tolerance_percent=0

global_quote_currency=USD

you can use invoke for everything you're used to (with no more : invoke invoke symbols -e GDAX

pyxi's methods are in the exchanges directory (verbatim, for backward compatibility):

  • kivu.exchanges.xi.decrypt()
  • kivu.exchanges.ccxt.CcxtClient()

AM's non-django-specific logic is in the remaining files (which correspond to their respective x_manager/utils.py from AM):

  • portfolios.py: kivu.portfolios.calculate_altfundx_weights()
  • accounts.py: kivu.accounts.percentagize()
  • orders.py: kivu.orders.cancel_all_open_orders()

backtests.py is a work in progress.

Rebalancing from the command line

invoke equal-rebalance: rebalances to an equal notional value in each asset in the universe, as specified in config settings

ToDos

  • add -e to invoke equal-rebalance instead of/addition to using target_exchange config setting
  • slam rebalancing against a bunch of exchanges and get it to run smoothly

kivu's People

Contributors

ericscheier avatar

Stargazers

Sanyam Bansal avatar

Watchers

James Cloos avatar  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.