-
Notifications
You must be signed in to change notification settings - Fork 4
Update class + add run examples #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
modified: .gitignore modified: wikifolio.py
Running version (14.03.2023) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please create a new PR for the replacement of the &
? Because it is just a hotfix and doesn't introduce new features/functions that have to be tested and discussed about
@@ -772,3 +772,22 @@ def remove_order(self, order_uuid: str): | |||
r.raise_for_status() | |||
raw_json = r.json() | |||
return raw_json | |||
|
|||
|
|||
def get_portfolio(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please wrap the output in a class so you know what to expect (similar to 325ea78)
|
||
trades = wf.get_trade_history() | ||
|
||
for a in trades: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace a with a better name. Maybe for trade in trades:
No description provided.