verata-veritatis / bybit-market-maker

A sample market maker bot for Bybit
MIT License
48 stars 19 forks source link

got error with API keys #10

Open MillionUSDT opened 2 years ago

MillionUSDT commented 2 years ago

Trying to use bybit testnet and got error

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/bybit-market-maker-master/run.py", line 61, in raise PermissionError('API key is invalid.') PermissionError: API key is invalid.

Any issues?

wmpj16 commented 2 years ago

I've figured it out. It's not working on testnet because run.py file is pointing towards the live Bybit site.

You need to go to init file in the pybit package and send the endpoint to the testnet - see the picture.

Hope this works.

image