mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
ftxapi: define types
This commit is contained in:
parent
cd0ac71b99
commit
14a49989fe
30
pkg/exchange/ftx/ftxapi/types.go
Normal file
30
pkg/exchange/ftx/ftxapi/types.go
Normal file
|
@ -0,0 +1,30 @@
|
|||
package ftxapi
|
||||
|
||||
|
||||
type Side string
|
||||
|
||||
const (
|
||||
SideBuy Side = "buy"
|
||||
SideSell Side = "sell"
|
||||
)
|
||||
|
||||
|
||||
type OrderType string
|
||||
|
||||
const (
|
||||
OrderTypeLimit OrderType = "limit"
|
||||
OrderTypeMarket OrderType = "market"
|
||||
|
||||
// trigger order types
|
||||
OrderTypeStopLimit OrderType = "stop"
|
||||
OrderTypeTrailingStop OrderType = "trailingStop"
|
||||
OrderTypeTakeProfit OrderType = "takeProfit"
|
||||
)
|
||||
|
||||
type OrderStatus string
|
||||
|
||||
const (
|
||||
OrderStatusNew OrderStatus = "new"
|
||||
OrderStatusOpen OrderStatus = "open"
|
||||
OrderStatusClosed OrderStatus = "closed"
|
||||
)
|
Loading…
Reference in New Issue
Block a user