Skip to content

Sort Binance futures tickers with a null quoteVolume last - #1358

Merged
helpcodeai merged 2 commits into
mainfrom
fix/binance-ticker-null-volume
Oct 31, 2026
Merged

helpcodeai merged 2 commits into
mainfrom
fix/binance-ticker-null-volume

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

A binance_futures_get_24h_ticker call on Cloud (31 Oct, 04:55 UTC) logged Response mapping failed (Invalid type: unexpected type (null)), returning the raw response: a contract with no trades answers quoteVolume: null and to_number(null) aborts the JMESPath sort, so the user got the raw 40 kB answer instead of the sorted shape.

Changes

  • to_number(quoteVolume || '0') in the sort key: a null volume sorts last, the row keeps its original fields.
  • Static spec: a ticker with quoteVolume: null sorts last and keeps quoteVolume: null.

Type

  • Bug fix

Testing

  • Added/updated unit tests

npx jest src/adapters/intl/binance.live.spec.ts in packages/backend: 40 passed, 5 live skipped. node scripts/validate-adapters.mjs passes; regenerate-catalog.mjs changes nothing. Same in Cloud and self-hosted (catalog adapter; installed connectors pick it up via Apply update).

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • All existing tests pass
  • This PR has a descriptive title

Related Issues

Daily check 2026-10-31, cloud.md candidate 5.

@helpcodeai
helpcodeai requested a review from D3nisty as a code owner October 31, 2026 08:24
@helpcodeai
helpcodeai enabled auto-merge (squash) October 31, 2026 08:24
@helpcodeai
helpcodeai merged commit 62c47f1 into main Oct 31, 2026
14 checks passed
@helpcodeai
helpcodeai deleted the fix/binance-ticker-null-volume branch October 31, 2026 08:46
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant