board

package
v0.0.0-...-935a062 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIPath string = "/v1/getboard"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Price float64 `json:"price"`
	Size  float64 `json:"size"`
}

func (Book) String

func (b Book) String() string

type Request

type Request struct {
	ProductCode markets.ProductCode `json:"product_code" url:"product_code"`
}

func (*Request) Method

func (req *Request) Method() string

func (*Request) Payload

func (req *Request) Payload() []byte

func (*Request) Query

func (req *Request) Query() string

type Response

type Response struct {
	MidPrice float64 `json:"mid_price"`
	Bids     []Book  `json:"bids"`
	Asks     []Book  `json:"asks"`
}

Jump to

Keyboard shortcuts

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