#short #ctp #description #bincode #class #virtual #decode

ctp-futures

A short description of your crate

1 unstable release

0.1.0 Oct 7, 2024

#7 in #ctp

Download history 153/week @ 2024-10-05 41/week @ 2024-10-12 8/week @ 2024-10-19 2/week @ 2024-10-26 15/week @ 2024-11-02 2/week @ 2024-11-09 2/week @ 2024-11-16 2/week @ 2024-11-23 21/week @ 2024-11-30 55/week @ 2024-12-07 19/week @ 2024-12-14

97 downloads per month
Used in 2 crates (via qust-api)

MIT/Apache

27MB
6.5K SLoC

Contains (ELF lib, 5.5MB) v_current/libthosttraderapi_se.so, (ELF lib, 4.5MB) ctp_auth_test/libthostmduserapi_se.so, (ELF lib, 5.5MB) ctp_auth_test/libthosttraderapi_se.so, (ELF lib, 5MB) v_current/libthostmduserapi_se.so, (Windows DLL, 3MB) v_current/thostmduserapi_se.dll, (Windows DLL, 3.5MB) v_current/thosttraderapi_se.dll and 2 more.

封装ctp 期货api接口

  • ctp version 6.3 看穿式
  • 使用rust-bindgen先生成主要代码,然后使用clang解析cpp头文件,生成spi的代码(因为目前rust-bindgen不会生成pure virtual class function)
  • ctp_autu_test用于看穿式验证申请,只需要修改build.rs里的链接目录即可
  • 引入derive bincode::Encode, bincode::Decode, 方便进行简单的序列化

Dependencies

~12–26MB
~331K SLoC