I want to map a tuple(list) to a pydantic model.
Is there a best practice to map tuple indexes to attributes in the following cases?
from pydantic import BaseModel
class Ohlc(BaseModel):
close_time: float
open_time: float
high_price: float
low_price: float
close_price: float
volume: float
quote_volume: float
data = [
1495324800,
232660,
242460,
231962,
242460,
231.863,
0
]