triggerorder

package
v0.0.0-...-fd5bc48 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 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 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"`

		Successes string `json:"successes"`
	} `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 {
			Symbol string `json:"symbol"`

			ContractCode string `json:"contract_code"`

			TriggerType string `json:"trigger_type"`

			Volume float32 `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 float32 `json:"trigger_price"`

			TriggeredPrice float32 `json:"triggered_price,omitempty"`

			OrderPrice float32 `json:"order_price"`

			CreatedAt int64 `json:"created_at"`

			TriggeredAt int64 `json:"triggered_at"`

			OrderInsertAt int64 `json:"order_insert_at"`

			CanceledAt int64 `json:"canceled_at,omitempty"`

			FailCode int `json:"fail_code,omitempty"`

			FailReason string `json:"fail_reason,omitempty"`

			UpdateTime int64 `json:"update_time"`

			MarginMode string `json:"margin_mode"`

			MarginAccount string `json:"margin_account"`

			TpslOrderType string `json:"tpsl_order_type,omitempty"`

			SourceOrderIßd string `json:"source_order_id,omitempty"`

			RelationTpslOrderId string `json:"relation_tpsl_order_id,omitempty"`
		} `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 {
		Order []struct {
			Symbol string `json:"symbol"`

			ContractCode string `json:"contract_code"`

			TriggerType string `json:"trigger_type"`

			Volume float32 `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 float32 `json:"trigger_price"`

			OrderPrice float32 `json:"order_price"`

			CreatedAt int64 `json:"created_at"`

			OrderPriceType string `json:"order_price_type"`

			Status int `json:"status"`

			MarginMode string `json:"margin_mode"`

			MarginAccount string `json:"margin_account"`

			TpslOrderType string `json:"tpsl_order_type,omitempty"`

			SourceOrderIßd string `json:"source_order_id,omitempty"`

			RelationTpslOrderId string `json:"relation_tpsl_order_id,omitempty"`
		} `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 GetRelationTpslOrderResponse

type GetRelationTpslOrderResponse 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"`

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

		CanceledAt int64 `json:"canceled_at"`

		MarginMode string `json:"margin_mode"`

		MarginAccount string `json:"margin_account"`

		TpslOrderInfo []struct {
			Volume float32 `json:"volume"`

			TpslOrderType string `json:"tpsl_order_type,omitempty"`

			Direction string `json:"direction"`

			OrderId int64 `json:"order_id"`

			OrderIdStr string `json:"order_id_str"`

			TriggerType string `json:"trigger_type"`

			TriggerPrice float32 `json:"trigger_price"`

			CreatedAt int64 `json:"created_at"`

			OrderPriceType string `json:"order_price_type"`

			Status int `json:"status"`

			RelationTpslOrderId string `json:"relation_tpsl_order_id,omitempty"`

			CanceledAt int64 `json:"canceled_at,omitempty"`

			FailCode int `json:"fail_code,omitempty"`

			FailReason string `json:"fail_reason,omitempty"`

			TriggeredPrice float32 `json:"triggered_price,omitempty"`

			RelationOrderId string `json:"relation_order_id"`
		} `json:"tpsl_order_info"`
	} `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 int `json:"order_id"`

		OrderIdStr string `json:"order_id_str"`
	} `json:"data,omitempty"`

	Ts int64 `json:"ts"`
}

type TpslOrderResponse

type TpslOrderResponse struct {
	Status string `json:"status"`

	ErrorCode int `json:"err_code,omitempty"`

	ErrorMessage string `json:"err_msg,omitempty"`

	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,omitempty"`

	Ts int64 `json:"ts"`
}

Jump to

Keyboard shortcuts

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