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 CancelAlgoOrder ¶
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 PlaceOrder ¶
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"`
Tag okex.JSONFloat64 `json:"tag"`
FillPx okex.JSONFloat64 `json:"fillPx"`
FillSz okex.JSONFloat64 `json:"fillSz"`
FeeCcy okex.JSONFloat64 `json:"feeCcy"`
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"`
}
Click to show internal directories.
Click to hide internal directories.