generated from app-generator/django-react-soft-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BE: stocks pnl and transactions upload
- Loading branch information
1 parent
8bc0509
commit 10edf77
Showing
8 changed files
with
87 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
61 changes: 0 additions & 61 deletions
61
src/mainframe/finance/management/commands/import_stock_pnl.py
This file was deleted.
Oops, something went wrong.
71 changes: 0 additions & 71 deletions
71
src/mainframe/finance/management/commands/import_stock_transactions.py
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
src/mainframe/finance/migrations/0033_pnl_country_pnl_isin_pnl_security_name_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 5.0.4 on 2024-11-12 17:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("finance", "0032_alter_account_type"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="pnl", | ||
name="country", | ||
field=models.CharField(default="US", max_length=2), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="pnl", | ||
name="isin", | ||
field=models.CharField(default="default", max_length=12), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="pnl", | ||
name="security_name", | ||
field=models.CharField(default="default", max_length=50), | ||
preserve_default=False, | ||
), | ||
migrations.AddConstraint( | ||
model_name="pnl", | ||
constraint=models.UniqueConstraint( | ||
fields=("date_acquired", "date_sold", "ticker", "quantity", "currency"), | ||
name="finance_pnl_date_acquired_date_sold_ticker_quantity_currency_uniq", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters