Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlgoOrderList ¶
type AlgoOrderList struct {
InstType okex.InstrumentType `json:"instType,omitempty"`
Uly string `json:"uly,omitempty"`
InstID string `json:"instId,omitempty"`
After float64 `json:"after,omitempty,string"`
Before float64 `json:"before,omitempty,string"`
Limit float64 `json:"limit,omitempty,string"`
OrdType okex.AlgoOrderType `json:"ordType,omitempty"`
State okex.OrderState `json:"state,omitempty"`
}
type AmendOrder ¶
type AmendOrder struct {
ID string `json:"-"`
InstID string `json:"instId"`
OrdID string `json:"ordId,omitempty"`
ClOrdID string `json:"clOrdId,omitempty"`
ReqID string `json:"reqId,omitempty"`
NewSz int64 `json:"newSz,omitempty,string"`
NewPx float64 `json:"newPx,omitempty,string"`
CxlOnFail bool `json:"cxlOnFail,omitempty"`
}
type CancelAlgoOrder ¶
type CancelOrder ¶
type ClosePosition ¶
type ClosePosition struct {
InstID string `json:"instId"`
Ccy string `json:"ccy,omitempty"`
PosSide okex.PositionSide `json:"posSide,omitempty"`
MgnMode okex.MarginMode `json:"mgnMode"`
}
type IcebergOrder ¶
type OrderDetails ¶
type OrderList ¶
type OrderList struct {
Uly string `json:"uly,omitempty"`
InstID string `json:"instId,omitempty"`
After float64 `json:"after,omitempty,string"`
Before float64 `json:"before,omitempty,string"`
Limit float64 `json:"limit,omitempty,string"`
InstType okex.InstrumentType `json:"instType,omitempty"`
OrdType okex.OrderType `json:"ordType,omitempty"`
State okex.OrderState `json:"state,omitempty"`
}
type PlaceAlgoOrder ¶
type PlaceAlgoOrder struct {
InstID string `json:"instId"`
TdMode okex.TradeMode `json:"tdMode"`
Ccy string `json:"ccy,omitempty"`
Side okex.OrderSide `json:"side"`
PosSide okex.PositionSide `json:"posSide,omitempty"`
OrdType okex.AlgoOrderType `json:"ordType"`
Sz int64 `json:"sz,string"`
ReduceOnly bool `json:"reduceOnly,omitempty"`
TgtCcy okex.QuantityType `json:"tgtCcy,omitempty"`
StopOrder
TriggerOrder
IcebergOrder
TWAPOrder
}
type PlaceOrder ¶
type PlaceOrder struct {
ID string `json:"-"`
InstID string `json:"instId"`
Ccy string `json:"ccy,omitempty"`
ClOrdID string `json:"clOrdId,omitempty"`
Tag string `json:"tag,omitempty"`
ReduceOnly bool `json:"reduceOnly,omitempty"`
Sz float64 `json:"sz,string"`
Px float64 `json:"px,omitempty,string"`
TdMode okex.TradeMode `json:"tdMode"`
Side okex.OrderSide `json:"side"`
PosSide okex.PositionSide `json:"posSide,omitempty"`
OrdType okex.OrderType `json:"ordType"`
TgtCcy okex.QuantityType `json:"tgtCcy,omitempty"`
}
type TWAPOrder ¶
type TWAPOrder struct {
IcebergOrder
TimeInterval string `json:"timeInterval"`
}
type TransactionDetails ¶
type TransactionDetails struct {
Uly string `json:"uly,omitempty"`
InstID string `json:"instId,omitempty"`
OrdID string `json:"ordId,omitempty"`
After float64 `json:"after,omitempty,string"`
Before float64 `json:"before,omitempty,string"`
Limit float64 `json:"limit,omitempty,string"`
InstType okex.InstrumentType `json:"instType,omitempty"`
}
type TriggerOrder ¶
Click to show internal directories.
Click to hide internal directories.