Save symbol price in database

This commit is contained in:
2022-04-05 15:08:57 +02:00
parent 852dedfc0c
commit 695b7593be
9 changed files with 151 additions and 6 deletions

View File

@@ -75,6 +75,12 @@ class TransactionSchema(Schema):
price = Float()
class SymbolPriceSchema(Schema):
symbol = String()
time = String(validate=validate.Regexp(r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z"))
price = Float()
class TelegramIdSchema(Schema):
telegram_user_id = String()