93 lines
3.2 KiB
Go
93 lines
3.2 KiB
Go
package models
|
|
|
|
type OrderResult struct {
|
|
OrderId string `json:"orderId"`
|
|
OrderLinkId string `json:"orderLinkId"`
|
|
}
|
|
|
|
type ListOrderResult struct {
|
|
List []OrderResult `json:"list"`
|
|
}
|
|
|
|
type OrderInfo struct {
|
|
OrderId string `json:"orderId"`
|
|
OrderLinkId string `json:"orderLinkId"`
|
|
BlockTradeId string `json:"blockTradeId"`
|
|
Symbol string `json:"symbol"`
|
|
Price string `json:"price"`
|
|
Qty string `json:"qty"`
|
|
Side string `json:"side"`
|
|
IsLeverage string `json:"isLeverage"`
|
|
PositionIdx int `json:"positionIdx"`
|
|
OrderStatus string `json:"orderStatus"`
|
|
CancelType string `json:"cancelType"`
|
|
RejectReason string `json:"rejectReason"`
|
|
AvgPrice string `json:"avgPrice"`
|
|
LeavesQty string `json:"leavesQty"`
|
|
LeavesValue string `json:"leavesValue"`
|
|
CumExecQty string `json:"cumExecQty"`
|
|
CumExecValue string `json:"cumExecValue"`
|
|
CumExecFee string `json:"cumExecFee"`
|
|
TimeInForce string `json:"timeInForce"`
|
|
OrderType string `json:"orderType"`
|
|
StopOrderType string `json:"stopOrderType"`
|
|
OrderIv string `json:"orderIv"`
|
|
TriggerPrice string `json:"triggerPrice"`
|
|
TakeProfit string `json:"takeProfit"`
|
|
StopLoss string `json:"stopLoss"`
|
|
TpslMode string `json:"tpslMode"`
|
|
OcoTriggerType string `json:"ocoTriggerType"`
|
|
TpLimitPrice string `json:"tpLimitPrice"`
|
|
SlLimitPrice string `json:"slLimitPrice"`
|
|
TpTriggerBy string `json:"tpTriggerBy"`
|
|
SlTriggerBy string `json:"slTriggerBy"`
|
|
TriggerDirection int `json:"triggerDirection"`
|
|
TriggerBy string `json:"triggerBy"`
|
|
LastPriceOnCreated string `json:"lastPriceOnCreated"`
|
|
ReduceOnly bool `json:"reduceOnly"`
|
|
CloseOnTrigger bool `json:"closeOnTrigger"`
|
|
PlaceType string `json:"placeType"`
|
|
SmpType string `json:"smpType"`
|
|
SmpGroup int `json:"smpGroup"`
|
|
SmpOrderId string `json:"smpOrderId"`
|
|
CreatedTime string `json:"createdTime"`
|
|
UpdatedTime string `json:"updatedTime"`
|
|
}
|
|
|
|
type OpenOrdersInfo struct {
|
|
Category string `json:"category"`
|
|
NextPageCursor string `json:"nextPageCursor"`
|
|
List []OrderInfo `json:"list"`
|
|
}
|
|
|
|
type BorrowQuotaInfo struct {
|
|
Symbol string `json:"symbol"`
|
|
Side string `json:"side"`
|
|
MaxTradeQty string `json:"maxTradeQty"`
|
|
MaxTradeAmount string `json:"maxTradeAmount"`
|
|
SpotMaxTradeQty string `json:"spotMaxTradeQty"`
|
|
SpotMaxTradeAmount string `json:"spotMaxTradeAmount"`
|
|
BorrowCoin string `json:"borrowCoin"`
|
|
}
|
|
|
|
type BatchOrderServerResponse struct {
|
|
RetCode int `json:"retCode"`
|
|
RetMsg string `json:"retMsg"`
|
|
Result struct {
|
|
List []struct {
|
|
Category string `json:"category"`
|
|
Symbol string `json:"symbol"`
|
|
OrderId string `json:"orderId"`
|
|
OrderLinkId string `json:"orderLinkId"`
|
|
CreateAt *string `json:"createAt,omitempty"`
|
|
} `json:"list"`
|
|
} `json:"result"`
|
|
RetExtInfo struct {
|
|
List []struct {
|
|
Code int `json:"code"`
|
|
Msg string `json:"msg"`
|
|
} `json:"list"`
|
|
} `json:"retExtInfo"`
|
|
Time int64 `json:"time"`
|
|
}
|