Skip to content

fix(options): send recordId in BillService - #828

Merged
carlosmiei merged 1 commit into
ccxt:masterfrom
wavebyrd:fix/options-bill-record-id
Dec 2, 2026
Merged

carlosmiei merged 1 commit into
ccxt:masterfrom
wavebyrd:fix/options-bill-record-id

Conversation

@wavebyrd

@wavebyrd wavebyrd commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

BillService.RecordId() stored the value, but Do never added it to the request, so NewBillService().RecordId(id) always returned the latest bills instead of the ones from that record on. recordId is a documented parameter of Account Funding Flow (GET /eapi/v1/bill). TestBill now checks the request params with a currency and record id; it fails without the fix.

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.

🟢 Approval recommended

No active review issues are reported for the billing record ID parameter fix.

No open issues 🎉

What changed in this PR

Fixes the options client’s BillService so configured record IDs are sent to the billing endpoint instead of being ignored.

Changes:

  • Includes recordId in request parameters when set.
  • Updates TestBill to verify serialized currency and record ID parameters.
File Description
v2/​options/​order_service.go Adds the optional recordId request parameter.
v2/​options/​order_service_test.go Adds regression assertions for currency and record ID serialization.

Review effort: Balanced

@carlosmiei
carlosmiei merged commit 4f11e7e into ccxt:master Dec 2, 2026
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.

3 participants