I would like to pull multiple tickers from Binance and have managed to do so and write them into a CSV file. However, I am having an issue pulling specific information from the columns to have the OHLCV data only and then work on wrapping ta-lib around this data.
For eg. I would like to keep the OHLCV data from each row for XRPBTC, NEOBTC which are in columns, and write them into a new file or just wrap ta-lib around the same data. It works fine for just one ticker but I'm having some troubles extracting this for multiple tickers.
I am given to understand that these are in the format of lists, can I split them to keep only OHLCV data and from each row and from each column and write them into a new file - is there an easier way of splitting a list?
screenshot of the data
Link to relevant binance documentation Klines candlestick data
import pandas as pd                                                                                                     
import numpy as np                                                                                                   
import csv   
import talib as ta                                                                                                  
from binance.client import Client                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                                                                                 
candlesticks = ['XRPBTC','NEOBTC'] # unable to split for each row in multiple columns                                                         
data = pd.DataFrame()                                                                                                   
for candlestick in candlesticks:
    data[candlestick] = client.get_historical_klines(candlestick, Client.KLINE_INTERVAL_15MINUTE, "1 Jul, 2021")
    data.to_csv("XRPNEO15M.csv")
    print(data)                

 
    