Trader Work-Station (TWS) API from Interactive Brokers
Questions tagged [tws]
183 questions
0
votes
1 answer
reqAllOpenOrders() not able to download data of my account
I am new to ibapi and using liberary "https://pypi.org/project/ibapi/".
I want to download all the details of orders inside red box in image.
enter image description here
Code is
from ibapi.client import EClient
from ibapi.wrapper import EWrapper…

Check Test
- 3
- 3
0
votes
1 answer
How can I request Historical Data in loop? (tws api)
I am quite new to tws API and I was trying to write a program that places order base on the historical price of shares. I tried to acquire the stock tickers from an excel file and then call the reqMktdata in loop:
class…

M. Chen
- 203
- 1
- 6
0
votes
1 answer
Accessing IB/TWS API from PowerShell
I am attempting to access the TWS from Powershell. (Reasoning: want to have small scripts for automating some trading steps.)
However, I simply can't manage to "translate" the C# based documentation into the required PowerShell code. Can anyone…
0
votes
1 answer
Where is defined which callback used for specific method in EClient
I'm just starting to use the IB API in python. I'm able to retrieve all the desired results I want. However, one big problem arise to me. I don't fully understand how the linkage between the EClient class and a particular callback is made within the…

math
- 1,868
- 4
- 26
- 60
0
votes
0 answers
Rejected - Invalid destination exchange specified
exerciseOptions(tws,acc_[[2]][[10]]$contract)
acc_[[2]][[10]]$contract$exch
[1] "AMEX"
acc_[[2]][[10]]$contract$primary
[1] "AMEX"
acc_[[2]][[10]]$contract$primary
[1] "AMEX"
When I run the first line in Rstudio a message on my tws appear:…

JakyJoe001
- 11
- 3
0
votes
2 answers
Placing options order
I am new to python and programming but I am learning. I am trying to send an order through python for options to TWS. I keep getting this error message
"Server Error: Server Response:
error, Traceback (most recent
call last):"
I tried to…

Alex Oraibi
- 11
- 4
0
votes
0 answers
Interactive Brokers API Data stream returns only NaN values
I have a class that establishes several market data streams and stores them in an array. Then another function within the same class accesses the array and requests data from the streams, but all the values are coming out as NaN.
Here is an…

Artem Korol
- 191
- 1
- 2
- 11
0
votes
0 answers
Extraction of Mainframe datasets used in the jobs which are scheduled in TWS
I am looking to extract the list of datasets used in the Jobs which are scheduled in TWS. Can you please help me on this?
Here is the sample example
owner name ,Jobname ,dataset name
CAXXXXXXX PADLSHX EBEU.XXXX
The execution can be either in…
0
votes
1 answer
submit TWS schedule on specific AGENT
is this possible to submit TWS schedule or run TWS schedule on specific AGENT
e.g currently TWS dynamically select AGENT [AGENT A] and run jobs, how can we specifically select AGENT [AGENT B] and run schedule job on that

user2928137
- 59
- 7
0
votes
1 answer
I am trying to simply connect to the ibapi (Interactive Brokers API), but I am having some technical troubles with Flask
I am trying to simply connect to the ibapi (Interactive Brokers API), but I am having some technical troubles with Python 3.7 .
What I did so far:
I installed the latest version for Windows 10 of the API
I ran C:\TWS API\source\pythonclient and run…

john_johnk
- 51
- 8
0
votes
2 answers
How can I get a commission of execution in ib_insync TWS
I need to get a commission of execution in TWS.
I connect to them through ib_insync library for python.
I do abt:
ib = IB()
ib.connect('127.0.0.1', 7497, 1)
ib.placeOrder(contract, order)
for e in ib.executions():
print(e)
The question is -…

Andrey Topoleov
- 1,591
- 15
- 20
0
votes
2 answers
Receiving Market Data into Excel
My summer project is developing an algorithmic trader that receives market data and trades based off indicators. I pull data from a company called Interactive Brokers using their TWS(Trader workshop station). I have downloaded their Excel API which…

David
- 3
- 4
0
votes
1 answer
Task.WhenAll creates duplicates for Task
Class that creates list of tasks, each task returns ConcurrentDictionary
public List>> GetDictionaries()
{
var results = new ConcurrentDictionary();
var tasks = new…

Anonymous
- 1,823
- 2
- 35
- 74
0
votes
1 answer
Unable to connect to IB TWS using IbPy python api
I am trying to pull historical market data for various tickers using the code I found from https://github.com/blampe/IbPy/
Within this repository, there is an example of how to request market data in file "fancy_marketdata.py". However, I am having…

qwer
- 223
- 4
- 13
0
votes
1 answer
Got Error while linking MATLAB with TWS
I am using MATLAB2017b version & Interactive brokers API version is 9.73 Windows 64bit version. I am unable to register the Tws.ocx file & regsvr32.exe file through command prompt. If I go to register the file, they show a binary error
image of…

rajmohan
- 1
- 3