mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
Read Stockbit's public symbol page (__NEXT_DATA__) with a plain ureq request and an honest user agent: `stocks intraday` (today by the minute, any provider), `--provider stockbit` quotes with the best bid/offer only while the market is open, and MCP `get_intraday`. - UPSTREAMBLOCKED error (exit 4) for a CDN 403; never retried - requests paced 1 s apart across idx processes, 5 s snapshot cache - global --provider flag (yahoo, msn, stockbit) - roadmap: L1 ships from Stockbit; depth stays a login follow-on
55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
exit: 0
|
|
--- stdout
|
|
Manage configuration in ~/.config/idx/config.toml (or $XDG_CONFIG_HOME/idx/config.toml).
|
|
|
|
Results print as plain text, even when piped, so `$(idx config path)` works in scripts. Ask for JSON with `-o json`, `IDX_OUTPUT=json`, or `general.output = "json"`.
|
|
|
|
Usage: idx config [OPTIONS] <COMMAND>
|
|
|
|
Commands:
|
|
init Create default configuration file
|
|
get Get a configuration value by key
|
|
set Set a configuration value by key
|
|
path Print configuration file path
|
|
help Print this message or the help of the given subcommand(s)
|
|
|
|
Options:
|
|
-o, --output <OUTPUT>
|
|
Output format [default: auto = table on a terminal, json when piped]
|
|
|
|
[possible values: auto, table, json, jsonl]
|
|
|
|
--no-color
|
|
Disable colored output
|
|
|
|
-q, --quiet
|
|
Suppress non-essential output
|
|
|
|
-v, --verbose...
|
|
Increase verbosity (-v, -vv)
|
|
|
|
--provider <PROVIDER>
|
|
Market data provider [default: general.provider, else msn]
|
|
|
|
[possible values: yahoo, msn, stockbit]
|
|
|
|
--offline
|
|
Run without network requests
|
|
|
|
--no-cache
|
|
Bypass local cache
|
|
|
|
-h, --help
|
|
Print help (see a summary with '-h')
|
|
|
|
Keys:
|
|
general.provider, general.history_provider, general.exchange, general.output,
|
|
general.color, cache.quote_ttl, cache.fundamental_ttl, ownership.db_path,
|
|
ownership.snapshot_manifest
|
|
|
|
Examples:
|
|
idx config init
|
|
idx config set general.output json
|
|
idx config get cache.quote_ttl
|
|
idx config path
|
|
--- stderr
|