Updated schema.py
This commit is contained in:
parent
c338e8f959
commit
d19b38634a
@ -60,16 +60,31 @@ class KeywordSchema(Schema):
|
|||||||
keyword = String()
|
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):
|
class KeywordResponseSchema(Schema):
|
||||||
keyword = String()
|
keyword = String()
|
||||||
s_id = Integer()
|
s_id = Integer()
|
||||||
email = Email()
|
email = Email()
|
||||||
|
|
||||||
|
|
||||||
class SymbolSchema(Schema):
|
|
||||||
symbol = String()
|
|
||||||
|
|
||||||
|
|
||||||
class SymbolResponseSchema(Schema):
|
class SymbolResponseSchema(Schema):
|
||||||
symbol = String()
|
symbol = String()
|
||||||
s_id = Integer()
|
s_id = Integer()
|
||||||
@ -81,13 +96,6 @@ class PortfolioShareResponseSchema(Schema):
|
|||||||
last_transaction = String()
|
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):
|
class TransactionResponseSchema(Schema):
|
||||||
email = Email()
|
email = Email()
|
||||||
symbol = String()
|
symbol = String()
|
||||||
@ -96,16 +104,8 @@ class TransactionResponseSchema(Schema):
|
|||||||
price = Float()
|
price = Float()
|
||||||
|
|
||||||
|
|
||||||
class TelegramIdSchema(Schema):
|
|
||||||
telegram_user_id = String()
|
|
||||||
|
|
||||||
|
|
||||||
class PortfolioResponseSchema(Schema):
|
class PortfolioResponseSchema(Schema):
|
||||||
symbol = String()
|
symbol = String()
|
||||||
last_transaction = String()
|
last_transaction = String()
|
||||||
count = Integer()
|
count = Integer()
|
||||||
# price = Float()
|
# price = Float()
|
||||||
|
|
||||||
|
|
||||||
class DeleteSuccessfulSchema(Schema):
|
|
||||||
pass
|
|
||||||
|
Loading…
Reference in New Issue
Block a user