gemini

package
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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME     = "gemini"
	FEED_URL = "wss://api.sandbox.gemini.com/v1/marketdata/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Type      string `json:"type"`
	Side      string `json:"side"`
	Price     string `json:"price"`
	Remaining string `json:"remaining"`
	Delta     string `json:"delta"`
	Reason    string `json:"reason"`
}

type Exchange

type Exchange struct {
	// contains filtered or unexported fields
}

func New

func New() *Exchange

func (*Exchange) Subscribe

func (x *Exchange) Subscribe(ctx context.Context, sub exchange.Subscriber, syms ...string) error

type Message

type Message struct {
	Type           string  `json:"type"`
	SocketSequence int     `json:"socket_sequence"`
	EventID        int     `json:"eventId"`
	Timestampms    int     `json:"timestampms"`
	Events         []Event `json:"events"`
}

Jump to

Keyboard shortcuts

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