Skip to content

Instantly share code, notes, and snippets.

View idler921's full-sized avatar

Idler idler921

  • Kings
  • Hong Kong
View GitHub Profile
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 28 11:30:01 2019
@author: idler
"""
#import csv
import pandas
@idler921
idler921 / _balancer.py
Last active December 18, 2015 01:59 — forked from prof7bit/.gitignore
"""
The portfolio rebalancing bot will buy and sell to maintain a
constant asset allocation ratio of exactly 20/80 = fiat/BTC
"""
import strategy
import goxapi
DISTANCE = 3 # percent price distance of next rebalancing orders
MARKER = 7 # lowest digit of price to identify bot's own orders