bitfinex

package
v0.0.0-...-e2245cf Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WebsocketAddress - Bitfinex Websocket address.
	WebsocketAddress = "wss://api2.bitfinex.com:3000/ws"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

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

Stream - Bitfinex stream.

func NewStream

func NewStream() (stream *Stream, err error)

NewStream - Creates a new connected Bitfinex stream.

func (*Stream) Close

func (stream *Stream) Close() (err error)

Close - Closes a stream.

func (*Stream) Errors

func (stream *Stream) Errors() <-chan error

Errors - Channel of errors.

func (*Stream) Events

func (stream *Stream) Events() <-chan *orderbook.Event

Events - Channel of orderbook.

func (*Stream) Subscribe

func (stream *Stream) Subscribe(pair *currency.Pair) error

Subscribe - Subscribes to currency pair order book.

Jump to

Keyboard shortcuts

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