Skip to content

Commit

Permalink
Add some constants
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 5, 2021
1 parent 92f9c9e commit 38db2c0
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions websocket/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,35 @@ const (
SubscriptionStatusUnsubscribed = "unsubscribed"
)

// Trade sides
// Trade sides for parsing
const (
Buy = "b"
Sell = "s"
)

// Order types
// Order types for parsing
const (
Market = "m"
Limit = "l"
)

// Trade sides -
const (
SideBuy = "buy"
SideSell = "sell"
)

// Order types -
const (
OrderTypeMarket = "market"
OrderTypeLimit = "limit"
OrderTypeStopLoss = "stop-loss"
OrderTypeTakeProfit = "take-profit"
OrderTypeStopLossLimit = "stop-loss-limit"
OrderTypeTakeProfitLimit = "take-profit-limit"
OrderTypeSettlePosition = "settle-position"
)

// Pairs
const (
ADACAD = "ADA/CAD"
Expand Down

0 comments on commit 38db2c0

Please sign in to comment.