Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature Incorrect #122

Open
arsaey opened this issue Mar 16, 2022 · 2 comments
Open

Signature Incorrect #122

arsaey opened this issue Mar 16, 2022 · 2 comments

Comments

@arsaey
Copy link

arsaey commented Mar 16, 2022

i just tried work with coinex api but both node and python 3 demo return Signature Incorrect... any help?

@arsaey
Copy link
Author

arsaey commented Mar 17, 2022

my fault to set incorrect secret key. sorry

@Baldaz02
Copy link

I have the same problem in https://api.coinex.com/v1/order/market. The signature is correct when I tried to return me the balance of the wallet, but when I try to buy the API return me "Signature Incorrect".
Formation signature for order/market:
sign_str = f"access_id={access_id}&tonce={current_time}&secret_key={secret_key}"
md5 = hashlib.md5(sign_str.encode())
signature = md5.hexdigest().upper()
It's equal to the demo code.
The request is:
POST https://api.coinex.com/v1/order/market
Body(JSON):
{
"access_id": "xxx",
"market": "BTCUSDT",
"type": "buy",
"amount": "50.000",
"tonce": xxx
}
Request['Authorization'] = "XXX"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants