mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
feat: flag quotes behind the latest IDX session (#50)
MSN can serve the previous session's close for hours after IDX closes; on 2026-10-16 at 16:53 WIB it still returned the 15th. Quotes and screener rows now carry `behind_session`, true when `as_of` is before the latest weekday whose session has ended (16:15 WIB). It is computed on return, not cached. The quote table notes such quotes, and the get_quotes description explains the field. Closes #50 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
This commit is contained in:
parent
7d55be80c5
commit
a0a2cac7cf
20 changed files with 155 additions and 24 deletions
|
|
@ -75,8 +75,11 @@ MSN candle dates use WIB (UTC+7); Yahoo candle dates use `meta.gmtoffset`, with
|
|||
WIB as the fallback.
|
||||
|
||||
### Quote and Screener Data
|
||||
- Quotes expose nullable `as_of` last-trade timestamps in WIB. Table output flags
|
||||
quotes whose last trade was more than seven days ago.
|
||||
- Quotes expose nullable `as_of` last-trade timestamps in WIB, and
|
||||
`behind_session` when `as_of` is before the latest weekday whose session has
|
||||
ended (16:15 WIB). It is computed on return, not cached; MSN can lag the close
|
||||
by hours, and on an exchange holiday every quote reads as behind. Table output
|
||||
notes behind quotes, and calls those over seven days old not current.
|
||||
- `change`, `change_pct`, and `volume` are nullable when the provider omits them;
|
||||
JSON consumers must not assume these fields are always numeric.
|
||||
- Listed MSN instruments without a price return `NOMARKETDATA`; unknown symbols
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue