-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
v5_client_service.go
69 lines (57 loc) · 1.45 KB
/
v5_client_service.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package bybit
// V5ServiceI :
type V5ServiceI interface {
Market() V5MarketServiceI
Order() V5OrderServiceI
Position() V5PositionServiceI
Execution() V5ExecutionServiceI
Account() V5AccountServiceI
SpotLeverageToken() V5SpotLeverageTokenServiceI
SpotMarginTrade() V5SpotMarginTradeServiceI
Asset() V5AssetServiceI
User() V5UserServiceI
}
// V5Service :
type V5Service struct {
client *Client
}
// Market :
func (s *V5Service) Market() V5MarketServiceI {
return &V5MarketService{s.client}
}
// Order :
func (s *V5Service) Order() V5OrderServiceI {
return &V5OrderService{s.client}
}
// Position :
func (s *V5Service) Position() V5PositionServiceI {
return &V5PositionService{s.client}
}
// Execution :
func (s *V5Service) Execution() V5ExecutionServiceI {
return &V5ExecutionService{s.client}
}
// Account :
func (s *V5Service) Account() V5AccountServiceI {
return &V5AccountService{s.client}
}
// SpotLeverageToken :
func (s *V5Service) SpotLeverageToken() V5SpotLeverageTokenServiceI {
return &V5SpotLeverageTokenService{s.client}
}
// SpotMarginTrade :
func (s *V5Service) SpotMarginTrade() V5SpotMarginTradeServiceI {
return &V5SpotMarginTradeService{s.client}
}
// Asset :
func (s *V5Service) Asset() V5AssetServiceI {
return &V5AssetService{s.client}
}
// User :
func (s *V5Service) User() V5UserServiceI {
return &V5UserService{s.client}
}
// V5 :
func (c *Client) V5() V5ServiceI {
return &V5Service{c.withCheckResponseBody(checkV5ResponseBody)}
}