Schema validation
This is the Cerberus validation
schema applied to the manual-mode config.yaml. In
events mode, the aggregated result is
validated against the same schema after the events have been processed.
shares:
type: list
required: True
empty: False
schema:
type: dict
required: True
schema:
name:
type: string
required: True
symbol:
type: string
required: True
purchase:
type: dict
required: True
schema:
quantity:
type: number
required: True
min: 0
fee:
type: number
required: True
min: 0
cost_price:
type: number
required: True
min: 0
estate:
type: dict
required: True
schema:
quantity:
type: number
required: True
min: 0
received_dividend:
type: number
required: True
min: 0