Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetValuation ¶
type ContractInfo ¶
type ContractInfo struct {
Symbol string `json:"symbol,omitempty"`
ContractCode string `json:"contract_code,omitempty"`
ContractSize float64 `json:"contract_size,omitempty"`
PriceTick float64 `json:"price_tick,omitempty"`
DeliveryDate string `json:"delivery_date,omitempty"`
DeliveryTime string `json:"delivery_time,omitempty"`
CreateDate string `json:"create_date,omitempty"`
ContractStatus int `json:"contract_status,omitempty"`
SettlementDate string `json:"settlement_date,omitempty"`
SupportMarginMode string `json:"support_margin_mode,omitempty"`
BusinessType string `json:"business_type,omitempty"`
Pair string `json:"pair,omitempty"`
ContractType string `json:"contract_type,omitempty"`
}
type DefaultResponse ¶
type GetAssetValuationParam ¶
type GetAssetValuationParam struct {
ValuationAsset string `json:"valuation_asset,omitempty" validate:"omitempty"`
}
type GetAssetValuationResp ¶
type GetAssetValuationResp struct {
DefaultResponse
Data []AssetValuation `json:"data"`
}
type GetContractInfoParam ¶
type GetContractInfoParam struct {
ContractCode string `url:"contract_code,omitempty" validate:"omitempty"`
SupportMarginMode string `url:"support_margin_mode,omitempty" validate:"omitempty"`
Pair string `url:"pair,omitempty" validate:"omitempty"`
ContractType string `url:"contract_type,omitempty" validate:"omitempty"`
BusinessType string `url:"business_type,omitempty" validate:"omitempty"`
}
type GetContractInfoResp ¶
type GetContractInfoResp struct {
DefaultResponse
Data []ContractInfo `json:"data"`
}
type KlineInterval ¶
type KlineInterval string
var ( Minute1 KlineInterval = "1min" Minute5 KlineInterval = "5min" Minute15 KlineInterval = "15min" Minute30 KlineInterval = "30min" Hour1 KlineInterval = "1hour" Hour4 KlineInterval = "4hour" Day1 KlineInterval = "1day" Month1 KlineInterval = "1mon" )
Click to show internal directories.
Click to hide internal directories.