feat: support futopt spread contracts, trial matching & derived quote fields#9
Merged
Merged
Conversation
… fields Aligns the SDK with fugle-realtime backend issues #607/#608/#609. - #607 spread contracts: URL-encode futopt symbols so codes containing "/" (e.g. MXFA6/C6) route correctly; add isSpread filter to intraday.tickers. - #609 trial matching: refresh RestFutOptIntradayQuoteResponse to backend parity (adds lastTrial, isTrial, priceLimits, tradingHalt, lastTrade bid/ask, correct total shape, session flags); add isTrial filter to intraday.trades. - #608 derived 6th order-book level (derivedBid/derivedAsk) arrives on the untyped WebSocket books channel; documented, no code change needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aligns the SDK with fugle-realtime backend issues #607 / #608 / #609.
Changes
/(e.g.MXFA6/C6) route correctly against the/quote/:symbol-style endpoints; addisSpread?filter tointraday.tickers. Negative prices are plain numbers (no change).RestFutOptIntradayQuoteResponseto backend parity — addslastTrial,isTrial,priceLimits,tradingHalt,lastTrade.bid/ask, correcttotalshape and session flags; addisTrial?filter tointraday.trades.derivedBid/derivedAskarrive on the untyped WebSocketbookschannel — documented in README, no code change needed.Tests
npm run build+npm testgreen (91 passed). Added URL cases for spread-symbol encoding,isSpread, andisTrialtrades.🤖 Generated with Claude Code