Documentation ¶
Index ¶
- type CancelOrderResponse
- type GetHisMatchExactResponse
- type GetHisMatchResponse
- type GetHisOrderExactResponse
- type GetHisOrderResponse
- type GetOpenOrderResponse
- type GetOrderDetailResponse
- type GetOrderInfoResponse
- type LightningCloseResponse
- type LinearCancelAfter
- type LinearCancelAfterResponse
- type PlaceBatchOrderResponse
- type PlaceOrderResponse
- type SwapHisorders
- type SwapHisordersResponse
- type SwapSwitchPositionMode
- type SwapSwitchPositionModeResponse
- type SwitchLeverRateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelOrderResponse ¶
type CancelOrderResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Error []struct { OrderId string `json:"order_id"` ErrorCode int `json:"err_code"` ErrorMessage string `json:"err_msg"` } `json:"errors,omitempty"` Successes string `json:"successes,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetHisMatchExactResponse ¶
type GetHisMatchExactResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Trades []struct { Id string `json:"id"` MatchId int64 `json:"match_id"` 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"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` 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"` RealProfit float32 `json:"real_profit"` TradeFee float32 `json:"trade_fee"` Role string `json:"role"` FeeAsset string `json:"fee_asset"` OrderSource string `json:"order_source"` } `json:"trades"` RemainSize int `json:"remain_size"` NextId int64 `json:"next_id,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetHisMatchResponse ¶
type GetHisMatchResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Trades []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"` OrderSource string `json:"order_source"` 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"` FeeAsset string `json:"fee_asset"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` RealProfit float32 `json:"real_profit"` } `json:"trades"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetHisOrderExactResponse ¶
type GetHisOrderExactResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Orders []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"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` LeverRate int `json:"lever_rate"` Direction string `json:"direction"` Offset string `json:"offset"` Volume float32 `json:"volume"` Price float32 `json:"price"` CreateDate int64 `json:"create_date"` OrderSource string `json:"order_source"` OrderPriceType string `json:"order_price_type"` MarginFrozen float32 `json:"margin_frozen"` Profit float32 `json:"profit"` RealProfit float32 `json:"real_profit"` TradeVolume float32 `json:"trade_volume"` TradeTurnover float32 `json:"trade_turnover"` Fee float32 `json:"fee"` TradeAvgPrice float32 `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"` } `json:"orders"` RemainSize int `json:"remain_size"` NextId int64 `json:"next_id,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetHisOrderResponse ¶
type GetHisOrderResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Orders []struct { OrderId int64 `json:"order_id"` OrderIdStr string `json:"order_id_str"` Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` LeverRate int `json:"lever_rate"` Direction string `json:"direction"` Offset string `json:"offset"` Volume float32 `json:"volume"` Price float32 `json:"price"` CreateDate int64 `json:"create_date"` UpdateTime int64 `json:"update_time "` OrderSource string `json:"order_source"` OrderPriceType int `json:"order_price_type"` MarginAsset string `json:"margin_asset"` MarginFrozen float32 `json:"margin_frozen"` Profit float32 `json:"profit"` TradeVolume float32 `json:"trade_volume"` TradeTurnover float32 `json:"trade_turnover"` Fee float32 `json:"fee"` TradeAvgPrice float32 `json:"trade_avg_price"` Status int `json:"status"` OrderType int `json:"order_type"` FeeAsset string `json:"fee_asset"` LiquidationType string `json:"liquidation_type"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` IsTpsl int `json:"is_tpsl"` RealProfit float32 `json:"real_profit"` } `json:"orders"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetOpenOrderResponse ¶
type GetOpenOrderResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Orders []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Volume float32 `json:"volume"` Price float32 `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,omitempty"` CreatedAt int64 `json:"created_at"` TradeVolume float32 `json:"trade_volume"` TradeTurnover float32 `json:"trade_turnover"` Fee float32 `json:"fee"` FeeAsset string `json:"fee_asset"` TradeAvgPrice float32 `json:"trade_avg_price,omitempty"` MarginFrozen float32 `json:"margin_frozen"` MarginAsset string `json:"margin_asset"` Profit float32 `json:"profit"` Status int `json:"status"` OrderSource string `json:"order_source"` LiquidationType string `json:"liquidation_type"` CanceledAt int64 `json:"canceled_at,omitempty"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` IsTpsl int `json:"is_tpsl"` UpdateTime int64 `json:"update_time"` RealProfit float32 `json:"real_profit"` ReduceOnly int `json:"reduce_only"` } `json:"orders"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetOrderDetailResponse ¶
type GetOrderDetailResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` LeverRate int `json:"lever_rate"` Direction string `json:"direction"` Offset string `json:"offset"` Volume float32 `json:"volume"` Price float32 `json:"price"` CreatedAt int64 `json:"created_at"` CanceledAt int64 `json:"canceled_at"` OrderSource string `json:"order_source"` OrderPriceType string `json:"order_price_type"` MarginAsset string `json:"margin_asset"` MarginFrozen float32 `json:"margin_frozen"` Profit float32 `json:"profit"` InstrumentPrice float32 `json:"instrument_price"` FinalInterest float32 `json:"final_interest"` AdjustValue float32 `json:"adjust_value"` Fee float32 `json:"fee"` 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,omitempty"` OrderType string `json:"order_type"` Status int `json:"status"` TradeAvgPrice float32 `json:"trade_avg_price,omitempty"` TradeTurnover float32 `json:"trade_turnover"` TradeVolume float32 `json:"trade_volume"` TotalPage int `json:"total_page"` CurrentPage int `json:"current_page"` TotalSize int `json:"total_size"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` IsTpsl int `json:"is_tpsl"` RealProfit float32 `json:"real_profit"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` ReduceOnly int `json:"reduce_only"` CanceledSource string `json:"canceled_source"` Trades []struct { Id string `json:"id"` TradeId int64 `json:"trade_id"` TradePrice float32 `json:"trade_price"` TradeVolume float32 `json:"trade_volume"` TradeTurnover float32 `json:"trade_turnover"` TradeFee float32 `json:"trade_fee"` Role string `json:"role"` CreatedAt int64 `json:"created_at"` RealProfit float32 `json:"real_profit"` Profit float32 `json:"profit"` } `json:"trades,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type GetOrderInfoResponse ¶
type GetOrderInfoResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data []struct { Symbol string `json:"symbol"` ContractCode string `json:"contract_code"` Volume float32 `json:"volume"` Price float32 `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,omitempty"` CreatedAt int64 `json:"created_at"` TradeVolume float32 `json:"trade_volume"` TradeTurnover float32 `json:"trade_turnover"` Fee float32 `json:"fee"` TradeAvgPrice float32 `json:"trade_avg_price"` MarginAsset string `json:"margin_asset"` MarginFrozen float32 `json:"margin_frozen"` Profit float32 `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"` CanceledAt int64 `json:"canceled_at"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` IsTpsl int `json:"is_tpsl"` RealProfit float32 `json:"real_profit"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` ReduceOnly int `json:"reduce_only"` FeeAmount float32 `json:"fee_amount"` FeeQuoteAmount float32 `json:"fee_quote_amount"` CanceledSource string `json:"canceled_source"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type LightningCloseResponse ¶
type LightningCloseResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { OrderId int64 `json:"order_id"` OrderIdStr string `json:"order_id_str"` ClientOrderId int64 `json:"client_order_id,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type LinearCancelAfter ¶
type LinearCancelAfterResponse ¶
type LinearCancelAfterResponse struct { Code int32 `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data LinearCancelAfter `json:"data"` }
type PlaceBatchOrderResponse ¶
type PlaceBatchOrderResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { Errors []struct { Index int `json:"index"` ErrorCode int `json:"err_code"` ErrorMessage string `json:"err_msg"` } `json:"errors,omitempty"` Success []struct { Index int `json:"index"` OrderId int64 `json:"order_id"` ClientOrderId int64 `json:"client_order_id,omitempty"` OrderIdStr string `json:"order_id_str"` } `json:"success,omitempty"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type PlaceOrderResponse ¶
type PlaceOrderResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { OrderId int64 `json:"order_id"` ClientOrderId int64 `json:"client_order_id,omitempty"` OrderIdStr string `json:"order_id_str"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
type SwapHisorders ¶
type SwapHisorders 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"` 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"` MarginAsset string `json:"margin_asset"` MarginFrozen float64 `json:"margin_frozen"` Profit float64 `json:"profit"` RealProfit float64 `json:"real_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"` MarginMode string `json:"margin_mode"` MarginAccount string `json:"margin_account"` IsTPSL int `json:"is_tpsl"` ReduceOnly int `json:"reduce_only"` CanceledSource string `json:"canceled_source"` }
type SwapHisordersResponse ¶
type SwapHisordersResponse struct { Code int `json:"code"` Msg string `json:"msg"` Ts int64 `json:"ts"` Data []SwapHisorders `json:"data"` }
type SwapSwitchPositionMode ¶
type SwapSwitchPositionModeResponse ¶
type SwapSwitchPositionModeResponse struct { Status string `json:"status"` Data []SwapSwitchPositionMode `json:"data"` Ts int64 `json:"ts"` }
type SwitchLeverRateResponse ¶
type SwitchLeverRateResponse struct { Status string `json:"status"` ErrorCode int `json:"err_code,omitempty"` ErrorMessage string `json:"err_msg,omitempty"` Data struct { ContractCode string `json:"contract_code"` MarginMode string `json:"margin_mode"` LeverRate int `json:"lever_rate"` ContractType string `json:"contract_type"` Pair string `json:"pair"` BusinessType string `json:"business_type"` } `json:"data,omitempty"` Ts int64 `json:"ts"` }
Source Files ¶
- cancel_order_response.go
- get_his_match_exact_response.go
- get_his_match_response.go
- get_his_order_response.go
- get_his_order_response_exact.go
- get_open_order_response.go
- get_orderInfo_response.go
- get_order_detail_response.go
- lightning_close_response.go
- linear_cancel_after_response.go
- place_batch_order_response.go
- place_order_response.go
- swap_cross_switch_position_mode_response.go
- swap_hisorders_response.go
- swap_switch_position_mode_response.go
- switch_lever_rate_response.go
Click to show internal directories.
Click to hide internal directories.