Git Product home page Git Product logo

poloniexprofit's Introduction

Polo Stats

This program gives detailed overview of your last trades based on your current poloniex balances

Installation

  1. Clone the repository
git clone https://github.com/araa47/PoloniexProfit.git 
  1. Cd into the repository
cd PoloniexProfit 
  1. You can either follow A OR B

A: System Install

  1. Install to usr/local python library
sudo pip install -r requirements.txt 

B: Virtual Environment Install

  1. Cd to a directory outside
cd ..
  1. Create a virtualenviroment , here i have named mine pypolo
virtualenv pypolo 
  1. Activate the virtualenvironment
source pypolo/bin/activate
  1. Cd into the project
cd PoloniexProfit 
  1. Now locally install the requirements
pip install -r requirements.txt

API Key Configuration

  1. Open sample_apikey.py and enter your poloniex api key and secret

  2. Rename the file to apikey.py

Running

In order to run the simple program, you need to give it a single parameter which is the amount of time between updates. In this example I have set my time to 2 seconds.

python stats.py -l 2

Mock Output

Image of Output

Extra Details

  1. Currently the program only calculates BTC to other currency trades

  2. The program only works on the latest trade history. For example: You bought some ripple at 0.00011 and sold at 0.00021. Next you buy more ripple at 0.15. The program will only calculate your gains from the last trade. However your total gain can be seen by checking your total portfolio value.

poloniexprofit's People

Contributors

araa47 avatar

Watchers

 avatar  avatar

poloniexprofit's Issues

error

python stats.py -l 2
Traceback (most recent call last):
File "stats.py", line 225, in
main_program(sleep)
File "stats.py", line 205, in main_program
btc_usd, portfolio = get_overview(currency_pair)
File "stats.py", line 88, in get_overview
history = history_main[cur]
KeyError: 'BTC_USDT'

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.