Git Product home page Git Product logo

orderly's Introduction

orderly

A Rust CLI WebSocket client for crypto exchanges. Connects to the WebSocket feeds of multiple exchanges. Subscribes to the live order book for the given currency pair. Publishes a merged order book as a gRPC stream.

Currently supports:

  • Bitstamp WebSocket: wss://ws.bitstamp.net
  • Binance WebSocket: wss://stream.binance.com:9443/ws
  • Kraken WebSocket: wss://ws.kraken.com
  • Coinbase WebSocket: wss://ws-feed.exchange.coinbase.com
USAGE:
    orderly-server [OPTIONS]

OPTIONS:
    -h, --help               Print help information
        --no-binance         (Optional) Don't show Binance in gRPC stream. Default: false
        --no-bitstamp        (Optional) Don't show Bitstamp in gRPC stream. Default: false
        --no-kraken          (Optional) Don't show Kraken in gRPC stream. Default: false
        --no-coinbase        (Optional) Don't show Coinbase in gRPC stream. Default: false
    -p, --port <PORT>        (Optional) Port number on which the the gRPC server will be hosted.
                             Default: 50051
    -s, --symbol <SYMBOL>    (Optional) Currency pair to subscribe to. Default: ETH/BTC

Run gRPC server:

cargo run --bin orderly-server

or with logs and options:

env RUST_LOG=info cargo run --bin orderly-server -- --symbol ETH/BTC --port 50051

Exclude certain exchanges:

cargo run --bin orderly-server -- --no-binance --no-bitstamp

Client

Connects to the gRPC server and streams the orderbook summary.

USAGE:
    orderly-client [OPTIONS]

OPTIONS:
    -h, --help           Print help information
    -p, --port <PORT>    (Optional) Port number of the gRPC server. Default: 50051

Run gRPC client:

cargo run --bin orderly-client

or with logs and options:

env RUST_LOG=info cargo run --bin orderly-client -- --port 50051

orderly's People

Contributors

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