Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ❯ pip install investments --user
- Requirement already satisfied: investments in /Users/thatguy/Library/Python/3.7/lib/python/site-packages (0.1.5)
- Requirement already satisfied: requests<3.0.0,>=2.23.0 in /usr/local/lib/python3.7/site-packages (from investments) (2.23.0)
- Requirement already satisfied: pandas<2.0.0,>=1.0.3 in /Users/thatguy/Library/Python/3.7/lib/python/site-packages (from investments) (1.0.3)
- Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests<3.0.0,>=2.23.0->investments) (3.0.4)
- Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests<3.0.0,>=2.23.0->investments) (2.9)
- Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests<3.0.0,>=2.23.0->investments) (1.25.8)
- Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests<3.0.0,>=2.23.0->investments) (2019.11.28)
- Requirement already satisfied: numpy>=1.13.3 in /Users/thatguy/Library/Python/3.7/lib/python/site-packages (from pandas<2.0.0,>=1.0.3->investments) (1.18.2)
- Requirement already satisfied: pytz>=2017.2 in /Users/thatguy/Library/Python/3.7/lib/python/site-packages (from pandas<2.0.0,>=1.0.3->investments) (2019.3)
- Requirement already satisfied: python-dateutil>=2.6.1 in /usr/local/lib/python3.7/site-packages (from pandas<2.0.0,>=1.0.3->investments) (2.8.1)
- Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.7/site-packages (from python-dateutil>=2.6.1->pandas<2.0.0,>=1.0.3->investments) (1.14.0)
- ❯ /System/Volumes/Data/Users/thatguy/Library/Python/3.7/bin/ibtax --activity-reports-dir ~/Downloads/investment2s --confirmation-reports-dir ~/Downloads/investment2s
- [*] Activity report /Users/thatguy/Downloads/investment2s/Trade_Confirmation.csv
- [*] Activity report /Users/thatguy/Downloads/investment2s/U2790801_U2790801_2019_2019_AS_Fv2_c862b77d93c23491b315bbf4da28f4f9.csv
- [*] Confirmation report /Users/thatguy/Downloads/investment2s/Trade_Confirmation.csv
- [*] Confirmation report /Users/thatguy/Downloads/investment2s/U2790801_U2790801_2019_2019_AS_Fv2_c862b77d93c23491b315bbf4da28f4f9.csv
- ================================================================
- Traceback (most recent call last):
- File "/System/Volumes/Data/Users/thatguy/Library/Python/3.7/bin/ibtax", line 8, in <module>
- sys.exit(main())
- File "/Users/thatguy/Library/Python/3.7/lib/python/site-packages/investments/ibtax/ibtax.py", line 115, in main
- trade_confirmation_csvs=confirmation_reports,
- File "/Users/thatguy/Library/Python/3.7/lib/python/site-packages/investments/report_parsers/ib.py", line 102, in parse_csv
- self._parse_trade_confirmation_csv(csv.reader(tc_fh, delimiter=','))
- File "/Users/thatguy/Library/Python/3.7/lib/python/site-packages/investments/report_parsers/ib.py", line 128, in _parse_trade_confirmation_csv
- if f['LevelOfDetail'] != 'EXECUTION':
- KeyError: 'LevelOfDetail'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement