oi

package
v0.0.0-...-24c361e Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OI

type OI struct {
	ExchangeName       string  `json:"exchangeName"`
	Symbol             string  `json:"symbol"`
	Price              float64 `json:"price"`
	OpenInterest       float64 `json:"openInterest"`
	OpenInterestAmount float64 `json:"openInterestAmount"`
	VolUsd             float64 `json:"volUsd"`
	Rate               float64 `json:"rate"`
	H24Change          float64 `json:"h24Change"`
	H1OIChangePercent  float64 `json:"h1OIChangePercent"`
	H4OIChangePercent  float64 `json:"h4OIChangePercent"`
}

type OIWithChart

type OIWithChart struct {
	DateList  []int            `json:"dateList,omitempty"`
	PriceList []float64        `json:"priceList,omitempty"`
	DataMap   map[string][]int `json:"dataMap,omitempty"`
}

type Request

type Request struct {
	Symbol   string `url:"symbol"`
	Interval int    `url:"interval"`
}

func (*Request) Method

func (req *Request) Method() string

func (*Request) Path

func (req *Request) Path() string

func (*Request) Payload

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

func (*Request) Query

func (req *Request) Query() string

type RequestWithChart

type RequestWithChart struct {
	Symbol   string `url:"symbol"`
	Interval int    `url:"interval"`
}

func (*RequestWithChart) Method

func (req *RequestWithChart) Method() string

func (*RequestWithChart) Path

func (req *RequestWithChart) Path() string

func (*RequestWithChart) Payload

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

func (*RequestWithChart) Query

func (req *RequestWithChart) Query() string

type Response

type Response []OI

type ResponseWithChart

type ResponseWithChart OIWithChart

Jump to

Keyboard shortcuts

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