package structure // ContractDepth // @Description: type ContractDepth struct { Ch string `json:"ch"` Status string `json:"status"` Tick struct { Mrid int64 `json:"mrid"` ID int `json:"id"` Bids [][]float64 `json:"bids"` Asks [][]float64 `json:"asks"` Ts int64 `json:"ts"` Version int `json:"version"` Ch string `json:"ch"` } `json:"tick"` Ts int64 `json:"ts"` } // ContractBbo // @Description: type ContractBbo struct { Status string `json:"status"` Ticks []struct { TradePartition string `json:"trade_partition"` BusinessType string `json:"business_type"` ContractCode string `json:"contract_code"` Ask []float64 `json:"ask"` Bid []float64 `json:"bid"` Mrid int64 `json:"mrid"` Ts int64 `json:"ts"` } `json:"ticks"` Ts int64 `json:"ts"` } // ContractHistoryKline // @Description: type ContractHistoryKline struct { Ch string `json:"ch"` Ts int64 `json:"ts"` Status string `json:"status"` Data []struct { ID int `json:"id"` Open float64 `json:"open"` Close float64 `json:"close"` High float64 `json:"high"` Low float64 `json:"low"` Amount float64 `json:"amount"` Vol int `json:"vol"` TradeTurnover float64 `json:"trade_turnover"` Count int `json:"count"` } `json:"data"` } // ContractHistoryPriceKline // @Description: type ContractHistoryPriceKline struct { Ch string `json:"ch"` Data []struct { Amount string `json:"amount"` Close string `json:"close"` Count string `json:"count"` High string `json:"high"` ID int `json:"id"` Low string `json:"low"` Open string `json:"open"` TradeTurnover string `json:"trade_turnover"` Vol string `json:"vol"` } `json:"data"` Status string `json:"status"` Ts int64 `json:"ts"` } // ContractMerged // @Description: type ContractMerged struct { Ch string `json:"ch"` Status string `json:"status"` Tick struct { Amount string `json:"amount"` Ask []float64 `json:"ask"` Bid []float64 `json:"bid"` Close string `json:"close"` Count int `json:"count"` High string `json:"high"` ID int `json:"id"` Low string `json:"low"` Open string `json:"open"` TradeTurnover string `json:"trade_turnover"` Ts int64 `json:"ts"` Vol string `json:"vol"` } `json:"tick"` Ts int64 `json:"ts"` } // ContractBatchMerged // @Description: type ContractBatchMerged struct { Status string `json:"status"` Ticks []struct { ID int `json:"id"` Ts int64 `json:"ts"` Ask []float64 `json:"ask"` Bid []float64 `json:"bid"` Open string `json:"open"` Close string `json:"close"` Low string `json:"low"` High string `json:"high"` Amount string `json:"amount"` Count int `json:"count"` Vol string `json:"vol"` ContractCode string `json:"contract_code"` NumberOf string `json:"number_of"` BusinessType string `json:"business_type"` TradePartition string `json:"trade_partition"` } `json:"ticks"` Ts int64 `json:"ts"` } // ContractTrade // @Description: type ContractTrade struct { Ch string `json:"ch"` Status string `json:"status"` Tick struct { Data []struct { Amount string `json:"amount"` Quantity string `json:"quantity"` TradeTurnover string `json:"trade_turnover"` Ts int64 `json:"ts"` ID int64 `json:"id"` Price string `json:"price"` Direction string `json:"direction"` ContractCode string `json:"contract_code"` BusinessType string `json:"business_type"` TradePartition string `json:"trade_partition"` } `json:"data"` ID int64 `json:"id"` Ts int64 `json:"ts"` } `json:"tick"` Ts int64 `json:"ts"` } // ContractHistoryTrade // @Description: type ContractHistoryTrade struct { Ch string `json:"ch"` Ts int64 `json:"ts"` Status string `json:"status"` Data []struct { ID int64 `json:"id"` Ts int64 `json:"ts"` Data []struct { Amount int `json:"amount"` Quantity float64 `json:"quantity"` TradeTurnover float64 `json:"trade_turnover"` Ts int64 `json:"ts"` ID int64 `json:"id"` Price float64 `json:"price"` Direction string `json:"direction"` } `json:"data"` } `json:"data"` } // ContractsWapHisOpenInterest // @Description: type ContractsWapHisOpenInterest struct { Status string `json:"status"` Data struct { Symbol string `json:"symbol"` Tick []struct { Volume float64 `json:"volume"` AmountType int `json:"amount_type"` Ts int64 `json:"ts"` Value float64 `json:"value"` } `json:"tick"` ContractCode string `json:"contract_code"` BusinessType string `json:"business_type"` Pair string `json:"pair"` ContractType string `json:"contract_type"` TradePartition string `json:"trade_partition"` } `json:"data"` Ts int64 `json:"ts"` } // ContractHistoryLinearSwapPremiumIndexKline // @Description: type ContractHistoryLinearSwapPremiumIndexKline struct { Ch string `json:"ch"` Data []struct { Amount string `json:"amount"` Close string `json:"close"` Count string `json:"count"` High string `json:"high"` ID int `json:"id"` Low string `json:"low"` Open string `json:"open"` Vol string `json:"vol"` } `json:"data"` Status string `json:"status"` Ts int64 `json:"ts"` } // ContractHistoryLinearSwapEstimatedRateKline // @Description: type ContractHistoryLinearSwapEstimatedRateKline struct { Ch string `json:"ch"` Data []struct { Amount string `json:"amount"` Close string `json:"close"` Count string `json:"count"` High string `json:"high"` ID int `json:"id"` Low string `json:"low"` Open string `json:"open"` Vol string `json:"vol"` } `json:"data"` Status string `json:"status"` Ts int64 `json:"ts"` } // ContractHistoryLinearSwapBasis // @Description: type ContractHistoryLinearSwapBasis struct { Ch string `json:"ch"` Data []struct { Basis string `json:"basis"` BasisRate string `json:"basis_rate"` ContractPrice string `json:"contract_price"` ID int `json:"id"` IndexPrice string `json:"index_price"` } `json:"data"` Status string `json:"status"` Ts int64 `json:"ts"` }