mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
Merge branch 'feat/stockbit-login' into feat/stockbit-corpaction
Claude-Session: https://claude.ai/code/session_01RqPPVeVDrnLoP7NUZmLRxY
This commit is contained in:
commit
4dee7fe4dd
8 changed files with 130 additions and 18 deletions
|
|
@ -175,7 +175,9 @@ a browser window opens on Stockbit's sign-in page (`"method": "browser"`) and
|
|||
you sign in there. Over SSH or without a display, the answer carries the page
|
||||
URL and its `ssh -L` forward (`"method": "page"`) for the agent to hand you.
|
||||
The agent then polls `stockbit_status` until `sign_in.state` is `signed_in`
|
||||
or `failed`. A session that already works answers `signed_in` without opening
|
||||
or `failed`. While it waits, `sign_in.warning` carries the latest problem, such
|
||||
as Stockbit refusing the session you signed in with, so the agent can tell you
|
||||
to sign in again. A session that already works answers `signed_in` without opening
|
||||
anything, a second call while one is waiting returns it again, and
|
||||
`{"method": "page"}` or `{"method": "browser"}` picks the way. If the server
|
||||
stops while the window waits, the window closes with it.
|
||||
|
|
|
|||
|
|
@ -201,6 +201,6 @@ Start a Stockbit sign-in and return at once; this call does not wait for it. Wit
|
|||
|
||||
## `stockbit_status`
|
||||
|
||||
Whether a Stockbit session is stored (or seeded by IDX_STOCKBIT_REFRESH_TOKEN) and when its tokens expire; never the tokens. Without one, get_orderbook fails and stockbit-provider quotes use Stockbit's delayed public page; the user adds one with stockbit_login, or `idx stockbit login` in a terminal. After stockbit_login, `sign_in.state` says whether that sign-in is waiting, signed_in or failed (with `sign_in.error`).
|
||||
Whether a Stockbit session is stored (or seeded by IDX_STOCKBIT_REFRESH_TOKEN) and when its tokens expire; never the tokens. Without one, get_orderbook fails and stockbit-provider quotes use Stockbit's delayed public page; the user adds one with stockbit_login, or `idx stockbit login` in a terminal. After stockbit_login, `sign_in.state` says whether that sign-in is waiting, signed_in or failed (with `sign_in.error`). While it waits, `sign_in.warning` is the latest problem it hit, such as Stockbit refusing the session the user signed in with: pass it on, since the user may need to sign in again.
|
||||
|
||||
No inputs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue