credmark.cmf.types.series.SeriesModelWindowIntervalInput

DTO class SeriesModelWindowIntervalInput(*, window, interval, modelInput=None, modelSlug, modelVersion=None)[source]

Bases: BaseModel

Show JSON schema
{
   "title": "SeriesModelWindowIntervalInput",
   "type": "object",
   "properties": {
      "window": {
         "title": "Window",
         "type": "integer"
      },
      "interval": {
         "title": "Interval",
         "type": "integer"
      },
      "modelInput": {
         "title": "Modelinput",
         "anyOf": [
            {
               "type": "object"
            },
            {
               "$ref": "#/definitions/BaseModel"
            },
            {
               "type": "integer"
            },
            {
               "type": "string"
            },
            {
               "type": "number"
            }
         ]
      },
      "modelSlug": {
         "title": "Modelslug",
         "type": "string"
      },
      "modelVersion": {
         "title": "Modelversion",
         "type": "string"
      }
   },
   "required": [
      "window",
      "interval",
      "modelSlug"
   ],
   "example": {
      "modelSlug": "token.balance",
      "modelInput": {
         "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
         "account": "0x55FE002aefF02F77364de339a1292923A15844B8"
      },
      "window": 20000,
      "interval": 10000
   },
   "definitions": {
      "BaseModel": {
         "title": "BaseModel",
         "type": "object",
         "properties": {}
      }
   }
}

Config
  • schema_extra: dict = {‘example’: {‘modelSlug’: ‘token.balance’, ‘modelInput’: {‘address’: ‘0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48’, ‘account’: ‘0x55FE002aefF02F77364de339a1292923A15844B8’}, ‘window’: 20000, ‘interval’: 10000}}

Fields
Parameters
Return type

None

field interval: int [Required]
field modelInput: Optional[Union[dict, BaseModel, IntDTO, StrDTO, FloatDTO]] = None
field modelSlug: str [Required]
field modelVersion: Optional[str] = None
field window: int [Required]