4 releases

0.1.0-alpha.4 Jan 19, 2020
0.1.0-alpha.3 Jan 14, 2020
0.1.0-alpha.2 Dec 29, 2019

#7 in #china

MIT license

135KB
3.5K SLoC

Rust 2.5K SLoC // 0.0% comments C++ 505 SLoC // 0.0% comments

xtp: A rust binding for XTP SDK travis docs.rs badge Latest Version

xtp is a Rust binding for the XTP SDK, which is an interface for trading on the Chinese stock market.

Current status

All APIs are implemented but are partially tested/documented. USE AT YOUR OWN RISK!

Dependencies

  • This crate depends on libxtpquoteapi and libxtptraderapi from the bundled XTP SDK. Please install them first. (The Installation here means adding the path to the correponding libs to LD_LIBRARY on linux, or %PATH% on windows.) The version of the installed lib should be same as the one in the bundled sdk in case of incompatibility.

  • Only 64 bit of the SDK is implemented.

  • For windows users, please install 64bit rust compiler and llvm (required by rust-bindgen).

Usage

Please check out the examples folder for detail usage.

Dependencies

~0–2.3MB
~45K SLoC