From nanotars-stocks
Adds stock price, financial metrics, and market data lookups using Yahoo Finance free API via curl and jq parsing. Activates on ticker queries, stock prices, and finance requests.
npx claudepluginhub terrifiedbug/nanotars-skills --plugin nanotars-stocksThis skill uses the workspace's default tool permissions.
Adds stock price and financial data lookups using Yahoo Finance's free API. No API key needed.
Fetches stock prices, changes, market cap, volume, and 52-week range using yfinance Python library from Yahoo Finance. No API key required; run python3 stock-price.py SYMBOL.
Fetches stock prices, changes, market cap, volume, and 52-week range for symbols like NVDA or AAPL using yfinance Python library. CLI tool with no API key required.
Searches A-Share, HK, and US stock tickers by code or name and retrieves historical OHLCV prices plus fundamentals like sector, market cap, and PE ratio.
Share bugs, ideas, or general feedback.
Adds stock price and financial data lookups using Yahoo Finance's free API. No API key needed.
Before installing, verify NanoTars is set up:
[ -d node_modules ] && echo "DEPS: ok" || echo "DEPS: missing"
docker image inspect nanoclaw-agent:latest &>/dev/null && echo "IMAGE: ok" || echo "IMAGE: not built"
if grep -q "ANTHROPIC_API_KEY\|CLAUDE_CODE_OAUTH_TOKEN" .env 2>/dev/null || [ -f "$HOME/.claude/.credentials.json" ]; then echo "AUTH: ok"; else echo "AUTH: missing"; fi
If any check fails, tell the user to run /nanotars-setup first and stop.
/nanotars-setup)Check current state:
[ -d plugins/stocks ] && echo "PLUGIN_EXISTS" || echo "NEED_PLUGIN"
If plugin exists, skip to Verify.
Copy plugin files:
cp -r ${CLAUDE_PLUGIN_ROOT}/files/ plugins/stocks/
Plugin Configuration: By default this plugin is available to all groups and channel types. To restrict access, edit plugins/stocks/plugin.json and set:
"groups" to specific group folder names (e.g., ["main"]) instead of ["*"]"channels" to specific channel types (e.g., ["whatsapp"]) instead of ["*"]Ask the user if they want to restrict access. Most users will keep the defaults.
Rebuild and restart:
npm run build
nanotars restart # or: launchctl unload ~/Library/LaunchAgents/com.nanotars.plist && launchctl load ~/Library/LaunchAgents/com.nanotars.plist
Check that the plugin loaded:
grep -i "stocks" logs/nanotars.log | tail -5
Test from a chat by asking: "What's the current price of AAPL?"
The agent uses curl to query Yahoo Finance's free chart API endpoint. No API key or authentication is needed. The skill teaches the agent the correct endpoints, parameters, and response parsing with jq.
User-Agent header may need updating..L for London, .TO for Toronto).rm -rf plugins/stocks/