Longbridge Developers
Get Started

SDK

Package Renamed

The SDK package has been renamed from longport to longbridge. The old longport package is deprecated. If you were previously using longport, please uninstall it before installing the new package.

Longbridge OpenAPI SDK for Python

https://github.com/longbridge/openapi/tree/master/python

Install SDK

You can install the SDK via Pip, or directly visit the PyPI page to download.

$ pip install longbridge

NOTE: In macOS system, the pip command default is Python 2. You may use pip3 for use Python 3 version of PyPI.

API Documents

Examples

Longbridge OpenAPI SDK for Rust

https://github.com/longbridge/openapi/tree/master/rust

Install SDK

Add the following line to your Cargo.toml file

[dependencies]
longbridge = "4.0.5"

https://crates.io/crates/longbridge

API Documents

Examples

Longbridge OpenAPI SDK for Java

https://github.com/longbridge/openapi/tree/master/java

Install SDK

Add the following line to your pom.xml file

<dependency>
  <groupId>io.github.longbridge</groupId>
  <artifactId>openapi-sdk</artifactId>
  &lt;version&gt;4.0.5</version>
</dependency>

https://search.maven.org/artifact/io.github.longbridge/openapi

API Documents

Examples

Longbridge OpenAPI SDK for Go

https://github.com/longbridge/openapi-go

Install SDK

  • Go version >= 1.17

In your project directory, run:

$ go get github.com/longbridge/openapi-go

https://pkg.go.dev/github.com/longbridge/openapi-go

Examples

Footer placeholder

Footer placeholder — page-level footer/CTA lands in stage-2 composite port.