correção de nome de variaveis;

simplificar a avaliação de equivalencia entre 'item_resposta' e 'linha_ficheiro_csv'
This commit is contained in:
2024-05-22 12:39:31 +01:00
parent ce65a0316c
commit ee7dc47997
3 changed files with 18 additions and 198 deletions

View File

@ -50,7 +50,7 @@ if response.status_code == 200:
#date = time.ctime(data['prices'][index][0]/1000)
date_as_string = time.strftime("%d/%m/%Y", time.gmtime(data['prices'][index][0]/1000))
price = data['prices'][index][1]
print(f'{date_as_string} -> {price}')
print(f'{date_as_string} -> {price:.2f}')
# ohlc = [ data[0][1], data[0][2], data[0][3], data[0][4] ]