Futu Financial Data
🛠️
General Tools+ Agent Template

Futu Financial Data

Futu OpenAPI trading and market data query. Query stock quotes, K-line charts, price quotations, snapshots, bid/ask orders, tick-by-tick trades, and intraday time-series data.

Overview

What Is Futu Financial Data?

Futu Financial Data (富途) is an automated financial market intelligence and portfolio research skill on EasyClaw. Designed specifically for active retail investors, fund researchers, and quantitative analysts tracking Hong Kong, US, and China A-share markets, it integrates with Futu's OpenAPI trading and market endpoints to let you monitor live stock quotes, retrieve historical K-line charts, analyze order-book spreads, pull market snapshots, and run simulated paper-trading portfolios.

The skill is built for equity research teams compiling market audits, quantitative developers retrieving historical datasets, and day-traders monitoring real-time market spreads headlessly.

The expected outcome is rapid, high-fidelity market intelligence: structured stock rankings (such as top 20 HK stocks by market cap), live price quotes, and local-ready transaction logs, parsed and saved inside your active conversation.

How Futu Financial Data Works

1. API verification and session initialization. The skill connects to your local FutuOpenD gateway over secure, encrypted TCP/WebSocket links using your secure developer credentials.

2. Real-time quote and snapshot query. For market requests, the skill queries Futu's live endpoints, retrieving real-time stock prices, intraday spreads, and full market snapshots (bids, asks, and order volumes).

3. Structured stock ranking. It executes global asset screening: retrieving and sorting equities (such as compiling the top 20 Hong Kong stocks ranked by market cap) and returning clean, formatted data tables.

4. Historical K-line compilation. The skill pulls historical OHLCV (Open, High, Low, Close, Volume) data for any specified ticker and timeframe, formatting the rows into clean spreadsheets ready for charting.

5. Secure paper-trading simulation. For virtual transaction requests, the skill logs mock buy and sell orders, calculates commissions, tracks asset ratios, and updates your local paper-portfolio log database.

Key Features

- Real-time quote lookup: Retrieve instant, un-delayed stock prices, bid/ask spreads, and capitalization.
- Top asset rankings: Generates structured lists of top stocks by market cap across HK, US, and CN markets.
- K-line history compiler: Pulls daily, weekly, or monthly OHLCV data tables for any time range.
- Futu OpenAPI integration: Fully aligned with FutuOpenD gateway TCP and WebSocket protocols.
- Simulated paper trading: Log virtual orders, track holdings, and calculate net portfolio ROI locally.
- Structured CSV/JSON export: Saves compiled market snapshots and trade logs directly to your workspace.

What Problems Does Futu Financial Data Solve?

1. Retrieving top Hong Kong stocks by market cap
An investment analyst wants to review the top 20 Hong Kong equities to adjust their sector holdings. Instead of logging into a terminal, they ask the skill. Futu Financial Data connects to FutuOpenD, retrieves the live list, sorts by market capitalization, and outputs a clean table showing Ticker, Name, Price, and Cap in seconds.

2. Compiling historical K-lines for quantitative analysis
A developer is building a momentum trading bot and needs historical daily data for Tencent (00700) for the past 6 months. The skill pulls the OHLCV rows directly through Futu's API and exports them as a clean local CSV file, ready to feed into their backtesting scripts.

3. Running simulated paper trades to test market strategies
A retail investor wants to test a breakout strategy by paper trading Tesla (TSLA) stock. They instruct the skill: "Buy 50 shares of TSLA at limit price $175." The skill logs the mock trade under `paper_trades.json`, tracks virtual commissions and cash balances, and updates their virtual portfolio dashboard.

4. Pulling real-time market snapshots before trading
Before placing an order, a day-trader wants to check the active bid/ask spread and order-book depth for a highly volatile HK stock. The skill retrieves a live snapshot: displaying the top 10 levels of bids and asks with volumes, helping the trader optimize their entry price.

5. Monitoring a personal watchlist during active trading
An investor wants to monitor a watchlist of 5 US stocks headlessly. They configure the watchlist. The skill queries FutuOpenD at set intervals, outputting a clean price quote snapshot and sending immediate warnings if any stock rises or drops by more than 3%.

Example Workflow

An investor wants to screen Hong Kong stock metrics and execute a simulated buy order.

1. They open EasyClaw and activate Futu Financial Data.
2. They run: *"Fetch top 20 HK stocks by market cap, show price and cap."*
3. The skill connects to FutuOpenD, retrieves the live rankings, and formats the data table.
4. The user selects ticker `00700` and runs: *"Paper trade: Buy 100 shares of Tencent (00700) at market price."*
5. The skill registers the simulated order, pulls the current market price, and logs the transaction.
6. It reports: *Success. Simulated Market Buy logged for 100 shares of 00700 at 380.50 HKD. Total cost: 38,050.00 HKD. Status: Executed.*

Simulated market transactions logged and tracked headlessly in under 40 seconds.

Getting Started with Futu Financial Data

Add this skill to your EasyClaw workspace
Describe your task in a chat message
Review the output and iterate if needed
Export or share the results directly from EasyClaw
Combine with other skills to build automated workflows

Frequently Asked Questions

Do I need a live Futu brokerage account?

You need a standard Futu account (such as Futubull or Moomoo) to launch and log into the FutuOpenD gateway application. The paper trading feature is a local simulation requiring no actual cash or capital.

What is FutuOpenD?

FutuOpenD is a local gateway application provided by Futu that exposes trading and market data APIs over TCP/WebSocket links. This skill connects to FutuOpenD locally to execute your queries headlessly.

What exchanges and markets are supported?

The skill supports all markets covered by Futu OpenAPI, primarily the Hong Kong Stock Exchange (SEHK), US Stock Exchanges (NYSE, NASDAQ, AMEX), and China A-share markets (SSE, SZSE).

Are my paper-trading logs archived locally?

Yes. All simulated buy and sell transactions, stock holdings, and performance metrics are written directly as clean, structured JSON and CSV files under `public/data/portfolio/` in your local workspace.

What is a "Market Snapshot" and what does it show?

A Market Snapshot is a high-resolution data block showing real-time price, transaction volume, day-change percentage, market cap, and the top 10 levels of bid/ask order book depth.

Can I monitor stock indices like the Hang Seng Index?

Yes. You can query quotes and performance metrics for major indices (such as the Hang Seng Index or S&P 500) using standard index ticker codes (e.g., `HK.800000`).

Does the paper trading engine calculate commissions?

Yes. The simulation engine applies standard Futu commission and platform fee structures (e.g., HK or US fee tiers) to calculate realistic net transaction costs and net ROI.

Can I export my stock data to Google Sheets?

Yes. The skill automatically writes your stock lists, K-line rows, and watchlist metrics to standard CSV files, which you can easily upload to Google Drive and open in Google Sheets.

Is my private investment data safe?

Yes. All market queries, portfolio calculations, and file writes are executed entirely locally on your machine over secure, encrypted links. Your trade histories, asset scales, and watchlists remain strictly confidential.

Can I schedule repeating market scans?

Yes. You can pair this skill with a local background scheduler to automate repeating quote scans, such as "pull Tencent quotes every 15 minutes during HK market hours."

Add Futu Financial Data to Your Workflow

Get EasyClaw, add this skill, and start building AI agent workflows in minutes.

Get EasyClaw Free →