trade-date-rules

Determine Taiwan futures trading dates from datetime inputs using T+1 night-session rules.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Junxwan/agoG --skill trade-date-rules
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: trade-date-rules
Source: https://github.com/Junxwan/agoG/tree/main/.claude/skills/trade-date-rules
Command: npx skills add https://github.com/Junxwan/agoG --skill trade-date-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill converts a datetime input into the corresponding Taiwan futures trading date by applying the day/night session rules and holiday adjustments, reducing manual tracking errors.

Core Features & Use Cases

  • Determine the trading day for a given datetime input, including handling of day, night, and post-midnight session boundaries.
  • Adjust results when the calculated date falls on weekends or market holidays using a predefined holiday list (ALL_MISSING_DATES) when available.
  • Use case: Given a timestamp like 2022-06-27 15:00:00, derive the correct trading date (the next trading day) after applying night-session rules.

Quick Start

Provide a datetime string and return the corresponding Taiwan futures trading date following the rules.

Frequently Asked Questions about trade-date-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I determine the Taiwan futures trading date from a datetime input?▼

You can determine the Taiwan futures trading date by providing a datetime string; the skill applies T+1 night-session logic and holiday adjustments to output the precise trading date.

What is the T+1 night-session logic for Taiwan futures trading dates?▼

The T+1 night-session logic maps post-midnight and night-session timestamps to the next trading day, shifting results across weekends and holidays using the ALL_MISSING_DATES list for accurate trading date output.

Can I use a date-only input to infer the Taiwan futures trading date?▼

Yes, you can use date-only inputs, but the skill treats them as the date itself without applying night-session logic; datetime inputs with time components trigger T+1 shifting and holiday adjustments.

Does the skill adjust trading dates for Taiwan market holidays and weekends?▼

Yes, the skill adjusts trading dates for Taiwan market holidays and weekends using the predefined ALL_MISSING_DATES holiday list, shifting the calculated date forward to the next available trading day.

What happens when a timestamp falls on a Taiwan futures market holiday?▼

When a timestamp falls on a Taiwan futures market holiday, the skill references the ALL_MISSING_DATES holiday list and shifts the output trading date forward to the next available trading day.

Why does my timestamp after midnight map to a different Taiwan futures trading date?▼

Your timestamp after midnight maps to a different Taiwan futures trading date because the skill applies T+1 night-session logic, assigning post-midnight times to the next trading day rather than the current calendar date.