gdax

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const API_ROOT = "https://api.gdax.com"
View Source
const WS_FEED_URL = "wss://ws-feed.gdax.com"

Variables

This section is empty.

Functions

func TickerChannel

func TickerChannel(products []string) map[string]interface{}

Types

type ApiClient

type ApiClient struct {
}

func NewApiClient

func NewApiClient() *ApiClient

func (*ApiClient) Get

func (c *ApiClient) Get(endpoint string) (*http.Response, error)

func (*ApiClient) Products

func (c *ApiClient) Products() ([]Product, error)

type FeedClient

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

func NewFeedClient

func NewFeedClient() *FeedClient

func (*FeedClient) Connect

func (c *FeedClient) Connect() (err error)

func (*FeedClient) Next

func (c *FeedClient) Next() (map[string]interface{}, error)

Next reads the next message into a generic map.

func (*FeedClient) Subscribe

func (c *FeedClient) Subscribe(channels ...interface{}) error

type Product

type Product struct {
	Id                string `json:"id"`
	DisplayName       string `json:"display_name"`
	QuoteIncrementRaw string `json:"quote_increment"`
}

Jump to

Keyboard shortcuts

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