Releases: imbingox/acex
v1.0.0-beta.28
Patch Changes
- fe77a3d: 处理 Binance PAPI 私有 WS
ACCOUNT_CONFIG_UPDATE事件,使用ac.s/ac.l实时更新已有仓位的 leverage。
v1.0.0-beta.27
Major Changes
- f05af49: Replace market websocket subscribe/unsubscribe methods with per-consumer subscription leases. Use
client.market.acquireL1BookSubscription()andclient.market.acquireFundingRateSubscription()to obtain aMarketSubscriptionLease, awaitlease.readyfor the first snapshot, and calllease.close()to release only that consumer. L1 book and funding rate streams now ref-count active leases independently and only close the underlying websocket stream after the final lease is closed.
v0.4.0-beta.26
Minor Changes
- 8fb896f: Add
client.market.fetchFundingRateHistory()for Binance perpetual funding rate history queries. - 5711f3d: Add
client.market.fetchPublicTrades()for public aggregate market trades and makeclient.market.fetchPublicRawTrades()ready for Binance raw historical trades when a market API key is configured.fetchPublicTrades()uses publicaggTradeswithout credentials;fetchPublicRawTrades()usesaggTradesas a locator and thenhistoricalTradeswithCreateClientOptions.market.venues.binance.apiKeyorBINANCE_MARKET_API_KEY, so its available lookback follows the data available from both Binance endpoints.
v0.4.0-beta.25
Minor Changes
-
4f2f7db: BREAKING: remove
client.order.getSymbolFeeRate(). Fee rate lookup is now owned by the newclient.feemanager.Add
client.fee.subscribe(),client.fee.getSymbolFeeRate(),client.fee.getSymbolFeeRates(), andclient.fee.fetchSymbolFeeRate()for account-scoped symbol fee rates. The fee manager keeps a local cache, returns market-type defaults before venue values are available, and slowly refreshes Binance swap rates through the existing PAPI UMcommissionRateendpoint.
v0.4.0-beta.24
Minor Changes
- 9c231de: 新增
CreateClientOptions.onMetric同步可观测性钩子,并公开MetricType、OnMetric与METRIC_NAMES。SDK 现在会输出下单 RTT、WebSocket 消息延迟、WebSocket reconnect 和事件 buffer overflow 指标;未配置 hook 时热路径跳过 latency 与 tags 构造,hook 抛错不会打断主流程。
v0.4.0-beta.23
Minor Changes
-
716185b: 收紧并扩展公开行为:
OrderSnapshot.type/ raw order type 归一为小写OrderType并通过rawType保留 venue 原始串;SDK 生成的 client order id 加入进程级熵;account getter 返回冻结快照;stop()兑现 graceful drain、timeout 和 stopped client 清理,并在停止后通过assertStarted拦截新命令。新增 Binance PAPI 风控面:私有流
riskLevelChange会发布account.risk_level_change,RiskSnapshot新增riskLevel,并用事件中的riskRatio、equity 和 maintenance margin 字段实时回填风险快照。
Patch Changes
- 716185b: 修复内部事件流和恢复流程:
AsyncEventBus的并发next()pending reader 现在按 FIFO 队列唤醒,close()会结束全部等待中的 reader;marketresumeStreams()改为并发恢复订阅,并保留每条流自己的错误隔离。
v0.4.0-beta.22
Minor Changes
-
6dc95fa: Breaking: 账户级 venue 专属配置统一迁移到
account.venues.<venue>。移除旧的account.binance、account.juplend与顶层listenKeyKeepAliveMs配置入口;Binance 私有流、风险轮询与 reconcile 调优项现在放在account.venues.binance,Juplend RPC/API key 与 polling 配置放在account.venues.juplend。同时改进内部交易所扩展基础设施:Binance 私有链路 symbol 归一化改走共享 market catalog,修正交割合约/私有流映射一致性;流协议层新增可选应用层 heartbeat 钩子,用于后续 OKX/Bybit 等需要客户端文本 ping 的 venue,未配置 heartbeat 的现有 Binance 连接行为不变。
v0.4.0-beta.21
Patch Changes
- 74507eb: 打磨行情流层:优化 decimal 字符串 canonical 快路径和行情 tick 快照复用,移除健康连接下的 per-subscription stale 误判,并为 WebSocket 重连退避加入默认 ±20% jitter。
v0.4.0-beta.20
Minor Changes
- d3bcffa: 新增 Binance 订单逐笔成交事件
events.order.trades(),逐笔暴露成交价量、手续费、maker 标记与 realized PnL;订单快照字段保持不变。
v0.4.0-beta.19
Patch Changes
- 8cf0a72: Binance private signing timestamps now use a default server-time synchronized clock with startup sampling, periodic resync, and timestamp-error-triggered resync. Passing
CreateClientOptions.clockcontinues to fully override signing time and disables the default sampler.