forked from zmxv/bitmexgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_execution.go
56 lines (54 loc) · 2.98 KB
/
model_execution.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
package bitmexgo
import (
"time"
)
// Raw Order and Balance Data
type Execution struct {
ExecID string `json:"execID"`
OrderID string `json:"orderID,omitempty"`
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"`
LastQty int `json:"lastQty,omitempty"`
LastPx float64 `json:"lastPx,omitempty"`
UnderlyingLastPx float64 `json:"underlyingLastPx,omitempty"`
LastMkt string `json:"lastMkt,omitempty"`
LastLiquidityInd string `json:"lastLiquidityInd,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"`
ExecType string `json:"execType,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"`
Commission float64 `json:"commission,omitempty"`
TradePublishIndicator string `json:"tradePublishIndicator,omitempty"`
MultiLegReportingType string `json:"multiLegReportingType,omitempty"`
Text string `json:"text,omitempty"`
TrdMatchID string `json:"trdMatchID,omitempty"`
ExecCost int `json:"execCost,omitempty"`
ExecComm int `json:"execComm,omitempty"`
HomeNotional float64 `json:"homeNotional,omitempty"`
ForeignNotional float64 `json:"foreignNotional,omitempty"`
TransactTime time.Time `json:"transactTime,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
}