ticker

package
v0.0.0-...-30c84b1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const PATH = "/v1/getticker"

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

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

func New

func New(product types.ProductCode) *Request

func (*Request) Method

func (p *Request) Method() string

func (*Request) Path

func (p *Request) Path() string

func (*Request) Payload

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

func (*Request) Query

func (p *Request) Query() string

type Response

type Response struct {
	ProductCode types.ProductCode `json:"product_code"`

	LTP             float64            `json:"ltp"`
	BestBid         float64            `json:"best_bid"`
	BestAsk         float64            `json:"best_ask"`
	BestBidSize     float64            `json:"best_bid_size"`
	BestAskSize     float64            `json:"best_ask_size"`
	TotalBidDepth   float64            `json:"total_bid_depth"`
	TotalAskDepth   float64            `json:"total_ask_depth"`
	Volume          float64            `json:"volume"`
	VolumeByProduct float64            `json:"volume_by_product"`
	Timestamp       types.ExchangeTime `json:"timestamp"`

	TickID int `json:"tick_id"`
}

Jump to

Keyboard shortcuts

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