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.
15 lines
514 B
15 lines
514 B
|
9 years ago
|
from django import forms
|
||
|
|
|
||
|
|
class NewTradeForm(forms.Form):
|
||
|
|
timestamp = forms.DateTimeField()
|
||
|
|
account = forms.CharField(max_length=256)
|
||
|
|
security = forms.CharField(max_length=256)
|
||
|
|
operation = forms.ChoiceField(choices=[('buy', 'Buy'), ('sell', 'Sell')])
|
||
|
|
price = forms.DecimalField()
|
||
|
|
quantity = forms.IntegerField()
|
||
|
|
volume = forms.DateField()
|
||
|
|
volumeCurrency = forms.CharField(max_length=10)
|
||
|
|
strategyId = forms.CharField(max_length=64)
|
||
|
|
signalId = forms.CharField(max_length=64)
|
||
|
|
|