-
Notifications
You must be signed in to change notification settings - Fork 57
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
How to use it with Schwab Equity JSON? #583
Comments
And what happens if you provide the csv awards only? (apart from the normal
transactions) You shouldn't use both formats.
…On Tue, 7 Jan 2025 at 19:01, Dimitry ***@***.***> wrote:
How --schwab_equity_award_json is intendant to be used? It seems it's not
working no matter do I provide along --schwab-award some.csv or not. If I
do not provide argument --schwab_equity_award_json and use just CSVs for
transactions and awards *it's working fine*.
If I provide both like cgt-calc --year 2023 --schwab
./Individual_XXX996_Transactions.csv --schwab-award
./EquityAwardsCenter_Transactions.csv --schwab_equity_award_json
./EquityAwardsCenter_Transactions.json there is an error:
File "/root/.local/share/pipx/venvs/cgt-calc/lib/python3.11/site-packages/cgt_calc/parsers/schwab_equity_award_json.py", line 151, in action_from_str
raise ParsingError("schwab transactions", f"Unknown action: {label}")
cgt_calc.exceptions.ParsingError: While parsing schwab transactions, Unknown action: Lapse
If I provide only transactions and schwab_equity_award_json like like cgt-calc
--year 2023 --schwab ./Individual_XXX996_Transactions.csv
--schwab_equity_award_json ./EquityAwardsCenter_Transactions.json the
error is
KeyError: 'Award price is not found for symbol SOMETHING for date 2024-11-15'
but clearly the entry for equity is in JSON.
I looked at code a bit and it seems the code is not organized to work
*without* equity CSV file provided and this error above comes way before
equity JSON file parsing. So this made me wonder what I'm doing wrong using
JSON? :)
—
Reply to this email directly, view it on GitHub
<#583>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJAGMETQ4GRII2MPAZUJIL2JRFB5AVCNFSM6AAAAABUYTGQYSVHI2DSMVQWIX3LMV43ASLTON2WKOZSG43TGOBSGQ3DENI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Not much. Running
|
That’s just the json. I asked about the awards in csv format and the normal transactions. |
@DimitryDushkin did you manage to get it to work? If so, do you mind sharing the command line used? |
I think that In fact, while Personally, if I try to pass in all 3 flags, I get a different error:
My schwab .csv don't contain a FairMarketValuePrice in their header, but they do contain About how to use Personally, using |
How
--schwab_equity_award_json
is intendant to be used? It seems it's not working no matter do I provide along--schwab-award some.csv
or not. If I do not provide argument--schwab_equity_award_json
and use just CSVs for transactions and awards it's working fine.If I provide both like
cgt-calc --year 2023 --schwab ./Individual_XXX996_Transactions.csv --schwab-award ./EquityAwardsCenter_Transactions.csv --schwab_equity_award_json ./EquityAwardsCenter_Transactions.json
there is an error:If I provide only transactions and schwab_equity_award_json like like
cgt-calc --year 2023 --schwab ./Individual_XXX996_Transactions.csv --schwab_equity_award_json ./EquityAwardsCenter_Transactions.json
the error isbut clearly the entry for equity is in JSON.
I looked at code a bit and it seems the code is not organized to work without equity CSV file provided and this error above comes way before equity JSON file parsing. So this made me wonder what I'm doing wrong using JSON? :)
The text was updated successfully, but these errors were encountered: