Giter VIP home page Giter VIP logo

tai's Introduction

Tai - Orchestrate Your Trading

Build Status Coverage Status hex.pm version

A composable, real time, market data and trade execution toolkit. Built with Elixir, runs on the Erlang virtual machine

Getting Started | Built with Tai | Commands | Architecture | Examples | Configuration | Observability

What Can I Do? TLDR;

Stream market data to create and manage orders with a near-uniform API across multiple venues

Here's an example of an advisor that logs the spread between multiple products on multiple venues

asciicast

Supported Venues

Venues Live Order Book Accounts Orders Products Fees
FTX [x] [x] [x] [x] [x]
OkEx [x] [x] [x] [x] [x]
BitMEX [x] [x] [x] [x] [x]

Venues In Progress

Venue Live Order Book Accounts Orders Products Fees
Binance [x] [x] [ ] [x] [x]
Deribit [x] [x] [ ] [x] [x]
GDAX [x] [x] [ ] [x] [x]
Huobi [x] [ ] [ ] [x] [ ]
Delta Exchange [x] [ ] [ ] [x] [x]
Bybit [ ] [ ] [ ] [x] [ ]
bit.com [ ] [ ] [ ] [ ] [ ]
Bitfinex [ ] [ ] [ ] [ ] [ ]
Kraken [ ] [ ] [ ] [ ] [ ]
CME [ ] [ ] [ ] [ ] [ ]
Phemex [ ] [ ] [ ] [ ] [ ]
BTSE [ ] [ ] [ ] [ ] [ ]
KuCoin [ ] [ ] [ ] [ ] [ ]
BitMax [ ] [ ] [ ] [ ] [ ]
Bitget [ ] [ ] [ ] [ ] [ ]
MEXC [ ] [ ] [ ] [ ] [ ]
PrimeXBT [ ] [ ] [ ] [ ] [ ]
Gate.io [ ] [ ] [ ] [ ] [ ]
Coinflex [ ] [ ] [ ] [ ] [ ]
bitFlyer [ ] [ ] [ ] [ ] [ ]

Install

tai requires Elixir 1.11+ & Erlang/OTP 22+. Add tai to your list of dependencies in mix.exs

def deps do
  [
    {:tai, "~> 0.0.75"}
    # Choose your order data store
    # {:ecto_sqlite3, "~> 0.5.6"}
    # {:postgrex, "~> 0.15"}
  ]
end

Create an .iex.exs file in the root of your project and import the tai helper

# .iex.exs
Application.put_env(:elixir, :ansi_enabled, true)

import Tai.IEx

Run the setup mix task to:

  • Download dependencies
  • Create an orders database
  • Generate tai migrations for the orders database
  • Run migrations
$ mix setup

Usage

tai runs as an OTP application.

During development we can leverage mix to compile and run our application with an interactive Elixir shell that imports the set of tai helper commands.

iex -S mix

Upgrading Tai

Bump the required version number in mix.exs and download the dependencies.

$ mix deps.update tai

Regenerate new or updated migrations

$ mix tai.gen.migration

Rerun ecto migrations

$ mix ecto.migrate

Help Wanted :)

If you think this tai thing might be worthwhile and you don't see a feature or venue listed we would love your contributions to add them! Feel free to drop us an email or open a Github issue.

Authors

License

tai is released under the MIT license

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.