2022-04-27 17:26:52 +00:00
|
|
|
package binanceapi
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/adshao/go-binance/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
type SideType = binance.SideType
|
|
|
|
|
2022-04-29 05:34:19 +00:00
|
|
|
const SideTypeBuy = binance.SideTypeBuy
|
|
|
|
const SideTypeSell = binance.SideTypeSell
|
2022-04-27 17:26:52 +00:00
|
|
|
|
|
|
|
type OrderType = binance.OrderType
|
|
|
|
|
2022-04-29 05:34:19 +00:00
|
|
|
const (
|
|
|
|
OrderTypeLimit OrderType = binance.OrderTypeLimit
|
|
|
|
OrderTypeMarket OrderType = binance.OrderTypeMarket
|
|
|
|
OrderTypeLimitMaker OrderType = binance.OrderTypeLimitMaker
|
|
|
|
OrderTypeStopLoss OrderType = binance.OrderTypeStopLoss
|
|
|
|
OrderTypeStopLossLimit OrderType = binance.OrderTypeStopLossLimit
|
|
|
|
OrderTypeTakeProfit OrderType = binance.OrderTypeTakeProfit
|
|
|
|
OrderTypeTakeProfitLimit OrderType = binance.OrderTypeTakeProfitLimit
|
|
|
|
)
|
2022-04-27 17:26:52 +00:00
|
|
|
|
|
|
|
type OrderStatusType = binance.OrderStatusType
|
|
|
|
|
2022-04-29 05:34:19 +00:00
|
|
|
const (
|
|
|
|
OrderStatusTypeNew OrderStatusType = binance.OrderStatusTypeNew
|
|
|
|
OrderStatusTypePartiallyFilled OrderStatusType = binance.OrderStatusTypePartiallyFilled
|
|
|
|
OrderStatusTypeFilled OrderStatusType = binance.OrderStatusTypeFilled
|
|
|
|
OrderStatusTypeCanceled OrderStatusType = binance.OrderStatusTypeCanceled
|
|
|
|
OrderStatusTypePendingCancel OrderStatusType = binance.OrderStatusTypePendingCancel
|
|
|
|
OrderStatusTypeRejected OrderStatusType = binance.OrderStatusTypeRejected
|
|
|
|
OrderStatusTypeExpired OrderStatusType = binance.OrderStatusTypeExpired
|
|
|
|
)
|