forked from gofinance/ib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcombo_leg.go
More file actions
31 lines (26 loc) · 783 Bytes
/
combo_leg.go
File metadata and controls
31 lines (26 loc) · 783 Bytes
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
package ib
// This file ports IB API ComboLeg.java. Please preserve declaration order.
// LegOpenClose .
type LegOpenClose int64
// LegShortSaleSlot .
type LegShortSaleSlot int64
// Enum .
const (
posSame LegOpenClose = 0
posOpen = 1
posClose = 2
posUnknown = 3
LegShortSaleSlotClearingBroker LegShortSaleSlot = 1
LegShortSaleSlotThirdParty = 2
)
// ComboLeg .
type ComboLeg struct {
ContractID int64 // m_conId
Ratio int64
Action string
Exchange string
OpenClose int64
ShortSaleSlot int64
DesignatedLocation string
ExemptCode int64
}