C:UsersleptoPycharmProjectsuntitledvenvScriptspython.exe D:/Python37/test20626.py
在使用天勤量化之前,默认您已经知晓并同意以下免责条款,如果不同意请立即停止使用:https://www.shinnytech.com/blog/disclaimer/
Traceback (most recent call last):
File “D:/Python37/test20626.py”, line 23, in
api = TqApi(TqKq(), auth=”tianqin@163.com,tianqin”)
File “C:UsersleptoPycharmProjectsuntitledvenvlibsite-packagestqsdkapi.py”, line 220, in __init__
self._setup_connection() # 初始化通讯连接
File “C:UsersleptoPycharmProjectsuntitledvenvlibsite-packagestqsdkapi.py”, line 1180, in _setup_connection
self._auth_account() # 支持用户授权
File “C:UsersleptoPycharmProjectsuntitledvenvlibsite-packagestqsdkapi.py”, line 1157, in _auth_account
raise Exception(“用户权限认证失败 (%d,%s)” % (response.status_code, response.content))
Exception: 用户权限认证失败 (401,b'{“error”:”invalid_grant”,”error_description”:”Invalid user credentials”}’)
Task was destroyed but it is pending!
task: <Task pending coro= cb=[TqApi._on_task_done()]>
Task was destroyed but it is pending!
task: <Task pending coro= cb=[TqApi._on_task_done()]>
sys:1: RuntimeWarning: coroutine ‘TqApi._windows_patch’ was never awaited
sys:1: RuntimeWarning: coroutine ‘TqApi._notify_watcher’ was never awaited
C:UsersleptoPycharmProjectsuntitledvenvScriptspython.exe D:/Python37/test20626.py
在使用天勤量化之前,默认您已经知晓并同意以下免责条款,如果不同意请立即停止使用:https://www.shinnytech.com/blog/disclaimer/
Traceback (most recent call last):
File “D:/Python37/test20626.py”, line 23, in
api = TqApi(TqKq(), auth=”tianqin@163.com,tianqin”)
File “C:UsersleptoPycharmProjectsuntitledvenvlibsite-packagestqsdkapi.py”, line 220, in __init__
self._setup_connection() # 初始化通讯连接
File “C:UsersleptoPycharmProjectsuntitledvenvlibsite-packagestqsdkapi.py”, line 1180, in _setup_connection
self._auth_account() # 支持用户授权
File “C:UsersleptoPycharmProjectsuntitledvenvlibsite-packagestqsdkapi.py”, line 1157, in _auth_account
raise Exception(“用户权限认证失败 (%d,%s)” % (response.status_code, response.content))
Exception: 用户权限认证失败 (401,b'{“error”:”invalid_grant”,”error_description”:”Invalid user credentials”}’)
Task was destroyed but it is pending!
task: <Task pending coro= cb=[TqApi._on_task_done()]>
Task was destroyed but it is pending!
task: <Task pending coro= cb=[TqApi._on_task_done()]>
sys:1: RuntimeWarning: coroutine ‘TqApi._windows_patch’ was never awaited
sys:1: RuntimeWarning: coroutine ‘TqApi._notify_watcher’ was never awaited
Process finished with exit code 1