Documentation ¶
Index ¶
- type Component
- type ContractInfo
- type GetAdjustFactorFundResponse
- type GetApiStateResponse
- type GetBasisResponse
- type GetBatchFundingRateResponse
- type GetBatchMergedResponse
- type GetBatchMergedV2Response
- type GetBboResponse
- type GetContractInfoResponse
- type GetDepthResponse
- type GetEliteRatioResponse
- type GetEstimatedSettlementPriceResponse
- type GetFundingRateResponse
- type GetHeartbeatResponse
- type GetHisFundingRateResponse
- type GetHisOpenInterestResponse
- type GetHisTradeResponse
- type GetIndexResponse
- type GetInsuranceFundResponse
- type GetKLineResponse
- type GetLadderMarginResponse
- type GetLiquidationOrdersResponse
- type GetMergedResponse
- type GetOpenInterestResponse
- type GetPriceLimitResponse
- type GetRiskInfoResponse
- type GetStrKLineResponse
- type GetSummaryResponse
- type GetSwapLiquidationOrdersResponse
- type GetSwapQueryElementsResponse
- type GetSwapSettlementRecordsResponse
- type GetTimestampResponse
- type GetTradeResponse
- type GetTradeStateResponse
- type GetTransferStateResponse
- type HeartbeatResponse
- type Incident
- type IncidentUpdate
- type Instrument
- type Maintenance
- type NormalLimit
- type OrderLimit
- type Page
- type PriceTick
- type SwapQueryElementsResponse
- type SystemComponent
- type SystemStatus
- type Tick
- type TradeLimit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Position int `json:"position"` Description string `json:"description"` Showcase bool `json:"showcase"` GroupID string `json:"group_id"` PageID string `json:"page_id"` Group bool `json:"group"` OnlyShowIfDegraded bool `json:"only_show_if_degraded"` }
type ContractInfo ¶
type ContractInfo struct { ContractCode string `json:"contract_code"` InstrumentType int `json:"instrument_type"` SettlementDate string `json:"settlement_date"` DeliveryTime string `json:"delivery_time"` CreateDate string `json:"create_date"` ContractStatus int `json:"contract_status"` DeliveryDate string `json:"delivery_date"` }
type GetAdjustFactorFundResponse ¶
type GetAdjustFactorFundResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` MarginMode string `json:"margin_mode"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` List []struct { LeverRate float32 `json:"lever_rate"` Ladder []struct { MinSize float32 `json:"min_size"` MaxSize float32 `json:"max_size,omitempty"` Ladder int `json:"ladder"` AdjustFactor float32 `json:"adjust_factor"` } `json:"ladders"` } `json:"list"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetApiStateResponse ¶
type GetApiStateResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` Open int `json:"open"` Close int `json:"close"` Cancel int `json:"cancel"` TransferIn int `json:"transfer_in"` TransferOut int `json:"transfer_out"` MasterTransferSub int `json:"master_transfer_sub"` SubTransferMaster int `json:"sub_transfer_master"` MasterTransferSubInnerIn int `json:"master_transfer_sub_inner_in"` MasterTransferSubInnerOut int `json:"master_transfer_sub_inner_out"` SubTransferMasterInnerIn int `json:"sub_transfer_master_inner_in"` SubTransferMasterInnerOut int `json:"sub_transfer_master_inner_out"` TransferInnerIn int `json:"transfer_inner_in"` TransferInnerOut int `json:"transfer_inner_out"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetBasisResponse ¶
type GetBasisResponse struct { Ch string `json:"ch"` Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Id int64 `json:"id"` ContractPrice string `json:"contract_price"` IndexPrice string `json:"index_price"` Basis string `json:"basis"` BasisRate string `json:"basis_rate"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetBatchFundingRateResponse ¶
type GetBatchFundingRateResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` FeeAsset string `json:"fee_asset"` FundingTime string `json:"funding_time"` FundingRate string `json:"funding_rate"` EstimatedRate string `json:"estimated_rate"` NextFundingTime string `json:"next_funding_time"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetBatchMergedResponse ¶
type GetBatchMergedResponse struct { Ch string `json:"ch,omitempty"` Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Ticks []struct { Id int64 `json:"id"` Amount string `json:"status"` Ask []float32 `json:"ask"` Bid []float32 `json:"bid"` Open string `json:"open"` Close string `json:"close"` Count float32 `json:"count"` High string `json:"high"` Low string `json:"low"` Vol string `json:"vol"` TradeTurnover string `json:"trade_turnover"` NumberOf string `json:"number_of"` Ts int64 `json:"ts"` } `json:"ticks,omitempty"` Ts int64 `json:"ts"` }
type GetBboResponse ¶
type GetBboResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Ticks []struct { ContractCode string `json:"contract_code"` Mrid int64 `json:"mrid"` Ask []float32 `json:"ask"` Bid []float32 `json:"bid"` BusinessType string `json:"business_type"` Ts int64 `json:"ts"` } `json:"ticks,omitempty"` Ts int64 `json:"ts"` }
type GetContractInfoResponse ¶
type GetContractInfoResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` ContractSize float32 `json:"contract_size"` PriceTick float32 `json:"price_tick"` SettlementDate string `json:"settlement_date"` CreateDate string `json:"create_date"` DeliveryTime string `json:"delivery_time"` ContractStatus int `json:"contract_status"` SupportMarginMode string `json:"support_margin_mode"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` DeliveryDate string `json:"delivery_date"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetDepthResponse ¶
type GetDepthResponse struct { Ch string `json:"ch"` Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Tick struct { Asks [][]float32 `json:"asks"` Bids [][]float32 `json:"bids"` Ch string `json:"ch"` Id int64 `json:"id"` Mrid int64 `json:"mrid"` Ts int64 `json:"ts"` Version int64 `json:"version"` } `json:"tick,omitempty"` Ts int64 `json:"ts"` }
type GetEliteRatioResponse ¶
type GetEliteRatioResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Pair string `json:"pair"` BusinessType string `json:"business_type"` ShortLongRatio []struct { BuyRatio float32 `json:"buy_ratio"` SellRatio float32 `json:"sell_ratio"` LockedRatio float32 `json:"locked_ratio,omitempty"` Ts int64 `json:"ts"` } `json:"list"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetEstimatedSettlementPriceResponse ¶
type GetEstimatedSettlementPriceResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { ContractCode string `json:"contract_code"` EstimatedSettlementPrice string `json:"estimated_settlement_price"` SettlementType string `json:"settlement_type"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetFundingRateResponse ¶
type GetFundingRateResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` FeeAsset string `json:"fee_asset"` FundingTime string `json:"funding_time"` FundingRate string `json:"funding_rate"` EstimatedRate string `json:"estimated_rate"` NextFundingTime string `json:"next_funding_time"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetHeartbeatResponse ¶
type GetHeartbeatResponse struct { Status string `json:"status"` Data HeartbeatResponse `json:"data"` }
type GetHisFundingRateResponse ¶
type GetHisFundingRateResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` FeeAsset string `json:"fee_asset"` FundingTime string `json:"funding_time"` FundingRate string `json:"funding_rate"` RealizedRate string `json:"realized_rate"` AvgPremiumIndex string `json:"avg_premium_index"` } `json:"data"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetHisOpenInterestResponse ¶
type GetHisOpenInterestResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` Tick []struct { Volume float32 `json:"volume"` AmountType int `json:"amount_type"` Value float32 `json:"value"` Ts int64 `json:"ts"` } `json:"tick"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetHisTradeResponse ¶
type GetHisTradeResponse struct { Ch string `json:"ch,omitempty"` Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` HisTrade []struct { Id int64 `json:"id"` Data []struct { Amount float32 `json:"amount"` Direction string `json:"direction"` Id int64 `json:"id"` Price float32 `json:"price"` Ts int64 `json:"ts"` Quantity float32 `json:"quantity"` TradeTurnover float32 `json:"trade_turnover"` } `json:"data"` Ts int64 `json:"ts"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetIndexResponse ¶
type GetIndexResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { ContractCode string `json:"contract_code"` IndexPrice float32 `json:"index_price"` IndexTs int64 `json:"index_ts"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetInsuranceFundResponse ¶
type GetInsuranceFundResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Tick []struct { InsuranceFund float32 `json:"insurance_fund"` Ts int64 `json:"ts"` } `json:"tick"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetKLineResponse ¶
type GetKLineResponse struct { Ch string `json:"ch,omitempty"` Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` 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,omitempty"` Ts int64 `json:"ts"` }
type GetLadderMarginResponse ¶
type GetLadderMarginResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` List []struct { LeverRate int `json:"lever_rate"` Ladders []struct { MinMarginBalance float32 `json:"min_margin_balance,omitempty"` MaxMarginBalance float32 `json:"max_margin_balance,omitempty"` MinMarginAvailable float32 `json:"min_margin_available,omitempty"` MaxMarginAvailable float32 `json:"max_margin_available,omitempty"` } `json:"ladders"` } `json:"list"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetLiquidationOrdersResponse ¶
type GetLiquidationOrdersResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Order []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` CreatedAt int64 `json:"created_at"` Direction string `json:"direction"` Offset string `json:"offset"` Price float32 `json:"price"` Volume float32 `json:"volume"` } `json:"orders"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetMergedResponse ¶
type GetMergedResponse struct { Ch string `json:"ch,omitempty"` Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Tick struct { Id int64 `json:"id"` Amount string `json:"status"` Ask []float32 `json:"ask"` Bid []float32 `json:"bid"` Open string `json:"open"` Close string `json:"close"` Count float32 `json:"count"` High string `json:"high"` Low string `json:"low"` Vol string `json:"vol"` TradeTurnover string `json:"trade_turnover"` Ts int64 `json:"ts"` } `json:"tick,omitempty"` Ts int64 `json:"ts"` }
type GetOpenInterestResponse ¶
type GetOpenInterestResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Amount float32 `json:"amount"` Volume float32 `json:"volume"` Value float32 `json:"value"` TradeAmount float32 `json:"trade_amount"` TradeVolume float32 `json:"trade_volume"` TradeTurnover float32 `json:"trade_turnover"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetPriceLimitResponse ¶
type GetPriceLimitResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` HighLimit float32 `json:"high_limit"` LowLimit float32 `json:"low_limit"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetRiskInfoResponse ¶
type GetRiskInfoResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { EstimatedClawback float32 `json:"estimated_clawback"` InsuranceFund float32 `json:"insurance_fund"` ContractCode string `json:"contract_code"` Pair string `json:"pair"` BusinessType string `json:"business_type"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetStrKLineResponse ¶
type GetStrKLineResponse struct { Ch string `json:"ch,omitempty"` Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Id int64 `json:"id"` Vol string `json:"vol"` Count string `json:"count"` Open string `json:"open"` Close string `json:"close"` Low string `json:"low"` High string `json:"high"` Amount string `json:"amount"` TradeTurnover string `json:"trade_turnover"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetSummaryResponse ¶
type GetSummaryResponse struct { Page Page `json:"page"` Components []SystemComponent `json:"components"` Incidents []Incident `json:"incidents"` ScheduledMaintenances []Maintenance `json:"scheduled_maintenances"` Status SystemStatus `json:"status"` }
type GetSwapLiquidationOrdersResponse ¶
type GetSwapLiquidationOrdersResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []struct { QueryID int64 `json:"query_id"` Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` CreatedAt int64 `json:"created_at"` Direction string `json:"direction"` Offset string `json:"offset"` Volume float64 `json:"volume"` Amount float64 `json:"amount"` Price float64 `json:"price"` TradeTurnover float64 `json:"trade_turnover"` Pair string `json:"pair"` BusinessType string `json:"business_type"` } `json:"data"` }
type GetSwapQueryElementsResponse ¶
type GetSwapQueryElementsResponse struct { Status string `json:"status"` Data []SwapQueryElementsResponse `json:"data"` }
type GetSwapSettlementRecordsResponse ¶
type GetSwapSettlementRecordsResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { SettlementRecord []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` SettlementTime int64 `json:"settlement_time"` ClawbackRatio float64 `json:"clawback_ratio"` SettlementPrice float64 `json:"settlement_price"` SettlementType string `json:"settlement_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` } `json:"settlement_record"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data"` }
type GetTimestampResponse ¶
type GetTradeResponse ¶
type GetTradeResponse struct { Ch string `json:"ch,omitempty"` Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Tick struct { Id int64 `json:"id"` Data []struct { Amount string `json:"amount"` Direction string `json:"direction"` Id int64 `json:"id"` Price string `json:"price"` Ts int64 `json:"ts"` Quantity float64 `json:"quantity"` TradeTurnover float64 `json:"trade_turnover"` ContractCode string `json:"contract_code"` BusinessType string `json:"business_type"` } `json:"data"` Ts int64 `json:"ts"` } `json:"tick,omitempty"` Ts int64 `json:"ts"` }
type GetTradeStateResponse ¶
type GetTradeStateResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` Open int `json:"open"` Close int `json:"close"` Cancel int `json:"cancel"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetTransferStateResponse ¶
type GetTransferStateResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` TransferIn int `json:"transfer_in"` TransferOut int `json:"transfer_out"` MasterTransferSub int `json:"master_transfer_sub"` SubTransferMaster int `json:"sub_transfer_master"` MasterTransferSubInnerIn int `json:"master_transfer_sub_inner_in"` MasterTransferSubInnerOut int `json:"master_transfer_sub_inner_out"` SubTransferMasterInnerIn int `json:"sub_transfer_master_inner_in"` SubTransferMasterInnerOut int `json:"sub_transfer_master_inner_out"` TransferInnerIn int `json:"transfer_inner_in"` TransferInnerOut int `json:"transfer_inner_out"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type HeartbeatResponse ¶
type HeartbeatResponse struct { Heartbeat int `json:"heartbeat"` SwapHeartbeat int `json:"swap_heartbeat"` EstimatedRecoveryTime int64 `json:"estimated_recovery_time"` SwapEstimatedRecoveryTime int64 `json:"swap_estimated_recovery_time"` LinearSwapHeartbeat int64 `json:"linear_swap_heartbeat"` LinearSwapEstimatedRecoveryTime int64 `json:"linear_swap_estimated_recovery_time"` }
type Incident ¶
type Incident struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` MonitoringAt string `json:"monitoring_at"` ResolvedAt string `json:"resolved_at"` Impact string `json:"impact"` Shortlink string `json:"shortlink"` StartedAt string `json:"started_at"` PageID string `json:"page_id"` IncidentUpdates []IncidentUpdate `json:"incident_updates"` Components []Component `json:"components"` }
type IncidentUpdate ¶
type IncidentUpdate struct { ID string `json:"id"` Status string `json:"status"` Body string `json:"body"` IncidentID string `json:"incident_id"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` DisplayAt string `json:"display_at"` AffectedComponents []struct { Code string `json:"code"` Name string `json:"name"` OldStatus string `json:"old_status"` NewStatus string `json:"new_status"` } `json:"affected_components"` DeliverNotifications bool `json:"deliver_notifications"` CustomTweet string `json:"custom_tweet"` TweetID string `json:"tweet_id"` }
type Instrument ¶
type Maintenance ¶
type Maintenance struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` MonitoringAt string `json:"monitoring_at"` ResolvedAt string `json:"resolved_at"` Impact string `json:"impact"` Shortlink string `json:"shortlink"` StartedAt string `json:"started_at"` PageID string `json:"page_id"` IncidentUpdates []IncidentUpdate `json:"incident_updates"` Components []Component `json:"components"` ScheduledFor string `json:"scheduled_for"` ScheduledUntil string `json:"scheduled_until"` }
type NormalLimit ¶
type OrderLimit ¶
type SwapQueryElementsResponse ¶
type SwapQueryElementsResponse struct { ContractCode string `json:"contract_code"` ModeType int `json:"mode_type"` SwapDeliveryType int `json:"swap_delivery_type"` InstrumentIndexCode string `json:"instrument_index_code"` RealTimeSettlement int `json:"real_time_settlement"` TransferProfitRatio float64 `json:"transfer_profit_ratio"` CrossTransferProfitRatio float64 `json:"cross_transfer_profit_ratio"` InstrumentType []int `json:"instrument_type"` TradePartition string `json:"trade_partition"` MinLevel string `json:"min_level"` MaxLevel string `json:"max_level"` SettlePeriod int `json:"settle_period"` FundingRateCap string `json:"funding_rate_cap"` FundingRateFloor string `json:"funding_rate_floor"` LongPositionLimit string `json:"long_position_limit,omitempty"` OffsetOrderLimit string `json:"offset_order_limit,omitempty"` OpenOrderLimit string `json:"open_order_limit,omitempty"` ShortPositionLimit string `json:"short_position_limit,omitempty"` ContractInfos []ContractInfo `json:"contract_infos"` PriceTicks []PriceTick `json:"price_ticks,omitempty"` InstrumentValues []Instrument `json:"instrument_values,omitempty"` OrderLimits []OrderLimit `json:"order_limits,omitempty"` NormalLimits []NormalLimit `json:"normal_limits,omitempty"` TradeLimits []TradeLimit `json:"trade_limits"` }
type SystemComponent ¶
type SystemComponent struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Position int64 `json:"position"` Description string `json:"description"` Showcase bool `json:"showcase"` GroupID string `json:"group_id"` PageID string `json:"page_id"` Group bool `json:"group"` OnlyShowIfDegraded bool `json:"only_show_if_degraded"` }
type SystemStatus ¶
type Tick ¶
type Tick struct { ContractCode string `json:"contract_code"` BusinessType string `json:"business_type"` ID int64 `json:"id"` Amount string `json:"amount"` Ask []float64 `json:"ask"` Bid []float64 `json:"bid"` Open string `json:"open"` Close string `json:"close"` Count float64 `json:"count"` High string `json:"high"` Low string `json:"low"` Volume string `json:"vol"` NumberOf string `json:"number_of"` Timestamp int64 `json:"ts"` }
type TradeLimit ¶
Source Files ¶
- get_adjust_factorfund_response.go
- get_api_state_response.go
- get_basis_response.go
- get_batch_funding_rate_response.go
- get_batch_merged_response.go
- get_batch_merged_v2_response.go
- get_bbo_response.go
- get_contractInfo_response.go
- get_depth_response.go
- get_elite_ratio_response.go
- get_estimated_settlement_price_response.go
- get_funding_rate_response.go
- get_heartbeat_response.go
- get_his_funding_rate_response.go
- get_his_openInterest_response.go
- get_his_trade_response.go
- get_index_response.go
- get_insurance_fund_response.go
- get_kline_response.go
- get_ladder_margin_response.go
- get_liquidation_orders_response.go
- get_merged_response.go
- get_open_interest_response.go
- get_price_limit_response.go
- get_risk_info_response.go
- get_str_kline_response.go
- get_summary_response.go
- get_swap_liquidation_orders_response.go
- get_swap_settlement_records_response.go
- get_timestamp_response.go
- get_trade_response.go
- get_trade_state_response.go
- get_transfer_state_response.go
- gets_swap_query_elements_response.go
Click to show internal directories.
Click to hide internal directories.