Changelog
All notable changes to@ostium/builder-sdk will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[0.4.1] - 2026-06-14
Added
streamAccountUpdates()now acceptsuseras an address array, allowing one or more trader addresses on a single stream (one WebSocket, one poll loop, one price feed). Emitted snapshots are keyed by normalized trader address with{ positions, orders, limits }per trader.OstiumAccountUpdatesStream.usersgetter returning the subscribed trader addresses.- Optional
userargument toOstiumAccountUpdatesStream.addOptimisticOpen(params, submission?, user?)to attribute an optimistic open to a specific subscribed address. Required when streaming multiple addresses; defaults to the sole subscribed address otherwise.
[0.4.0] - 2026-06-11
Added
- Added this changelog.
- Added
setspagination support togetCandles(). - Added
getOrders()filters for global orders, builder address, status, pair ids, and execution time (start/endas Unix seconds UTC, inclusive bounds onexecutedAt). - Added
getBuilderOrders(builder, params?)— fetches builder-tagged open orders plus sibling close/TP/SL orders on the same positions.limitcaps phase-1 results only; phase-2 siblings are appended without a cap. - Added
builderto returnedFillandOrderobjects. - Added
ntl(USD notional) to returnedFillandOrderobjects. - Added
traderto returnedFill,Order,Position, andOpenOrderobjects. - Added
timestamp(execution time, Unix seconds UTC — subgraphexecutedAt) to returnedFillandOrderobjects. - Added
MIN_OPEN_SIZE_USDfor the fixed $5 minimum open size. - Added per-trade optional
builder.address/builder.feeBpsoverrides onopenTrade(); omitted fields fall back to client config. - Added
openFeeandcloseFee(bps) toPair—openFeeistakerFeeP / 10_000plus the configured builder fee;closeFeeis always0as there’s no closing fees on Ostium currently. - Added
streamAccountUpdates()for low-latency account confirmations using subgraph polling, Alchemy contract-log overlays, and live price repricing for open-trade PnL. - Added optimistic market-open overlays to
streamAccountUpdates(), receiptorderIdextraction viaextractOrderIdFromReceipt(), andattachOrderId()reconciliation for lower-latency confirmations. - Added
alchemyApiKeyas a client option for account confirmation streams. - Added account update snapshots with SDK-formatted
Order,OpenOrder, andPairPositionvalues. - Added
schedule(market hours —timezone,openingHours,alwaysOpen) toPairreturned bygetPairs(), and toPriceData/PriceTickfrom the live price feed. - Added background SDK usage attribution: submissions that target the Trading contract report their transaction hash to the builder API (
POST /v1/trade) as a fire-and-forget request that never blocks or affects trading calls.
Changed
- Updated the default mainnet subgraph URL to
https://builder.ostium.io/v1/subgraph/gn.
Fixed
- Removed the SDK-side
openTrade()maximum leverage cap so contract-side validation is authoritative. - Removed the internal minimum-open-size config override path.
[0.3.1]
- Current published package version when this changelog was introduced.