diff --git a/pkg/exchange/ftx/ftxapi/types.go b/pkg/exchange/ftx/ftxapi/types.go new file mode 100644 index 000000000..21eba5bf9 --- /dev/null +++ b/pkg/exchange/ftx/ftxapi/types.go @@ -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" +)