BitMEX / api-connectors

Libraries for connecting to the BitMEX API.
https://www.bitmex.com/app/restAPI
909 stars 797 forks source link

403 forbidden error while running order request in python #251

Open ragupathis opened 5 years ago

ragupathis commented 5 years ago

Hello All.,

We are facing the 403 Forbidden issue while running placing an order code in python terminal.

Please look at the screenshot for better understanding. bitmex

We are running in the Testnet API and we are following the steps from this GitHub repo link https://github.com/BitMEX/api-connectors/tree/master/official-http/python-swaggerpy.

We are trying to place a custom order using WebSockets., pls give us a working approach to do that.

Thanks in advance.

vanishjournalist commented 5 years ago

We are trying to place a custom order using WebSockets., pls give us a working approach to do that.

Thanks in advance.

You cannot place an order using WebSockets on BitMEX, you will have to use the REST API instead. To get better latencies, BitMEX recommends to use HTTP Keep-Alive.

Source: https://www.bitmex.com/app/restAPI#HTTP-Keep-Alive

As for your first question, I am sorry I can't be of any use as I am not familiar with the python implementation.