SDK
支持多种主流编程语言,并提供 SDK
SDK 包名已从 longport 更名为 longbridge,旧包名 longport 已废弃。如果你之前使用的是 longport,请先卸载旧包再安装新包。
https://github.com/longbridge/openapi/tree/master/python
你可以通过 Pip 安装 SDK,或者直接访问 PyPI 页面来下载。
$ pip install longbridge如遇到网络安装问题,可以尝试:Aliyun PyPI 镜像
$ pip install longbridge -i https://mirrors.aliyun.com/pypi/simplehttps://github.com/longbridge/openapi/tree/master/nodejs
你可以通过 Npm 安装 SDK。
$ npm install longbridge --savehttps://www.npmjs.com/package/longbridge
https://github.com/longbridge/openapi/tree/master/rust
将以下行添加到您的 Cargo.toml 文件
[dependencies]
longbridge = "4.0.5"https://crates.io/crates/longbridge
https://github.com/longbridge/openapi/tree/master/java
将以下行添加到您的 pom.xml 文件
<dependency>
<groupId>io.github.longbridge</groupId>
<artifactId>openapi-sdk</artifactId>
<version>4.0.5</version>
</dependency>https://search.maven.org/artifact/io.github.longbridge/openapi
https://github.com/longbridge/openapi-go
在项目目录下执行:
$ go get github.com/longbridge/openapi-gohttps://pkg.go.dev/github.com/longbridge/openapi-go
https://github.com/longbridge/openapi/tree/master/cpp
https://longbridge.github.io/openapi/cpp/index.html