liquidation

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 Liquidation

type Liquidation struct {
	SellQty float64 `json:"sellQty"`
	BuyQty  float64 `json:"buyQty"`

	PriceList []float64 `json:"priceList"`
	SellList  []float64 `json:"sellList"`
	BuyList   []float64 `json:"buyList"`
	VolList   []float64 `json:"volList"`
	NumList   []int     `json:"numList"`
	DateList  []int64   `json:"dateList"`
}

type Request

type Request struct {
	Symbol string `url:"symbol,omitempty"`
	ExName string `url:"exName,omitempty"`
}

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"`
	TimeType string `url:"timeType"`
}

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 Liquidation

type ResponseWithChart

type ResponseWithChart []WithChart

type WithChart

type WithChart struct {
	BuyVolUsd          float64 `json:"buyVolUsd"`
	SellVolUsd         float64 `json:"sellVolUsd"`
	BuyQty             float64 `json:"buyQty"`
	SellQty            float64 `json:"sellQty"`
	BuyTurnoverNumber  int     `json:"buyTurnoverNumber"`
	SellTurnoverNumber int     `json:"sellTurnoverNumber"`
	TurnoverNumber     int     `json:"turnoverNumber"`
	Price              float64 `json:"price"`
	List               []struct {
		ExchangeName       string  `json:"exchangeName"`
		BuyVolUsd          float64 `json:"buyVolUsd"`
		SellVolUsd         float64 `json:"sellVolUsd"`
		TurnoverNumber     int     `json:"turnoverNumber"`
		BuyTurnoverNumber  int     `json:"buyTurnoverNumber"`
		SellTurnoverNumber int     `json:"sellTurnoverNumber"`
		SellQty            float64 `json:"sellQty"`
		BuyQty             float64 `json:"buyQty"`
	} `json:"list"`
	CreateTime int64 `json:"createTime"`
}

Jump to

Keyboard shortcuts

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