#short #ctp #description #bincode #class #virtual #encode

ctp-futures

A short description of your crate

1 unstable release

0.1.0 Oct 7, 2024

#19 in #bincode

Download history 171/week @ 2024-10-07 26/week @ 2024-10-14 6/week @ 2024-10-21 1/week @ 2024-10-28 17/week @ 2024-11-04

59 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–24MB
~334K SLoC