forked from go-numb/go-ftx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
information.go
47 lines (35 loc) · 1.2 KB
/
information.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
package account
import (
"net/http"
)
type RequestForInformation struct {
}
type ResponseForInformation struct {
Username string `json:"username"`
Collateral float64 `json:"collateral"`
FreeCollateral float64 `json:"freeCollateral"`
TotalAccountValue float64 `json:"totalAccountValue"`
TotalPositionSize float64 `json:"totalPositionSize"`
InitialMarginRequirement float64 `json:"initialMarginRequirement"`
Leverage float64 `json:"leverage"`
MakerFee float64 `json:"makerFee"`
TakerFee float64 `json:"takerFee"`
MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"`
MarginFraction float64 `json:"marginFraction"`
OpenMarginFraction float64 `json:"openMarginFraction"`
Positions []Position `json:"positions"`
BackstopProvider bool `json:"backstopProvider"`
Liquidating bool `json:"liquidating"`
}
func (req *RequestForInformation) Path() string {
return "/account"
}
func (req *RequestForInformation) Method() string {
return http.MethodGet
}
func (req *RequestForInformation) Query() string {
return ""
}
func (req *RequestForInformation) Payload() []byte {
return nil
}