Repository navigation
Fix/tauric api contract - #8
Open
nguyenhieutrung97 wants to merge 2 commits into
Open
nguyenhieutrung97 wants to merge 2 commits into
nguyenhieutrung97 wants to merge 2 commits into
Conversation
The data tools failed on every call: the server now takes concrete
start/end windows instead of a 'period' preset on history (at most 366
days a call), a 'start'/'end' pair instead of 'since'/'until' on news,
serves bars and batch quotes in a 'data' container, nests the day
change as {absolute, percent} and stamps quotes with 'price_time'.
- pricing: turn period and session counts into dates client-side, page
back by coverage.continue_end as before, read bars from data or bars
- quotes: parse the data list of quote nodes (old quotes map kept)
- news: send start/end
- articles: Tauric ids are strings now; renumber tolerates them
Verified live: quotes (ETH/BTC/NVDA), prices (1mo bars), news — all
return data; the ETH daily job's run went 6/6 tool calls OK.
This branch has not been deployed
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.
Bug
All data_market_* tools fail on every call (quotes/prices/news → "failed").
Root cause
The Tauric data API contract changed after v0.1.1 shipped:
period(onlystart/end/interval, ≤366 days/call)start/endinstead ofsince/untildata, batch quotes in adatalistchangeis now{absolute, percent}; quotes are stamped withprice_timeFix
via coverage.continue_end; read bars from
data(oldbarskept)datalist of quote nodes (old shape kept); map thenew change object; as_of from price_time
Verified live
quotes (ETH/BTC/NVDA), prices (1mo bars), news search — all return data.
Our ETH daily job: 6/6 tool calls OK, was 0/8 before.