Trader Work-Station (TWS) API from Interactive Brokers
Questions tagged [tws]
183 questions
0
votes
1 answer
Indentify stock prices trading under the 1 year estimate
At every quarter analysts give their price estimation for a given stock. Available for example on Yahoo finance as 1 year estimate.
I want to find a way (build a scanner?) that allows me to have a dashboard of stocks that will announce their…

Wazaa
- 23
- 5
0
votes
1 answer
R IBrokers (Interactive Brokers API)
Anyone has any idea how to use algoStrategy and algoParams in IBrokers package? I tried creating a list for algoParams but in vain.
For example:
library(IBrokers)
twsOrder(reqIds(twsconn),
"BUY",
"10",
"MKT",
…

WaiLi
- 1
- 1
0
votes
1 answer
open positions interactive brokers java
I am trying to use the override function positions but it is not being called at all when running. Just want it to print out all open positions.
@Override
public void position(String account, Contract contract, double pos,
double avgCost) {
…

James Shelton
- 77
- 1
- 9
0
votes
1 answer
how to retrieve and display on python console the historical data from TWS?
I was able to successfully establish a connection from python to TWS but I wasn't able to fetch the data or am not sure if the data is fetched but not getting displayed.
I am new to this, could you kindly help on how to fetch historical data from…
0
votes
1 answer
CPU/Memory issues with Java in Parallels
I use Interactive Brokers TWS in Parallels on a Mac with 8gig memory. Parallels uses 4gig. Everything has been fine for 3 years. In the last month, something has changed and I am not able to run more than one other program alongside TWS. When I…

Rob Little
- 35
- 3
0
votes
0 answers
TWS window does not appear to have child windows
I am using Interactive Brokers TWS application. I am trying write another application to enter values in the window. To do this, I need to get the handles of the child windows. When I look at Winspector or Spyxx, the TWS window does not appear to…

Rob Little
- 35
- 3
0
votes
1 answer
Contracts.cs not found in vb.net
I have a VB.net application that runs against the TWS api. In the Tws1_updatePortfolioEx event, I am comparing the contract against a spreadsheet of data. When I am attempting to put a break point here and step through the code, I get the message…

user3229570
- 853
- 2
- 10
- 23
0
votes
0 answers
IB C++ Api reqHistoricalData - TagValueListSPtr
i want to use the C++ Interactive Brokers API to request historical data.
But the documentation is really bad and i cannot find a example of the Type TagValueListSPtr (last parameter).
contract.symbol="USD";
contract.secType="CASH";
…

Roby
- 2,011
- 4
- 28
- 55
0
votes
1 answer
TWS : job exiting without executing the script
I am executing a job in TWS
I am facing a problem where the job is exiting with status 0 without exexuting its script.
the script is getting executed scuccessfully when executed manually.
also , as seen in many posts on net , i tried to comparing…

thatguy
- 233
- 3
- 12
0
votes
1 answer
use c# library in f#
I am trying to connect to Interactive Brokers via their C# API.
As an exercise, I am trying to develop my client in F#.
This is what I have done:
I have imported the CSharpAPI project in Visual Studio. CSharpAPI defines the IBApi namespace
I have…

NoIdeaHowToFixThis
- 4,484
- 2
- 34
- 69
-1
votes
1 answer
TWS API and its connectivity
I have installed a TWS API and I actively use IBKR trading workstation. I need to execute my python code for CPR indicators ;I am unable to figure out if my API is connected with the IBKR application. Is there a way to ensure if my API is connected…

APAT2023
- 1
-1
votes
1 answer
IBKR: No security definition has been found for the request, contract:
I am new in both IBKR and its API, the code given below is giving error on qualifyContracts method:
Error 200, reqId 308: No security definition has been found for the request, contract: Option(symbol='TSLA', lastTradeDateOrContractMonth='20230303',…

Volatil3
- 14,253
- 38
- 134
- 263
-1
votes
2 answers
last price for multiple symbols
I'm trying to get the last price for multiple symbols using ib_insync package, but I don't know how to pass the ib object to the function, and the last price returned from the function is nan. This will be single threaded, so I can use a global…

Zeus
- 1,496
- 2
- 24
- 53
-1
votes
1 answer
Using R and IBrokers, what is the function to call to get the bid and ask prices of given stock symbol?
I have not much else to add other than the title.
I simply need the name of the function.

Bear Bile Farming is Torture
- 4,317
- 4
- 27
- 61
-1
votes
1 answer
How to search a job for multiple days using monitor work load in TWS Workload Scheduler?
Please help me to understand how to search a job or stream for multiple days using workload scheduler, i tried to use "Time Data Filter" but it is not working as expected.
The "List plan" allows to select any one archived dates. i tired symnew, but…