Hi everyone.
I’d like to fetch historical quotes from a website that uses the following link on their own website to fetch JSON quotes:
Brazilian Dólar PTAX
The json result is this:
{
"@odata.context": "https://was-p.bcnet.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata$metadata#_CotacaoDolarDia(cotacaoCompra,dataHoraCotacao)",
"value": [
{
"cotacaoCompra": 5.4641,
"dataHoraCotacao": "2024-06-19 13:09:27.702"
}
]
}
I`m using this configurations in PP:
Path to Date: $.value[].dataHoraCotacao
Date format: yyyy-MM-dd HH:mm:ss.SSS
Path to Close: $.value[].cotacaoCompra
I also tried to use in URL “{DATE:MM-01-yyyy}” or “{DATE:MM-32-yyyy}”, but I think that PP only is prepared for “dd-MM-yyyy” format, for it upload only the one day per month. Can this be implemented?
Another question is that the Date format some times give me a result error in the index “.SSS”. Than, is there a way to PP truncate the date result to take only the date or the work with this format correctly?
Thanks for the great job!