30 lines
463 B
Python
30 lines
463 B
Python
|
from typing import List
|
||
|
from pydantic import BaseModel
|
||
|
|
||
|
|
||
|
class Ping(BaseModel):
|
||
|
status: str
|
||
|
|
||
|
class Config:
|
||
|
schema_extra = {
|
||
|
"example": {"status", "pong"}
|
||
|
}
|
||
|
|
||
|
|
||
|
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
|