forked from zmxv/bitmexgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_order.go
42 lines (40 loc) · 2.12 KB
/
model_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
42
package bitmexgo
import (
"time"
)
// Placement, Cancellation, Amending, and History
type Order struct {
OrderID string `json:"orderID"`
ClOrdID string `json:"clOrdID,omitempty"`
ClOrdLinkID string `json:"clOrdLinkID,omitempty"`
Account int `json:"account,omitempty"`
Symbol string `json:"symbol,omitempty"`
Side string `json:"side,omitempty"`
SimpleOrderQty float64 `json:"simpleOrderQty,omitempty"`
OrderQty int `json:"orderQty,omitempty"`
Price float64 `json:"price,omitempty"`
DisplayQty int `json:"displayQty,omitempty"`
StopPx float64 `json:"stopPx,omitempty"`
PegOffsetValue float64 `json:"pegOffsetValue,omitempty"`
PegPriceType string `json:"pegPriceType,omitempty"`
Currency string `json:"currency,omitempty"`
SettlCurrency string `json:"settlCurrency,omitempty"`
OrdType string `json:"ordType,omitempty"`
TimeInForce string `json:"timeInForce,omitempty"`
ExecInst string `json:"execInst,omitempty"`
ContingencyType string `json:"contingencyType,omitempty"`
ExDestination string `json:"exDestination,omitempty"`
OrdStatus string `json:"ordStatus,omitempty"`
Triggered string `json:"triggered,omitempty"`
WorkingIndicator bool `json:"workingIndicator,omitempty"`
OrdRejReason string `json:"ordRejReason,omitempty"`
SimpleLeavesQty float64 `json:"simpleLeavesQty,omitempty"`
LeavesQty int `json:"leavesQty,omitempty"`
SimpleCumQty float64 `json:"simpleCumQty,omitempty"`
CumQty int `json:"cumQty,omitempty"`
AvgPx float64 `json:"avgPx,omitempty"`
MultiLegReportingType string `json:"multiLegReportingType,omitempty"`
Text string `json:"text,omitempty"`
TransactTime time.Time `json:"transactTime,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
}