Git Product home page Git Product logo

opentrade-1's Introduction

OpenTrade

OpenTrade is an open source OEMS, and algorithmic trading platform, designed for simplicity, flexibility and performance.

Demo

Features:

  • Built on C++17
  • Strictly follows Google C++ Style Guild
  • Multi-level account functionality
  • Super simple API interfaces for market data adapter, exchange connectivity and execution/alpha algo
  • Multi-source market data support, e.g., different FX pricing sources
  • Pre-trade risk limits on multi-level accounts
  • Post-trade risk integrated with OpenRisk
  • Multi-theme web frontend
  • Fully thread-safe design, everything can be modified during runtime, e.g., reload symbol list, modify tick size table, lot-size, exchange timezone and trading/break period etc.
  • Built-in execution simulator
  • Simple configuration

Steps to run on Ubuntu 18.04

  • Compile

    • Prepare dev environment.
    sudo apt update \
    && sudo apt install -y \
      g++  \
      make \
      cmake \
      clang-format \
      clang \
      python \
      python-dev \
      vim \
      exuberant-ctags \
      git \
      wget \
      libssl-dev \
      libboost-program-options-dev \
      libboost-system-dev \
      libboost-date-time-dev \
      libboost-filesystem-dev \
      libboost-iostreams-dev \
      libsoci-dev \
      libpq-dev \
      libquickfix-dev \
      libtbb-dev \
      liblog4cxx-dev
    • Build
    git clone https://github.com/opentradesolutions/opentrade
    cd opentrade
    make debug
  • Setup database

    sudo apt remove --purge postgres*
    sudo apt autoremove
    sudo apt install -y postgresql-10 postgresql-contrib postgresql-client
    wget https://github.com/opentradesolutions/data/raw/master/opentrade-pg_dumpall.sql
    sudo -u postgres psql -f opentrade-pg_dumpall.sql postgres
  • Run opentrade

    • Download tick data files
    cd opentrade
    wget https://raw.githubusercontent.com/opentradesolutions/data/master/bbgids.txt
    wget https://github.com/opentradesolutions/data/raw/master/ticks.txt.xz.part1
    wget https://github.com/opentradesolutions/data/raw/master/ticks.txt.xz.part2
    cat ticks.txt.xz.part1 ticks.txt.xz.part2 > ticks.txt.xz
    xz -d ticks.txt.xz
    • Run
    cp opentrade.conf-example opentrade.conf
    ./opentrade
  • Open Web UI

    # username/password: test/test
    http://localhost:9111
    

The other OS system

we prepared Dockfile-dev for you.

opentrade-1's People

Contributors

open-trade avatar

Stargazers

 avatar  avatar  avatar  avatar  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.