-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_his_order_response.go
77 lines (42 loc) · 1.51 KB
/
get_his_order_response.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
package order
type GetHisOrderResponse struct {
Status string `json:"status"`
ErrorCode int `json:"err_code,omitempty"`
ErrorMessage string `json:"err_msg,omitempty"`
Data struct {
Orders []struct {
OrderId int64 `json:"order_id"`
OrderIdStr string `json:"order_id_str"`
Symbol string `json:"symbol"`
ContractCode string `json:"contract_code"`
LeverRate int `json:"lever_rate"`
Direction string `json:"direction"`
Offset string `json:"offset"`
Volume float32 `json:"volume"`
Price float32 `json:"price"`
CreateDate int64 `json:"create_date"`
UpdateTime int64 `json:"update_time "`
OrderSource string `json:"order_source"`
OrderPriceType int `json:"order_price_type"`
MarginAsset string `json:"margin_asset"`
MarginFrozen float32 `json:"margin_frozen"`
Profit float32 `json:"profit"`
TradeVolume float32 `json:"trade_volume"`
TradeTurnover float32 `json:"trade_turnover"`
Fee float32 `json:"fee"`
TradeAvgPrice float32 `json:"trade_avg_price"`
Status int `json:"status"`
OrderType int `json:"order_type"`
FeeAsset string `json:"fee_asset"`
LiquidationType string `json:"liquidation_type"`
MarginMode string `json:"margin_mode"`
MarginAccount string `json:"margin_account"`
IsTpsl int `json:"is_tpsl"`
RealProfit float32 `json:"real_profit"`
} `json:"orders"`
TotalPage int `json:"total_page"`
CurrentPage int `json:"current_page"`
TotalSize int `json:"total_size"`
} `json:"data,omitempty"`
Ts int64 `json:"ts"`
}