market

package
v0.0.0-...-fd5bc48 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReqKLineResponse

type ReqKLineResponse struct {
	Rep string `json:"rep"`

	Status string `json:"status"`

	Id string `json:"id"`

	Wsid int64 `json:"wsid"`

	Data []struct {
		Id int64 `json:"id"`

		Vol float32 `json:"vol"`

		Count float32 `json:"count"`

		Open float32 `json:"open"`

		Close float32 `json:"close"`

		Low float32 `json:"low"`

		High float32 `json:"high"`

		Amount float32 `json:"amount"`

		TradeTurnover float32 `json:"trade_turnover"`
	} `json:"data"`
}

type ReqTradeDetailResponse

type ReqTradeDetailResponse struct {
	Rep string `json:"rep"`

	Status string `json:"status"`

	Id string `json:"id"`

	Ts int64 `json:"ts"`

	Data []struct {
		Id int64 `json:"id"`

		Price string `json:"price"`

		Amount string `json:"amount"`

		Direction string `json:"direction"`

		Ts int64 `json:"ts"`

		Quantity string `json:"quantity"`

		TradeTurnover string `json:"trade_turnover"`
	} `json:"data"`
}

type SubBBOResponse

type SubBBOResponse struct {
	Ch string `json:"ch"`

	Ts int64 `json:"ts"`

	Tick struct {
		Ch string `json:"ch"`

		Mrid int64 `json:"mrid"`

		Id int64 `json:"id"`

		Ask []float32 `json:"ask"`

		Did []float32 `json:"bid"`

		Version int64 `json:"version"`

		Ts int64 `json:"ts"`
	} `json:"tick"`
}

type SubDepthResponse

type SubDepthResponse struct {
	Ch string `json:"ch"`

	Ts int64 `json:"ts"`

	Tick struct {
		Mrid int64 `json:"mrid"`

		Id int64 `json:"id"`

		Asks [][]float32 `json:"asks"`

		Bids [][]float32 `json:"bids"`

		Ts int64 `json:"ts"`

		Version int64 `json:"version"`

		Ch string `json:"ch"`

		TickEvent string `json:"event,omitempty"`
	} `json:"tick"`
}

type SubKLineResponse

type SubKLineResponse struct {
	Ch string `json:"ch"`

	Ts int64 `json:"ts"`

	Tick struct {
		Id int64 `json:"id"`

		Mrid int64 `json:"mrid"`

		Vol float32 `json:"vol"`

		Count float32 `json:"count"`

		Open float32 `json:"open"`

		Close float32 `json:"close"`

		Low float32 `json:"low"`

		High float32 `json:"high"`

		Amount float32 `json:"amount"`

		TradeTurnover float32 `json:"trade_turnover"`

		Ask []float32 `json:"ask,omitempty"`

		Bid []float32 `json:"bid,omitempty"`
	} `json:"tick"`
}

type SubTradeDetailResponse

type SubTradeDetailResponse struct {
	Ch string `json:"ch"`

	Ts int64 `json:"ts"`

	Tick struct {
		Id int64 `json:"id"`

		Ts int64 `json:"ts"`

		Data []struct {
			Amount float32 `json:"amount"`

			Ts int64 `json:"ts"`

			Id int64 `json:"id"`

			Price float32 `json:"price"`

			Direction string `json:"direction"`

			Quantity float32 `json:"quantity"`

			TradeTurnover float32 `json:"trade_turnover"`
		} `json:"data"`
	} `json:"tick"`
}

Jump to

Keyboard shortcuts

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