股票c++交易程序化接口1、// 卸载 DLL ↲ FreeLibrary(m_hInstance); ↲ } ↲ ↲ 2、// 登录交易账户 ↲ int Logon(const char* Ip, short Port, const char* Version, short Yybid, ↲ const char* Account, const char* TradeAccount, ↲ const char* JyPassword, const char* TxPassword, ↲ char* ErrorInfo) const { ↲ return m_logonFn(Ip, Port, Version, Yybid, Account, TradeAccount,↲↲ JyPassword, TxPassword, ErrorInfo); ↲ } ↲ 3、// 第 i 项委托的股东代码 ↲ Gddms[i] = (i % 2) ?"SHGD987654":"SHGD123456"; ↲ Zqdms[i] ="600006"; 4、// 登录交易账户 ↲ typedef int (*LogonFn)(const char* Ip, short Port, const char* Version, ↲ short Yybid, const char* Account, ↲ const char* TradeAccount, const char* JyPassword, ↲ const char* TxPassword, char* ErrorInfo); ↲ 5、// 无需 Deinit() ↲ FreeLibrary(m_hInstance); ↲ throw std::runtime_error("没有可用的授权账户!"); ↲ } ↲ } ↲ ↲ ~MetaTradeAPI() { ↲