-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.py
46 lines (38 loc) · 1.64 KB
/
models.py
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
from django.db import models
# Create your models here.
class CE(models.Model):
timestamp = models.CharField(max_length=100)
strikePrice = models.CharField(max_length=100)
openInterest = models.CharField(max_length=100)
changeinOpenInterest = models.CharField(max_length=100)
totalTradedVolume = models.CharField(max_length=100)
impliedVolatility = models.CharField(max_length=100)
lastPrice = models.CharField(max_length=100)
change = models.CharField(max_length=100)
pChange = models.CharField(max_length=100)
bidQty = models.CharField(max_length=100)
bidprice = models.CharField(max_length=100)
askQty = models.CharField(max_length=100)
askPrice = models.CharField(max_length=100)
class Meta:
verbose_name_plural = 'CE'
def __str__(self):
return self.timestamp
class PE(models.Model):
timestamp = models.CharField(max_length=100)
strikePrice = models.CharField(max_length=100)
openInterest = models.CharField(max_length=100)
changeinOpenInterest = models.CharField(max_length=100)
totalTradedVolume = models.CharField(max_length=100)
impliedVolatility = models.CharField(max_length=100)
lastPrice = models.CharField(max_length=100)
change = models.CharField(max_length=100)
pChange = models.CharField(max_length=100)
bidQty = models.CharField(max_length=100)
bidprice = models.CharField(max_length=100)
askQty = models.CharField(max_length=100)
askPrice = models.CharField(max_length=100)
class Meta:
verbose_name_plural = 'PE'
def __str__(self):
return self.timestamp