72 releases

0.2.72 Sep 18, 2023
0.2.70 Aug 18, 2023
0.2.66 Jul 20, 2023
0.2.51 Mar 27, 2023
0.2.29 Jul 20, 2022

#41 in Finance

Download history 122/week @ 2023-06-07 42/week @ 2023-06-14 115/week @ 2023-06-21 153/week @ 2023-06-28 187/week @ 2023-07-05 21/week @ 2023-07-12 55/week @ 2023-07-19 27/week @ 2023-07-26 6/week @ 2023-08-02 84/week @ 2023-08-09 183/week @ 2023-08-16 88/week @ 2023-08-23 8/week @ 2023-08-30 175/week @ 2023-09-06 51/week @ 2023-09-13 16/week @ 2023-09-20

253 downloads per month
Used in 2 crates


32K SLoC

C++ 24K SLoC // 0.1% comments Go 7.5K SLoC // 0.0% comments Rust 1K SLoC Python 220 SLoC // 0.1% comments

Longbridge OpenAPI SDK

Go project version PyPI version npm version Maven Central

Longbridge OpenAPI provides programmatic quote trading interfaces for investors with research and development capabilities and assists them to build trading or quote strategy analysis tools based on their own investment strategies. The functions fall into the following categories:

  • Trading - Create, amend, cancel orders, query today’s/past orders and transaction details, etc.
  • Quotes - Real-time quotes, acquisition of historical quotes, etc.
  • Portfolio - Real-time query of the account assets, positions, funds
  • Real-time subscription - Provides real-time quotes and push notifications for order status changes

This repo contains the following main components:

Name Document Description
Rust Doc Longbridge OpenAPI for Rust (>= 1.56.1)
Python Doc Longbridge OpenAPI for Python 3 (>= 3.7)
Node.js Doc Longbridge OpenAPI for Node.js (>= 10)
Java Doc Longbridge OpenAPI for Java (>= 1.8)
C Doc Longbridge OpenAPI for C (>= C99)
C++ Doc Longbridge OpenAPI for C++(>= C++17)
Go https://github.com/longbridgeapp/openapi-go

How to enable Longbridge OpenAPI

  1. Log in to the Longbridge App or the official website longbridgehk.com to complete the account opening process of Longbridge Integrated A/C (the interface services of the Longbridge Standard A/C are not currently available)

  2. Log in to the longbridgeapp.com and enter the developer platform, complete the developer verification (OpenAPI permission application), and obtain a token.

SDK Documenation



Longbridge does not charge any additional fees for activating or using interface services. You only need to open a Longbridge Integrated A/C and get OpenAPI service permissions to use it for free. Please refer to Pricing or consult online customer service for the actual commissions or advanced quotes fees incurred by transactions.



Licensed under either of


~44K SLoC