2020-12-25 12:08:25 +00:00
|
|
|
from typing import List
|
2020-12-25 19:07:12 +00:00
|
|
|
|
2020-12-25 12:08:25 +00:00
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
|
|
|
class Ping(BaseModel):
|
|
|
|
status: str
|
|
|
|
|
2020-12-25 12:11:01 +00:00
|
|
|
|
2020-12-25 14:50:19 +00:00
|
|
|
class AccessToken(BaseModel):
|
|
|
|
access_token: str
|
|
|
|
|
|
|
|
|
|
|
|
class AccessAndRefreshToken(AccessToken):
|
|
|
|
refresh_token: str
|
|
|
|
|
|
|
|
|
2020-12-25 12:11:01 +00:00
|
|
|
class Version(BaseModel):
|
|
|
|
version: str
|
2020-12-25 12:08:25 +00:00
|
|
|
|
|
|
|
|
2020-12-25 19:07:12 +00:00
|
|
|
class StatusMsg(BaseModel):
|
|
|
|
status: str
|
|
|
|
|
|
|
|
|
2020-12-25 12:08:25 +00:00
|
|
|
class Balance(BaseModel):
|
|
|
|
currency: str
|
|
|
|
free: float
|
|
|
|
balance: float
|
|
|
|
used: float
|
|
|
|
est_stake: float
|
|
|
|
stake: str
|
|
|
|
|
|
|
|
|
|
|
|
class Balances(BaseModel):
|
|
|
|
currencies: List[Balance]
|
|
|
|
total: float
|
|
|
|
symbol: str
|
|
|
|
value: float
|
|
|
|
stake: str
|
|
|
|
note: str
|