haifengat/pyctp

运行 test_api.py 后出现 AttributeError: function 'ReqLockInsert' not found

Closed this issue · 1 comments

Traceback (most recent call last):
File ".\test_api.py", line 243, in
p = Test()
File ".\test_api.py", line 42, in init
self.t = Trade()
File "\vmware-host\Shared Folders\Downloads\hf_ctp_py_proxy-master\py_ctp..\py_ctp\trade.py", line 108, in init
self.h.ReqLockInsert.argtypes = [c_void_p, c_void_p, c_int32]
File "C:\Users\William Yizhu\AppData\Local\Programs\Python\Python36\lib\ctypes_init_.py", line 361, in getattr
func = self.getitem(name)
File "C:\Users\William Yizhu\AppData\Local\Programs\Python\Python36\lib\ctypes_init_.py", line 366, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'ReqLockInsert' not found

已修复