开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Re: Incorrect
Hey honestly, I have always found positionEvent to not be so good and have a lot of latency so I personally keep track of position logic on my own. The most accurate thing is to use and
By adidror005@... · #90 ·
Re: IB-insync library - how to invoke the priceSizeTick() function
Hey you can use ib.reqTickByTickData and calculate your logic with it... It does return the size of the trade... Try this in Jupyter notebook. I display the last few trades every time a new tick
Re: IB-insync library - how to invoke the priceSizeTick() function
From what you wrote, reqTickByTickData("Last"). It does return "size", but only for "Last". Finally you subscribe to the pendingTickersEvent event to get event on each packets of ticks.
By biney59@... · #88 ·
Re: IB-insync library - how to invoke the priceSizeTick() function
Hey Adi/Dror Thank you for your reply. I'm trying to invoke events that only relates to price change - meaning a trade as been completed. For example, I want to collect ticker data (timestamp, price,
By itaysh · #87 ·
Re: IB-insync library - how to invoke the priceSizeTick() function
Just wondering why do you need this? What are you trying to do? Maybe I can help you if I know what you are trying to do. I think what you are trying to do has been removed. Maybe you can get what
By adidror005@... · #86 ·
IB-insync library - how to invoke the priceSizeTick() function
Hello, IB-insync is a python library developed to make it easier to work with the TWS api. https://ib-insync.readthedocs.io/_modules/ib_insync/client.html# I would like to know how to invoke the
By itaysh · #85 ·
Precautionary settings while sending orders via API
Hi guys, Not a specific ib_async query but a general query about precautionary settings and API orders. I have always bypassed precautionary settings. However, attempted to let the orders go through
By Pratik Babhulkar · #84 ·
Re: Sponsorship of group
Great thanks.? Sorry I'm away for a couple of weeks, but I will get on that as soon as I'm back!MelSent from my Galaxy
By Mel · #83 ·
Re: Sponsorship of group
Great, I have? made a donation. Hope that helps. Is there any update regarding teh archive from ib_insync?
By Sdoof · #82 ·
Re: Same code not work for Hong Kong stock options
I'm also getting the 200 error via API. When placing the order via GUI it gives a friendlier message informing me that my account is ineligible to trade the contract; due to sanctions
By buddy · #81 ·
Re: Same code not work for Hong Kong stock options
Sorry, here is the code : from ib_async import * ib = IB() ib.connect('127.0.0.1', 7497) ticker = '941' ccy = 'HKD' exchange = 'SEHK' expiry = '20240627' strike = 75 leg1 = Option(ticker,
By Lewis_Tang · #80 ·
Same code not work for Hong Kong stock options
The following code works fine for US stock options, like TSLA, KO...etc., but the same code (just changed stock code, exchange, currency and strike price) resulted in Error 200, reqId 227: No security
By Lewis_Tang · #79 ·
Re: Not properly parsing modified orders or am I missing the point of `Trade` objects?
I notice that in the trade object you received from orderStatusEvent and modifyOrderEvent, the tradingClass is 'NMS' (instead of 'TSLA'). I am not sure this is related to your problem encountered, but
By Lewis_Tang · #78 ·
Incorrect
I have been running ib_insync/ib_async in production for over 4 years with few issues. Lately I have seen more and more cases where I receive missing or incorrect positionEvent responses. I checked
By Scott Kister · #77 ·
Re: Not properly parsing modified orders or am I missing the point of `Trade` objects?
Here is something that may be related. ?Take a look at line 512 of ib_async/wrapper.py, in the openOrder function, where it does In my experience, after I submit a modified orde via ib_async to
By Neal Y · #76 ·
Not properly parsing modified orders or am I missing the point of `Trade` objects?
I'm having some issues getting correct modified order data returned by `ib_insync` and I'm trying to get to the bottom of it. As an example workflow, I place a position order and a stop order. Once
By Jason · #75 ·
Re: Forum planning #forum_planning
Dear Mel, thanks for the discussion. Indeed I would appreciate a general instruction like your mentioned general framework. Personally, I have still the problem that I don't know if I am running
By Papageno · #74 ·
Re: Forum planning #forum_planning
That is where sample code is difficult... I have a lot of basic modules I can call such as starting IB, various reporting, Flex Reports and on and on. But then when it comes to others using that
By Mel · #73 ·
Re: Forum planning #forum_planning
Dear Ray, yes, I know them. But indeed, for use in a program they are sometimes not handy enough. Do you think that it makes sense to write small programs (Pyqt6 in my case) to demonstrate the usages
By Papageno · #72 ·
Re: Forum planning #forum_planning
Yes I have added the new addresses to the Links Wiki. I re-wrote some of those notebooks to run simply with python as I don't use Jupyter Notebook. I will have those on ib_tools if anyone is
By Mel · #71 ·