[−][src]Crate xtp
xtp
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
andlibxtptraderapi
from the bundled XTP SDK. Please install them first. (The Installation here means adding the path to the correponding libs toLD_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.
Structs
Enums
ETFReplaceType | ETF_REPLACE_TYPE现金替代标识定义 |
TXTPOrderTypeType | TXTPOrderTypeType是报单类型类型 |
TXTPTradeTypeType | TXTPTradeTypeType是成交类型类型 |
XTPAccountType | 账户类型 |
XTPBusinessType | 证券业务类型 |
XTPError | Error type for this library. |
XTPExchangeType | XTP_EXCHANGE_TYPE是交易所类型 |
XTPFundOperStatus | XTP_FUND_OPER_STATUS柜台资金操作结果 |
XTPFundTransferType | 资金流转方向类型 |
XTPLogLevel | XTP_LOG_LEVEL是日志输出级别类型 |
XTPMarketType | XTP_MARKET_TYPE市场类型 |
XTPMarketdataType | |
XTPOptCallOrPutType | XTP_OPT_CALL_OR_PUT_TYPE是一个认沽或认购类型 |
XTPOptExerciseTypeType | XTP_OPT_EXERCISE_TYPE_TYPE是一个行权方式类型 |
XTPOrderActionStatusType | XTP_ORDER_ACTION_STATUS_TYPE是报单操作状态类型 |
XTPOrderStatusType | XTP_ORDER_STATUS_TYPE是报单状态类型 |
XTPOrderSubmitStatusType | XTP_ORDER_SUBMIT_STATUS_TYPE是报单提交状态类型 |
XTPPositionDirectionType | XTP_POSITION_DIRECTION_TYPE是一个持仓方向类型 |
XTPPositionEffectType | XTP_POSITION_EFFECT_TYPE是开平标识类型 |
XTPPriceType | XTP_PRICE_TYPE是价格类型 |
XTPProtocolType | XTP_PROTOCOL_TYPE是通讯传输协议方式 |
XTPSideType | XTP_SIDE_TYPE是买卖方向类型 |
XTPSplitMergeStatus | XTP_SPLIT_MERGE_STATUS是一个基金当天拆分合并状态类型 |
XTPTbtType | XTP_TBT_TYPE是一个逐笔回报类型 |
XTPTeResumeType | XTP_TE_RESUME_TYPE是公有流(订单响应、成交回报)重传方式 |
XTPTickerType | 证券类型 |
Traits
QuoteSpi | |
TraderSpi |