class Account(model.Model): name = model.StringField() exchange_id = model.IntegerField() currency = model.StringField() kind = model.StringField() symbol = model.StringField() balance = model.FloatField()
class Symbol(model.Model): exchange_id = model.IntegerField() code = model.StringField() name = model.StringField() currency = model.StringField() industry = model.StringField(default='') area = model.StringField(default='') outstanding = model.FloatField(default=0.0) total = model.FloatField(default=0.0) is_index = model.BooleanField(default=False)
class TestSimple(model.Model): name = model.StringField() gender = model.BooleanField() age = model.IntegerField(default=20) birth = model.DateField() current = model.DateTimeField() notify_at = model.FloatField(default=time.time)
class K1DPrice(model.Model): ' K price for 1 day ' vendor_id = model.IntegerField() symbol_id = model.IntegerField() code = model.StringField() price_date = model.DateField() open_price = model.FloatField() high_price = model.FloatField() low_price = model.FloatField() close_price = model.FloatField() adj_close_price = model.FloatField() volume = model.FloatField()
class Vendor(model.Model): code = model.StringField() name = model.StringField() url = model.StringField()
class Exchange(model.Model): code = model.StringField() name = model.StringField() currency = model.StringField() timezone = model.StringField()