¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
Hey J¨¹rgen I'm trying ``` contract = Contract(symbol="ES", secType="CONTFUT" , exchange="GLOBEX" , currency="USD") yields Contract(0, "ES", "CONTFUT", "", 0.0, "", "", "GLOBEX", "", "USD", "",
By comicpilsen · #49204 ·
Re: How Can I Locate Hard to Borrow Shares to Short with TWS API?
Here are instructions for retrieving the daily file via ftp or doing one-time/one-ticker searches: https://ibkr.info/article/2024
By martintanner@... · #49203 ·
Re: How Can I Locate Hard to Borrow Shares to Short with TWS API?
I was referring to finding the borrow rate. I assume these borrow rates change daily.
By tagerrish@... · #49202 ·
Re: How Can I Locate Hard to Borrow Shares to Short with TWS API?
Do you mean the borrow rate, or the price you can sell them at? I believe there's an ftp somewhere with a daily file containing the borrow rates.? I'd think it was also a tick in the API somewhere
By Peter Drier · #49201 ·
Re: What is the best way to get the open price of today for some symbols
Why don't you use Streaming Market Data ( https://interactivebrokers.github.io/tws-api/market_data.html ) instead of historical data? You'd subscribe any time before the market opens and you'll
By J¨¹rgen Reinold · #49200 ·
What is the best way to get the open price of today for some symbols
I am looking to get the open price of today for around 30 symbols as early as possible. It can be done by the following process: - Wait until the market opens, time is after 9:30:00 - Use
By Hao Shi · #49199 ·
Re: TwsActiveX class not registered run-time error '-2147221164 (80040154)
Update/workaround: * Uninstalled 64-bit version of Microsoft 365 * Restarted computer * Installed 32-bit version of Microsoft 365 I realize that after v973.05 the API installer is supposed to work
By martintanner@... · #49198 ·
Excel DDE scanner - live market data
Hi all!? I am new to this community and have been reading a ton of useful info on the TWS API.? However, as my (basic) VBA skills have been left unused over the past ten years and much has been
By MdC · #49197 ·
Re: How Can I Locate Hard to Borrow Shares to Short with TWS API?
Peter, do you know if there is a way to retrieve the price to short these shares in advance of actually placing the order?
By tagerrish@... · #49196 ·
Re: How Can I Locate Hard to Borrow Shares to Short with TWS API?
If IB has shares available to short, it's automatic.? Otherwise your order will be rejected. As martintanner notes, in release 974, there's a new tick type 236 which provides the shares available
By Peter Drier · #49195 ·
Re: Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
That's because there are a zillion ways to calculate continuous futures prices and the continuous contract price may be far from the actual futures contract price. If you trade based on continuous
By Nick <news1000@...> · #49194 ·
Re: Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
Excellent I will get on that immediately, seems like a GREAT solution and thank you so much for taking the time. cp
By dent · #49193 ·
Re: Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
We do use CONTFUT with real time data, But not directly. As a matter of practice we follow this work flow: * Make a sparse contract object that describes the instruments we are interested in (such
By J¨¹rgen Reinold · #49192 ·
Re: Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
Uh OH just found this https://interactivebrokers.github.io/tws-api/basic_contracts.html ``` Continuous futures are available from the API with *TWS v971* and higher. Continuous futures cannot be
By dent · #49191 ·
Re: Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
No problem. Basic Contracts ( https://interactivebrokers.github.io/tws-api/basic_contracts.html ) has an overview of most (if not all) SecTypes as well as the contract object fields you want to set to
By J¨¹rgen Reinold · #49190 ·
Re: Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
Hi jurgen I think you've spotted the flaw in my cunning plan. I hadn't AND when I did it I got ``` Error: 1 321 Error validating request.-'bW' : cause - Please enter a valid security type ``` ?I
By dent · #49189 ·
Re: Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
Are you setting SecType = "CONTFUT" somewhere ? J¨¹rgen
By J¨¹rgen Reinold · #49188 ·
Error: 1 321 Error validating request.-'bW' : cause - Please enter a local symbol or an expiry
I want to get continuous futures and don't want to mess around with expiration et al. Basically what I see in the TWS watchlist. I tried ``` reqMktData with Symbol = "ES" Exchange =
By comicpilsen · #49187 ·
Re: bunch of reqMktData requests for options
Do you also get the message that they will stop the support for older versions after 31st March 2022? I'm still unsure what this actually means. It could be that starting from this day, this client
By hansblafoo@... · #49186 ·
Re: bunch of reqMktData requests for options
Sorry for my late reply, But I've opened several tickets about it. The IB development is investigating it. Hope they will patch it soon. I opened my first tickets about this issue more than 2 years
By lsaintigny@... · #49185 ·