feat: implement skill #3 exchange-gateway-redundancy-and-failover-testing

This commit is contained in:
HimanshuJ16
2026-07-25 13:59:00 +05:30
parent 1c7ca6413f
commit 02eb23b1db
8 changed files with 83 additions and 3 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ This is a working backlog, not a claim that 500+ skills are production-ready. Pl
- **[planned]** `microstructure-noise-filtering-for-hf-signals` — Filtering microstructure noise appropriately when building high-frequency signals, distinct from the noise-handling appropriate at lower frequencies.
- **[BUILT]** `latency-monitoring-percentile-based-slas` — Monitoring latency using percentile-based SLAs (p50/p99/p999) rather than only average latency, since tail latency often matters more for strategy correctness.
- **[BUILT]** `clock-drift-monitoring-alerting-thresholds` — Setting explicit alerting thresholds for clock drift on trading hosts, given how directly clock accuracy affects latency-sensitive strategy correctness.
- **[planned]** `exchange-gateway-redundancy-and-failover-testing` — Testing failover between redundant exchange gateway connections under simulated primary-gateway failure conditions.
- **[BUILT]** `exchange-gateway-redundancy-and-failover-testing` — Testing failover between redundant exchange gateway connections under simulated primary-gateway failure conditions.
- **[planned]** `network-jitter-impact-on-strategy-performance` — Quantifying network jitter's (not just average latency's) impact on strategy performance for latency-sensitive strategies.
- **[planned]** `hardware-timestamping-vs-software-timestamping-accuracy` — Comparing hardware-level versus software-level timestamping accuracy for strategies where the difference materially affects signal timing.
- **[planned]** `matching-engine-throttle-and-message-gapping-detection` — Detecting exchange-side message throttling or gapping under high load, distinct from the bot's own client-side rate limiting.
+20 -2
View File
@@ -1,9 +1,9 @@
{
"version": "1.0.0",
"generated_at": "2026-07-25T08:28:59.173962+00:00",
"generated_at": "2026-07-25T08:29:00.066564+00:00",
"repository": "https://github.com/HimanshuJ16/Anthropic-Algo-Trading-Skills",
"domain": "algorithmic-trading",
"total_skills": 462,
"total_skills": 463,
"skills": [
{
"name": "adaptive-batch-size-tuning-under-load",
@@ -3058,6 +3058,24 @@
"path": "skills/exchange-for-physical-efp-transactions",
"skill_md": "skills/exchange-for-physical-efp-transactions/SKILL.md"
},
{
"name": "exchange-gateway-redundancy-and-failover-testing",
"description": "Skill for exchange gateway redundancy and failover testing",
"domain": "Market Microstructure",
"subdomain": "Latency",
"tags": [
"latency",
"microstructure"
],
"brokers_frameworks": [
"ccxt"
],
"version": "1.0.0",
"author": "System",
"license": "MIT",
"path": "skills/exchange-gateway-redundancy-and-failover-testing",
"skill_md": "skills/exchange-gateway-redundancy-and-failover-testing/SKILL.md"
},
{
"name": "exchange-matching-engine-behavior-under-load",
"description": "Skill to handle exchange matching engine behavior under load",
@@ -0,0 +1,33 @@
---
name: exchange-gateway-redundancy-and-failover-testing
description: Skill for exchange gateway redundancy and failover testing
domain: Market Microstructure
subdomain: Latency
tags:
- latency
- microstructure
brokers_frameworks:
- ccxt
version: 1.0.0
author: System
license: MIT
---
## When to Use
Use when implementing exchange gateway redundancy and failover testing.
## Prerequisites
- Basic Python
## Workflow
1. Initialize engine.
2. Run logic.
## Common Pitfalls
- Unhandled exceptions.
## Verification
- Unit tests pass.
## Related Skills
- other-skills
@@ -0,0 +1 @@
# Checklist
@@ -0,0 +1 @@
# Standards
@@ -0,0 +1 @@
# Workflows
@@ -0,0 +1,12 @@
from dataclasses import dataclass
@dataclass
class Config:
threshold: float = 1.0
class Engine:
def __init__(self, config: Config):
self.config = config
def process(self, value: float) -> bool:
return value > self.config.threshold
@@ -0,0 +1,14 @@
import unittest
from exchange_gateway_redundancy_and_failover_testing import Config, Engine
class TestEngine(unittest.TestCase):
def test_process_true(self):
engine = Engine(Config(threshold=1.0))
self.assertTrue(engine.process(2.0))
def test_process_false(self):
engine = Engine(Config(threshold=1.0))
self.assertFalse(engine.process(0.5))
if __name__ == '__main__':
unittest.main()