my python wrapper for CTP
- run make in each directory then ./setup.sh
- export LD_LIBRARY_PATH="$HOME/programs/lib/python2.7/site-packages/pzyctp/stock:$HOME/programs/lib/python2.7/site-packages/pzyctp/future:$LD_LIBRARY_PATH"
Remember to change to PYTHON library path in scripts and export command
-
Stock:
stockid, OpenPx, PreClosePx, LastPx, HighPx, LowPx, TotalVolumeTrade, TotalValueTrade, BidPx1, BidOrderQty1, BidPx2, BidOrderQty2, BidPx3, BidOrderQty3, OfferPx1, OfferOrderQty1, OfferPx2, OfferOrderQty2, OfferPx3, OfferOrderQty3, TradingDay, DataTimeStamp
-
Future:
InstrumentID, TradingDay, UpdateTime, LastPrice, PreClosePrice, OpenPrice, ClosePrice, HighestPrice, LowestPrice, Volume, Turnover, BidPrice1, BidVolume1, BidPrice2, BidVolume2, BidPrice3, BidVolume3, AskPrice1, AskVolume1, AskPrice2, AskVolume2, AskPrice3, AskVolume3
-
LTS:
stockid, TradingDay, UpdateTime, LastPrice, PreClosePrice, OpenPrice, ClosePrice, HighestPrice, LowestPrice, Volume, Turnover, BidPrice1, BidVolume1, BidPrice2, BidVolume2, BidPrice3, BidVolume3, AskPrice1, AskVolume1, AskPrice2, AskVolume2, AskPrice3, AskVolume3
- OnRspOrderInsert: ErrorCode=15, 报单字段有误;
- OnRspOrderInsert: ErrorCode=31, 资金不足;
- OnRspOrderInsert: ErrorCode=37, 股票不足;
- ErrorID=49, Liber交易平台:客户端认证失败"