Giter Site home page Giter Site logo

sessa's Introduction

Synopsis

A cryptocurrency trader bot (only works on BitMex right now).

Installation

requires a redis db.

add redis db details to config.js

npm install the modules in package.json dependencies.

When in production change config.js key 'testnet' to false

Create a keys.js file

Not ideal, but this is how you change strategy and timeframe

Strategy can be changed in the strategy.js file

Time frame can be changed in the main.js file

keys.js

const keys = {};
keys.testnet = {};
keys.testnet.key = '';       // your testnet key
keys.testnet.secret = '';    // your testnet secret
keys.production = {};
keys.production.key = '';   // your production key
keys.production.secret = '';// your production secret
module.exports = keys;

Running

run delta/delta.js to start collecting data

run main.js for trading.

alternatively just run start-sessa (requires forever to be installed)

Backtesting

A backtesting suite is included, just run backtest.js for additional help.

Note on BitMEX Library

This program uses an older modified version of the BitMEX library, since the original BitMEX library handled dropped connections extremely poorly. It has some issues since the original BitMEX library has been updated a few times. Ideally, in a future version we'll include a simple patch you could apply to whatever was the current BitMEX library.

Known Issues and Bugs

See BUGS file

License

MIT License Copyright (c) 2017 Abdulla Faraz.

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.