Updated schema.py

This commit is contained in:
Administrator 2022-03-27 20:12:45 +02:00
parent c338e8f959
commit d19b38634a

View File

@ -60,16 +60,31 @@ class KeywordSchema(Schema):
keyword = String()
class SymbolSchema(Schema):
symbol = String()
class TransactionSchema(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"))
count = Integer()
price = Float()
class TelegramIdSchema(Schema):
telegram_user_id = String()
class DeleteSuccessfulSchema(Schema):
pass
class KeywordResponseSchema(Schema):
keyword = String()
s_id = Integer()
email = Email()
class SymbolSchema(Schema):
symbol = String()
class SymbolResponseSchema(Schema):
symbol = String()
s_id = Integer()
@ -81,13 +96,6 @@ class PortfolioShareResponseSchema(Schema):
last_transaction = String()
class TransactionSchema(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"))
count = Integer()
price = Float()
class TransactionResponseSchema(Schema):
email = Email()
symbol = String()
@ -96,16 +104,8 @@ class TransactionResponseSchema(Schema):
price = Float()
class TelegramIdSchema(Schema):
telegram_user_id = String()
class PortfolioResponseSchema(Schema):
symbol = String()
last_transaction = String()
count = Integer()
# price = Float()
class DeleteSuccessfulSchema(Schema):
pass