Skip to content

feat: update binance - #291

Merged
carlosmiei merged 3 commits into
ccxt:masterfrom
carlosmiei:binance-rs-update
Oct 30, 2026
Merged

carlosmiei merged 3 commits into
ccxt:masterfrom
carlosmiei:binance-rs-update

Conversation

@carlosmiei

Copy link
Copy Markdown
Collaborator

Catch up with the Binance Spot and USDⓈ-M Futures API changes (2024 to Oct 2026):

  • Route futures conditional orders through the Algo service (/fapi/v1/algoOrder) with triggerPrice/activatePrice/clientAlgoId and the AlgoOrder response type; add algo query/cancel, batch place/cancel, modify order, amendments, force orders, countdown cancel-all, V3 account/balance/positionRisk, symbol and account config, commission rate, leverage brackets and the other missing account endpoints.
  • Replace the retired spot listenKey user stream with a WebSocket API signature subscription (WebSockets::connect_user_data_stream); route futures streams through /public, /market and /private.
  • Percent-encode signed payloads; add spot order lists (OCO/OTO/OTOCO), cancel-replace, amend-keep-priority, commission, myFilters, rate limits, trades, uiKlines, trading-day and rolling-window tickers.
  • Add unknown-filter fallback and the 2024-2026 response fields to the spot and futures models; fix markPriceUpdate, activatePrice and trade stream parsing; add ALGO_UPDATE, TRADE_LITE, MARGIN_CALL and ACCOUNT_CONFIG_UPDATE events.
  • Cover everything with mockito fixtures from the official docs.

carlosmiei and others added 3 commits October 29, 2026 16:39
Catch up with the Binance Spot and USDⓈ-M Futures API changes (2024 to Oct 2026):

- Route futures conditional orders through the Algo service (/fapi/v1/algoOrder)
  with triggerPrice/activatePrice/clientAlgoId and the AlgoOrder response type;
  add algo query/cancel, batch place/cancel, modify order, amendments, force
  orders, countdown cancel-all, V3 account/balance/positionRisk, symbol and
  account config, commission rate, leverage brackets and the other missing
  account endpoints.
- Replace the retired spot listenKey user stream with a WebSocket API
  signature subscription (WebSockets::connect_user_data_stream); route futures
  streams through /public, /market and /private.
- Percent-encode signed payloads; add spot order lists (OCO/OTO/OTOCO),
  cancel-replace, amend-keep-priority, commission, myFilters, rate limits,
  trades, uiKlines, trading-day and rolling-window tickers.
- Add unknown-filter fallback and the 2024-2026 response fields to the spot
  and futures models; fix markPriceUpdate, activatePrice and trade stream
  parsing; add ALGO_UPDATE, TRADE_LITE, MARGIN_CALL and ACCOUNT_CONFIG_UPDATE
  events.
- Cover everything with mockito fixtures from the official docs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- Format with nightly rustfmt (binop_separator = "Back" is only honored there).
- Allow clippy::result_large_err: error_chain's Error is 152 bytes and boxing
  it would change the public Result type.
- Drop `return bail!(...)` diverging sub-expressions, use `?` instead of a
  match, and remove a redundant to_string in the spot account module.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@carlosmiei
carlosmiei merged commit 5853e11 into ccxt:master Oct 30, 2026
6 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.

1 participant