本文整理汇总了Java中com.ib.client.ScannerSubscription类的典型用法代码示例。如果您正苦于以下问题:Java ScannerSubscription类的具体用法?Java ScannerSubscription怎么用?Java ScannerSubscription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ScannerSubscription类属于com.ib.client包,在下文中一共展示了ScannerSubscription类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: reqScannerSubscription
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
public void reqScannerSubscription( ScannerSubscription sub, IScannerHandler handler) {
int reqId = m_reqId++;
m_scannerMap.put( reqId, handler);
Vector<TagValue> scannerSubscriptionOptions = new Vector<TagValue>();
m_client.reqScannerSubscription( reqId, sub, scannerSubscriptionOptions);
sendEOM();
}
开发者ID:rterp,项目名称:SumZeroTrading,代码行数:8,代码来源:ApiController.java
示例2: reqScannerSubscription
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
public void reqScannerSubscription( ScannerSubscription sub, IScannerHandler handler) {
if (!checkConnection())
return;
int reqId = m_reqId++;
m_scannerMap.put( reqId, handler);
ArrayList<TagValue> scannerSubscriptionOptions = new ArrayList<TagValue>();
m_client.reqScannerSubscription( reqId, sub, scannerSubscriptionOptions);
sendEOM();
}
开发者ID:qerio,项目名称:goib,代码行数:11,代码来源:ApiController.java
示例3: onGo
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
protected void onGo() {
ScannerSubscription sub = new ScannerSubscription();
sub.numberOfRows( m_numRows.getInt() );
sub.scanCode( m_scanCode.getSelectedItem().toString() );
sub.instrument( m_instrument.getSelectedItem().toString() );
sub.locationCode( m_location.getText() );
sub.stockTypeFilter( m_stockType.getSelectedItem().toString() );
ScannerResultsPanel resultsPanel = new ScannerResultsPanel();
m_resultsPanel.addTab( sub.scanCode(), resultsPanel, true, true);
ApiDemo.INSTANCE.controller().reqScannerSubscription( sub, resultsPanel);
}
开发者ID:qerio,项目名称:goib,代码行数:14,代码来源:MarketDataPanel.java
示例4: HotUSStkByVolume
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
public static ScannerSubscription HotUSStkByVolume() {
//! [hotusvolume]
//Hot US stocks by volume
ScannerSubscription scanSub = new ScannerSubscription();
scanSub.instrument("STK");
scanSub.locationCode("STK.US.MAJOR");
scanSub.scanCode("HOT_BY_VOLUME");
//! [hotusvolume]
return scanSub;
}
开发者ID:qerio,项目名称:goib,代码行数:13,代码来源:ScannerSubscriptionSamples.java
示例5: TopPercentGainersIbis
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
public static ScannerSubscription TopPercentGainersIbis() {
//! [toppercentgaineribis]
//Top % gainers at IBIS
ScannerSubscription scanSub = new ScannerSubscription();
scanSub.instrument("STOCK.EU");
scanSub.locationCode("STK.EU.IBIS");
scanSub.scanCode("TOP_PERC_GAIN");
//! [toppercentgaineribis]
return scanSub;
}
开发者ID:qerio,项目名称:goib,代码行数:13,代码来源:ScannerSubscriptionSamples.java
示例6: MostActiveFutSoffex
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
public static ScannerSubscription MostActiveFutSoffex()
{
//! [mostactivefutsoffex]
//Most active futures at SOFFEX
ScannerSubscription scanSub = new ScannerSubscription();
scanSub.instrument("FUT.EU");
scanSub.locationCode("FUT.EU.SOFFEX");
scanSub.scanCode("MOST_ACTIVE");
//! [mostactivefutsoffex]
return scanSub;
}
开发者ID:qerio,项目名称:goib,代码行数:12,代码来源:ScannerSubscriptionSamples.java
示例7: HighOptVolumePCRatioUSIndexes
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
public static ScannerSubscription HighOptVolumePCRatioUSIndexes() {
//! [highoptvolume]
//High option volume P/C ratio US indexes
ScannerSubscription scanSub = new ScannerSubscription();
scanSub.instrument("IND.US");
scanSub.locationCode("IND.US");
scanSub.scanCode("HIGH_OPT_VOLUME_PUT_CALL_RATIO");
//! [highoptvolume]
return scanSub;
}
开发者ID:qerio,项目名称:goib,代码行数:13,代码来源:ScannerSubscriptionSamples.java
示例8: requestScannerSubscription
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
public IBScannerRequest requestScannerSubscription(ScannerType type, ScannerInstrument instrument, ScannerLocation location, double minPrice, double maxPrice) {
checkConnected();
if (logger.isDebugEnabled())
logger.debug("requestScannerSubscription: {} {} {} {} {}", new Object[] { type, instrument, location, minPrice, maxPrice });
ScannerSubscription params = new ScannerSubscription();
// params.scanCode("MOST_ACTIVE");
// params.instrument("STOCK.EU");
// params.locationCode("STK.EU.SFB");
// params.scanCode("TOP_PERC_GAIN");
// params.instrument("IND.US");
// params.locationCode("IND.US");
params.scanCode(type.toString());
params.instrument(instrument.toString());
params.locationCode(location.toString());
params.abovePrice(minPrice);
params.belowPrice(maxPrice);
params.aboveVolume(0);
params.averageOptionVolumeAbove(0);
params.marketCapAbove(0);
params.marketCapBelow(1.0E100);
params.stockTypeFilter("ALL");
int requestId = nextValidReqId.incrementAndGet();
IBScannerRequest req = new IBScannerRequest(requestId);
scannerRequestsById.put(requestId, req);
socket.reqScannerSubscription(requestId, params);
long timeOut = System.currentTimeMillis() + historicalRequestTimeOutMillis;
try {
while (!req.done && timeOut > System.currentTimeMillis()) {
Thread.sleep(500);
}
} catch (InterruptedException e) {
}
scannerRequestsById.remove(requestId);
return req;
}
开发者ID:klon,项目名称:jtrade,代码行数:38,代码来源:IBMarketFeed.java
示例9: reqScannerSubscription
import com.ib.client.ScannerSubscription; //导入依赖的package包/类
public void reqScannerSubscription( ScannerSubscription sub, IScannerHandler handler) {
int reqId = m_reqId++;
m_scannerMap.put( reqId, handler);
m_client.reqScannerSubscription( reqId, sub);
sendEOM();
}
开发者ID:singh-manish,项目名称:trading-indexFutureAndOptions,代码行数:7,代码来源:ApiController.java
注:本文中的com.ib.client.ScannerSubscription类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论