order

package
v0.0.0-...-fc61210 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 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"`

		Success string `json:"success,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"`
		} `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 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"`

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

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

		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