A specialized utility module providing market-aware data caching and trading status detection for stock market AI agents.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install shared
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install shared using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Stock Cache Utils is a robust technical module designed to provide a unified caching mechanism for financial trading skills. It intelligently manages stock market data by distinguishing between active trading windows and after-market hours, ensuring that AI agents remain performant while minimizing unnecessary API calls. This utility is a core component for developers building sophisticated Openclaw Skills in the fintech space.
The skill specifically targets the A-share market, offering automated detection of trading periods and 24-hour expiration management. By implementing this utility, developers can ensure their agents use real-time data when the market is live and pivot to high-speed cached data during off-hours, providing a seamless and cost-effective data strategy.
To integrate this utility into your Openclaw Skills environment, ensure you are running Python 3.10 or higher. Since it has no external dependencies, installation is straightforward:
# Navigate to your skill directory
cd your-skill-folder
# Import the module into your Python environment
# Ensure cache_utils.py is in your PYTHONPATH
Initialize the cache in your script:
from cache_utils import StockDataCache
cache = StockDataCache(cache_dir='./.cache', cache_max_age_hours=24)
The utility organizes data using a directory-based storage system. The metadata taxonomy includes the following trading status fields:
| Field | Type | Description |
|---|---|---|
current_time |
String | The ISO timestamp of the check |
is_trading_day |
Boolean | True if today is a valid market workday |
is_trading_time |
Boolean | True if within 9:30-15:30 window |
next_trading_time |
String | The timestamp of the next market opening |
Loading
UPLO Education is an AI-powered institutional knowledge management system that unifies fragmented academic, accreditation, and administrative data into a single searchable intelligence layer.

A comprehensive strategy for leveraging Amazon Prime to maximize financial savings, logistics efficiency, and digital entertainment benefits.

A comprehensive technical guide for mastering the creation, manipulation, and querying of relational databases using standard SQL.

A rigorous analytical framework that deconstructs inherited assumptions to rebuild understanding from provable ground truths.

A specialized monitoring tool that tracks the openai/parameter-golf competition by extracting and ranking val_bpb scores from GitHub PRs.

A professional-grade bridge for AI agents to execute Stata commands, manage packages, and perform deep econometric data analysis.








































