moomoo US Help Center-What is OpenAPI
English
Back
Log in to access Online Inquiry
Back to the Top

What is OpenAPI

1. Introduction

OpenAPI 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

OpenAPI involves two types of accounts, account ID and universal account.

2.1 User Account

The user account ID can be used for logging into APP and OpenAPI. 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 OpenAPI: 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

×

*Futures trading is not offered by Moomoo Financial Inc. and is not available to US customers. Futures trading involves high risks and is not suitable for all investors. The amount you could lose may be greater than your initial investment.

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 single order placing speed can reach 0.0014s

● There is no additional charge for trading via OpenAPI

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

 

4. Technical Structure

OpenAPI includes moomoo API and moomoo OpenD program. To use moomoo API, the gateway program moomoo OpenD should be started locally or in the cloud. This program exposes the interface in a custom TCP protocol, which has nothing to do with the programming language. Considering convenience, Moomoo has packaged API SDKs for different programming languages for third parties to use.

More details, click API Doc.

Options trading subject to eligibility requirements. Strategies available will depend on options level approved. Options trading is very risky and is not appropriate for all customers. Read the Characteristics and Risks of Standardized Options before considering trading options. Options transactions are complex and may involve losing the entire investment in a short period of time. 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, technological broker-related uncertainties. It's important to note that automated investment strategies do not guaranteeprofits 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.

Risk Disclosure 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. Moomoo makes no representation or warranty as to its adequacy, completeness, accuracy or timeliness for any particular purpose of the above content.