Longport Quant Trader for Openclaw

An automated quantitative trading integration for Longbridge Securities featuring oversold and momentum strategies with real-time Feishu notifications.

fxm1618-gmail
v1.0.0
Mar 23, 2026
0
816
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install longport-quant-trader

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install longport-quant-trader using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Longport Quant Trader?

Longport Quant Trader is a robust quantitative trading skill designed for individual investors and quant enthusiasts looking to automate their activity in the Hong Kong and US stock markets. By integrating directly with Longbridge Securities, this skill enables a high degree of automation, scanning the market every 5 minutes to execute predefined strategies without manual intervention. It serves as a bridge between complex market data and actionable execution, providing a professional-grade trading environment for Openclaw Skills users.

The skill focuses on two primary market conditions: catching oversold rebounds and riding momentum trends. With built-in risk management tools like automated take-profit and stop-loss orders, it ensures that your capital is protected while you sleep. Beyond execution, it provides comprehensive performance tracking and real-time reporting through Feishu, keeping you informed of your portfolio's health at all times.

Longport Quant Trader Use Cases

  • Automatically buying stocks that have experienced a sharp short-term decline (oversold strategy).
  • Following market trends by entering positions in stocks showing strong upward momentum.
  • Managing risk across multiple positions with automated exit triggers for profit or loss.
  • Receiving instant trade execution alerts and daily performance summaries via Feishu webhooks.
  • Maintaining a disciplined trading routine with scheduled market monitoring every 5 minutes.

How Longport Quant Trader Works

  1. The user configures their Longbridge API credentials and trading parameters in the environment settings.
  2. Upon activation via the /quant-start command, the skill initiates a monitoring loop that scans a predefined stock pool every 5 minutes.
  3. The system evaluates real-time price data against specified thresholds (e.g., -2.5% for oversold or +1.5% for momentum).
  4. When criteria are met, the skill automatically calculates position sizing and places trade orders through the Longport API.
  5. Post-trade, the system monitors open positions for stop-loss or take-profit targets and sends status updates to the user's Feishu bot.

Longport Quant Trader Setup

Prerequisites

Ensure you have Python 3.12 installed on your system.

Installation

First, install the required dependencies using pip:

pip install longport python-dotenv

Configuration

Obtain your API credentials from Longbridge Open Platform and set up your environment variables:

export LONGPORT_APP_KEY="your_app_key"
export LONGPORT_APP_SECRET="your_app_secret"
export LONGPORT_ACCESS_TOKEN="your_access_token"

Start Trading

Launch the monitoring script to begin automated trading with Openclaw Skills:

python quant_monitor.py

Longport Quant Trader Data Schema & Taxonomy

The skill manages trading data through a structured configuration and reporting system:

Data Component Format Description
Strategy Parameters Python/Config Defines thresholds for momentum, reversion, and risk levels.
Performance Stats JSON/CLI Tracks win rate, total profit/loss, and drawdown metrics.
Position Log CLI Table Real-time display of current holdings, entry prices, and floating P/L.
Notifications Feishu Webhook Outbound JSON payloads containing trade execution and performance reports.
Stock Pool List Custom list of ticker symbols (e.g., 700.HK, 9988.HK) for monitoring.

Longport Quant Trader Advanced Features

  • Multi-strategy support allowing simultaneous execution of oversold and momentum logic.
  • Dynamic position sizing based on a percentage of total equity to manage exposure.
  • Customizable stock pools for focused monitoring of specific sectors or indices.
  • Integrated Feishu bot support for remote performance monitoring and instant trade logs.
  • Comprehensive performance tracking system calculating win rates and net equity growth.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*