FUTUBULL Help Center-What is Futu API
English
Back
Open Account

What is Futu API

1. Introduction

Futu API provides a wide variety of market data and trading services for your programmed trading to meet the needs of every developer's programmed trading and help your Algo dreams.

 

2. Account

Futu API involves two types of accounts, Futu ID and universal account.

2.1 Futu ID

The user account ID can be used for logging into APP and Futu API. You can use your user account ID and login password to log in and obtain market data.

2.2 Universal Account

Universal account allows trading across multiple markets (including Hong Kong stocks, US stocks, A-shares, and funds) in various currencies. There's no need for multiple accounts.

Universal Accounts come in two forms:

  • Securities Universal Account: Trade stocks, ETFs, options, and other securities across different markets.

  • Futures Universal Account: Trade futures, including Hong Kong, US CME Group, Singapore, and Japanese futures.

 

3. Functionality

There are 2 functions of Futu API : quotation and trading.

3.1 Quotation Functions

3.1.1 Quotation Data Categories

Including stocks, indices, options and futures from HK, US and A-share markets. Find the specific types of support in the table below. 

Market

Contract

Users

HK Market

Stocks, ETFs, warrants, CBBCs.Inline Warrants

√

Options

√

Futures

√

Indices

√

Plates

√

US Market

NYSE, NYSE-American and Nasdaq listed equities, ETFs

√

OTC Securities

×

Options

√

Futures

√

Indices

×

Plates

√

A-share

Market

Stocks, ETFs

√

Indices

√

Plates

√

Singapore

Market

Stocks, ETFs, structured warrants, business trusts, REITs, DLCs

×

Futures

×

Japanese

Market

Stocks, ETFs, REITs

×

Futures

×

 

3.1.2 Method to Obtain Market Data

● Subscribe and receive pushed real-time quote, candlestick, tick-by-tick and order book.

● Request for the latest market snapshot, historical candlesticks etc.

3.2 Trading Functions

3.2.1 Trading Capacity

The available trading capacities include: stocks, options and futures from HK, US, A-share, Singapore and Japanese markets. Find the specific types of support in the table below.

Market

Contract

Paper

Trading

Live Trading

FUTU HK

Moomoo US

Moomoo SG

Moomoo AU

HK Market

Stocks, ETFs, warrants, CBBCs.Inline Warrants

√

√

√

√

√

Options

√

√

×

×

×

Futures

√

√

×

×

×

US Market

NYSE, NYSE-American and Nasdaq listed equities, ETFs

√

√

√

√

√

Options

√

√

√

√

×

Futures

√

√

×

√

×

A-share

Market

HKCC stocks, ETFs

√

√

√

√

×

Non-HKCC stocks

√

×

×

×

×

Singapore

Market

Stocks, ETFs, structured warrants, business trusts, REITs, DLCs

×

×

×

×

×

Futures

√

√

×

√

×

Japanese

Market

Stocks, ETFs, REITs

×

×

×

×

×

Futures

√

√

×

×

×

3.2.2 Method of Trading

The trading interfaces are used for both live trading and paper trading.

 

4. Features

4.1 Full platform and multi-language

● Supports Windows, MacOS, CentOS, Ubuntu

● Supports Python, Java, C#, C++, JavaScript, etc.

4.2 Stable speed and free transaction

● Stable technical architecture, directly connected to the exchanges

● The fastest order is 0.0014s

● There is no additional charge for trading via Futu API 

4.3 Abundant investment varieties

● Support real-time quote, live trading, and paper trading in HK, US, and CN markets

4.4 Professional institutional services

● Customized market data and trading solutions

 

5. Technical Structure

Futu provides two access methods: a local gateway and a cloud-native RESTful API. Both methods support essentially the same business capabilities, with specific interfaces and features subject to the documentation, allowing users to choose the access method that best suits their actual needs;
  • Local gateway access: Run the OpenD gateway program locally or in the cloud. OpenD exposes interfaces through a custom TCP protocol that is independent of programming languages. For ease of use, Futu provides API SDKs for different programming languages for third-party use. For more details, please refer to the API documentation.
  • Cloud-native RESTful API: Call Futu RESTful APIs directly over standard HTTPS without installing or starting a gateway program locally. Both requests and responses use JSON format and are independent of programming languages, enabling quick integration from any programming language or scripting tool capable of making network requests, with no need to install, upgrade, or maintain the OpenD gateway yourself. Cloud services are centrally maintained by the platform, with update and version compatibility policies subject to official announcements. It also supports multiple authentication methods, including OAuth 2.1 + PKCE and API Key signatures (Ed25519 / RSA-SHA256), flexibly meeting both user authorization and server-to-server invocation scenarios. For more details, please refer to the API documentation.

Options trading entails significant risk and is not appropriate for all customers. It is important that investors read Characteristics and Risks of Standardized Options before engaging in any options trading strategies. Options transactions are often complex and may involve the potential of losing the entire investment in a relatively short period of time. Certain complex options strategies carry additional risk, including the potential for losses that may exceed the original investment amount. Supporting documentation for any claims, if applicable, will be furnished upon request.

Futures live trading is currently only available for trading accounts with Moomoo SG or FUTU HK and is not yet supported by accounts with Moomoo US or Moomoo AU. Futures trading involves high risks and is not suitable for all investors. The amount you could lose may be greater than your initial investment.

Losses can happen more quickly with quant and algorithmic trading compared to other forms of trading. Trading in financial markets carries inherent risks, making effective risk management a crucial aspect of quantitative trading systems. These risks encompass various factors that can disrupt the performance of such systems, including market volatility leading to losses.

Moreover, quants face additional risks such as capital allocation, technology, and broker-related uncertainties. It's important to note that automated investment strategies do not guarantee profits or protect against losses.

The responsiveness of the trading system or app may vary due to market conditions, system performance, and other factors. Account access, real-time data, and trade execution may be affected by factors such as market volatility.

This presentation is for informational and educational use only and is not a recommendation or endorsement of any particular investment or investment strategy. Investment information provided in this content is general in nature, strictly for illustrative purposes, and may not be appropriate for all investors. It is provided without respect to individual investors’ financial sophistication, financial situation, investment objectives, investing time horizon, or risk tolerance. You should consider the appropriateness of this information having regard to your relevant personal circumstances before making any investment decisions. Past investment performance does not indicate or guarantee future success. Returns will vary, and all investments carry risks, including loss of principal. Our platform makes no representation or warranty as to its adequacy, completeness, accuracy or timeliness for any particular purpose of the above content.