コード例 #1
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)
コード例 #2
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)
コード例 #3
0
class Account(model.Model):
    name = model.StringField()
    exchange_id = model.IntegerField()
    currency = model.StringField()
    kind = model.StringField()
    symbol = model.StringField()
    balance = model.FloatField()
コード例 #4
0
class K1HPrice(model.Model):
    ' K price for 1 hour '
    vendor_id = model.IntegerField()
    symbol_id = model.IntegerField()
    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()