This repository was archived by the owner on Mar 14, 2024. It is now read-only.
Replies: 1 comment
|
You should see an error when it fails because IBKR has never supported fractional equity shares via the API (though you can use fractional quantities for crypto orders):
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I use ib_insync lib to place order to ib tws. I am using Financial Advisor account, while transmitted float quantity (ex. 2.23 NVDA), it failed. I can only transmit Int quantity(ex. 2 NVDA) to ib tws.
Please advise how could I place float order to ib tws. Thanks.
Please refer my code as below. I insert stock information on Excel, pls see attached file.
stock.xlsx
from ib_insync import *
import pandas as pd
ib = IB()
ib.connect('127.0.0.1', 7496, clientId=1)
df = pd.read_excel('/Users/ctu1121/Downloads/stock.xlsx', dtype={'stock': str, 'vol': float, 'price': float})
for index, row in df.iterrows():
ib.disconnect()
stock.xlsx
All reactions