mexcdevelop / mexc-api-sdk

MIT License
173 stars 70 forks source link

TypeError: Spot #36

Open pitBullXXX opened 1 year ago

pitBullXXX commented 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?

jtranquilli commented 8 months ago

This is a result of an error in the documentation. Where the documentation tells you to write 'apiSecret', it should instead be 'api_secret'.