market

package
v0.0.0-...-3071a76 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCandlesticks

type GetCandlesticks struct {
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId"`
	// after String 否 请求此ID之前(更旧的数据)的分页内容,传的值为对应接口的 ordId
	After int64 `json:"after,omitempty,string"`
	// before String 否 请求此ID之后(更新的数据)的分页内容,传的值为对应接口的 ordId 时间戳分页时,不支持使用before参数
	Before int64 `json:"before,omitempty,string"`
	// limit String 否 返回结果的数量,最大为100,默认100条
	Limit int64 `json:"limit,omitempty,string"`
	// bar String 否 时间粒度,默认值 1m 如 [1m/3m/5m/15m/30m/1H/2H/4H]香港时间开盘价k线:[6H/12H/1D/2D/3D/1W/1M/3M/6M/1Y] UTC时间开盘价k线:[/6Hutc/12Hutc/1Dutc/2Dutc/3Dutc/1Wutc/1Mutc/3Mutc/6Mutc/1Yutc]
	Bar okapi.BarSize `json:"bar,omitempty"`
}

func (*GetCandlesticks) String

func (m *GetCandlesticks) String() string

type GetIndexComponents

type GetIndexComponents struct {
	// index String 是 指数,如  BTC-USDT
	Index string `json:"index"`
}

func (*GetIndexComponents) String

func (m *GetIndexComponents) String() string

type GetIndexTickers

type GetIndexTickers struct {
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId,omitempty"`
	// quoteCcy String 计价货币币种,如  BTC-USDT 中的 USDT
	QuoteCcy string `json:"quoteCcy,omitempty"`
}

func (*GetIndexTickers) String

func (m *GetIndexTickers) String() string

type GetOrderBook

type GetOrderBook struct {
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId"`
	// sz String 是 委托数量
	Sz int `json:"sz,omitempty,string"`
}

func (*GetOrderBook) String

func (m *GetOrderBook) String() string

type GetTickers

type GetTickers struct {
	// uly String 否 标的指数
	Uly string `json:"uly,omitempty"`
	// instType String 产品类型 SPOT :币币 MARGIN :币币杠杆 SWAP :永续合约  FUTURES :交割合约    OPTION :期权 交易产品类型不匹配指数(instType和uly不匹配)
	InstType okapi.InstrumentType `json:"instType"`
}

func (*GetTickers) String

func (m *GetTickers) String() string

type GetTrades

type GetTrades struct {
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId"`
	// limit String 否 返回结果的数量,最大为100,默认100条
	Limit int64 `json:"limit,omitempty,string"`
}

func (*GetTrades) String

func (m *GetTrades) String() string

Jump to

Keyboard shortcuts

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