mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
50 lines
1.6 KiB
Go
50 lines
1.6 KiB
Go
package binanceapi
|
|
|
|
import (
|
|
"github.com/adshao/go-binance/v2"
|
|
)
|
|
|
|
type SideType = binance.SideType
|
|
|
|
const SideTypeBuy = binance.SideTypeBuy
|
|
const SideTypeSell = binance.SideTypeSell
|
|
|
|
type OrderType = binance.OrderType
|
|
|
|
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
|
|
)
|
|
|
|
type OrderStatusType = binance.OrderStatusType
|
|
|
|
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
|
|
)
|
|
|
|
type CancelReplaceModeType string
|
|
|
|
const (
|
|
StopOnFailure CancelReplaceModeType = "STOP_ON_FAILURE"
|
|
AllowFailure CancelReplaceModeType = "ALLOW_FAILURE"
|
|
)
|
|
|
|
type OrderRespType string
|
|
|
|
const (
|
|
Ack OrderRespType = "ACK"
|
|
Result OrderRespType = "RESULT"
|
|
Full OrderRespType = "FULL"
|
|
)
|