Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
unexpected keyword argument 'conid' in Contract()
In the there is an example:?
Contract(conId=270639)which should return a Contract Object. But I got the error: Traceback (most recent call last): ? File "...\venv\lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code ? ? exec(code_obj, self.user_global_ns, self.user_ns) ? File "<ipython-input-23-8d88e504d067>", line 1, in <module> ? ? Contract(conid=270639) TypeError: Contract.__init__() got an unexpected keyword argument 'conid' In the source: ...is no conId. I thought if I have a conId, I dont need any further Contract description. Am I wrong or is it a bug? Regards Hans |
The attribute is case sensitive, making conid an unsupported attribute verses conId. >>> contract = Contract(conId=270639)
>>> contract Contract(conId=270639)
On Wednesday, July 10th, 2024 at 3:41 AM, Papageno via groups.io <hjm=pmeonline.net_at_groups_io_k289j40cpxdcc8_4b6s0895@...> wrote: In the there is an example:?Contract(conId=270639)which should return a Contract Object. But I got the error: |
to navigate to use esc to dismiss