Crate ctp_rust

Crate ctp_rust 

Source
Expand description

§CTP Rust SDK

这是一个为CTP (综合交易平台) 提供的安全Rust绑定库,支持Linux和macOS系统。

§功能特点

  • 🔒 类型安全的Rust绑定
  • 🌍 支持Linux和macOS平台
  • 📝 自动处理GB18030到UTF-8编码转换
  • ⚡ 异步支持
  • 📚 完整的中文文档

§模块结构

  • ffi - C++库的FFI绑定
  • encoding - 编码转换工具
  • api - 高级API接口
  • error - 错误处理
  • types - 类型定义

Re-exports§

pub use api::AsyncMdApi;
pub use api::MdApi;
pub use api::TraderApi;
pub use config::CtpConfig;
pub use error::CtpError;
pub use error::CtpResult;
pub use types::*;

Modules§

api
高级API模块
config
encoding
编码转换模块
error
错误处理模块
ffi
FFI绑定模块
types
CTP数据类型定义

Constants§

VERSION
库版本信息