triggerorder

package
v0.0.0-...-841ffdc Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 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 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 SwapTrackCancelAllResponse

type SwapTrackCancelAllResponse struct {
	Status string `json:"status"`
	Data   struct {
		Errors []struct {
			OrderID string `json:"order_id"`
			ErrCode int64  `json:"err_code"`
			ErrMsg  string `json:"err_msg"`
		} `json:"errors"`
		Successes string `json:"successes"`
	} `json:"data"`
	Ts int64 `json:"ts"`
}

type SwapTrackCancelResponse

type SwapTrackCancelResponse struct {
	Status string `json:"status"`
	Data   struct {
		Errors []struct {
			OrderID string `json:"order_id"`
			ErrCode int64  `json:"err_code"`
			ErrMsg  string `json:"err_msg"`
		} `json:"errors"`
		Successes string `json:"successes"`
	} `json:"data"`
	Ts int64 `json:"ts"`
}

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 SwapTrackOrderResponse struct {
	Status string `json:"status"`
	Ts     int64  `json:"ts"`
	Data   struct {
		OrderID    int64  `json:"order_id"`
		OrderIDStr string `json:"order_id_str"`
	} `json:"data"`
}

type SwapTriggerCancelAllResponse

type SwapTriggerCancelAllResponse struct {
	Status string `json:"status"`
	Data   struct {
		Errors []struct {
			OrderID string `json:"order_id"`
			ErrCode int    `json:"err_code"`
			ErrMsg  string `json:"err_msg"`
		} `json:"errors"`
		Successes string `json:"successes"`
	} `json:"data"`
	Ts int64 `json:"ts"`
}

type SwapTriggerCancelResponse

type SwapTriggerCancelResponse struct {
	Status string `json:"status"`
	Data   struct {
		Errors []struct {
			OrderID string `json:"order_id"`
			ErrCode int    `json:"err_code"`
			ErrMsg  string `json:"err_msg"`
		} `json:"errors"`
		Successes string `json:"successes"`
	} `json:"data"`
	Ts int64 `json:"ts"`
}

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"`
}

type SwapTriggerOrderResponse

type SwapTriggerOrderResponse struct {
	Status string `json:"status"`
	Ts     int64  `json:"ts"`
	Data   struct {
		OrderID    int    `json:"order_id"`
		OrderIDStr string `json:"order_id_str"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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