Begin implementing positions

This commit is contained in:
2022-10-17 07:20:30 +01:00
parent 5279217324
commit 1bdd49ee6a
17 changed files with 452 additions and 28 deletions

View File

@@ -0,0 +1,21 @@
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.Int()
trade = fields.Int()
class BaseDrakdoo(Model):
title = fields.Str()
message = fields.Str()
period = fields.Str()
market = fields.Nested(Market)
timestamp = fields.Nested(Timestamp)