-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
38 lines (34 loc) · 1.11 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package turbo_cambitor
type (
UserDataEventReasonType string
UserDataEventType string
OrderSide string
OrderType string
SideType string
TimeInForceType string
QuantityType string
OrderExecutionType string
OrderStatusType string
WorkingType string
PositionSideType string
DepthSide string
AccountType string
MarginType string
)
const (
DepthSideAsk DepthSide = "ASK"
DepthSideBid DepthSide = "BID"
SideTypeBuy OrderSide = "BUY"
SideTypeSell OrderSide = "SELL"
SideTypeNone OrderSide = "NONE"
// SpotAccountType is a constant for spot account type.
// SPOT/MARGIN/ISOLATED_MARGIN/USDT_FUTURE/COIN_FUTURE
SpotAccountType AccountType = "SPOT"
MarginAccountType AccountType = "MARGIN"
IsolatedMarginAccountType AccountType = "ISOLATED_MARGIN"
USDTFutureType AccountType = "USDT_FUTURE"
CoinFutureType AccountType = "COIN_FUTURE"
// Для USDT_FUTURE/COIN_FUTURE
CrossMarginType MarginType = "CROSS"
IsolatedMarginType MarginType = "ISOLATED"
)