Open pitBullXXX opened 1 year ago
I installed the mexc-api-sdk. I ran this in python 3.11
from mexc_sdk import Spot spot = Spot(api_key='api key', apiSecret='secret')
Both of my keys are correct and valid. I get this:
spot = Spot(api_key='api key', apiSecret='secrret') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Z\AppData\Local\Programs\Python\Python311\Lib\site-packages\jsii-1.80.0-py3.11.egg\jsii_runtime.py", line 112, in call inst = super().call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Spot.init() got an unexpected keyword argument 'apiSecret'
How can I fix this?
This is a result of an error in the documentation. Where the documentation tells you to write 'apiSecret', it should instead be 'api_secret'.
I installed the mexc-api-sdk. I ran this in python 3.11
from mexc_sdk import Spot spot = Spot(api_key='api key', apiSecret='secret')
Both of my keys are correct and valid. I get this:
spot = Spot(api_key='api key', apiSecret='secrret') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Z\AppData\Local\Programs\Python\Python311\Lib\site-packages\jsii-1.80.0-py3.11.egg\jsii_runtime.py", line 112, in call inst = super().call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Spot.init() got an unexpected keyword argument 'apiSecret'
How can I fix this?