Giter VIP home page Giter VIP logo

gridtrader-ng's Introduction

Grid Trader

Grid trading algorithm.

Installation

  1. Install python-poloniex from https://github.com/metaperl/python-poloniex

Then type python setup.py install to install it.

  1. Install the 3rd party Python libraries needed: pip install -r requirements.txt

Poloniex API Key

Login to Poloniex and create an API key with trading privileges enabled.

Configuration

Make a logfile directory

mkdir -p src/log/$accountName

Setup a config file for each account

Edit src/config/$accountName.ini per the docs in the .ini file.

(optional) Edit batch/config.ini per the inline docs

Usage

shell> cd src
shell> python gridtrader.py --help
shell> python gridtrader.py --balances $accountName # List balances of account
shell> python gridtrader.py --init $accountName    # Run once to set things up.
shell> python gridtrader.py --monitor $accountName # Run every X minutes (via cron?) over and over.
shell> python gridtrader.py --cancel-all $accountName # Cancels all open orders

Batch execution (optional)

See src/batch/run.py

shell> cd src
shell> python batch/run.py --init $accountName
shell> python batch/run.py --monitor-loop $accountName  # looping calls to python gridtrader.py --monitor $accountName 

WARNINGS

If you change the program code you MUST run --init again. You cannot run --monitor right after a change to the source code. You must --init after that in ALL cases, because of how the serialization of program objects to disk between runs works.

gridtrader-ng's People

Stargazers

Alex Pizarro avatar

Watchers

Structure and Interpretation of Computer Programs 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.