Skip to content

chore: update ids#992

Merged
carlosmiei merged 1 commit into
masterfrom
update-ids
Jun 8, 2026
Merged

chore: update ids#992
carlosmiei merged 1 commit into
masterfrom
update-ids

Conversation

@carlosmiei

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the library’s default client order ID prefixes (spot and derivatives) and aligns the static tests to the new expected values, keeping request-generation behavior consistent across the TypeScript implementation and the deprecated JS build.

Changes:

  • Updated SPOT_PREFIX and CONTRACT_PREFIX defaults in the main Binance class.
  • Updated static tests (MJS + TS) to assert the new prefixes.
  • Updated the same prefixes in the deprecated implementation for consistency.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tests/static-tests.mjs Updates expected spot/contract client order ID prefixes in static request-shape tests.
tests/binance-class-static.test.ts Mirrors the same prefix updates in the TypeScript static test suite.
src/node-binance-api.ts Changes the default SPOT_PREFIX / CONTRACT_PREFIX used when generating client order IDs.
deprecated/node-binance-api.js Aligns deprecated JS defaults with the updated prefix values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/node-binance-api.ts
Comment on lines +87 to +88
SPOT_PREFIX = "x-TKT5PX2F";
CONTRACT_PREFIX = "x-cvBPrNm9";
@carlosmiei carlosmiei merged commit 4097ae6 into master Jun 8, 2026
1 of 2 checks passed
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.

2 participants