types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetValuation

type AssetValuation struct {
	ValuationAsset string `json:"valuation_asset"`
	Balance        string `json:"balance"`
}

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 DefaultResponse struct {
	Status string `json:"status"`
	Ts     int64  `json:"ts"`
}

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"
)

Jump to

Keyboard shortcuts

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