22 lines
430 B
Python
22 lines
430 B
Python
from serde import Model, fields
|
|
|
|
|
|
class Market(Model):
|
|
exchange = fields.Str()
|
|
item = fields.Str()
|
|
currency = fields.Str()
|
|
contract = fields.Str()
|
|
|
|
|
|
class Timestamp(Model):
|
|
sent = fields.DateTime()
|
|
trade = fields.DateTime()
|
|
|
|
|
|
class BaseDrakdoo(Model):
|
|
title = fields.Str()
|
|
message = fields.Str()
|
|
period = fields.Str()
|
|
market = fields.Nested(Market)
|
|
timestamp = fields.Nested(Timestamp)
|