ATrade dashboard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
1.1 KiB

# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-07 13:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0002_trade'),
]
operations = [
migrations.CreateModel(
name='ClosedTrade',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('account', models.CharField(max_length=256)),
('security', models.CharField(max_length=256)),
('entryTime', models.DateTimeField()),
('exitTime', models.DateTimeField()),
('profit', models.DecimalField(decimal_places=10, max_digits=25)),
('profitCurrency', models.CharField(max_length=10)),
('strategyId', models.CharField(max_length=64)),
('direction', models.CharField(choices=[('long', 'long'), ('short', 'short')], max_length=10)),
],
),
]