File size: 518 Bytes
9d4bd7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from pydantic import BaseModel
from datetime import date
from typing import List
from App.routers.tasks.schemas import ResponseModel

class UTTFundResponse(BaseModel):
    id: int
    symbol: str
    name: str

class UTTFundDataResponse(BaseModel):
    date: date
    nav_per_unit: float
    sale_price_per_unit: float
    repurchase_price_per_unit: float
    outstanding_number_of_units: int
    net_asset_value: int

class UTTFundListResponse(BaseModel):
    fund: UTTFundResponse
    data: List[UTTFundDataResponse]