I am trying to find the highest daily high within daily kline data from binance. I am able to API call the list of lists with this code.
client.get_historical_klines('maticbtc', Client.KLINE_INTERVAL_1DAY, "2 days ago UTC")
The output is a list of daily historical prices in 'open' 'high' 'low' 'close' 'volume' format.
[[1599264000000,
'0.00000185',
'0.00000192',
'0.00000171',
'0.00000177',
'208963036.00000000',
1599350399999,
'377.04825679',
14595,
'82785887.00000000',
'150.17277108',
'0'],
[1599350400000,
'0.00000177',
'0.00000185',
'0.00000170',
'0.00000182',
'114643846.00000000',
1599436799999,
'204.99814224',
9620,
'55503278.00000000',
'99.62131279',
'0']]
I would like to find the highest 'high' value in this list. I am currently able to reference a single daily 'high' value using this code:
client.get_historical_klines('maticbtc', Client.KLINE_INTERVAL_1DAY, "30 days ago UTC")[0][2]
output:
0.00000192
Thank you for your suggestions!