docs.rs failed to build longbridge-0.2.28
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
longbridge-4.0.5
Longbridge OpenAPI SDK for Rust
longbridge provides an easy-to-use interface for invokes Longbridge OpenAPI.
Quickstart
Add dependencies to Cargo.toml
[]
= "0.1.0"
Setting environment variables(MacOS/Linux)
Setting environment variables(Windows)
setx LONGBRIDGE_APP_KEY "App Key get from user center"
setx LONGBRIDGE_APP_SECRET "App Secret get from user center"
setx LONGBRIDGE_ACCESS_TOKEN "Access Token get from user center"
Quote API (Get basic information of securities)
use Arc;
use ;
async
Quote API (Subscribe quotes)
use Arc;
use ;
async
Trade API (Submit order)
use Arc;
use ;
async
Crate features
To avoid compiling unused dependencies, Longbridge gates certain features, all of which are disabled by default:
| Feature | Description |
|---|---|
| blocking | Provides the blocking client API. |
License
Licensed under either of
- Apache License, Version 2.0,(LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.