publicdata

package
v1.4.65 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryExerciseHistory

type DeliveryExerciseHistory struct {
	Details []*DeliveryExerciseHistoryDetails `json:"details"`
	TS      okex.JSONTime                     `json:"ts"`
}

type DeliveryExerciseHistoryDetails

type DeliveryExerciseHistoryDetails struct {
	InstID string                    `json:"instId"`
	Px     okex.JSONFloat64          `json:"px"`
	Type   okex.DeliveryExerciseType `json:"type"`
}

type DiscountInfo

type DiscountInfo struct {
	DiscountRate okex.JSONInt64 `json:"discountRate"`
	MaxAmt       okex.JSONInt64 `json:"maxAmt"`
	MinAmt       okex.JSONInt64 `json:"minAmt"`
}

type EstimatedDeliveryExercisePrice

type EstimatedDeliveryExercisePrice struct {
	InstID   string              `json:"instId"`
	InstType okex.InstrumentType `json:"instType"`
	SettlePx okex.JSONFloat64    `json:"settlePx"`
	TS       okex.JSONTime       `json:"ts"`
}

type FundingRate

type FundingRate struct {
	InstID          string              `json:"instId"`
	InstType        okex.InstrumentType `json:"instType"`
	FundingRate     okex.JSONFloat64    `json:"fundingRate"`
	NextFundingRate okex.JSONFloat64    `json:"NextFundingRate"`
	FundingTime     okex.JSONTime       `json:"fundingTime"`
	NextFundingTime okex.JSONTime       `json:"nextFundingTime"`
}

type GetDiscountRateAndInterestFreeQuota

type GetDiscountRateAndInterestFreeQuota struct {
	Ccy          string           `json:"ccy"`
	Amt          okex.JSONFloat64 `json:"amt"`
	DiscountLv   okex.JSONInt64   `json:"discountLv"`
	DiscountInfo []*DiscountInfo  `json:"discountInfo"`
}

type Instrument

type Instrument struct {
	InstType     string               `json:"instType"`
	InstID       string               `json:"instId"`
	Uly          string               `json:"uly,omitempty"`
	InstFamily   string               `json:"instFamily,omitempty"`
	BaseCcy      string               `json:"baseCcy,omitempty"`
	QuoteCcy     string               `json:"quoteCcy,omitempty"`
	SettleCcy    string               `json:"settleCcy,omitempty"`
	CtVal        okex.JSONFloat64     `json:"ctVal,omitempty"`
	CtMult       okex.JSONFloat64     `json:"ctMult,omitempty"`
	CtValCcy     string               `json:"ctValCcy,omitempty"`
	OptType      okex.OptionType      `json:"optType,omitempty"`
	Stk          okex.JSONFloat64     `json:"stk,omitempty"`
	ListTime     okex.JSONTime        `json:"listTime"`
	ExpTime      okex.JSONTime        `json:"expTime,omitempty"`
	Lever        okex.JSONFloat64     `json:"lever,omitempty"`
	TickSz       okex.JSONFloat64     `json:"tickSz,omitempty"`
	LotSz        okex.JSONFloat64     `json:"lotSz,omitempty"`
	MinSz        okex.JSONFloat64     `json:"minSz,omitempty"`
	CtType       okex.ContractType    `json:"ctType,omitempty"`
	Alias        okex.AliasType       `json:"alias,omitempty"`
	State        okex.InstrumentState `json:"state,omitempty"`
	MaxLmtSz     okex.JSONFloat64     `json:"maxLmtSz,omitempty"`
	MaxMktSz     okex.JSONFloat64     `json:"maxMktSz,omitempty"`
	MaxLmtAmt    okex.JSONFloat64     `json:"maxLmtAmt,omitempty"`
	MaxMktAmt    okex.JSONFloat64     `json:"maxMktAmt,omitempty"`
	MaxTwapSz    okex.JSONFloat64     `json:"maxTwapSz,omitempty"`
	MaxIcebergSz okex.JSONFloat64     `json:"maxIcebergSz,omitempty"`
	MaxTriggerSz okex.JSONFloat64     `json:"maxTriggerSz,omitempty"`
	MaxStopSz    okex.JSONFloat64     `json:"maxStopSz,omitempty"`
}

type InterestRateAndLoanBasic

type InterestRateAndLoanBasic struct {
	Ccy   string           `json:"ccy"`
	Rate  okex.JSONFloat64 `json:"rate"`
	Quota okex.JSONFloat64 `json:"quota"`
}

type InterestRateAndLoanQuota

type InterestRateAndLoanQuota struct {
	Basic   []*InterestRateAndLoanBasic `json:"basic"`
	Vip     []*InterestRateAndLoanUser  `json:"vip"`
	Regular []*InterestRateAndLoanUser  `json:"regular"`
}

type InterestRateAndLoanUser

type InterestRateAndLoanUser struct {
	Level         string           `json:"level"`
	IrDiscount    okex.JSONFloat64 `json:"irDiscount"`
	LoanQuotaCoef int              `json:"loanQuotaCoef,string"`
}

type LimitPrice

type LimitPrice struct {
	InstID   string              `json:"instId"`
	InstType okex.InstrumentType `json:"instType"`
	BuyLmt   okex.JSONFloat64    `json:"buyLmt"`
	SellLmt  okex.JSONFloat64    `json:"sellLmt"`
	TS       okex.JSONTime       `json:"ts"`
}

type LiquidationOrder

type LiquidationOrder struct {
	InstID    string                    `json:"instId"`
	Uly       string                    `json:"uly,omitempty"`
	InstType  okex.InstrumentType       `json:"instType"`
	TotalLoss okex.JSONFloat64          `json:"totalLoss"`
	Details   []*LiquidationOrderDetail `json:"details"`
}

type LiquidationOrderDetail

type LiquidationOrderDetail struct {
	Ccy     string            `json:"ccy,omitempty"`
	Side    okex.OrderSide    `json:"side"`
	OosSide okex.PositionSide `json:"posSide"`
	BkPx    okex.JSONFloat64  `json:"bkPx"`
	Sz      okex.JSONFloat64  `json:"sz"`
	BkLoss  okex.JSONFloat64  `json:"bkLoss"`
	TS      okex.JSONTime     `json:"ts"`
}

type MarkPrice

type MarkPrice struct {
	InstID   string              `json:"instId"`
	InstType okex.InstrumentType `json:"instType"`
	MarkPx   okex.JSONFloat64    `json:"markPx"`
	TS       okex.JSONTime       `json:"ts"`
}

type OpenInterest

type OpenInterest struct {
	InstID   string              `json:"instId"`
	Oi       okex.JSONFloat64    `json:"oi"`
	OiCcy    okex.JSONFloat64    `json:"oiCcy"`
	InstType okex.InstrumentType `json:"instType"`
	TS       okex.JSONTime       `json:"ts"`
}

type OptionMarketData

type OptionMarketData struct {
	InstID   string              `json:"instId"`
	Uly      string              `json:"uly"`
	InstType okex.InstrumentType `json:"instType"`
	Delta    okex.JSONFloat64    `json:"delta"`
	Gamma    okex.JSONFloat64    `json:"gamma"`
	Vega     okex.JSONFloat64    `json:"vega"`
	Theta    okex.JSONFloat64    `json:"theta"`
	DeltaBS  okex.JSONFloat64    `json:"deltaBS"`
	GammaBS  okex.JSONFloat64    `json:"gammaBS"`
	VegaBS   okex.JSONFloat64    `json:"vegaBS"`
	ThetaBS  okex.JSONFloat64    `json:"thetaBS"`
	Lever    okex.JSONFloat64    `json:"lever"`
	MarkVol  okex.JSONFloat64    `json:"markVol"`
	BidVol   okex.JSONFloat64    `json:"bidVol"`
	AskVol   okex.JSONFloat64    `json:"askVol"`
	RealVol  okex.JSONFloat64    `json:"realVol"`
	TS       okex.JSONTime       `json:"ts"`
}

type PositionTier

type PositionTier struct {
	InstID       string              `json:"instId"`
	Uly          string              `json:"uly,omitempty"`
	InstType     okex.InstrumentType `json:"instType"`
	Tier         okex.JSONInt64      `json:"tier"`
	MinSz        okex.JSONFloat64    `json:"minSz"`
	MaxSz        okex.JSONFloat64    `json:"maxSz"`
	Mmr          okex.JSONFloat64    `json:"mmr"`
	Imr          okex.JSONFloat64    `json:"imr"`
	OptMgnFactor okex.JSONFloat64    `json:"optMgnFactor,omitempty"`
	QuoteMaxLoan okex.JSONFloat64    `json:"quoteMaxLoan,omitempty"`
	BaseMaxLoan  okex.JSONFloat64    `json:"baseMaxLoan,omitempty"`
	MaxLever     okex.JSONFloat64    `json:"maxLever"`
	TS           okex.JSONTime       `json:"ts"`
}

type State

type State struct {
	Title       string        `json:"title"`
	State       string        `json:"state"`
	Href        string        `json:"href"`
	ServiceType string        `json:"serviceType"`
	System      string        `json:"system"`
	ScheDesc    string        `json:"scheDesc"`
	Begin       okex.JSONTime `json:"begin"`
	End         okex.JSONTime `json:"end"`
}

type SystemTime

type SystemTime struct {
	TS okex.JSONTime `json:"ts"`
}

type UnitConvert added in v1.4.26

type UnitConvert struct {
	Type   okex.ConvertType `json:"type,string,omitempty"`
	InstID string           `json:"instId"`
	Px     okex.JSONFloat64 `json:"px,omitempty"`
	Sz     okex.JSONFloat64 `json:"sz,omitempty"`
	Unit   string           `json:"unit,omitempty"`
}

Jump to

Keyboard shortcuts

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