开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Date
Building 1min chart from start of the day and continue in real time
Hello, I am pretty new to this API, I would like to build a "chart" (list of bars) of? 1min bars for the day. When I start the software I want it to collect the history from start of the day
By nir.blinder@... · #43790 ·
Minor issue
The reported start in an end historical data seems to the difference between given end time and duration and as a consequence does not take into account weekend days whereas the data itself is in
By Jacky <TraderJacky@...> · #43789 ·
Re: where to put logic that sets trading mode to "close out positions only" (c++)
I haven't use this one yet but this seems like what you are looking for, no? https://interactivebrokers.github.io/tws-api/pnl.html "Beginning with API v973.03, requests can be made to receive real
By Adam · #43788 ·
Re: where to put logic that sets trading mode to "close out positions only" (c++)
That's a bummer. Do the callbacks that give order information still work? I've been relying on orderStatus() callback. Because I need fill information too.
By tbrown122387@... · #43787 ·
Re: where to put logic that sets trading mode to "close out positions only" (c++)
The reason it isn't suitable is the same reason you started the thread. It fires whenever it fires and it can't be relied upon to trigger critical application actions. I know it's more work to do it
By Nick <news1000@...> · #43786 ·
Re: where to put logic that sets trading mode to "close out positions only" (c++)
To maintain all the accounting state is a lot of work, at least to do it properly. There’s nothing pre-made to do this? Why isn’t this suitable?
By tbrown122387@... · #43785 ·
Re: where to put logic that sets trading mode to "close out positions only" (c++)
Portfolio updates are not the tool for what you want. I would suggest monitoring prices via one of the live streams and storing the latest price. Also have a routine that wakes up at a specific
By Nick <news1000@...> · #43784 ·
where to put logic that sets trading mode to "close out positions only" (c++)
I'm sitting here wondering why TestCppClient::updatePortfolio wasn't called. Clearly it's a very important segment of code (see below). If a maximum loss is exceeded, or if it's close to the end of
By tbrown122387@... · #43783 ·
Re: Error. Id: -1, Code: 509, Msg: Exception caught while reading socket
I am using c++. Deleaker, I'll keep that in mind, thanks. Yeah, I realize this question probably doesn't have enough information to be answered. I was just putting it out there to see if there was a
By tbrown122387@... · #43782 ·
Orders on both sides (BUY and SELL) of the same contract
Hello all, I’ve built a program trading option combos. I protect those option positions with a group of four SELL-orders with all kind of price and time conditions. (in an OCA group) When I try to
By Jos van de Werken <josvandewerken@...> · #43781 ·
Apparent roll-back of TWS "Latest" build -- is legacy DDE API order submission still broken for everyone else?
TWS "Latest" auto-installed a version *978.1j* this morning, which sounds like a roll back of the *979.3e* "Latest" build that broke everything (including order submission via Excel legacy DDE API). I
By grooooper · #43780 ·
Re: Error. Id: -1, Code: 509, Msg: Exception caught while reading socket
What programming language are you using? Generally speaking the errors 509 and 504 "exception caught while reading socket" happen when your program stomps on the memory space in error. The fastest
By Adam · #43779 ·
Re: realtimeBar subscription stops during the trading session
Just FYI, I've contacted the API Support and here the answer I've got: ''' The existing request may not have terminated. When bust event occurs please try using cancelRealTimeBars() then call
By VladD · #43778 ·
Re: PACEAPI questions
ticket opened: https://github.com/InteractiveBrokers/tws-api/issues/918 and it was fixed in: https://github.com/InteractiveBrokers/tws-api/pull/919
By VladD · #43777 ·
Definitive list of Exchange codes
Where can I find a definitive list of Exchange Codes returned by?tickByTickAllLast? Thanks.
By thane.brooker@... · #43776 ·
FYI: C++ multi-threaded crash in eConnectImpl - gethostbyname (linux)
Hello, this is just FYI.? ? My process started crashing recently when it tried to connect to TWS.? I have two threads each running its own instance of the ib client.? To fix, I had modified
By Vadim Cherkasov · #43775 ·
Error. Id: -1, Code: 509, Msg: Exception caught while reading socket
Any idea what causes this? I also get this one: Error. Id: -1, Code: 509, Msg: Exception caught while reading socket - Numerical result out of range I found this similar thread:
By tbrown122387@... · #43774 ·
Re: TWS API earning dates..
Robbo: still valid if subscribed to Horizon Wall Streets as Josh pointed out. C# example: public void fundamentalData(int reqId, string data) { try { string ticker = XMLstringExtract(data,
By Thorsten Kalkbrenner · #43773 ·
Re: reqHistoricalData - Stock Tickers
If IB meets your needs, then that's great, but in addition to the other suggestions you could try IQFeed.
By Adam · #43772 ·
Re: reqHistoricalData - Stock Tickers
You might also look at these providers: http://www.eoddata.com/ https://www.tiingo.com/ https://www.alphavantage.co/ https://eodhistoricaldata.com/
By Dan · #43771 ·