glourencoffee / pycvm

Python library for processing data from CVM
MIT License
2 stars 0 forks source link

Reading FCA shows invalid values for InvestorRelationsOfficerType and SecurityType #13

Closed glourencoffee closed 2 years ago

glourencoffee commented 2 years ago

Description

While reading FCA, messages are printed saying values "Administrador Especial Temporário" and "Valor Mobiliário Não Registrado" are invalid.

Expected behavior

These values should not be deemed invalid, but rather map to valid enum members in their corresponding enum classes, namely InvestorRelationsOfficerType and SecurityType.

Actual behavior

Reading FCA of 2017 shows the following message patterns several times:

Skipping line 1 in IRD batch 63870: failed to create object from value 'Administrador Especial Temporário' at field 'Tipo_Responsavel': 'Administrador Especial Temporário' is not a valid InvestorRelationsOfficerType
Skipping line 1 in securities batch 63736: failed to create object from value 'Valor Mobiliário Não Registrado' at field 'Valor_Mobiliario': 'Valor Mobiliário Não Registrado' is not a valid SecurityType

Additional context

This bug results from a partially implemented feature. Although the above description is occurring with FCA/2017, integration must be tested against FCA documents from all years to ensure there are no more invalid values.