forked from hbdmapi/huobi_futures_Golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_his_order_response.go
67 lines (37 loc) · 1.38 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
package triggerorder
type GetHisOrderResponse struct {
Status string `json:"status"`
ErrorCode int `json:"err_code,omitempty"`
ErrorMessage string `json:"err_msg,omitempty"`
Data struct {
Orders []struct {
Symbol string `json:"symbol"`
ContractCode string `json:"contract_code"`
TriggerType string `json:"trigger_type"`
Volume float32 `json:"volume"`
OrderType int `json:"order_type"`
Direction string `json:"direction"`
Offset string `json:"offset"`
LeverRate int `json:"lever_rate"`
OrderId int64 `json:"order_id"`
OrderIdStr string `json:"order_id_str"`
RelationOrderId string `json:"relation_order_id"`
OrderPriceType string `json:"order_price_type"`
Status int `json:"status"`
OrderSource string `json:"order_source"`
TriggerPrice float32 `json:"trigger_price"`
TriggeredPrice float32 `json:"triggered_price,omitempty"`
OrderPrice float32 `json:"order_price"`
CreatedAt int64 `json:"created_at"`
TriggeredAt int64 `json:"triggered_at"`
OrderInsertAt int64 `json:"order_insert_at"`
CanceledAt int64 `json:"canceled_at,omitempty"`
FailCode int `json:"fail_code,omitempty"`
FailReason string `json:"fail_reason,omitempty"`
} `json:"orders"`
TotalPage int `json:"total_page"`
CurrentPage int `json:"current_page"`
TotalSize int `json:"total_size"`
} `json:"data,omitempty"`
Ts int64 `json:"ts"`
}