Questions tagged [interactive-brokers]

A popular electronic trading platform, supporting API through Java, C++, C#, VB, Python 3, and Excel.

A popular electronic trading platform, supporting API through Java, C++, C#, VB, Python 3, and Excel. Unofficial implementations include ibrokers for R and ibpy for Python 2.

Useful links

426 questions
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

R IBrokers algoStrategy option when submitting twsOrder

I am trying to use an Adaptive Algo from Interactive Brokers. It seems like IBrokers package for R (https://cran.r-project.org/web/packages/IBrokers/IBrokers.pdf - pg37 and 38) was not completed as my order does not go through when I execute the…
0
votes
1 answer

How to get the trading price and commission in Interactive Brokers new API (9.73) after placing an order?

I'm looking at ib_insync, framework for new Interactive Brokers python API. One thing I can't figure out is how to get the trading price after placing market order. Has anyone figured it out? I've seen this question, but it's for the old API and…
bmiljevic
  • 742
  • 8
  • 16
0
votes
1 answer

Not able to fetch Delayed data

I have set reqMarketDataType(MarketDataType.DELAYED). But then I am getting "Requested market data is not subscribed" error while fetching delayed data. // API Version 9.72 and later Launch EReader Thread m_reader = new EReader(client,…
0
votes
1 answer

IB API EClient Concurrent Connection Support

The IB API documentation states: TWS/Gateway client class This client class contains all the available methods to communicate with IB. Up to thirty-two clients can be connected to a single instance of the TWS/Gateway simultaneously. However, after…
Leo Williams
  • 147
  • 1
  • 11
0
votes
1 answer

Import strategy built in IB API to IB Trader Workstation

Is there any way to import strategies built in the IB API to Interactive Brokers Trader Workstation (TWS)?
0
votes
1 answer

Submitting LOO or MOO orders to Interactive Brokers via ibpy

With the standard code below, I have been able to submit market (MKT) and limit orders(LMT) using a free demo account from ib.opt import Connection, message from ib.ext.Contract import Contract from ib.ext.Order import Order def…
user1452494
  • 1,145
  • 5
  • 18
  • 40
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

Get account summary details from interactive brokers using python

I have some questions based on automated trading via IB using python. I can access to TWS, but when I am request for account summary I can't put them into constant variables to use it, I only received them as an printing output. Here my code: from…
bahaa
  • 11
  • 7
0
votes
1 answer

First installation of ib_insync and error messages

I am woarking with python 3.6, I want to use the new API from : ib_insync. I have installed this library and followed the instructions from the help page : Python version 3.6 or higher; The Interactive Brokers Python API version 9.73.03 or higher; A…
Prou Prou Tyu
  • 409
  • 1
  • 6
  • 16
0
votes
1 answer

Using Interactive Broker's C#API to access fundamental data

I had been trying to use the C#API to access HOng Kong Stock Fundamental Data. Some Background: I tried the same program for accessing Hong Kong Stock market data and it is working, as follow: namespace IB_Real_time_Console_CS { class Program …
0
votes
1 answer

How to parse a list in python3

So I get this list back from interactive brokers. (API 9.73 using this repo) ib = IB() ib.connect('127.0.0.1', 7497, clientId=2) data = ib.positions() print((data)) print(type(data)) The data comes back as , but here is the…
Chad
  • 643
  • 2
  • 11
  • 22
0
votes
1 answer

Install TWS on ubuntu 16.04

Hello everyone I am trying to install IB api software but I am facing a problem and I don't know what is !! Here the installation process: Download TWS from https://www.interactivebrokers.com/en/index.php?f=16040 chmod u+x…
user8058941
  • 197
  • 1
  • 1
  • 13
0
votes
2 answers

Python - Ibpy return valid order id

My code: from ib.opt import Connection from ib.ext.Contract import Contract from ib.ext.Order import Order from time import sleep def get_valid_order_id(msg): global oid oid = msg.orderId def error_handler(msg): print…
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…