text_plain_output_1.png
from binance import Client, ThreadedWebsocketManager, ThreadedDepthCacheManager

import pandas as pd

apikey = 'YOURAPIKEY'
secret = 'YOURAPISECRET'

client = Client(apikey, secret)

tickers = client.get_all_tickers()

ticker_df = pd.DataFrame(tickers)

depth = client.get_order_book(symbol='BTCUSDT')

depth_df = pd.DataFrame(depth['asks'])
depth_df.columns = ['Price', 'Volume']

depth_df.dtypes