HOME FORUMS BROKERS SOFTWARE BOOKS CONTACT US
Elite Trader Your Account  •  Become a Member  •  Help  •  Search    
    Forums ›› Technically Speaking ›› Programming ›› Interactive brokers - API - HistoricalDataEventArgs!?  


Post A Reply
    Page 2 of 2:   1   2  
vicirek
 

Registered: Dec 2011
Posts: 345

 

08-19-12 11:36 PM

Also check your error message event queue. The request is for historicalbars and such request has limitations. In general no more requests than 1 per 10 seconds and no more than 2000 bars per request. Data base goes back one year or 6 months for bars less than 1 min. Otherwise you get error - most common is pacing violation. Limits are posted on their web and they change occasionally - latest was 6 month limit for less than 1 min bar. If IB sends you an error for your query then you will not get any data.

    Edit/Delete Quote Complain
vicirek
 

Registered: Dec 2011
Posts: 345

 

08-19-12 11:53 PM


Quote from bluematrix:

throw new NotImplementedException();
}



You already implemented it so this might also be an issue. By the way how do you connect to IB with c#? Is this activex?

    Edit/Delete Quote Complain
2rosy
 

Registered: May 2012
Posts: 335

 

08-21-12 12:14 AM

i use python but you need to specify the bar size in the request. then the data comes back in the call back ... historicalData()

self.connection.reqHistoricalData(
tickerId = cid,
contract=contract,
endDateTime=endtime,
durationStr='10 D',
barSizeSetting='15 mins',
whatToShow='MIDPOINT',
useRTH=1,
formatDate=1)

    Edit/Delete Quote Complain
    Page 2 of 2:   1   2  
Post A Reply


Receive an email whenever a new post is added to this thread by subscribing to it.
 
Rate This Thread:

Forum Jump:
 

 

   Conduct Rules  -  Privacy Policy  -  Day Trader -  Day Trader Forum -  Best Trading Software -  Sitemap Copyright © 2013, Elite Trader. All rights reserved.    
 
WHILE YOU'RE HERE, TAKE A MINUTE TO VISIT SOME OF OUR SPONSORS:
Advantage Futures
Futures Brokerage & Clearing
AMP Global Clearing
Futures and FX Trading
Bright Trading
Professional Equities Trading
CTS
Futures Trading Software
DaytradingBias.com
Professional Trading Analytics
ECHOtrade
Professional Trading Firm
eSignal
Trading Software Provider
FXCM
Forex Trading Services
Global Futures
Futures, Options & FX Trading
Interactive Brokers
Pro Gateway to World Markets
JC Trading Group
Direct Access Trading
MB Trading
Direct Access Trading
MultiCharts
Trading Software Provider
NinjaTrader
Trading Software Provider
OANDA
Currency Trading
optionshouse
Option Trading & Education
Rithmic
Futures Trade Execution Platform
SpeedTrader
Direct Access Trading
SpreadProfessor
Spread Trading Instruction
thinkorswim by TD Ameritrade
Direct Access TradingAdvertisement
TradersStudio
System Building & Backtesting
Trading Technologies
Trading Software Provider
Trend Following
Trading Systems Provider