i have a problem with the Bitmex Api, im trying to connect to the api for send orders for buy or sell and i realice the instalation for bitmex:
pip3 install bitmex
and after i realice the connection with the suggest command:
from bitmex import bitmex
import requests, json
api_key = ''#i put here the api key
api_secret = ''#i put here the api secret key
client = bitmex(test=False, api_key=api_key, api_secret=api_secret)
after of this i run for check that all its runing ok, and receive this error:
Warning (from warnings module): File "C:\Users\neoma\AppData\Local\Programs\Python\Python38-32\lib\site-packages\swagger_spec_validator\validator20.py", line 49 warnings.warn( SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences)
i same try with the websocket bitmex version. i can connect, but with this version i can't realice orders for buy or sell. on this version i try with the next method and work. but i think that this version on websocket its only for consults.
from bitmex_websocket import BitMEXWebsocket
ws = BitMEXWebsocket(endpoint="https://testnet.bitmex.com/api/v1", symbol="XBTUSD", api_key="...", api_secret="...").
i'm not sure what i can does for that the bitmex REST API version work (the first that i share on this text). someone can help me with this error? . thanks