I am pretty new to python so this may be an easy question, but how can I unpack this into the actual data and export it to csv?
Hi there,
Considering result
to be a list of Candlestick objects:
You can use PrintMix.print_data(result)
to see the result from get_candlestick_data
, more info in https://github.com/Binance-docs/Binance_Futures_python/blob/master/example/market/get_candlestick_data.py
To obtain the attribute values of a Candlestick object, you can first know the wanted attributes names (ex: openTime
), so that you can do result[0].openTime
and then manipulate the obtained values to create a csv.
Best.