forked from toorop/go-bittrex
-
Notifications
You must be signed in to change notification settings - Fork 2
/
order.go
41 lines (39 loc) · 1.45 KB
/
order.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
package bittrex
type Order struct {
OrderUuid string `json:"OrderUuid"`
Exchange string `json:"Exchange"`
TimeStamp jTime `json:"TimeStamp"`
OrderType string `json:"OrderType"`
Limit float64 `json:"Limit"`
Quantity float64 `json:"Quantity"`
QuantityRemaining float64 `json:"QuantityRemaining"`
Commission float64 `json:"Commission"`
Price float64 `json:"Price"`
PricePerUnit float64 `json:"PricePerUnit"`
}
// For getorder
type Order2 struct {
AccountId string
OrderUuid string `json:"OrderUuid"`
Exchange string `json:"Exchange"`
Type string
Quantity float64 `json:"Quantity"`
QuantityRemaining float64 `json:"QuantityRemaining"`
Limit float64 `json:"Limit"`
Reserved float64
ReserveRemaining float64
CommissionReserved float64
CommissionReserveRemaining float64
CommissionPaid float64
Price float64 `json:"Price"`
PricePerUnit float64 `json:"PricePerUnit"`
Opened string
Closed string
IsOpen bool
Sentinel string
CancelInitiated bool
ImmediateOrCancel bool
IsConditional bool
Condition string
ConditionTarget string
}