Finance Cron

# Finance Calendar

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Finance Cron" with this command: npx skills add constx1337/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

CodeNameExchangesTimezoneHours
USUS Stock MarketNYSE, NASDAQAmerica/New_York09:30-16:00
CNChina A-ShareSSE, SZSEAsia/Shanghai09:30-15:00
HKHong KongHKEXAsia/Hong_Kong09:30-16:00

Integration with /loop

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

# 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:

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();

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated