You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
420 B
Python
22 lines
420 B
Python
2 years ago
|
from serde import Model, fields
|
||
|
|
||
2 years ago
|
|
||
2 years ago
|
class Market(Model):
|
||
|
exchange = fields.Str()
|
||
|
item = fields.Str()
|
||
|
currency = fields.Str()
|
||
|
contract = fields.Str()
|
||
|
|
||
2 years ago
|
|
||
2 years ago
|
class Timestamp(Model):
|
||
2 years ago
|
sent = fields.Int()
|
||
|
trade = fields.Int()
|
||
2 years ago
|
|
||
2 years ago
|
|
||
2 years ago
|
class BaseDrakdoo(Model):
|
||
|
title = fields.Str()
|
||
|
message = fields.Str()
|
||
|
period = fields.Str()
|
||
|
market = fields.Nested(Market)
|
||
2 years ago
|
timestamp = fields.Nested(Timestamp)
|