Re: How to watch for option assignment/settlement?
Thanks for the reply Mel. Would this show up as a trade? In my mind its not a “trade” since it is an action taken by the broker (as opposed to the account owner), but I could be wrong. The TWS api
By
jackroc97@...
·
#180
·
|
Re: How to watch for option assignment/settlement?
Would that not show up as a trade?? For example +100 shares of what the option was for?Sent from my Galaxy
By
Mel
·
#179
·
|
How to watch for option assignment/settlement?
I’m looking for a way to watch for options assignment/settlement on expiration. Is there an event that I can subscribe to that will notify me when this occurs and provide information about options
By
jackroc97@...
·
#178
·
|
Re: Issue with Retrieving Real-Time Option Data (Bid, Ask, Delta) via TWS API and ib_insync
No, this is wrong and will likely confuse OP. Even if it were correct you shouldn't be using sleep for process synchronization. The documentation and source for
By
buddy
·
#177
·
|
Re: Issue with Retrieving Real-Time Option Data (Bid, Ask, Delta) via TWS API and ib_insync
The problem is more probably that it takes time to get the quotes, reqTickers() is asynchronous, so the tickers are filled asynchronously while you are looping on them later on.? A simple approach is
By
mdelvaux2
·
#176
·
|
Re: Issue with Retrieving Real-Time Option Data (Bid, Ask, Delta) via TWS API and ib_insync
Works for me. Have you tried it w/ a live account during regular trading hours?
At the very least play w/
By
buddy
·
#175
·
|
Issue with Retrieving Real-Time Option Data (Bid, Ask, Delta) via TWS API and ib_insync
Hi everyone,
I’m new to using the TWS API and ib_insync for retrieving real-time option chain data. I have a real-time data subscription for both stocks and options. However, when I attempt to
By
zangyythu@...
·
#174
·
|
Re: Expected behavior after `ib.disconnect()`
I found a solution I believe. Adding
```
loop = asyncio.get_event_loop()
loop.stop()
```
ends the event loop. I'm unsure if this is the correct way.
By
Christian
·
#173
·
|
Expected behavior after `ib.disconnect()`
The following behavior puzzles me (due to my poor understanding of the underlying asyncio mechanics).
1st, the program requests market data. A callback is attached. The callback will call
By
Christian
·
#172
·
|
Re: async orders getting stuck in "preSumbitted" status
Was able to figure it out. It was related to the limit order. Specifically, I was not rounding my limit price to 2 decimals, so IBKR just ignores any orders with >2 decimals (which is very bad
By
bkkubs558
·
#171
·
|
Re: async orders getting stuck in "preSumbitted" status
I haven't tried using market orders as they're generally just not profitable with my trading strategies over the years but I'll test some out tomorrow when the market opens up. Appreciate the tips!
By
bkkubs558
·
#170
·
|
Re: async orders getting stuck in "preSumbitted" status
Hm yea I'm not sure. I'd say remove the sleeps entirely and setup listeners on all the ib-async events in case there's some useful info coming through there.
Do you get the same issue when using
By
wordd
·
#169
·
|
Re: async orders getting stuck in "preSumbitted" status
Appreciate the feedback. I'll give #1 a shot to see if it clears up the issue.
Regarding #2, I've tried that as well but it doesn't seem to matter (orders still get stuck for me).
For #3, I've
By
bkkubs558
·
#168
·
|
Re: async orders getting stuck in "preSumbitted" status
1. I haven't seen order ids created like this before. Maybe it's fine, but it's more standard to just use
orderId = self. ib. client. getReqId ()
2. The sleep after you place the order might be fine,
By
wordd
·
#167
·
|
async orders getting stuck in "preSumbitted" status
I have some code below that functions as intended like 80% of the time but for some reason, random orders are not being placed in IBKR. When I debug the issue, it seems that certain orders never make
By
bkkubs558
·
#166
·
Edited
|
Industry / Sector SIC Code in scanner?
I tried using SIC as filter tag with the value 3674 (semiconductors) to request data from ib_insync, but it seems that I get companies like MRK which has nothing to do with this SIC code.
Any idea
By
ashour92@...
·
#165
·
|
Re: ib.trades() and nightly restarts
IIRC this annoyed me at one point too and I just hacked everything through...
```| fgrep "($(date +'%Y, %-m, %-d',)"```
You might want to dig deeper for the correct(tm) way or convert the grep into
By
buddy
·
#164
·
|
ib.trades() and nightly restarts
My intent to have my script run all the time, however I have some issues with the way that ib.trades(), returns after TWS restarts itself automatically through the auto-restart feature.
util. df (
By
VB
·
#163
·
|
Anyone used Cython?
I'd like to speed up my Python code by using Cython. Has anyone else done this? If so, how was your experience?
By
R Malhotra
·
#162
·
|
Re: Subscription
sponsored as well 15$, thanks for your work
<praditik@...> ha scritto:
By
lomi
·
#161
·
|