stock_quotes_display
Skill37 starsChanged 33 days agoMITView on GitHub
Use this skill when the user asks to show stock quotes, stock prices, market indexes, real-time stock information, or Eastmoney quote data on the device screen. The bundled Lua script fetches Eastmoney's push2.eastmoney.com quote endpoint, parses the returned JSON, and renders a compact quote dashboard on the LCD. The screen uses ASCII labels because the current display text module only supports ASCII text. - A display device declared as display_lcd in board hardware info. - The HTTP request capability enabled.…
In this repository24 other files it gives its agents.
- air_mouseSkill
- bilibili_up_fansSkill
- china_a_share_quoteSkill
- cloudmusicSkill
- current_ip_infoSkill
- current_weatherSkill
- dfrobot_matrix_lidar_8x8_i2cSkill
- dfrobot_stcc4_i2cSkill
- example_skillSkill
- flashbackSkill
- gimbal_color_detectSkill
- gimbal_motion_detectSkill
- github_repo_starSkill
- movement_detectionSkill
- network_radioSkill
- servo_dogSkill
- token_usageSkill
- unihiker_buttonSkill
- unihiker_expansion_batterySkill
- unihiker_expansion_irSkill
- unihiker_expansion_motor_controlSkill
- unihiker_expansion_servo_controlSkill
- unihiker_expansion_WS2812Skill
- weather_clockSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use this skill when the user asks to show stock quotes, stock prices, market indexes, real-time stock information, or Eastmoney quote data …
- Very specific: line 37
Run through lua_run_script_async because the dashboard owns the display.
- Very specific: line 91
If startup or HTTP fails, report the [stock_quotes_display] ERROR: ...
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stock Quotes Display
Use this skill when the user asks to show stock quotes, stock prices, market indexes, real-time stock information, or Eastmoney quote data on the device screen.
The bundled Lua script fetches Eastmoney's push2.eastmoney.com quote endpoint,
parses the returned JSON, and renders a compact quote dashboard on the LCD. The
screen uses ASCII labels because the current display text module only supports
ASCII text.
Requirements
- A display device declared as
display_lcdin board hardware info. - The HTTP request capability enabled.
- The HTTP allowlist must include
eastmoney.com,push2.eastmoney.com, or*. If the script reports an allowlist error, add the domain in the Web Console HTTP allowlist setting. - Network access from the device.
Tool Call Inputs
Run through lua_run_script_async because the dashboard owns the display.
{
"path": "{CUR_SKILL_DIR}/scripts/stock_quotes_display.lua",
"args": {},
"timeout_ms": 0,
"name": "stock_quotes_display",
"exclusive": "display",
"replace": false
}Pass an empty args object to show default China market indexes:
1.000001: Shanghai Composite Index0.399001: Shenzhen Component Index0.399006: ChiNext Index
Common optional args:
| Arg | Default | Meaning |
secids | "1.000001,0.399001,0.399006" | Eastmoney secid list. Use comma-separated values such as 1.600519,0.000001. |
refresh_ms | 15000 | Quote refresh interval in milliseconds. |
run_time_ms | 0 | Runtime in milliseconds. 0 means keep running until stopped. |
rotate | true | Rotate the detailed quote card through all returned securities. |
detail_index | 1 | 1-based detail card index when rotate is false. |
Eastmoney Fields
The script requests detailed fields from Eastmoney:
| Field | Screen Label | Meaning |
f12 | Code | Security code |
f14 | Name | Security name, used only when ASCII-safe |
f2 | Price | Latest price |
f3 | Change | Change percent |
f4 | Change | Price change |
f6 | Amount | Turnover amount |
f15 | High | High |
f16 | Low | Low |
f17 | Open | Open |
Behavior
The script initializes the display, shows a loading screen, fetches quotes at
the configured interval, and keeps the latest successful data on screen if a
later refresh fails. The top card shows readable Code, Price, Change,
Open, High, Low, and Amount rows for one security. The bottom list
shows up to two compact name price percent rows with extra bottom padding for
small screens.
If startup or HTTP fails, report the [stock_quotes_display] ERROR: ... line
directly to the user. If the error mentions allowlist, ask the user to add
eastmoney.com or push2.eastmoney.com to the HTTP allowlist.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

