logout
Clear stored Stockbit credentials and browser profile from this machine to end the signed-in session. Requires user confirmation first; no undo.
Instructions
Clear stored Stockbit credentials from this machine.
ASK THE USER FIRST, then call with confirm: true. There is no undo: logging back in means signing in again in a browser (and, for the trading session, re-entering the 6-digit PIN at a terminal).
scope picks what to clear — main (market data), trading (the securities session, which is also ended at Stockbit's end), eipo, or all (the default).
Any scope covering main also clears the stored WEBSITE session (the browser cookies the chart tools run on) and the shared access-token cache. Both are usable Stockbit credentials on their own, so a logout that left them would not be one.
remove_browser_profile: true also deletes the saved browser profile. That profile is a SECOND copy of the session — it holds Stockbit cookies — so on a shared or lost machine, clearing the token without it is not really logging out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | What to clear. Default `all`. | |
| confirm | Yes | Must be true, and only after asking the user in words. | |
| remove_browser_profile | No | Also delete the saved browser profile, which holds Stockbit cookies. Default false. |