obm

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 2 Imported by: 0

README

Order Book Manager (OBM)

The OBM aggregates different exchanges and exposes them through a single API It provides two binaries:obm and obm-ui.

Installation

Building from source

go install github.com/ParadigmFoundation/go-obm/cmd/obm

# optional
go install github.com/ParadigmFoundation/go-obm/cmd/obm-ui

Usage

OBM currently supports coinbase, gemini and binance. You can subscribe to one or more exchange using the flag --exchange with the syntax --exachange=<name>:<symbol>[,symbol|...] For example to subscribe to the pair BTC/USD on coinbase and BTC/USDT and ETH/USDT on binance use:

obm --exchange=coinbase:BTC/USD --exchange=binance:ETH/USDT,BTC/USDT

Once the obm service is running, you can check it's working running obm-ui

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entries

type Entries []*Entry

type Entry

type Entry struct {
	Price    float64 `json:"price"`
	Quantity float64 `json:"quantity"`
}

func NewEntryFromStrings

func NewEntryFromStrings(p, q string) (*Entry, error)

type Update

type Update struct {
	Symbol string
	Time   time.Time
	Bids   Entries
	Asks   Entries
}

Directories

Path Synopsis
cmd
obm
mem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL