Skip to content
Back to skills

Finance Cron

ASecurity

Finance Cron

  • 33 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
toolstypescriptbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill finance-cron --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Finance Cron?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Finance Cron
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-finance-cron/badge)](https://www.skillsdirectory.com/skills/dvcrn-finance-cron)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: finance-cron
description: "Finance Cron"
---

# Finance Calendar

Trading-day calendar utilities for financial markets (US, CN, HK).

## Overview

This skill provides trading-day-aware scheduling helpers. It helps you:
- Check if a date is a trading day
- Show upcoming trading days
- Sync latest holiday calendar data
- Plan when to schedule tasks (trading-day-aware)

**Important**: This skill identifies trading days and calculates optimal run times, but does NOT execute scheduled tasks. Use with `/loop` for actual task scheduling.

## Commands

### Check Trading Day
```
/finance-cron check <market> [date]
```
Check if a date is a trading day for a market.

Example:
```
/finance-cron check US           # Check today
/finance-cron check CN 2024-12-25  # Check specific date
```

### Show Next Trading Days
```
/finance-cron next <market> [n]
```
Show next N trading days for a market.

Example:
```
/finance-cron next US 5  # Show next 5 US trading days
```

### Sync Calendar
```
/finance-cron sync [market]
```
Sync latest trading calendar from data sources.

Example:
```
/finance-cron sync    # Sync all markets
/finance-cron sync US  # Sync US market only
```

### Plan Task Schedule
```
/finance-cron add <market> <time> <command>
```
Plan a trading-day-aware task and get the next execution time.

**Note**: This command calculates and displays when the task should run, but does NOT execute it. To actually run tasks on schedule, combine with `/loop`:

Example workflow:
```
# First, plan the task
/finance-cron add US 09:30 echo "US market opening"
# Output: Next Run: 2024-01-15 (Mon) 09:30

# Then, use /loop for actual scheduling
/loop 0 9 * * 1-5 /finance-cron check US && echo "US market opening"
```

### List Planned Tasks
```
/finance-cron list
```
List all planned tasks with their next scheduled times.

## Markets

| Code | Name | Exchanges | Timezone | Hours |
|------|------|-----------|----------|-------|
| US | US Stock Market | NYSE, NASDAQ | America/New_York | 09:30-16:00 |
| CN | China A-Share | SSE, SZSE | Asia/Shanghai | 09:30-15:00 |
| HK | Hong Kong | HKEX | Asia/Hong_Kong | 09:30-16:00 |

## Integration with /loop

For actual scheduled execution, use `/loop` with trading day checks:

```bash
# Run command only on US trading days at 9:30 AM
/loop 30 9 * * 1-5 /finance-cron check US --quiet && your_command

# The --quiet flag (if implemented) would suppress output for clean scheduling
```

## API for Other Skills

This skill also exports programmatic APIs:

```typescript
import { isTradingDay, getNextTradingDay, getDueTasks } from 'finance-cron';

// Check if today is a US trading day
const canTrade = isTradingDay('US');

// Get next US trading day
const nextDay = getNextTradingDay('US');

// Get tasks due for execution (for external schedulers)
const dueTasks = getDueTasks();
```

Files in this skill

  • README.md3.2 KB
  • SKILL.md2.8 KB
  • data/cn-holidays.json1.5 KB
  • data/hk-holidays.json892 B
  • data/us-holidays.json572 B
  • package-lock.json2.4 KB
  • package.json639 B
  • requirements.txt178 B
  • scripts/sync_calendars.py6.9 KB
  • skill.json1.3 KB
  • src/calendars/index.ts5.3 KB
  • src/index.ts8.4 KB
  • src/scheduler.ts5.2 KB
  • src/sync.ts3.9 KB
  • src/types.ts2.5 KB
  • src/utils.ts2.7 KB
  • tsconfig.json445 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.