I am having an issue requesting my account information after importing the data with my api_key from Binance. I am writing a script that allows to fetch live 'MATICUSDT' data with (Python Binance Websocket). The script runs totally fine when creating a historicalklines dataframe but will not return the account info.
Error: BinanceAPIException: APIError(code=-2014): API-key format invalid.
Can anyone help ?
import sqlalchemy
import pandas as pd
from binance.client import Client
api_key ='#'
api_secret ='#'
client = Client (api_key, api_secret)
client.get_account()
BinanceAPIException: APIError(code=-2014): API-key format invalid.