Files
marbas/schemas.py
2023-07-26 12:56:21 +02:00

53 lines
811 B
Python

from pydantic import BaseModel
class Price(BaseModel):
avg: float
max: float
median: float
min: float
percentile: float
stddev: float
volume: int
order_count: int
class Prices(BaseModel):
all: Price
buy: Price
sell: Price
class Item(BaseModel):
name: str
typeID: int
typeName: str
typeVolume: float
quantity: int
prices: Prices
class Total_price(BaseModel):
buy: float
sell: float
volume: float
class Evepraisal(BaseModel):
id: str
created: int
kind: str
market_name: str
items: list[Item]
totals: Total_price
price_percentage: float
raw: str
class PriceReprocess(BaseModel):
typeID: int
buy: float
sell: float
buy_reprocess: float
sell_reprocess: float
name: str