443 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
0
votes
0
replies
44
views
In IBKR API, how to retrieve stock data after a corporate action causing a contract id change?
To retrieve stock data, I always used:
Contract contract = new Contract(); //contract instance
contract.Symbol = "LRCX"; //ticker here
contract.SecType = "STK"; //contract type stock
...
0
votes
0
answers
32
views
How to query the base currency of an interactive-brokers account?
I'm looking for a way to query the base currency of an interactive brokers account with the python TWS API. Neither the fields from reqAccountSummary nor the fields from from reqAccountUpdates seem to ...
0
votes
1
answer
145
views
How to place IBKR bracket order before market open using actual open price for TP/SL?
I'm trying to place a market-on-open (MOO) bracket order through Interactive Brokers using ib_insync. My goal is to:
Enter the trade strictly at the market open (9:30 AM ET)
Calculate take-profit (TP)...
1
vote
1
answer
91
views
IBKR place order issue "Can not contain field # 8089"
When I try to place order using following payload and following error although payload is correct, is there something that I need to for placing order on IBKR. I am using paper trading account.
Here ...
0
votes
1
answer
138
views
Interactive Broker API wih ib_async: catch erro on callback function
I'm developing a trading bot with Interactive Broker API with python and ib_async library. So far, so good I managed to connect, get data, place order. But I have a question regarding callback ...
0
votes
1
answer
196
views
ib_async TWS API only first order gets transmitted, remaining orders doesnt show on TWS
Currently, I have a function that creates 3 orders:
Market order to enter the stock
Limit order for taking profit
Stop order for stop loss
However, on TWS only the first order is shown and auto ...
0
votes
0
answers
29
views
Is there a way to retrieve only today's net positions on IBKR (interactive Brokers) API via Python
Is there a way to retrieve only today's net positions on IBKR (interactive Brokers) API via Python: Unable to retrieve today's positions. Can retrieve historical data. Need walkthrough of code to get ...
0
votes
0
answers
119
views
impliedVolatility always nan in IBKR API
I am currently trying to pull implied volatility data for a list of stocks via the IBKR API using the ib_async (formerly ib_insync) python library. Problem is that no matter what I try, the values for ...
0
votes
1
answer
379
views
Placing a Bull Put Spread order with IBKR's TWS API using ibapi
I'm playing around with IBKR's ibapi library using the TWS API, and trying to make a simple script that will place a Bull Put Spread order.
from ibapi.wrapper import EWrapper
from ibapi.contract ...
1
vote
0
answers
225
views
IBKR OAuth 1.0a - /request_token returns 401: invalid consumer
I'm trying to integrate Interactive Brokers (IBKR) OAuth 1.0a into my application. Currently, I'm stuck at the request token step (/oauth/request_token), where I receive a 401 error: invalid consumer.
...
0
votes
1
answer
168
views
Getting correct volume using IB API
I'm trying to get the volume of a stock using interactive brokers API, but it gets an incorrect number.
I read about lots so I tried to multiple by 100, but still, the numbers are not related to ...
1
vote
1
answer
183
views
Interactive Brokers IBKR Gateway API - How to fix "No security definition has been found for the request"?
Requesting contract details for NQ futures... Error 200, reqId 9: No security definition has been found for the request, contract: Future(symbol='NQ', exchange='GLOBEX', currency='USD') No contract ...
0
votes
0
answers
116
views
Interactive Brokers Web API - Place Orders
I currently to use the Interactive Brokers Web API: https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#introduction
I get some difficulty to place orders, even if I manage perfectly to ...
0
votes
1
answer
410
views
Cannot get SPX live data to pull from IBKR API
I'm using the following code to try and pull the current price of SPX during regular trading hours, but it is giving me yesterday's close price. This is utilizing the TWS API.
I have market data ...
1
vote
0
answers
384
views
Interactive Brokers OAuth1 live_session_token
Given the general community consensus that IB's OAuth just doesn't work I'm not expecting an answer but it would be much appreciated
I've been following this
https://www.interactivebrokers.com/campus/...