-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscanner_subscription_samples.go
61 lines (46 loc) · 1.39 KB
/
scanner_subscription_samples.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
package ibapi
// HotUSStkByVolume .
// Hot US stocks by volume
func HotUSStkByVolume() *ScannerSubscription {
scanSub := NewScannerSubscription()
scanSub.Instrument = "STK"
scanSub.LocationCode = "STK.US.MAJOR"
scanSub.ScanCode = "HOT_BY_VOLUME"
return scanSub
}
// TopPercentGainersIbis .
// Top % gainers at IBIS
func TopPercentGainersIbis() *ScannerSubscription {
scanSub := NewScannerSubscription()
scanSub.Instrument = "STOCK.EU"
scanSub.LocationCode = "STK.EU.IBIS"
scanSub.ScanCode = "TOP_PERC_GAIN"
return scanSub
}
// MostActiveFutEurex .
// Most active futures at EUREX
func MostActiveFutEurex() *ScannerSubscription {
scanSub := NewScannerSubscription()
scanSub.Instrument = "FUT.EU"
scanSub.LocationCode = "FUT.EU.EUREX"
scanSub.ScanCode = "MOST_ACTIVE"
return scanSub
}
// HighOptVolumePCRatioUSIndexes .
// High option volume P/C ratio US indexes
func HighOptVolumePCRatioUSIndexes() *ScannerSubscription {
scanSub := NewScannerSubscription()
scanSub.Instrument = "IND.US"
scanSub.LocationCode = "IND.US"
scanSub.ScanCode = "HIGH_OPT_VOLUME_PUT_CALL_RATIO"
return scanSub
}
// ComplexOrdersAndTrades .
// Complex orders and trades scan, latest trades
func ComplexOrdersAndTrades() *ScannerSubscription {
scanSub := NewScannerSubscription()
scanSub.Instrument = "NATCOMB"
scanSub.LocationCode = "NATCOMB.OPT.US"
scanSub.ScanCode = "COMBO_LATEST_TRADE"
return scanSub
}