Skip to content
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

update readme with clearer instructions #70

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ For exporting options trades, run:

`python csv-options-export.py`

You will be prompted to enter your 'username', which is your login email, your password, and optionally, your MFA.

You can also provide these as arguments:
`python csv-options-export.py --username [email protected] --password password123! --device_token 744e17eb-2e2d-48e9-b46f-0f2521v17376`


For Device_Token go to your browser

Expand Down
5 changes: 4 additions & 1 deletion csv-export.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@
if (idx > 0):
csv += ","
try:
csv += str(fields[row][key])
if key == 'executed_notional' or key == 'last_trail_price' or key == 'dollar_based_amount' or key == 'total_notional':
csv += "\""+str(fields[row][key])+"\""
else:
csv += str(fields[row][key])
except:
csv += ""

Expand Down