public

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertContractUnit

type ConvertContractUnit publicdata.ConvertContractUnit

type GetDeliveryExerciseHistory

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

func (*GetDeliveryExerciseHistory) String

func (m *GetDeliveryExerciseHistory) String() string

type GetDiscountRateAndInterestFreeQuota

type GetDiscountRateAndInterestFreeQuota struct {
	// uly String 否 标的指数
	Uly string `json:"uly"`
	// ccy String 否 保证金币种,仅适用于 单币种保证金模式 下的 全仓杠杆 订单
	Ccy string `json:"ccy,omitempty"`
	// discountLv String 否 折算率等级 1 :第一档  2 :第二档  3 :第三档4 :第四档  5 :第五档
	DiscountLv float64 `json:"discountLv,string"`
}

func (*GetDiscountRateAndInterestFreeQuota) String

type GetEstimatedDeliveryExercisePrice

type GetEstimatedDeliveryExercisePrice struct {
	// uly String 否 标的指数
	Uly string `json:"uly"`
	// expTime String 否 请求有效截止时间。Unix时间戳的毫秒数格式,如  1597026383085 无效的expTime
	ExpTime string `json:"expTime,omitempty"`
}

func (*GetEstimatedDeliveryExercisePrice) String

type GetFundingRate

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

func (*GetFundingRate) String

func (m *GetFundingRate) String() string

type GetFundingRateHistory

type GetFundingRateHistory struct {
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId"`
	// after String 否 请求此时间戳之前(更旧的数据)的分页内容,传的值为对应接口的fundingTime
	After int64 `json:"after,omitempty,string"`
	// before String 否 请求此时间戳之后(更新的数据)的分页内容,传的值为对应接口的fundingTime
	Before int64 `json:"before,omitempty,string"`
	//limit String 分页返回的结果集数量,最大为100,不填默认返回100条
	Limit int64 `json:"limit,omitempty,string"`
}

type GetInstruments

type GetInstruments struct {
	// uly String 否 标的指数
	Uly string `json:"uly,omitempty"`
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId,omitempty"`
	// instType String 产品类型 SPOT :币币 MARGIN :币币杠杆 SWAP :永续合约  FUTURES :交割合约    OPTION :期权 交易产品类型不匹配指数(instType和uly不匹配)
	InstType okapi.InstrumentType `json:"instType"`
}

func (*GetInstruments) String

func (m *GetInstruments) String() string

type GetLimitPrice

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

func (*GetLimitPrice) String

func (m *GetLimitPrice) String() string

type GetLiquidationOrders

type GetLiquidationOrders struct {
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId,omitempty"`
	// ccy String 否 保证金币种,仅适用于 单币种保证金模式 下的 全仓杠杆 订单
	Ccy string `json:"ccy,omitempty"`
	// uly String 否 标的指数
	Uly string `json:"uly,omitempty"`
	// 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"`
	// instType String 产品类型 SPOT :币币 MARGIN :币币杠杆 SWAP :永续合约  FUTURES :交割合约    OPTION :期权 交易产品类型不匹配指数(instType和uly不匹配)
	InstType okapi.InstrumentType `json:"instType"`
	// mgnMode String 是 保证金模式   cross :全仓 ;  isolated :逐仓
	MgnMode okapi.MarginMode `json:"mgnMode,omitempty"`
	// alias String 合约日期别名 this_week :本周  next_week :次周quarter :季度 next_quarter :次季度  仅适用于 交割
	Alias okapi.AliasType `json:"alias,omitempty"`
	// state String 订单状态    canceled :撤单成功 live :等待成交partially_filled :部分成交 filled :完全成交
	State okapi.OrderState `json:"state,omitempty"`
}

func (*GetLiquidationOrders) String

func (m *GetLiquidationOrders) String() string

type GetMarkPrice

type GetMarkPrice struct {
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId,omitempty"`
	// uly String 否 标的指数
	Uly string `json:"uly,omitempty"`
	// instType String 产品类型 SPOT :币币 MARGIN :币币杠杆 SWAP :永续合约  FUTURES :交割合约    OPTION :期权 交易产品类型不匹配指数(instType和uly不匹配)
	InstType okapi.InstrumentType `json:"instType"`
}

func (*GetMarkPrice) String

func (m *GetMarkPrice) String() string

type GetOpenInterest

type GetOpenInterest struct {
	// uly String 否 标的指数
	Uly string `json:"uly,omitempty"`
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId,omitempty"`
	// instType String 产品类型 SPOT :币币 MARGIN :币币杠杆 SWAP :永续合约  FUTURES :交割合约    OPTION :期权 交易产品类型不匹配指数(instType和uly不匹配)
	InstType okapi.InstrumentType `json:"instType"`
}

func (*GetOpenInterest) String

func (m *GetOpenInterest) String() string

type GetOptionMarketData

type GetOptionMarketData struct {
	// uly String 否 标的指数
	Uly string `json:"uly"`
	// expTime String 否 请求有效截止时间。Unix时间戳的毫秒数格式,如  1597026383085 无效的expTime
	ExpTime string `json:"expTime,omitempty"`
}

func (*GetOptionMarketData) String

func (m *GetOptionMarketData) String() string

type GetPositionTiers

type GetPositionTiers struct {
	// instId String 是 产品ID,如  BTC-USD-190927-5000-C instId和instType不匹配 查询条件中的instId的交易产品当前不是可交易状态,请填写单个instid逐个查询状态详情 instId {0} 报价不可以超过你预设的价格限制
	InstID string `json:"instId,omitempty"`
	// uly String 否 标的指数
	Uly string `json:"uly,omitempty"`
	// instType String 产品类型 SPOT :币币 MARGIN :币币杠杆 SWAP :永续合约  FUTURES :交割合约    OPTION :期权 交易产品类型不匹配指数(instType和uly不匹配)
	InstType okapi.InstrumentType `json:"instType"`
	// tdMode String 是 交易模式 保证金模式: isolated :逐仓 ; cross :全仓  非保证金模式: cash :非保证金
	TdMode okapi.TradeMode `json:"tdMode"`
	// tier String 否 查指定档位
	Tier okapi.JSONInt64 `json:"tier,omitempty"`
}

func (*GetPositionTiers) String

func (m *GetPositionTiers) String() string

type GetUnderlying

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

func (*GetUnderlying) String

func (m *GetUnderlying) String() string

type Status

type Status struct {
	// state String 订单状态    canceled :撤单成功 live :等待成交partially_filled :部分成交 filled :完全成交
	State string `json:"state,omitempty"`
}

func (*Status) String

func (m *Status) String() string

Jump to

Keyboard shortcuts

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