forked from amir-the-h/okex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_requests.go
82 lines (80 loc) · 2.92 KB
/
account_requests.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
70
71
72
73
74
75
76
77
78
79
80
81
82
package account
import "github.com/HeliTools/okex"
type (
GetBalance struct {
Ccy []string `json:"ccy,omitempty"`
}
GetPositions struct {
InstID []string `json:"instId,omitempty"`
PosID []string `json:"posId,omitempty"`
InstType okex.InstrumentType `json:"instType,omitempty"`
}
GetAccountAndPositionRisk struct {
InstType okex.InstrumentType `json:"instType,omitempty"`
}
GetBills struct {
Ccy string `json:"ccy,omitempty"`
After int64 `json:"after,omitempty,string"`
Before int64 `json:"before,omitempty,string"`
Limit int64 `json:"limit,omitempty,string"`
InstType okex.InstrumentType `json:"instType,omitempty"`
MgnMode okex.MarginMode `json:"mgnMode,omitempty"`
CtType okex.ContractType `json:"ctType,omitempty"`
Type okex.BillType `json:"type,omitempty,string"`
SubType okex.BillSubType `json:"subType,omitempty,string"`
}
SetPositionMode struct {
PositionMode okex.PositionType `json:"positionMode"`
}
SetLeverage struct {
Lever int64 `json:"lever,string"`
InstID string `json:"instId,omitempty"`
Ccy string `json:"ccy,omitempty"`
MgnMode okex.MarginMode `json:"mgnMode"`
PosSide okex.PositionSide `json:"posSide,omitempty"`
}
GetMaxBuySellAmount struct {
Ccy string `json:"ccy,omitempty"`
Px float64 `json:"px,string,omitempty"`
InstID []string `json:"instId"`
TdMode okex.TradeMode `json:"tdMode"`
}
GetMaxAvailableTradeAmount struct {
Ccy string `json:"ccy,omitempty"`
InstID string `json:"instId"`
ReduceOnly bool `json:"reduceOnly,omitempty"`
TdMode okex.TradeMode `json:"tdMode"`
}
IncreaseDecreaseMargin struct {
InstID string `json:"instId"`
Amt float64 `json:"amt,string"`
PosSide okex.PositionSide `json:"posSide"`
ActionType okex.CountAction `json:"actionType"`
}
GetLeverage struct {
InstID []string `json:"instId"`
MgnMode okex.MarginMode `json:"mgnMode"`
}
GetMaxLoan struct {
InstID string `json:"instId"`
MgnCcy string `json:"mgnCcy,omitempty"`
MgnMode okex.MarginMode `json:"mgnMode"`
}
GetFeeRates struct {
InstID string `json:"instId,omitempty"`
Uly string `json:"uly,omitempty"`
Category okex.FeeCategory `json:"category,omitempty,string"`
InstType okex.InstrumentType `json:"instType"`
}
GetInterestAccrued struct {
InstID string `json:"instId,omitempty"`
Ccy string `json:"ccy,omitempty"`
After int64 `json:"after,omitempty,string"`
Before int64 `json:"before,omitempty,string"`
Limit int64 `json:"limit,omitempty,string"`
MgnMode okex.MarginMode `json:"mgnMode,omitempty"`
}
SetGreeks struct {
GreeksType okex.GreekType `json:"greeksType"`
}
)