29 lines
1.1 KiB
Python
29 lines
1.1 KiB
Python
# Generated by Django 4.1.2 on 2022-10-17 17:39
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('core', '0007_account'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Trade',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('symbol', models.CharField(max_length=255)),
|
|
('type', models.CharField(max_length=255)),
|
|
('amount', models.FloatField()),
|
|
('price', models.FloatField()),
|
|
('stop_loss', models.FloatField(blank=True, null=True)),
|
|
('take_profit', models.FloatField(blank=True, null=True)),
|
|
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.account')),
|
|
('hook', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.hook')),
|
|
],
|
|
),
|
|
]
|