Skip to content

Fix HMAC secret decode for new URL-safe API keys#4

Open
guiviaje wants to merge 1 commit into
anbotolabs:mainfrom
guiviaje:fix/api-key-secret-decode-bac944
Open

Fix HMAC secret decode for new URL-safe API keys#4
guiviaje wants to merge 1 commit into
anbotolabs:mainfrom
guiviaje:fix/api-key-secret-decode-bac944

Conversation

@guiviaje
Copy link
Copy Markdown

@guiviaje guiviaje commented May 27, 2026

Summary

  • Add decode_sign_key (Python) and decodeSignKey (Java) matching api-gw ApiSignatureValidator.decodeSignKey.
  • Fixes Invalid Signature (7003) when using keys created after local key generation (URL-safe secrets without +// padding).
  • Expand README with signing steps, secret decode rules, and Pro base URL.

Test plan

  • Paste a new pro key pair into client.py and call a signed GET (e.g. funding rates).
  • Confirm legacy keys (standard Base64 with ==) still work.

Add decode_sign_key / decodeSignKey matching api-gw: legacy standard Base64
secrets vs new token_urlsafe secrets. Document signing steps and Pro base URL
in README.

Co-authored-by: Cursor <cursoragent@cursor.com>
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

Successfully merging this pull request may close these issues.

1 participant