File size: 264 Bytes
a721dfa
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import annotations

from typing import List

from pydantic import BaseModel, Field


class SwitchRequest(BaseModel):
    symbol: str
    interval: str


class WatchlistRequest(BaseModel):
    symbols: List[str] = Field(min_length=1, max_length=50)