This repository has been 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):
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions