I have some data (orderbook data for a crypto token) it looks like this:
'exchange': 'BYBIT'
'symbol': 'BTC-USDT-PERP'
'book': {'bid': [Decimal], 'ask': [Decimal]}
'timestamp': 1664773747.197
The bid and ask in the book are a long list of decimal values. This is where I am unsure.
I have tried to make a payload to send to InfluxDB using method client.write_api().write(bucket=data[ 'exchange' ], org='mydb', record=json_payload)
How do I write this to influxdb in an efficient way?