credmark.cmf.types.price.PriceList
- DTO class PriceList(*, prices=[], tokenAddress, src=None)[source]
Bases:
IterableListGenericDTO[float]
Show JSON schema
{ "title": "PriceList", "type": "object", "properties": { "prices": { "title": "Prices", "description": "List of prices", "default": [], "type": "array", "items": { "type": "number" } }, "tokenAddress": { "title": "Tokenaddress", "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$", "format": "evm-address" }, "src": { "title": "Src", "description": "Source", "type": "string" } }, "required": [ "tokenAddress" ], "examples": [ { "prices": [ 4.2, 2.3 ], "tokenAddress": "0x6B175474E89094C44Da98b954EedeAC495271d0F" } ] }
- Config
schema_extra: dict = {‘examples’: [{‘prices’: [4.2, 2.3], ‘tokenAddress’: ‘0x6B175474E89094C44Da98b954EedeAC495271d0F’}]}
- Fields
- Parameters
- Return type
None
- field tokenAddress: Address [Required]
- Constraints
type = string
pattern = ^0x[a-fA-F0-9]{40}$
format = evm-address
- append(obj)
- extend(obj)