Documentation ¶
Index ¶
- type SwapRelationTpslOrderResponse
- type SwapTpslCancelAllResponse
- type SwapTpslCancelResponse
- type SwapTpslHisOrdersResponse
- type SwapTpslOpenOrdersResponse
- type SwapTpslOrderResponse
- type SwapTrackCancelAllResponse
- type SwapTrackCancelResponse
- type SwapTrackHisOrdersResponse
- type SwapTrackOpenOrdersResponse
- type SwapTrackOrderResponse
- type SwapTriggerCancelAllResponse
- type SwapTriggerCancelResponse
- type SwapTriggerHisOrdersResponse
- type SwapTriggerOpenOrdersResponse
- type SwapTriggerOrderResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwapRelationTpslOrderResponse ¶
type SwapRelationTpslOrderResponse struct { Status string `json:"status"` Data struct { Symbol string `json:"symbol"` 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"` 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"` OrderStatus int `json:"status"` OrderType int `json:"order_type"` OrderSource string `json:"order_source"` FeeAsset string `json:"fee_asset"` CanceledAt int64 `json:"canceled_at"` TPSLOrderInfo []struct { Volume float64 `json:"volume"` TPSLOrderType string `json:"tpsl_order_type"` Direction string `json:"direction"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` TriggerType string `json:"trigger_type"` TriggerPrice float64 `json:"trigger_price"` CreatedAt int64 `json:"created_at"` OrderPriceType string `json:"order_price_type"` OrderPrice float64 `json:"order_price"` Status int `json:"status"` RelationTPSLOrderID string `json:"relation_tpsl_order_id"` CanceledAt int64 `json:"canceled_at"` FailCode int `json:"fail_code"` FailReason string `json:"fail_reason"` TriggeredPrice float64 `json:"triggered_price"` RelationOrderID string `json:"relation_order_id"` } `json:"tpsl_order_info,omitempty"` } `json:"data"` Ts int64 `json:"ts"` }
type SwapTpslCancelAllResponse ¶
type SwapTpslCancelAllResponse struct { Status string `json:"status"` Data struct { Errors []struct { OrderID string `json:"order_id"` ErrorCode int `json:"err_code"` ErrorMessage string `json:"err_msg"` } `json:"errors"` Successes string `json:"successes"` } `json:"data"` Timestamp int64 `json:"ts"` }
type SwapTpslCancelResponse ¶
type SwapTpslCancelResponse struct { Status string `json:"status"` Data struct { Errors []struct { OrderID string `json:"order_id"` ErrorCode int `json:"err_code"` ErrorMessage string `json:"err_msg"` } `json:"errors"` Successes string `json:"successes"` } `json:"data"` Timestamp int64 `json:"ts"` }
type SwapTpslHisOrdersResponse ¶
type SwapTpslHisOrdersResponse struct { Status string `json:"status"` Data struct { TotalPage int `json:"total_page"` TotalSize int `json:"total_size"` CurrentPage int `json:"current_page"` Orders []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Volume float64 `json:"volume"` OrderType int `json:"order_type"` TPSLOrderType string `json:"tpsl_order_type"` Direction string `json:"direction"` OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` OrderSource string `json:"order_source"` TriggerType string `json:"trigger_type"` TriggerPrice float64 `json:"trigger_price"` CreatedAt int64 `json:"created_at"` OrderPriceType string `json:"order_price_type"` OrderPrice float64 `json:"order_price"` Status int `json:"status"` SourceOrderID string `json:"source_order_id"` RelationTPSLOrderID string `json:"relation_tpsl_order_id"` CanceledAt int64 `json:"canceled_at"` FailCode int `json:"fail_code"` FailReason string `json:"fail_reason"` TriggeredPrice float64 `json:"triggered_price"` RelationOrderID string `json:"relation_order_id"` UpdateTime int64 `json:"update_time"` } `json:"orders"` } `json:"data"` Ts int64 `json:"ts"` }
type SwapTpslOpenOrdersResponse ¶
type SwapTpslOpenOrdersResponse struct { Status string `json:"status"` Data struct { TotalPage int `json:"total_page"` TotalSize int `json:"total_size"` CurrentPage int `json:"current_page"` Orders []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Volume float32 `json:"volume"` OrderType int `json:"order_type"` TPSLOrderType string `json:"tpsl_order_type"` Direction string `json:"direction"` OrderID int64 `json:"order_id"` OrderIDString string `json:"order_id_str"` OrderSource string `json:"order_source"` TriggerType string `json:"trigger_type"` TriggerPrice float32 `json:"trigger_price"` CreatedAt int64 `json:"created_at"` OrderPriceType string `json:"order_price_type"` OrderPrice float32 `json:"order_price"` Status int `json:"status"` SourceOrderID string `json:"source_order_id"` RelationTPSLOrderID string `json:"relation_tpsl_order_id"` } `json:"orders"` } `json:"data"` Timestamp int64 `json:"ts"` }
type SwapTpslOrderResponse ¶
type SwapTpslOrderResponse struct { Status string `json:"status"` Ts int64 `json:"ts"` Data struct { TpOrder struct { OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` } `json:"tp_order"` SlOrder struct { OrderID int64 `json:"order_id"` OrderIDStr string `json:"order_id_str"` } `json:"sl_order"` } `json:"data"` ErrorCode int `json:"err_code"` ErrorMessage string `json:"err_msg"` }
type SwapTrackCancelResponse ¶
type SwapTrackHisOrdersResponse ¶
type SwapTrackHisOrdersResponse struct { Status string `json:"status"` Data struct { TotalPage int `json:"total_page"` TotalSize int `json:"total_size"` CurrentPage int `json:"current_page"` Orders []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Volume float64 `json:"volume"` 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"` OrderSource string `json:"order_source"` CreatedAt int64 `json:"created_at"` UpdateTime int64 `json:"update_time"` OrderPriceType string `json:"order_price_type"` Status int `json:"status"` CanceledAt int64 `json:"canceled_at"` FailCode int `json:"fail_code"` FailReason string `json:"fail_reason"` CallbackRate float64 `json:"callback_rate"` ActivePrice float64 `json:"active_price"` IsActive int `json:"is_active"` MarketLimitPrice float64 `json:"market_limit_price"` FormulaPrice float64 `json:"formula_price"` RealVolume float64 `json:"real_volume"` TriggeredPrice float64 `json:"triggered_price"` RelationOrderID string `json:"relation_order_id"` } `json:"orders"` } `json:"data"` Ts int64 `json:"ts"` }
type SwapTrackOpenOrdersResponse ¶
type SwapTrackOpenOrdersResponse struct { Status string `json:"status"` Data struct { TotalPage int `json:"total_page"` TotalSize int `json:"total_size"` CurrentPage int `json:"current_page"` Orders []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Volume float64 `json:"volume"` 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"` OrderSource string `json:"order_source"` CreatedAt int64 `json:"created_at"` OrderPriceType string `json:"order_price_type"` Status int `json:"status"` CallbackRate float64 `json:"callback_rate"` ActivePrice float64 `json:"active_price"` IsActive int `json:"is_active"` } `json:"orders"` } `json:"data"` Ts int64 `json:"ts"` }
type SwapTrackOrderResponse ¶
type SwapTriggerHisOrdersResponse ¶
type SwapTriggerHisOrdersResponse struct { Status string `json:"status"` Data struct { TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` Orders []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` TriggerType string `json:"trigger_type"` Volume float64 `json:"volume"` 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"` RelationOrderID string `json:"relation_order_id"` OrderPriceType string `json:"order_price_type"` Status int `json:"status"` OrderSource string `json:"order_source"` TriggerPrice float64 `json:"trigger_price"` TriggeredPrice float64 `json:"triggered_price"` OrderPrice float64 `json:"order_price"` CreatedAt int64 `json:"created_at"` TriggeredAt int64 `json:"triggered_at"` OrderInsertAt int64 `json:"order_insert_at"` CanceledAt int64 `json:"canceled_at"` UpdateTime int64 `json:"update_time"` FailCode int `json:"fail_code"` FailReason string `json:"fail_reason"` } `json:"orders"` } `json:"data"` Ts int64 `json:"ts"` }
type SwapTriggerOpenOrdersResponse ¶
type SwapTriggerOpenOrdersResponse struct { Status string `json:"status"` Data struct { TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` Orders []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` TriggerType string `json:"trigger_type"` Volume float64 `json:"volume"` 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"` OrderSource string `json:"order_source"` TriggerPrice float64 `json:"trigger_price"` OrderPrice float64 `json:"order_price"` CreatedAt int64 `json:"created_at"` OrderPriceType string `json:"order_price_type"` Status int `json:"status"` } `json:"orders"` } `json:"data"` Ts int64 `json:"ts"` }
Source Files ¶
- swap_relation_tpsl_order_response.go
- swap_tpsl_cancel_all_response.go
- swap_tpsl_cancel_response.go
- swap_tpsl_his_ordersR_response.go
- swap_tpsl_open_orders_response.go
- swap_tpsl_order_response.go
- swap_track_cancel_all_response.go
- swap_track_cancel_response.go
- swap_track_his_orders_response.go
- swap_track_open_orders_response.go
- swap_track_order_response.go
- swap_trigger_cancel_all_response.go
- swap_trigger_cancel_response.go
- swap_trigger_his_orders_response.go
- swap_trigger_open_orders_response.go
- swap_trigger_order_response.go
Click to show internal directories.
Click to hide internal directories.