summaryrefslogtreecommitdiff
path: root/app/trading/migrations/0011_auto_20210720_2039.py
blob: 8ff6693bdc6a0d8b58eae3ef6a18d2af2d9cbb50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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=[
            ],
        ),
    ]