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.
14 lines
517 B
14 lines
517 B
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.DecimalField() |
|
volumeCurrency = forms.CharField(max_length=10) |
|
strategyId = forms.CharField(max_length=64) |
|
signalId = forms.CharField(max_length=64) |
|
|
|
|