Documentation ¶
Index ¶
- type ContractBatchOrderResponse
- type ContractCancelAfterResponse
- type ContractCancelAllResponse
- type ContractCancelResponse
- type ContractHisOrdersExactResponse
- type ContractHisordersResponse
- type ContractMatchResultsExactResponse
- type ContractMatchResultsResponse
- type ContractOpenOrdersResponse
- type ContractOrderDetailResponse
- type ContractOrderInfoResponse
- type ContractOrderResponse
- type ContractSwitchLeverRateResponse
- type DataEntry
- type LightningClosePositionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractBatchOrderResponse ¶
type ContractBatchOrderResponse struct { Status string `json:"status"` Data struct { Errors []struct { Index int `json:"index"` ErrorCode int `json:"err_code"` ErrorMsg string `json:"err_msg"` } `json:"errors,omitempty"` Success []struct { Index int `json:"index"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` ClientOrderID int64 `json:"client_order_id,omitempty"` } `json:"success,omitempty"` } `json:"data"` Ts int64 `json:"ts"` }
type ContractCancelAllResponse ¶
type ContractCancelAllResponse struct { Status string `json:"status"` Data struct { Errors []struct { OrderID string `json:"order_id"` ErrorCode int `json:"err_code"` ErrorMsg string `json:"err_msg"` } `json:"errors,omitempty"` Successes string `json:"successes,omitempty"` } `json:"data"` Ts int64 `json:"ts"` }
type ContractCancelResponse ¶
type ContractCancelResponse struct { Status string `json:"status"` Data struct { Errors []struct { OrderID string `json:"order_id"` ErrorCode int `json:"err_code"` ErrorMsg string `json:"err_msg"` } `json:"errors,omitempty"` Success string `json:"success,omitempty"` } `json:"data"` Ts int64 `json:"ts"` }
type ContractHisOrdersExactResponse ¶
type ContractHisOrdersExactResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []struct { QueryID int64 `json:"query_id"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` ContractType string `json:"contract_type"` LeverRate int `json:"lever_rate"` Direction string `json:"direction"` Offset string `json:"offset"` Volume float64 `json:"volume"` Price float64 `json:"price"` CreateDate int64 `json:"create_date"` UpdateTime int64 `json:"update_time"` OrderSource string `json:"order_source"` OrderPriceType string `json:"order_price_type"` MarginFrozen float64 `json:"margin_frozen"` Profit float64 `json:"profit"` TradeVolume float64 `json:"trade_volume"` TradeTurnover float64 `json:"trade_turnover"` Fee float64 `json:"fee"` TradeAvgPrice float64 `json:"trade_avg_price"` Status int `json:"status"` OrderType int `json:"order_type"` FeeAsset string `json:"fee_asset"` LiquidationType string `json:"liquidation_type"` IsTpsl int `json:"is_tpsl"` RealProfit float64 `json:"real_profit"` CanceledSource string `json:"canceled_source,omitempty"` } `json:"data"` }
type ContractHisordersResponse ¶
type ContractHisordersResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []struct { QueryID int64 `json:"query_id"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` ContractType string `json:"contract_type"` LeverRate int `json:"lever_rate"` Direction string `json:"direction"` Offset string `json:"offset"` Volume float64 `json:"volume"` Price float64 `json:"price"` CreateDate int64 `json:"create_date"` UpdateTime int64 `json:"update_time"` OrderSource string `json:"order_source"` OrderPriceType int `json:"order_price_type"` MarginFrozen float64 `json:"margin_frozen"` Profit float64 `json:"profit"` TradeVolume float64 `json:"trade_volume"` TradeTurnover float64 `json:"trade_turnover"` Fee float64 `json:"fee"` TradeAvgPrice float64 `json:"trade_avg_price"` Status int `json:"status"` OrderType int `json:"order_type"` FeeAsset string `json:"fee_asset"` LiquidationType string `json:"liquidation_type"` IsTpsl string `json:"is_tpsl"` RealProfit float64 `json:"real_profit"` CanceledSource string `json:"canceled_source,omitempty"` } `json:"data"` }
type ContractMatchResultsExactResponse ¶
type ContractMatchResultsExactResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []struct { ID string `json:"id"` MatchID int64 `json:"match_id"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` Symbol string `json:"symbol"` ContractType string `json:"contract_type"` ContractCode string `json:"contract_code"` Direction string `json:"direction"` Offset string `json:"offset"` TradeVolume float32 `json:"trade_volume"` TradePrice float32 `json:"trade_price"` TradeTurnover float32 `json:"trade_turnover"` CreateDate int64 `json:"create_date"` OffsetProfitLoss float32 `json:"offset_profitloss"` TradeFee float32 `json:"trade_fee"` Role string `json:"role"` RealProfit float32 `json:"real_profit"` FeeAsset string `json:"fee_asset"` OrderSource string `json:"order_source"` QueryID int64 `json:"query_id"` } `json:"data"` }
type ContractMatchResultsResponse ¶
type ContractMatchResultsResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []struct { QueryID int64 `json:"query_id"` ID string `json:"id"` MatchID int64 `json:"match_id"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` Symbol string `json:"symbol"` ContractType string `json:"contract_type"` ContractCode string `json:"contract_code"` Direction string `json:"direction"` Offset string `json:"offset"` TradeVolume float64 `json:"trade_volume"` TradePrice float64 `json:"trade_price"` TradeTurnover float64 `json:"trade_turnover"` CreateDate int64 `json:"create_date"` OffsetProfitLoss float64 `json:"offset_profitloss"` TradeFee float64 `json:"trade_fee"` Role string `json:"role"` RealProfit float64 `json:"real_profit"` FeeAsset string `json:"fee_asset"` OrderSource string `json:"order_source"` } `json:"data"` }
type ContractOpenOrdersResponse ¶
type ContractOpenOrdersResponse struct { Status string `json:"status"` Data struct { Orders []struct { Symbol string `json:"symbol"` ContractType string `json:"contract_type"` ContractCode string `json:"contract_code"` Volume float64 `json:"volume"` Price float64 `json:"price"` OrderPriceType string `json:"order_price_type"` OrderType int `json:"order_type"` Direction string `json:"direction"` Offset string `json:"offset"` LeverRate int `json:"lever_rate"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` ClientOrderID int64 `json:"client_order_id"` CreatedAt int64 `json:"created_at"` TradeVolume float64 `json:"trade_volume"` TradeTurnover float64 `json:"trade_turnover"` Fee float64 `json:"fee"` TradeAvgPrice float64 `json:"trade_avg_price"` MarginFrozen float64 `json:"margin_frozen"` Profit float64 `json:"profit"` IsTPSL int `json:"is_tpsl"` Status int `json:"status"` OrderSource string `json:"order_source"` FeeAsset string `json:"fee_asset"` UpdateTime int64 `json:"update_time"` RealProfit float64 `json:"real_profit"` } `json:"orders"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data"` Ts int64 `json:"ts"` }
type ContractOrderDetailResponse ¶
type ContractOrderDetailResponse struct { Status string `json:"status"` Data struct { Symbol string `json:"symbol"` ContractType string `json:"contract_type"` ContractCode string `json:"contract_code"` LeverRate int `json:"lever_rate"` Direction string `json:"direction"` Offset string `json:"offset"` Volume float64 `json:"volume"` Price float64 `json:"price"` CreatedAt int64 `json:"created_at"` CanceledAt int64 `json:"canceled_at"` OrderSource string `json:"order_source"` OrderPriceType string `json:"order_price_type"` MarginFrozen float64 `json:"margin_frozen"` Profit float64 `json:"profit"` CanceledSource string `json:"canceled_source"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` InstrumentPrice float64 `json:"instrument_price"` FinalInterest float64 `json:"final_interest"` AdjustValue float64 `json:"adjust_value"` FeeAsset string `json:"fee_asset"` LiquidationType string `json:"liquidation_type"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` ClientOrderID int64 `json:"client_order_id"` TradeVolume float64 `json:"trade_volume"` TradeTurnover float64 `json:"trade_turnover"` Fee float64 `json:"fee"` TradeAvgPrice float64 `json:"trade_avg_price"` OrderStatus int `json:"order_status"` OrderType string `json:"order_type"` IsTPSL int `json:"is_tpsl"` RealProfit float64 `json:"real_profit"` Trades []struct { ID string `json:"id"` TradeID int64 `json:"trade_id"` TradePrice float64 `json:"trade_price"` TradeVolume float64 `json:"trade_volume"` TradeTurnover float64 `json:"trade_turnover"` TradeFee float64 `json:"trade_fee"` Role string `json:"role"` CreatedAt int64 `json:"created_at"` RealProfit float64 `json:"real_profit"` Profit float64 `json:"profit"` } `json:"trades"` } `json:"data"` }
type ContractOrderInfoResponse ¶
type ContractOrderInfoResponse struct { Status string `json:"status"` Data []struct { Symbol string `json:"symbol"` ContractType string `json:"contract_type"` ContractCode string `json:"contract_code"` Volume float64 `json:"volume"` Price float64 `json:"price"` OrderPriceType string `json:"order_price_type"` Direction string `json:"direction"` Offset string `json:"offset"` LeverRate int `json:"lever_rate"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` ClientOrderID int64 `json:"client_order_id"` CreatedAt int64 `json:"created_at"` CanceledAt int64 `json:"canceled_at"` TradeVolume float64 `json:"trade_volume"` TradeTurnover float64 `json:"trade_turnover"` Fee float64 `json:"fee"` TradeAvgPrice float64 `json:"trade_avg_price"` MarginFrozen float64 `json:"margin_frozen"` Profit float64 `json:"profit"` Status int `json:"status"` OrderType int `json:"order_type"` OrderSource string `json:"order_source"` FeeAsset string `json:"fee_asset"` LiquidationType string `json:"liquidation_type"` IsTpsl int `json:"is_tpsl"` RealProfit float64 `json:"real_profit"` CanceledSource string `json:"canceled_source,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type ContractOrderResponse ¶
Source Files ¶
- contract_batch_order_response.go
- contract_cancel_after_response.go
- contract_cancel_all_response.go
- contract_cancel_response.go
- contract_his_orders_exact_response.go
- contract_hisorders_response.go
- contract_match_results_exact_response.go
- contract_match_results_response.go
- contract_open_orders_response.go
- contract_order_detail_response.go
- contract_order_info_response.go
- contract_order_response.go
- contract_switch_lever_rate_response.go
- lightning_close_position_response.go
Click to show internal directories.
Click to hide internal directories.