trade

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgoOrder

type AlgoOrder struct {
	InstID       string              `json:"instId"`
	Ccy          string              `json:"ccy"`
	OrdID        string              `json:"ordId"`
	AlgoID       string              `json:"algoId"`
	ClOrdID      string              `json:"clOrdId"`
	TradeID      string              `json:"tradeId"`
	Tag          string              `json:"tag"`
	Category     string              `json:"category"`
	FeeCcy       string              `json:"feeCcy"`
	RebateCcy    string              `json:"rebateCcy"`
	TimeInterval string              `json:"timeInterval"`
	Px           okex.JSONFloat64    `json:"px"`
	PxVar        okex.JSONFloat64    `json:"pxVar"`
	PxSpread     okex.JSONFloat64    `json:"pxSpread"`
	PxLimit      okex.JSONFloat64    `json:"pxLimit"`
	Sz           okex.JSONFloat64    `json:"sz"`
	SzLimit      okex.JSONFloat64    `json:"szLimit"`
	ActualSz     okex.JSONFloat64    `json:"actualSz"`
	ActualPx     okex.JSONFloat64    `json:"actualPx"`
	Pnl          okex.JSONFloat64    `json:"pnl"`
	AccFillSz    okex.JSONFloat64    `json:"accFillSz"`
	FillPx       okex.JSONFloat64    `json:"fillPx"`
	FillSz       okex.JSONFloat64    `json:"fillSz"`
	FillTime     okex.JSONFloat64    `json:"fillTime"`
	AvgPx        okex.JSONFloat64    `json:"avgPx"`
	Lever        okex.JSONFloat64    `json:"lever"`
	TpTriggerPx  okex.JSONFloat64    `json:"tpTriggerPx"`
	TpOrdPx      okex.JSONFloat64    `json:"tpOrdPx"`
	SlTriggerPx  okex.JSONFloat64    `json:"slTriggerPx"`
	SlOrdPx      okex.JSONFloat64    `json:"slOrdPx"`
	OrdPx        okex.JSONFloat64    `json:"ordPx"`
	Fee          okex.JSONFloat64    `json:"fee"`
	Rebate       okex.JSONFloat64    `json:"rebate"`
	State        okex.OrderState     `json:"state"`
	TdMode       okex.TradeMode      `json:"tdMode"`
	ActualSide   okex.PositionSide   `json:"actualSide"`
	PosSide      okex.PositionSide   `json:"posSide"`
	Side         okex.OrderSide      `json:"side"`
	OrdType      okex.AlgoOrderType  `json:"ordType"`
	InstType     okex.InstrumentType `json:"instType"`
	TgtCcy       okex.QuantityType   `json:"tgtCcy"`
	CTime        okex.JSONTime       `json:"cTime"`
	TriggerTime  okex.JSONTime       `json:"triggerTime"`
}

type AmendOrder

type AmendOrder struct {
	OrdID   string           `json:"ordId"`
	ClOrdID string           `json:"clOrdId"`
	ReqID   string           `json:"reqId"`
	SMsg    string           `json:"sMsg"`
	SCode   okex.JSONFloat64 `json:"sCode"`
}

type CancelAlgoOrder

type CancelAlgoOrder struct {
	AlgoID string         `json:"algoId"`
	SMsg   string         `json:"sMsg"`
	SCode  okex.JSONInt64 `json:"sCode"`
}

type CancelOrder

type CancelOrder struct {
	OrdID   string           `json:"ordId"`
	ClOrdID string           `json:"clOrdId"`
	SMsg    string           `json:"sMsg"`
	SCode   okex.JSONFloat64 `json:"sCode"`
}

type ClosePosition

type ClosePosition struct {
	InstID  string            `json:"instId"`
	PosSide okex.PositionSide `json:"posSide"`
}

type Order

type Order struct {
	InstID      string              `json:"instId"`
	Ccy         string              `json:"ccy"`
	OrdID       string              `json:"ordId"`
	ClOrdID     string              `json:"clOrdId"`
	TradeID     string              `json:"tradeId"`
	Tag         string              `json:"tag"`
	Category    string              `json:"category"`
	FeeCcy      string              `json:"feeCcy"`
	RebateCcy   string              `json:"rebateCcy"`
	Px          okex.JSONFloat64    `json:"px"`
	Sz          okex.JSONFloat64    `json:"sz"`
	Pnl         okex.JSONFloat64    `json:"pnl"`
	AccFillSz   okex.JSONFloat64    `json:"accFillSz"`
	FillPx      okex.JSONFloat64    `json:"fillPx"`
	FillSz      okex.JSONFloat64    `json:"fillSz"`
	FillTime    okex.JSONFloat64    `json:"fillTime"`
	AvgPx       okex.JSONFloat64    `json:"avgPx"`
	Lever       okex.JSONFloat64    `json:"lever"`
	TpTriggerPx okex.JSONFloat64    `json:"tpTriggerPx"`
	TpOrdPx     okex.JSONFloat64    `json:"tpOrdPx"`
	SlTriggerPx okex.JSONFloat64    `json:"slTriggerPx"`
	SlOrdPx     okex.JSONFloat64    `json:"slOrdPx"`
	Fee         okex.JSONFloat64    `json:"fee"`
	Rebate      okex.JSONFloat64    `json:"rebate"`
	State       okex.OrderState     `json:"state"`
	TdMode      okex.TradeMode      `json:"tdMode"`
	PosSide     okex.PositionSide   `json:"posSide"`
	Side        okex.OrderSide      `json:"side"`
	OrdType     okex.OrderType      `json:"ordType"`
	InstType    okex.InstrumentType `json:"instType"`
	TgtCcy      okex.QuantityType   `json:"tgtCcy"`
	UTime       okex.JSONTime       `json:"uTime"`
	CTime       okex.JSONTime       `json:"cTime"`
}

type PlaceAlgoOrder

type PlaceAlgoOrder struct {
	AlgoID string         `json:"algoId"`
	SMsg   string         `json:"sMsg"`
	SCode  okex.JSONInt64 `json:"sCode"`
}

type PlaceOrder

type PlaceOrder struct {
	ClOrdID string           `json:"clOrdId"`
	Tag     string           `json:"tag"`
	SMsg    string           `json:"sMsg"`
	SCode   okex.JSONInt64   `json:"sCode"`
	OrdID   okex.JSONFloat64 `json:"ordId"`
}

type TransactionDetail

type TransactionDetail struct {
	InstID   string              `json:"instId"`
	OrdID    string              `json:"ordId"`
	TradeID  string              `json:"tradeId"`
	ClOrdID  string              `json:"clOrdId"`
	BillID   string              `json:"billId"`
	FeeCcy   string              `json:"feeCcy"`
	Tag      okex.JSONFloat64    `json:"tag"`
	FillPx   okex.JSONFloat64    `json:"fillPx"`
	FillSz   okex.JSONFloat64    `json:"fillSz"`
	Fee      okex.JSONFloat64    `json:"fee"`
	InstType okex.InstrumentType `json:"instType"`
	Side     okex.OrderSide      `json:"side"`
	PosSide  okex.PositionSide   `json:"posSide"`
	ExecType okex.OrderFlowType  `json:"execType"`
	TS       okex.JSONTime       `json:"ts"`
}

Jump to

Keyboard shortcuts

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