• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    Elixir
  • License
    MIT License
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

From Idea to Execution - Manage your trading operation across a distributed cluster

Workbench - From Idea to Execution

Build Status hex.pm version

Manage your trading operation across a distributed cluster

Install | Usage | Features | Requirements | Configuration | Observability

Project Goals

workbench strives to provide a first class development environment that brings the same productivity and performance benefits from the Phoenix & Elixir community to real time algorithmic and quant workflows.

Install

Add workbench to your list of dependencies in mix.exs

def deps do
  [
    {:workbench, "~> 0.0.18"}
  ]
end

Generate migrations

$ mix workbench.gen.migration

Run migrations

$ mix ecto.migrate

Features

Stream Real Time Orders

stream-real-time-orders

Remotely Control Trade Instances in a Cluster

remote-control-trade

Live Portfolio Tracking & Historical Snapshots

live-balance-snapshots

Track Cold Storage

wallets

Explore Products within the Trading Universe

products-index products-show

Receive Notifications

notifications

Monitor Operations Across Your Cluster

dashboard-beam-vm-health

dashboard-tai-health

dashboard-balances

Usage

Running workbench as a standalone endpoint

Add the workbench phoenix endpoint to your config

config :workbench, WorkbenchWeb.Endpoint,
  http: [port: 4000],
  url: [host: "workbench.localhost", port: "4000"],

Embedding workbench in your own Elixir project

There are two options for running workbench along side your existing Elixir projects

  1. Plug & Phoenix provide the ability to host multiple endpoints as servers on different ports
# config/config.exs
# Phoenix endpoints
config :my_app, MyAppWeb.Endpoint,
  pubsub_server: MyApp.PubSub,
  http: [port: 4000],
  url: [host: "my-app.localhost", port: "4000"],
  live_view: [signing_salt: "aolmUusQ6//zaa5GZHu7DG2V3YAgOoP/"],
  secret_key_base: "vKt36v4Gi2Orw8b8iBRg6ZFdzXKLvcRYkk1AaMLYX0+ry7k5XaJXd/LY/itmoxPP",
  server: true

config :workbench, WorkbenchWeb.Endpoint,
  pubsub_server: Tai.PubSub,
  http: [port: 4001],
  url: [host: "workbench.localhost", port: "4001"],
  live_view: [signing_salt: "aolmUusQ6//zaa5GZHu7DG2V3YAgOoP/"],
  secret_key_base: "xKt36v4Gi2Orw8b8iBRg6ZFdzXKLvcRYkk1AaMLYX0+ry7k5XaJXd/LY/itmoxPP",
  server: true
  1. Use a proxy to host multiple endpoints on the same port https://github.com/jesseshieh/master_proxy
# mix.exs
def deps do
  [{:master_proxy, "~> 0.1"}]
end
# config/config.exs
# Phoenix endpoints
config :niex, MyAppWeb.Endpoint,
  pubsub_server: Tai.PubSub,
  live_view: [signing_salt: "aolmUusQ6//zaa5GZHu7DG2V3YAgOoP/"],
  secret_key_base: "vKt36v4Gi2Orw8b8iBRg6ZFdzXKLvcRYkk1AaMLYX0+ry7k5XaJXd/LY/itmoxPP",
  server: false,
  debug_errors: true,
  check_origin: false

config :workbench, WorkbenchWeb.Endpoint,
  pubsub_server: Tai.PubSub,
  live_view: [signing_salt: "polmUusQ6//zaa5GZHu7DG2V3YAgOoP/"],
  secret_key_base: "xKt36v4Gi2Orw8b8iBRg6ZFdzXKLvcRYkk1AaMLYX0+ry7k5XaJXd/LY/itmoxPP",
  server: false,
  debug_errors: true,
  check_origin: false


# Master Proxy
config :master_proxy,
  # any Cowboy options are allowed
  http: [:inet6, port: 4000],
  # https: [:inet6, port: 4443],
  backends: [
    %{
      host: ~r/my-app.localhost/,
      phoenix_endpoint: MyAppWeb.Endpoint
    },
    %{
      host: ~r/workbench.localhost/,
      phoenix_endpoint: WorkbenchWeb.Endpoint
    }
  ]

Development

You can run the app natively on the host

$ docker-compose up db
$ mix setup
$ mix phx.server

Or within docker-compose

$ docker-compose up

Wait a few seconds for the app to boot and you should be able to view the app at http://workbench.localhost:4000

Test

$ docker-compose up db
$ mix test

Save this and re-open workbench in a private tab

Help Wanted :)

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

Authors

License

workbench is released under the MIT license

More Repositories

1

tai

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

prop

An open and opinionated trading platform using productive & familiar open source libraries and tools for strategy research, execution and operation.
Elixir
46
star
3

history

Download and warehouse historical trading data
Elixir
31
star
4

rube

A multi-chain DeFi development toolkit for Elixir
Elixir
30
star
5

slurp

An EVM block ingestion toolkit for Elixir
Elixir
28
star
6

wrap

Build, Publish & Deploy Elixir Infrastructure to the Cloud with Docker & Terraform
Elixir
22
star
7

slurpee

A GUI frontend to manage blockchain ingestion with slurp
Elixir
20
star
8

notified_phoenix

Phoenix live views for notified
Elixir
17
star
9

navigator

Global navigation between multiple Phoenix endpoints
Elixir
16
star
10

ex_bitmex

BitMEX API Client for Elixir
Elixir
15
star
11

notified

An Elixir library for application notifications
Elixir
14
star
12

ex_binance

Binance API Client for Elixir
Elixir
12
star
13

signaturedb

Distributed, version controlled, SQL database with cryptographically verifiable storage, queries and results. Think git for postgres or pandas.
8
star
14

stored

Store & retrieve structs against various backends with a simple lightweight API
Elixir
8
star
15

with_env

Manage the Elixir application environment within a context
Elixir
7
star
16

transit

A bytes first implementation of the Kafka API within an S3 keyspace
Zig
6
star
17

ex_ftx

FTX API Client for Elixir
Elixir
6
star
18

workshop

Create, manage & improve your automated trading strategies with rich and diverse data sets, a first class local development experience and a progression story for deployment across clouds.
Go
5
star
19

libcluster_gce

Google Compute Engine (GCE) clustering strategy for libcluster. It currently supports identifying nodes based on GCE labels.
Elixir
3
star
20

ex_bybit

Bybit API Client for Elixir
Elixir
3
star
21

tabletop

A curated selection of tools, libraries and services that help tame your dataflow to productively build ambitious, data driven & reactive applications on a streaming lakehouse
Go
3
star
22

siphon

A pull/push extract toolkit with output support for singer
Elixir
2
star
23

stylish

Phoenix view helpers for HTML components styled with tailwindcss
Elixir
2
star
24

deuce

A pairs trading terminal for managing risk & volatility
Elixir
2
star
25

ex_deribit

Deribit API Client for Elixir
Elixir
2
star
26

ex_huobi

Huobi API Client for Elixir
Elixir
2
star
27

ex_polygon

Polygon.io API Client for Elixir
Elixir
2
star
28

desk

An advisor reference library for tai
Elixir
1
star
29

ex_mexc

MEXC API Client for Elixir
Elixir
1
star
30

cloud_control

Airbnb Rental Management
1
star
31

rewind

Backtest historical trading strategies
Elixir
1
star
32

ecto_term

Ecto type for Erlang term format
Elixir
1
star
33

ex_phemex

Phemex API Client for Elixir
Elixir
1
star
34

ex_poloniex

Poloniex API Client for Elixir
Elixir
1
star
35

clustered

Elixir cluster utilities
Elixir
1
star
36

ex_gate_io

Gate.io API Client for Elixir
Elixir
1
star
37

ordered_nary_tree

A map based implementation of a pure Elixir ordered n-ary tree
Elixir
1
star
38

ex_coinglass

Elixir
1
star
39

paged_query

Ecto query helpers for pagination
Elixir
1
star
40

sqlp.zig

A generic SQL parser aiming to support all major dialects
Zig
1
star
41

ex_delta_exchange

Delta.Exchange API Client for Elixir
Elixir
1
star