Documentation ¶
Index ¶
- type GetSwapAdjustFactorResponse
- type GetSwapApiStateResponse
- type GetSwapBatchFundingRateResponse
- type GetSwapContractInfoResponse
- type GetSwapEliteAccountRatioResponse
- type GetSwapElitePositionRatioResponse
- type GetSwapEstimatedSettlementPriceResponse
- type GetSwapFundingRateResponse
- type GetSwapHisOpenInterestResponse
- type GetSwapHistoricalFundingRateResponse
- type GetSwapIndexResponse
- type GetSwapInsuranceFundResponse
- type GetSwapLadderMarginResponse
- type GetSwapLiquidationOrdersResponse
- type GetSwapOpenInterestResponse
- type GetSwapPriceLimitResponse
- type GetSwapQueryElementsResponse
- type GetSwapRiskInfoResponse
- type GetSwapSettlementRecordsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSwapAdjustFactorResponse ¶
type GetSwapAdjustFactorResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` List []struct { LeverRate int `json:"lever_rate"` Ladders []struct { MinSize float64 `json:"min_size"` MaxSize float64 `json:"max_size"` Ladder int `json:"ladder"` AdjustFactor float64 `json:"adjust_factor"` } `json:"ladders,omitempty"` } `json:"list,omitempty"` } `json:"data,omitempty"` }
type GetSwapApiStateResponse ¶
type GetSwapApiStateResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` 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"` } `json:"data,omitempty"` }
type GetSwapBatchFundingRateResponse ¶
type GetSwapBatchFundingRateResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` 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,omitempty"` NextFundingTime string `json:"next_funding_time,omitempty"` } `json:"data,omitempty"` }
type GetSwapContractInfoResponse ¶
type GetSwapContractInfoResponse struct { Status string `json:"status"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` ContractSize float64 `json:"contract_size"` PriceTick float64 `json:"price_tick"` SettlementDate string `json:"settlement_date"` CreateDate string `json:"create_date"` DeliveryTime string `json:"delivery_time"` ContractStatus int `json:"contract_status"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetSwapEliteAccountRatioResponse ¶
type GetSwapEliteAccountRatioResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` List []struct { BuyRatio float64 `json:"buy_ratio"` SellRatio float64 `json:"sell_ratio"` LockedRatio float64 `json:"locked_ratio"` Ts int64 `json:"ts"` } `json:"list,omitempty"` } `json:"data,omitempty"` }
type GetSwapElitePositionRatioResponse ¶
type GetSwapElitePositionRatioResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` List []struct { BuyRatio float64 `json:"buy_ratio"` SellRatio float64 `json:"sell_ratio"` Ts int64 `json:"ts"` } `json:"list,omitempty"` } `json:"data,omitempty"` }
type GetSwapEstimatedSettlementPriceResponse ¶
type GetSwapEstimatedSettlementPriceResponse struct { Status string `json:"status"` Data []struct { ContractCode string `json:"contract_code"` EstimatedSettlementPrice float64 `json:"estimated_settlement_price"` SettlementType string `json:"settlement_type"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetSwapFundingRateResponse ¶
type GetSwapFundingRateResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` 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,omitempty"` NextFundingTime string `json:"next_funding_time,omitempty"` } `json:"data,omitempty"` }
type GetSwapHisOpenInterestResponse ¶
type GetSwapHisOpenInterestResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Tick []struct { Volume string `json:"volume"` AmountType int `json:"amount_type"` Ts int64 `json:"ts"` } `json:"tick,omitempty"` } `json:"data,omitempty"` }
type GetSwapHistoricalFundingRateResponse ¶
type GetSwapHistoricalFundingRateResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` 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,omitempty"` AvgPremiumIndex string `json:"avg_premium_index"` } `json:"data,omitempty"` } `json:"data,omitempty"` }
type GetSwapIndexResponse ¶
type GetSwapInsuranceFundResponse ¶
type GetSwapInsuranceFundResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Tick []struct { InsuranceFund float64 `json:"insurance_fund"` Ts int64 `json:"ts"` } `json:"tick,omitempty"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` }
type GetSwapLadderMarginResponse ¶
type GetSwapLadderMarginResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` List []struct { LeverRate int `json:"lever_rate"` Ladders []struct { MinMarginBalance float64 `json:"min_margin_balance"` MaxMarginBalance float64 `json:"max_margin_balance"` MinMarginAvailable float64 `json:"min_margin_available"` MaxMarginAvailable float64 `json:"max_margin_available"` } `json:"ladders,omitempty"` } `json:"list,omitempty"` } `json:"data,omitempty"` }
type GetSwapLiquidationOrdersResponse ¶
type GetSwapLiquidationOrdersResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Direction string `json:"direction"` Offset string `json:"offset"` Volume float64 `json:"volume"` Price float64 `json:"price"` Amount float64 `json:"amount"` CreatedAt int64 `json:"created_at"` QueryID int64 `json:"query_id"` } `json:"data,omitempty"` }
type GetSwapOpenInterestResponse ¶
type GetSwapOpenInterestResponse struct { Status string `json:"status"` Data []struct { Symbol string `json:"symbol"` Volume float64 `json:"volume"` Amount float64 `json:"amount"` ContractCode string `json:"contract_code"` TradeAmount float64 `json:"trade_amount"` TradeVolume float64 `json:"trade_volume"` TradeTurnover float64 `json:"trade_turnover"` } `json:"data"` Ts int64 `json:"ts"` }
type GetSwapQueryElementsResponse ¶
type GetSwapQueryElementsResponse struct { Status string `json:"status"` Data []struct { ContractCode string `json:"contract_code"` InstrumentIndexCode string `json:"instrument_index_code"` RealTimeSettlement int `json:"real_time_settlement"` TransferProfitRatio float64 `json:"transfer_profit_ratio"` MinLevel string `json:"min_level"` MaxLevel string `json:"max_level"` OpenOrderLimit string `json:"open_order_limit"` OffsetOrderLimit string `json:"offset_order_limit"` LongPositionLimit string `json:"long_position_limit"` ShortPositionLimit string `json:"short_position_limit"` PriceTick string `json:"price_tick"` InstrumentValue string `json:"instrument_value"` SettlePeriod int `json:"settle_period"` FundingRateCap string `json:"funding_rate_cap"` FundingRateFloor string `json:"funding_rate_floor"` HighNormalLimit string `json:"high_normal_limit"` MinNormalLimit string `json:"min_normal_limit"` HighOpenLimit string `json:"high_open_limit"` MinOpenLimit string `json:"min_open_limit"` HighTradeLimit string `json:"high_trade_limit"` MinTradeLimit string `json:"min_trade_limit"` ContractInfos []struct { ContractCode string `json:"contract_code"` InstrumentType []int `json:"instrument_type"` SettlementDate string `json:"settlement_date"` CreateDate string `json:"create_date"` ContractStatus int `json:"contract_status"` } `json:"contract_infos,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetSwapRiskInfoResponse ¶
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"` } `json:"settlement_record,omitempty"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` }
Source Files ¶
- get_swap_adjust_factor_response.go
- get_swap_api_state_response.go
- get_swap_batch_funding_rate_response.go
- get_swap_contract_info_response.go
- get_swap_elite_account_ratio_response.go
- get_swap_elite_position_ratio_response.go
- get_swap_estimated_settlement_price_response.go
- get_swap_funding_rate_response.go
- get_swap_his_open_interest_response.go
- get_swap_historical_funding_rate_response.go
- get_swap_index_response.go
- get_swap_insurance_fund_response.go
- get_swap_ladder_margin_response.go
- get_swap_liquidation_orders_response.go
- get_swap_open_interest_response.go
- get_swap_price_limit_response.go
- get_swap_query_elements_response.go
- get_swap_risk_info_response.go
- get_swap_settlement_records_response.go
Click to show internal directories.
Click to hide internal directories.