Exemple #1
0
class Account(model.Model):
    name = model.StringField()
    exchange_id = model.IntegerField()
    currency = model.StringField()
    kind = model.StringField()
    symbol = model.StringField()
    balance = model.FloatField()
Exemple #2
0
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)
Exemple #3
0
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)
Exemple #4
0
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()
Exemple #5
0
class Vendor(model.Model):
    code = model.StringField()
    name = model.StringField()
    url = model.StringField()
Exemple #6
0
class Exchange(model.Model):
    code = model.StringField()
    name = model.StringField()
    currency = model.StringField()
    timezone = model.StringField()