order

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

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