Пытаюсь опробовать алгоритм/стратегию на тестнете Бинанса,
from binance import Client
import time
import pandas as pd
client = Client(TN_Api_key, TN_Api_SecKey, testnet=True)
def 1:
def 2:
def 3:
Ошибка:
$ python testing.py
strategy +
top_coin +
last_data +
LTCUSDT
93.5
1.1
Traceback (most recent call last):
File "D:\Python\Bot Binance\testing.py", line 78, in <module>
strategy(100)
File "D:\Python\Bot Binance\testing.py", line 51, in strategy
order = client.create_order(symbol = asset, side = 'BUY', type='MARKET', quantity = qty)
File "C:\Users\SMex\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 1447, in create_order
return self._post('order', True, data=params)
File "C:\Users\SMex\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 417, in _post
return self._request_api('post', path, signed, version, **kwargs)
File "C:\Users\SMex\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 377, in _request_api
return self._request(method, uri, signed, **kwargs)
File "C:\Users\SMex\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 358, in _request
return self._handle_response(self.response)
File "C:\Users\SMex\AppData\Local\Programs\Python\Python310\lib\site-packages\binance\client.py", line 367, in _handle_response
raise BinanceAPIException(response, response.status_code, response.text)
binance.exceptions.BinanceAPIException: APIError(code=-2015): Invalid API-key, IP, or permissions for action.
Возвращает почему-то, Invalid API-key, IP, or permissions for action.