diff options
Diffstat (limited to 'app/trading/migrations/0011_auto_20210720_2039.py')
-rw-r--r-- | app/trading/migrations/0011_auto_20210720_2039.py | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app/trading/migrations/0011_auto_20210720_2039.py b/app/trading/migrations/0011_auto_20210720_2039.py new file mode 100644 index 0000000..8ff6693 --- /dev/null +++ b/app/trading/migrations/0011_auto_20210720_2039.py @@ -0,0 +1,49 @@ +# Generated by Django 3.2.5 on 2021-07-20 20:39 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('trading', '0010_auto_20210716_1344'), + ] + + operations = [ + migrations.CreateModel( + name='LuxOptionsTrade', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('symbol', models.CharField(max_length=256)), + ('date', models.DateTimeField(auto_now_add=True)), + ('close_date', models.DateTimeField(blank=True, null=True)), + ('open_date', models.DateTimeField(blank=True, null=True)), + ('entry_price', models.FloatField()), + ('stop_price', models.FloatField()), + ('target_price', models.FloatField()), + ('strike_price', models.FloatField()), + ('call_put', models.CharField(choices=[(0, 'Call'), (1, 'Put')], default=0, max_length=4)), + ('contract_price', models.FloatField()), + ('number_contracts', models.FloatField()), + ('delta', models.FloatField()), + ('expiration_date', models.DateField()), + ('fees', models.FloatField()), + ('status', models.IntegerField(choices=[(0, 'Open'), (1, 'Closed'), (2, 'Watching')], default=2)), + ('notes', models.TextField(blank=True, null=True)), + ('pl', models.FloatField(null=True)), + ], + options={ + 'ordering': ('-open_date',), + 'get_latest_by': 'open_date', + }, + ), + migrations.AlterModelOptions( + name='luxtrade', + options={'get_latest_by': 'open_date', 'ordering': ('-open_date',)}, + ), + migrations.AlterModelManagers( + name='luxtrade', + managers=[ + ], + ), + ] |