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

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
2 answers

Interactive Brokers API DataTable overwrites rows

I am using the Interactive Brokers C# API and trying to create a Datatable from the AccountSummary object but the rows in the table are overwritten and only show the last value. I can't figure out what's going on. I thought it might be that the…
Grey Walker
  • 125
  • 16
0
votes
3 answers

how to get series of requests in ibapi on python

I am new both in Python and ibapi, I have ask Interactive Broker itself, they told me only : The self.done is originally defined in the parent class EClient that is used to indicate the current API connection is "done". You should not use it as…
0
votes
1 answer

How do i interpret IB API reqPositions() response?

How do i interpret this API response , pos=3000, avgCost=0.903681278811> everything is correct but how do i get the contract name out of this?
TB1
  • 269
  • 2
  • 5
  • 10
0
votes
2 answers

Setting variables to Interactive Brokers API responses in Python

I have some code where I request real time market data for a futures contract using the Interactive Brokers API and Python, in this case a VIX contract. I receive back a stream of data that prints via the patched up wrappers. This is using the…
0
votes
1 answer

IBrokers - reqMktData

Has anyone tried different exchanges on IBrokers? I am trying to get either market data or historical data for stocks listed on ASX(Australian Exchange). I am subscribed to Chi-X Australia. library("IBrokers") tws <- twsConnect() security =…
0
votes
2 answers

Interactive Brokers API C++ console very basic stuff

IB API C++ topic has several answers, but I haven't been able to identify the needed one. I am struggling to get connected to TWS through C++ API via console. I need no interface, just to get linked on the simplest level. I am trying the following…
0
votes
1 answer

How to print variable from another file

In the code bellow I am receiving the position of XAUUSD from Interactive Brokers. Can someone tell me how can I catch updated value of the variable maypos in another python file? from ib.opt import Connection, message from ib.ext.Contract import…
manev
  • 63
  • 10
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

bracket order trailing stop loss java interactive brokers

On the Interactive Brokers Java API, I am trying to submit an order parent, with a trailing stop child. Right now I can place one or the other, but not both. How can I submit them both together, at the same time? Am I supposed to create an array and…
PlacePrint App
  • 101
  • 1
  • 12
0
votes
0 answers

option call put purchase with trailing stop order entry JAVA Interactive Brokers

Trying to build a simple system that buys a call if Last trades above prior hour bar high, or buys a put if Last trades below prior hour low. And when the new entry takes place an automatic trailing stop is placed at half the value of the option.…
PlacePrint App
  • 101
  • 1
  • 12
0
votes
2 answers

interactive brokers api lagging behind tws when using 100 symbols

I haven't been having this problem until I started putting more symbols up on my screeen. I don't think it's a processing thing, my cpu has been fine and I'm not doing anything super super fancy anyways (just storing data to objects and writing to…
rikkitikkitumbo
  • 954
  • 3
  • 17
  • 38
0
votes
2 answers

Understanding event handling for incoming messages

I am trying to understand a portion of code from the Interactive Brokers sample in their API. It is about processing data from incoming messages, and while I understand the general flow of event handling, I don't understand this one…
Adjit
  • 10,134
  • 12
  • 53
  • 98
0
votes
1 answer

interactive-brokers api reqMktData() is 24hrs late

I finally got reqMktData() to work! Unfortunately, it just gave me the price $5.54 for the stock SHLD. That is the close of Thursday. and right now it's Saturday... I would think it should give me the closing price of Friday... and even the most…
rikkitikkitumbo
  • 954
  • 3
  • 17
  • 38
0
votes
1 answer

How do I keep a piece of code in Java always running on ubuntu/centOS?

I have written some Java code (using the interactive brokers API) to poll for futures pricing every 50ms and when it's in a situation I like, it will purchase or sell X contracts, etc. Timer t = new Timer( ); t.scheduleAtFixedRate(new TimerTask()…
user2926033