开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Problem with specific symbols


 

Hi all,

I am using ib_insync to buy/sell NYSE stocks, and generally the script works fine.

In some cases, when I buy or sell specific symbols - orders are not filled.
This happens with those symbols evey single time.
When using TWS GUI- there is no issue, orders are carried out the same as any other symbol.

Can you help understnading what makes those symbols 'special'??
Any idea how to handle this?

Examples for problematic symbols: SOFI, ABEV
Symbol with correct functioning: PLUG, AAPL

Thanks,
Kobi


 

I think I found the issue: there was a limit in TWS for 500 shares per order.
Therefor the GUI requested authorization to override this limit, and the API request was stuck.

It happend in ABEV and SOFI for example since their price is few dollars, and my algo is purchasing constant amount of dollars which exceeded 500 shares.


 

In TWS, Global Settings, Presets, Stocks, Precautionary Setting there is a limit for the dollar amount and number of shares. There are defaults for the presets that are described in the field popup help. If your default order size is 100 then the default size limit is 5x or 500.

Some TWS setting cross over to the API.