Skip to content

chore: update ids#814

Merged
carlosmiei merged 2 commits into
masterfrom
update-ids
Jun 8, 2026
Merged

chore: update ids#814
carlosmiei merged 2 commits into
masterfrom
update-ids

Conversation

@carlosmiei

Copy link
Copy Markdown
Collaborator

No description provided.

@carlosmiei carlosmiei self-assigned this Jun 8, 2026

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 default client order ID prefixes used by the v2 spot and futures order services, and aligns the related request assertions in tests.

Changes:

  • Updated spot client order ID prefix to x-TKT5PX2F.
  • Updated futures/contract client order ID prefix to x-cvBPrNm9.
  • Adjusted spot and futures order service tests to expect the new prefixes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
v2/order_service_test.go Updates the expected spot newClientOrderId prefix in the request assertion.
v2/futures/order_service_test.go Updates the expected futures newClientOrderId prefix in the request assertion.
v2/common/helpers.go Updates the shared spot/contract order ID prefix constants used for ID generation.

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

Comment thread v2/order_service_test.go

s.assertReq(func(r *request) {
s.Assertions.True(strings.HasPrefix(r.form.Get("newClientOrderId"), "x-B3AUXNYV"))
s.Assertions.True(strings.HasPrefix(r.form.Get("newClientOrderId"), "x-TKT5PX2F"))
closePosition := false
s.assertReq(func(r *request) {
s.Assertions.True(strings.HasPrefix(r.form.Get("newClientOrderId"), "x-ftGmvgAN"))
s.Assertions.True(strings.HasPrefix(r.form.Get("newClientOrderId"), "x-cvBPrNm9"))
@carlosmiei carlosmiei merged commit 8d09cc6 into master Jun 8, 2026
3 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