Giter Club home page Giter Club logo

stardust's Introduction

Stardust

A simple trading bot engine

Why Stardust

Stardust is a simple algorithmic trading framework. Its a framework and not a full-fledged website or an app that can be directly used. It has an algorithmic trading engine and provides a set of APIs to interact with this engine. This framework can be used to create the trading bots and other cool stuff.

What it can do

Stardust has the following components:

  1. Algorithmic trading engine (trading bot engine)
  2. Plugin-like mechanism to create the templates for the algorithm that a user can customize (trading bot algorithms)
  3. REST API engine to interact with the engine
  4. Historical SDEX data importer and a backtesting engine (to test bots performance with historical data)

Following is a high-level architecture diagram of the Stardust: Architecture

Work in progress

Stardust is still a work in progress and needs improvement in the following areas:

  1. Multiuser authentication is not enabled (but has necessary hooks and database schema to enable multiuser usage)
  2. Backtesting engine needs performance improvement (currently single threaded)
  3. Documentation to explain how to customize the algorithms
  4. Client implementation (currently only REST APIs are supported)

Installation

To install run the following commands:

#create virtualenv
virtualenv -p python3 venv
. venv/bin/activate
#install dependencies
pip install -r requirements.txt
#install stardust
python setup.py install

Configuration

All configuration is done in engine.yaml file.

Create the necessary tables in respective .db files in SQLite. Refer db.schema file for DB creation DML queries.

Running

To run execute following command

# start data importer
importer.sh -c /path/of/engine.yaml
# start backtesting engine
backtester.sh -c /path/of/engine.yaml
# start trading engine
engine.sh -c /path/of/engine.yaml

Guides

Refer following documentation for interfacing and customizing the engine.

  1. Algorithm design guide
  2. REST API Guide

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.