Documentation ¶
Index ¶
- type ContractAccountInfoResponse
- type ContractAccountPositionInfoResponse
- type ContractAvailableLevelRateResponse
- type ContractBalanceValuationResponse
- type ContractFeeResponse
- type ContractFinancialRecordExactResponse
- type ContractFinancialRecordResponse
- type ContractMasterSubTransferRecordResponse
- type ContractMasterSubTransferResponse
- type ContractOrderLimitResponse
- type ContractPositionInfoResponse
- type ContractPositionLimitResponse
- type ContractSubAccountInfoListResponse
- type ContractSubAccountInfoResponse
- type ContractSubAccountListResponse
- type ContractSubAuthListResponse
- type ContractSubAuthResponse
- type ContractSubPositionInfoResponse
- type ContractTransferLimitResponse
- type ContractUserSettlementRecordsResponse
- type GetContractApiTradingStatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractAccountInfoResponse ¶
type ContractAccountInfoResponse struct { Status string `json:"status"` Data []struct { Symbol string `json:"symbol"` MarginBalance float64 `json:"margin_balance"` MarginPosition float64 `json:"margin_position"` MarginFrozen float64 `json:"margin_frozen"` MarginAvailable float64 `json:"margin_available"` ProfitReal float64 `json:"profit_real"` ProfitUnreal float64 `json:"profit_unreal"` RiskRate float64 `json:"risk_rate"` NewRiskRate string `json:"new_risk_rate"` TradePartition string `json:"trade_partition"` LiquidationPrice float64 `json:"liquidation_price"` WithdrawAvailable float64 `json:"withdraw_available"` LeverRate float64 `json:"lever_rate"` AdjustFactor float64 `json:"adjust_factor"` MarginStatic float64 `json:"margin_static"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type ContractAccountPositionInfoResponse ¶
type ContractAccountPositionInfoResponse struct { Status string `json:"status"` Ts int64 `json:"ts,omitempty"` Data []struct { Symbol string `json:"symbol,omitempty"` MarginBalance float64 `json:"margin_balance,omitempty"` MarginPosition float64 `json:"margin_position,omitempty"` MarginFrozen float64 `json:"margin_frozen,omitempty"` MarginAvailable float64 `json:"margin_available,omitempty"` ProfitReal float64 `json:"profit_real,omitempty"` ProfitUnreal float64 `json:"profit_unreal,omitempty"` RiskRate float64 `json:"risk_rate,omitempty"` WithdrawAvailable float64 `json:"withdraw_available,omitempty"` LiquidationPrice float64 `json:"liquidation_price,omitempty"` LeverRate int `json:"lever_rate,omitempty"` AdjustFactor float64 `json:"adjust_factor,omitempty"` MarginStatic float64 `json:"margin_static,omitempty"` NewRiskRate string `json:"new_risk_rate,omitempty"` TradePartition string `json:"trade_partition,omitempty"` Positions []struct { Symbol string `json:"symbol,omitempty"` ContractCode string `json:"contract_code,omitempty"` ContractType string `json:"contract_type,omitempty"` Volume float64 `json:"volume,omitempty"` Available float64 `json:"available,omitempty"` Frozen float64 `json:"frozen,omitempty"` CostOpen float64 `json:"cost_open,omitempty"` CostHold float64 `json:"cost_hold,omitempty"` ProfitUnreal float64 `json:"profit_unreal,omitempty"` ProfitRate float64 `json:"profit_rate,omitempty"` Profit float64 `json:"profit,omitempty"` PositionMargin float64 `json:"position_margin,omitempty"` LeverRate int `json:"lever_rate,omitempty"` Direction string `json:"direction,omitempty"` LastPrice float64 `json:"last_price,omitempty"` AdlRiskPercent string `json:"adl_risk_percent,omitempty"` } `json:"positions,omitempty"` } `json:"data,omitempty"` }
type ContractFeeResponse ¶
type ContractFeeResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` FeeAsset string `json:"fee_asset"` OpenMakerFee string `json:"open_maker_fee"` OpenTakerFee string `json:"open_taker_fee"` CloseMakerFee string `json:"close_maker_fee"` CloseTakerFee string `json:"close_taker_fee"` DeliveryFee string `json:"delivery_fee"` } `json:"data"` }
type ContractFinancialRecordExactResponse ¶
type ContractFinancialRecordExactResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []struct { QueryID int64 `json:"query_id"` ID int64 `json:"id"` Ts int64 `json:"ts"` Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Type int `json:"type"` Amount float64 `json:"amount"` } `json:"data"` }
type ContractFinancialRecordResponse ¶
type ContractFinancialRecordResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []struct { QueryID int64 `json:"query_id"` ID int64 `json:"id"` Ts int64 `json:"ts"` Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Type int `json:"type"` Amount float64 `json:"amount"` } `json:"data"` }
type ContractMasterSubTransferRecordResponse ¶
type ContractMasterSubTransferRecordResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { TransferRecords []struct { ID int64 `json:"id"` Ts int64 `json:"ts"` Symbol string `json:"symbol"` SubUID string `json:"sub_uid"` SubAccountName string `json:"sub_account_name"` TransferType int `json:"transfer_type"` Amount float32 `json:"amount"` } `json:"transfer_record"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data"` }
type ContractOrderLimitResponse ¶
type ContractOrderLimitResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { OrderPriceType string `json:"order_price_type"` List []struct { Symbol string `json:"symbol"` Types []struct { ContractType string `json:"contract_type"` OpenLimit int64 `json:"open_limit"` CloseLimit int64 `json:"close_limit"` } `json:"types"` } `json:"list"` } `json:"data"` }
type ContractPositionInfoResponse ¶
type ContractPositionInfoResponse struct { Status string `json:"status"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` ContractType string `json:"contract_type"` Volume float64 `json:"volume"` Available float64 `json:"available"` Frozen float64 `json:"frozen"` CostOpen float64 `json:"cost_open"` CostHold float64 `json:"cost_hold"` ProfitUnreal float64 `json:"profit_unreal"` ProfitRate float64 `json:"profit_rate"` Profit float64 `json:"profit"` PositionMargin float64 `json:"position_margin"` LeverRate int `json:"lever_rate"` Direction string `json:"direction"` LastPrice float64 `json:"last_price"` AdlRiskPercent string `json:"adl_risk_percent,omitempty"` LiqPx string `json:"liq_px"` NewRiskRate string `json:"new_risk_rate"` TradePartition string `json:"trade_partition"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type ContractPositionLimitResponse ¶
type ContractPositionLimitResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` List []struct { ContractType string `json:"contract_type"` BuyLimit float64 `json:"buy_limit"` SellLimit float64 `json:"sell_limit"` } `json:"list"` } `json:"data"` }
type ContractSubAccountInfoListResponse ¶
type ContractSubAccountInfoListResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { SubList []struct { SubUID int64 `json:"sub_uid"` AccountInfoList []struct { Symbol string `json:"symbol"` MarginBalance float64 `json:"margin_balance"` LiquidationPrice float64 `json:"liquidation_price"` RiskRate float64 `json:"risk_rate"` } `json:"account_info_list,omitempty"` } `json:"sub_list,omitempty"` CurrentPage int `json:"current_page"` TotalPage int `json:"total_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` }
type ContractSubAccountInfoResponse ¶
type ContractSubAccountInfoResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` MarginBalance float64 `json:"margin_balance"` MarginPosition float64 `json:"margin_position"` MarginFrozen float64 `json:"margin_frozen"` MarginAvailable float64 `json:"margin_available"` ProfitReal float64 `json:"profit_real"` ProfitUnreal float64 `json:"profit_unreal"` RiskRate float64 `json:"risk_rate"` LiquidationPrice float64 `json:"liquidation_price"` WithdrawAvailable float64 `json:"withdraw_available"` LeverRate float64 `json:"lever_rate"` AdjustFactor float64 `json:"adjust_factor"` MarginStatic float64 `json:"margin_static"` NewRiskRate string `json:"new_risk_rate"` TradePartition string `json:"trade_partition"` } `json:"data,omitempty"` }
type ContractSubAccountListResponse ¶
type ContractSubAccountListResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { SubUID int64 `json:"sub_uid,omitempty"` SymbolList []struct { Symbol string `json:"symbol"` MarginBalance float64 `json:"margin_balance"` LiquidationPrice float64 `json:"liquidation_price"` RiskRate float64 `json:"risk_rate"` QueryID int64 `json:"query_id"` } `json:"list,omitempty"` } `json:"data,omitempty"` }
type ContractSubAuthListResponse ¶
type ContractSubAuthListResponse struct { Status string `json:"status"` Data struct { Errors []struct { SubUID string `json:"sub_uid"` ErrCode int `json:"err_code"` ErrMsg string `json:"err_msg"` } `json:"errors,omitempty"` Successes []struct { QueryID int64 `json:"query_id,omitempty"` SubUID string `json:"sub_uid"` SubAuth int `json:"sub_auth"` } `json:"successes,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type ContractSubAuthResponse ¶
type ContractSubAuthResponse struct { Status string `json:"status"` Data struct { Errors []struct { SubUID string `json:"sub_uid"` ErrCode int `json:"err_code"` ErrMsg string `json:"err_msg"` } `json:"errors,omitempty"` Successes string `json:"successes,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type ContractSubPositionInfoResponse ¶
type ContractSubPositionInfoResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` ContractType string `json:"contract_type"` Volume float64 `json:"volume"` Available float64 `json:"available"` Frozen float64 `json:"frozen"` CostOpen float64 `json:"cost_open"` CostHold float64 `json:"cost_hold"` ProfitUnreal float64 `json:"profit_unreal"` ProfitRate float64 `json:"profit_rate"` Profit float64 `json:"profit"` PositionMargin float64 `json:"position_margin"` LeverRate int `json:"lever_rate"` Direction string `json:"direction"` LastPrice float64 `json:"last_price"` AdlRiskPercent string `json:"adl_risk_percent,omitempty"` LiqPx string `json:"liq_px"` NewRiskRate string `json:"new_risk_rate"` TradePartition string `json:"trade_partition"` } `json:"data,omitempty"` }
type ContractTransferLimitResponse ¶
type ContractTransferLimitResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { Symbol string `json:"symbol"` TransferInMaxEach float64 `json:"transfer_in_max_each"` TransferInMinEach float64 `json:"transfer_in_min_each"` TransferOutMaxEach float64 `json:"transfer_out_max_each"` TransferOutMinEach float64 `json:"transfer_out_min_each"` TransferInMaxDaily float64 `json:"transfer_in_max_daily"` TransferOutMaxDaily float64 `json:"transfer_out_max_daily"` NetTransferInMaxDaily float64 `json:"net_transfer_in_max_daily"` NetTransferOutMaxDaily float64 `json:"net_transfer_out_max_daily"` } `json:"data"` }
type ContractUserSettlementRecordsResponse ¶
type ContractUserSettlementRecordsResponse struct { Status string `json:"status"` Data struct { TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` SettlementRecords []struct { Symbol string `json:"symbol"` MarginBalanceInit float64 `json:"margin_balance_init"` MarginBalance float64 `json:"margin_balance"` SettlementProfitReal float64 `json:"settlement_profit_real"` SettlementTime int64 `json:"settlement_time"` Clawback float64 `json:"clawback"` DeliveryFee float64 `json:"delivery_fee"` OffsetProfitLoss float64 `json:"offset_profitloss"` Fee float64 `json:"fee"` FeeAsset string `json:"fee_asset"` Positions []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Direction string `json:"direction"` Volume float64 `json:"volume"` CostOpen float64 `json:"cost_open"` CostHoldPre float64 `json:"cost_hold_pre"` CostHold float64 `json:"cost_hold"` SettlementProfitUnreal float64 `json:"settlement_profit_unreal"` SettlementPrice float64 `json:"settlement_price"` SettlementType string `json:"settlement_type"` } `json:"positions"` } `json:"settlement_records"` } `json:"data"` Ts int64 `json:"ts"` }
type GetContractApiTradingStatusResponse ¶
type GetContractApiTradingStatusResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data []struct { IsDisable int64 `json:"is_disable"` OrderPriceTypes string `json:"order_price_types"` DisableReason string `json:"disable_reason"` DisableInterval int64 `json:"disable_interval"` RecoveryTime int64 `json:"recovery_time"` COR struct { OrdersThreshold int64 `json:"orders_threshold"` Orders int64 `json:"orders"` InvalidCancelOrders int64 `json:"invalid_cancel_orders"` CancelRatioThreshold float32 `json:"cancel_ratio_threshold"` CancelRatio float32 `json:"cancel_ratio"` IsTrigger int `json:"is_trigger"` IsActive int `json:"is_active"` } `json:"COR"` TDN struct { DisablesThreshold int64 `json:"disables_threshold"` Disables int64 `json:"disables"` IsTrigger int `json:"is_trigger"` IsActive int `json:"is_active"` } `json:"TDN"` } `json:"data"` }
Source Files ¶
- contract_account_info_response.go
- contract_account_position_info_response.go
- contract_available_level_rate_response.go
- contract_balance_valuation_response.go
- contract_fee_response.go
- contract_financial_record_exact_response.go
- contract_financial_record_response.go
- contract_master_sub_transfer_record_response.go
- contract_master_sub_transfer_response.go
- contract_order_limit_response.go
- contract_position_info_response.go
- contract_position_limit_response.go
- contract_sub_accountInfo_list_response.go
- contract_sub_account_info_response.go
- contract_sub_account_list_response.go
- contract_sub_auth_list_response.go
- contract_sub_auth_response.go
- contract_sub_position_info_response.go
- contract_transfer_limit_response.go
- contract_user_settlement_records_response.go
- get_contract_api_trading_status_response.go
Click to show internal directories.
Click to hide internal directories.