stable/freqtrade/rpc/api_server2/models.py

29 lines
412 B
Python
Raw Normal View History

from typing import List
from pydantic import BaseModel
class Ping(BaseModel):
status: str
2020-12-25 12:11:01 +00:00
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