Validate symbol inputs using pydantic

fsp_feeds
Tyler Goodlet 2021-08-25 10:41:35 -04:00
parent 3c7bf4310c
commit 0589c3c5b7
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import decimal
import numpy as np
import pandas as pd
from pydantic import BaseModel
from pydantic import BaseModel, validate_arguments
# from numba import from_dtype
@ -106,7 +106,7 @@ class Symbol(BaseModel):
mult = 1 / self.tick_size
return round(value * mult) / mult
@validate_arguments
def mk_symbol(
key: str,