LLMs
We provide components for LLMs (Large Language Models) that let you easily access and analyze financial data, real-time market data, and even submit orders through AI.
Yes — you can use our LLM components via Futunn OpenAPI. Get started today!
LLMs Text
OpenAPI documentation follows the LLMs Text standard, providing llms.txt and a Markdown file for every document page. With LLMs Text, you can give AI a complete dictionary of Futunn OpenAPI documentation as reference context for assisted code generation — so the code it produces is more accurate.
https://open.futunn.com/llms.txt
Every document page is also available in Markdown. Simply append .md to the URL when you visit it.
This capability is well suited for LLM crawling, RAG indexing, and tool-based page reads while preserving clear page structure.
For example:
https://open.futunn.com/api/overview/getting-started.md
https://open.futunn.com/api/quote/realtime/market-snapshot.mdDemo
Using in Cursor
Open Cursor, open the command palette (Command + Shift + P), search for and select Add New Custom Docs, then enter the Futunn OpenAPI LLMs Text URL in the dialog:
https://webapi.futunn.com/llms.txtOnce added, the source appears in Cursor Settings.
In your AI chat, choose the Docs you just added from the @Add Context docs menu. From then on, the AI will use this documentation as context in your conversations.
Quickly build your first grid quant strategy
You can use an LLM to quickly build a quant trading program. We provide a simple sample for reference. If you already have a local Python environment, you can follow the sample to get started.
This is the prompt used in the demo video. Note that the grid quant program shown in the video runs in an internal environment; the prompt is for your reference only. Actual results depend on the model.
Using https://open.futunn.com/llms.txt from the WebAPI site LLMs section, build a simple grid-strategy quant trading Python program from scratch with this Restful API. Requirements:
1. Long-only percentage grid; trigger buys when price hits a level. Symbol HK.00700, 0.5% spacing, 5 levels above and below, 1 lot per level, base price = latest price;
2. Cover auth, quote subscription, trade push, place/cancel/query orders; trade via live APIs;
3. If only one authorized account can trade that market, use it; if several, pick one and print the reason;
4. On start, print grid strategy info; emit necessary runtime logs, periodic status, usage notes, and a short program intro;
5. Put the working directory at Desktop/grid-strategy-app; keep secrets there and do not leak them.Security Notice
- Store the App Key private key only in your own secure environment. Do not upload it to the platform, commit it to a code repository, or write it in plaintext to logs or configuration files.
- We recommend that you validate first in a paper/simulated environment, or only print logs and thoroughly verify with backtests before live trading. Live trading is at your own risk.