longbridge-trading

Automate end-to-end stock trading via the Longbridge FS file-based system.

5|1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/JetSquirrel/longbridge-fs --skill longbridge-trading
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: longbridge-trading
Source: https://github.com/JetSquirrel/longbridge-fs/tree/main/.claude/skills/longbridge-trading
Command: npx skills add https://github.com/JetSquirrel/longbridge-fs --skill longbridge-trading

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It enables reliable, end-to-end stock trading automation using the Longbridge FS file-based trading system, removing manual steps and enabling reproducible workflows.

Core Features & Use Cases

  • End-to-end harness: L1 Research → L2 Signal → L3 Portfolio → L4 Risk → L5 Execution, all via a file-based interface.
  • Trade HK/US stocks, monitor quotes and balances, manage risk, and track performance across the lifecycle.
  • Run full pipelines in mock mode for testing or real mode with credentials, including beancount-based trade logging.

Quick Start

Start the controller in mock mode and initialize the fs directory to simulate a complete Longbridge trading pipeline.

Frequently Asked Questions about longbridge-trading

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

FAQPage Schema
How do I automate Hong Kong and US stock trading workflows end-to-end?

Automate HK and US stock trading through a five-layer file-based pipeline covering Research, Signal, Portfolio, Risk, and Execution. This deterministic workflow removes manual steps and enables reproducible trade execution.

What is a file-based trading system and how does it manage portfolio risk?

A file-based trading system drives operations through deterministic file exchanges rather than direct API calls. It manages portfolio risk by applying configurable risk policies across the pipeline before execution.

Can I test stock trading automation strategies without using real money?

Yes, you can run the full trading pipeline in mock mode. This simulates the complete Longbridge execution lifecycle, allowing you to test strategies and risk controls safely before committing real funds.

Does beancount work with automated stock trading for transaction logging?

Yes, the system implements beancount-based trade logging. It automatically records execution details and balance changes from your HK and US stock trades into beancount-compatible files.

How do I set up the Longbridge FS directory to start automated trading?

Initialize the controller in mock mode to create the required file system directory structure. This sets up the environment needed to simulate and run the complete Longbridge trading pipeline.

What are the limitations of file-based trading automation for real-time quotes?

File-based trading automation processes real-time quotes and balances through a deterministic pipeline, but relies on file exchanges which may introduce latency compared to direct memory API calls.