Signature verification failed on futures api
Closed this issue · 3 comments
Mackming commented
On all the Get requests, signature verification succeeds, but when any post request is sent, signature verification fails. Any solution?
makarworld commented
Provide some of your code for make requests.
imbashamba commented
same issue, here's my code
from pymexc import futures
api_key = ""
api_secret = ""
# initialize HTTP client
futures_client = futures.HTTP(api_key = api_key, api_secret = api_secret)
# make http request to api
print(futures_client.index_price("SOL_USDT"))
order = futures_client.trigger_order("SOL_USDT", 1, 3, 1, 92, 2, 1, 5, 1)
print(order)
output:
{'success': True, 'code': 0, 'data': {'symbol': 'SOL_USDT', 'indexPrice': 95.639, 'timestamp': 1707240599818}}
{'success': False, 'code': 602, 'message': 'Signature verification failed!'}
makarworld commented
Problem on MEXC futures api side.
As moderators said (msg): "Futures not support api trading but still support query info".
You can ask about api in official MEXC api support chat -> t.me/MEXCAPIsupport