You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I've needed to test signature generation for GET /api/v3/account endpoint. Running mexc-api-demo/go/run demo/Spot Trade results in an error: {"code":700002,"msg":"Signature for this request is not valid."}
Steps to Reproduce
Set up API keys in config/config.go
Make request: go run /run demo/Spot Trade/SpotAccountInfo.go
Actual behavior
Response is: {"code":700002,"msg":"Signature for this request is not valid."}
Expected behavior
Response is {"makerCommission":null, ..., "permissions":["SPOT"]}
Additional context
I've resolved the error for this endpoint.
Description
I've needed to test signature generation for
GET /api/v3/account
endpoint. Runningmexc-api-demo/go/run demo/Spot Trade
results in an error:{"code":700002,"msg":"Signature for this request is not valid."}
Steps to Reproduce
config/config.go
go run /run demo/Spot Trade/SpotAccountInfo.go
Actual behavior
Response is:
{"code":700002,"msg":"Signature for this request is not valid."}
Expected behavior
Response is
{"makerCommission":null, ..., "permissions":["SPOT"]}
Additional context
I've resolved the error for this endpoint.
mexc-api-demo/go/utils/utils.go
Line 54 in 83f5b76
Changing to this resolved an error:
This fix works for
GET /api/v3/account
, but further testing needed for other endpoints.The text was updated successfully, but these errors were encountered: