freqtrade_origin/freqtrade/rpc/api_server2/models.py
2021-01-03 06:46:25 +01:00

37 lines
533 B
Python

from typing import List
from pydantic import BaseModel
class Ping(BaseModel):
status: str
class AccessToken(BaseModel):
access_token: str
class AccessAndRefreshToken(AccessToken):
refresh_token: str
class Version(BaseModel):
version: str
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