safe_trading_v2

Filter stock pools into compliant sellable and buyable sets using a configurable trading day cooldown rule.

2|4|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/khoks/ClaudeTrading --skill safe-trading-v2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safe_trading_v2
Source: https://github.com/khoks/ClaudeTrading/tree/main/.claude/skills/safe_trading_v2
Command: npx skills add https://github.com/khoks/ClaudeTrading --skill safe-trading-v2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) components.

What problem does it solve?

Manual tracking of trading day cooldowns for stock trades is error-prone, especially when accounting for weekends and market holidays. For traders—particularly H1B visa holders—accidentally executing round-trip trades within the required cooldown period can lead to violations of FINRA's pattern day trader rule or unexpected IRS tax classification of trading income.

Core Features & Use Cases

  • Automated Cooldown Filtering: Automatically separates a stock trading pool into compliant sellable and buyable sets based on a configurable 2-trading-day cooldown rule that excludes weekends and holidays from the count.
  • Edge Case Handling: Built-in logic for newly added pool stocks, future-dated timestamps from clock skew, and empty pools to ensure consistent, reliable output.
  • Use Case: Integrate this skill into an autonomous trading system to guarantee no trade orders are placed for stocks that are still within the cooldown window, eliminating accidental regulatory or tax violations.

Quick Start

Use the safe_trading_v2 skill to filter your stock trading pool into compliant sellable and buyable sets based on your configured cooldown rules.

Frequently Asked Questions about safe_trading_v2

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

FAQPage Schema
How do I filter a stock trading pool to avoid pattern day trader violations in automated trading?

To avoid pattern day trader violations, you filter a stock trading pool into compliant sellable and buyable sets by enforcing a configurable trading day cooldown rule that excludes weekends and market holidays from the count.

How does a trading cooldown rule handle weekends and market holidays?

A trading cooldown rule handles weekends and market holidays by excluding them from the cooldown period count, ensuring the minimum required trading day separation between transactions is accurately calculated for compliant order placement.

Can I use automated trading cooldown filtering for H1B visa tax compliance?

Yes, you can use automated trading cooldown filtering for H1B visa tax compliance, as it prevents accidental round-trip trades within the cooldown window that could trigger unexpected IRS tax classification of trading income.

What happens when a stock trading pool is empty or has newly added stocks during cooldown filtering?

When a stock trading pool is empty or contains newly added stocks, the cooldown filtering applies built-in edge case logic to ensure consistent, reliable output without failing or blocking compliant order placement.

Does the trading day cooldown calculation handle clock-skewed timestamps?

Yes, the trading day cooldown calculation handles clock-skewed timestamps by accounting for future-dated timestamps, ensuring the cooldown window separation remains accurate even with time synchronization issues.

Do I need jq to run the stock trading cooldown filter?

Yes, you need jq installed as a dependency to run the stock trading cooldown filter, as the skill scripts rely on it to process and separate the stock pool data into compliant sets.