Merge pull request #899 from cclauss/modernize-vnpy_api_sec
Modernize vnpy/api/sec
This commit is contained in:
commit
29eb606e1c
@ -1,5 +1,6 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
from vnsecmd import MdApi
|
from __future__ import absolute_import
|
||||||
from vnsectd import TdApi
|
from .vnsecmd import MdApi
|
||||||
import sec_data_type as DATA_TYPE
|
from .vnsectd import TdApi
|
||||||
|
from . import sec_data_type as DATA_TYPE
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
# C++和Python类型映射
|
# C++和Python类型映射
|
||||||
|
from __future__ import print_function
|
||||||
type_map = {
|
type_map = {
|
||||||
'int': 'int',
|
'int': 'int',
|
||||||
'long': 'long',
|
'long': 'long',
|
||||||
@ -97,7 +98,7 @@ def main(cpp_filename, py_filename):
|
|||||||
cpp_f.close()
|
cpp_f.close()
|
||||||
py_f.close()
|
py_f.close()
|
||||||
|
|
||||||
print u'data_type处理完成'
|
print(u'data_type处理完成')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
from generate_data_type import pre_process
|
from generate_data_type import pre_process
|
||||||
|
|
||||||
import sec_struct
|
import sec_struct
|
||||||
@ -69,7 +70,7 @@ def process_function(cpp_line):
|
|||||||
args_type_list.append(l[0])
|
args_type_list.append(l[0])
|
||||||
args_name_list.append(l[1])
|
args_name_list.append(l[1])
|
||||||
|
|
||||||
print args_type_list
|
print(args_type_list)
|
||||||
if args_type_list and args_type_list[0] in STRUCT_DICT:
|
if args_type_list and args_type_list[0] in STRUCT_DICT:
|
||||||
create_function(fc_name, args_type_list, args_name_list)
|
create_function(fc_name, args_type_list, args_name_list)
|
||||||
|
|
||||||
@ -298,4 +299,4 @@ header_process_f.close()
|
|||||||
header_on_f.close()
|
header_on_f.close()
|
||||||
header_function_f.close()
|
header_function_f.close()
|
||||||
|
|
||||||
print API_NAME + u'处理完成'
|
print(API_NAME + u'处理完成')
|
@ -1,5 +1,6 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
from generate_data_type import pre_process
|
from generate_data_type import pre_process
|
||||||
|
|
||||||
import sec_data_type
|
import sec_data_type
|
||||||
@ -62,7 +63,7 @@ def main(cpp_filename, py_filename):
|
|||||||
cpp_f.close()
|
cpp_f.close()
|
||||||
py_f.close()
|
py_f.close()
|
||||||
|
|
||||||
print u'struct处理完成'
|
print(u'struct处理完成')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
from generate_data_type import pre_process
|
from generate_data_type import pre_process
|
||||||
|
|
||||||
import sec_struct
|
import sec_struct
|
||||||
@ -69,7 +70,7 @@ def process_function(cpp_line):
|
|||||||
args_type_list.append(l[0])
|
args_type_list.append(l[0])
|
||||||
args_name_list.append(l[1])
|
args_name_list.append(l[1])
|
||||||
|
|
||||||
print args_type_list
|
print(args_type_list)
|
||||||
if args_type_list and args_type_list[0] in STRUCT_DICT:
|
if args_type_list and args_type_list[0] in STRUCT_DICT:
|
||||||
create_function(fc_name, args_type_list, args_name_list)
|
create_function(fc_name, args_type_list, args_name_list)
|
||||||
|
|
||||||
@ -298,4 +299,4 @@ header_process_f.close()
|
|||||||
header_on_f.close()
|
header_on_f.close()
|
||||||
header_function_f.close()
|
header_function_f.close()
|
||||||
|
|
||||||
print API_NAME + u'处理完成'
|
print(API_NAME + u'处理完成')
|
@ -1,7 +1,9 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from six.moves import input
|
||||||
from vnsecmd import MdApi
|
from vnsecmd import MdApi
|
||||||
|
|
||||||
|
|
||||||
@ -9,7 +11,7 @@ from vnsecmd import MdApi
|
|||||||
def print_dict(d):
|
def print_dict(d):
|
||||||
"""输出字典"""
|
"""输出字典"""
|
||||||
for k, v in d.items():
|
for k, v in d.items():
|
||||||
print '%s:%s' %(k, v)
|
print('%s:%s' %(k, v))
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
@ -24,119 +26,119 @@ class TestMdApi(MdApi):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onFrontConnected(self):
|
def onFrontConnected(self):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onFrontDisconnected(self, reason):
|
def onFrontDisconnected(self, reason):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRtnNotice(self, data):
|
def onRtnNotice(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspError(self, error):
|
def onRspError(self, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
print dict(error)
|
print(dict(error))
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockUserLogin(self, data, error):
|
def onRspStockUserLogin(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockUserLogout(self, data, error):
|
def onRspStockUserLogout(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPUserLogin(self, data, error):
|
def onRspSOPUserLogin(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
print_dict(data)
|
print_dict(data)
|
||||||
print_dict(error)
|
print_dict(error)
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPUserLogout(self, data, error):
|
def onRspSOPUserLogout(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLUserLogin(self, data, error):
|
def onRspFASLUserLogin(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLUserLogout(self, data, error):
|
def onRspFASLUserLogout(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockSubMarketData(self, data, error):
|
def onRspStockSubMarketData(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockUnSubMarketData(self, data, error):
|
def onRspStockUnSubMarketData(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPSubMarketData(self, data, error):
|
def onRspSOPSubMarketData(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPUnSubMarketData(self, data, error):
|
def onRspSOPUnSubMarketData(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onStockMarketData(self, data):
|
def onStockMarketData(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onSOPMarketData(self, data):
|
def onSOPMarketData(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockAvailableQuot(self, data, error, flag):
|
def onRspStockAvailableQuot(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSopAvailableQuot(self, data, error, flag):
|
def onRspSopAvailableQuot(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspUserMDPasswordUpdate(self, data, error):
|
def onRspUserMDPasswordUpdate(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@ -158,4 +160,4 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
api.reqSOPUserLogin(req)
|
api.reqSOPUserLogin(req)
|
||||||
|
|
||||||
raw_input()
|
input()
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from six.moves import input
|
||||||
from vnsectd import TdApi
|
from vnsectd import TdApi
|
||||||
|
|
||||||
|
|
||||||
@ -9,7 +11,7 @@ from vnsectd import TdApi
|
|||||||
def print_dict(d):
|
def print_dict(d):
|
||||||
"""输出字典"""
|
"""输出字典"""
|
||||||
for k, v in d.items():
|
for k, v in d.items():
|
||||||
print '%s:%s' %(k, v)
|
print('%s:%s' %(k, v))
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
@ -24,556 +26,556 @@ class TestTdApi(TdApi):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onFrontConnected(self, ):
|
def onFrontConnected(self, ):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onFrontDisconnected(self, reason):
|
def onFrontDisconnected(self, reason):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRtnNotice(self, data):
|
def onRtnNotice(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspError(self, error):
|
def onRspError(self, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockUserLogin(self, data, error):
|
def onRspStockUserLogin(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockUserLogout(self, data, error):
|
def onRspStockUserLogout(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockUserPasswordUpdate(self, data, error):
|
def onRspStockUserPasswordUpdate(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockEntrustOrder(self, data, error):
|
def onRspStockEntrustOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockWithdrawOrder(self, data, error):
|
def onRspStockWithdrawOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryEntrustOrder(self, data, error, flag):
|
def onRspStockQryEntrustOrder(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryRealTimeTrade(self, data, error, flag):
|
def onRspStockQryRealTimeTrade(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQrySerialTrade(self, data, error, flag):
|
def onRspStockQrySerialTrade(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryPosition(self, data, error, flag):
|
def onRspStockQryPosition(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryCapitalAccountInfo(self, data, error, flag):
|
def onRspStockQryCapitalAccountInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryAccountInfo(self, data, error):
|
def onRspStockQryAccountInfo(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryShareholderInfo(self, data, error, flag):
|
def onRspStockQryShareholderInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockTransferFunds(self, data, error):
|
def onRspStockTransferFunds(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockEntrustBatchOrder(self, data, error):
|
def onRspStockEntrustBatchOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockWithdrawBatchOrder(self, data, error):
|
def onRspStockWithdrawBatchOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockCalcAbleEntrustQty(self, data, error):
|
def onRspStockCalcAbleEntrustQty(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockCalcAblePurchaseETFQty(self, data, error):
|
def onRspStockCalcAblePurchaseETFQty(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryFreezeFundsDetail(self, data, error, flag):
|
def onRspStockQryFreezeFundsDetail(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryFreezeStockDetail(self, data, error, flag):
|
def onRspStockQryFreezeStockDetail(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryTransferStockDetail(self, data, error, flag):
|
def onRspStockQryTransferStockDetail(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryTransferFundsDetail(self, data, error, flag):
|
def onRspStockQryTransferFundsDetail(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryStockInfo(self, data, error, flag):
|
def onRspStockQryStockInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryStockStaticInfo(self, data, error, flag):
|
def onRspStockQryStockStaticInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspStockQryTradeTime(self, data, error):
|
def onRspStockQryTradeTime(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onStockEntrustOrderRtn(self, data):
|
def onStockEntrustOrderRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onStockTradeRtn(self, data):
|
def onStockTradeRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onStockWithdrawOrderRtn(self, data):
|
def onStockWithdrawOrderRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPUserLogin(self, data, error):
|
def onRspSOPUserLogin(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
print_dict(data)
|
print_dict(data)
|
||||||
print_dict(error)
|
print_dict(error)
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPUserLogout(self, data, error):
|
def onRspSOPUserLogout(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPUserPasswordUpdate(self, data, error):
|
def onRspSOPUserPasswordUpdate(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPEntrustOrder(self, data, error):
|
def onRspSOPEntrustOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPGroupSplit(self, data, error):
|
def onRspSOPGroupSplit(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryGroupPosition(self, data, error, flag):
|
def onRspSOPQryGroupPosition(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPLockOUnLockStock(self, data, error, flag):
|
def onRspSOPLockOUnLockStock(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPWithdrawOrder(self, data, error):
|
def onRspSOPWithdrawOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryEntrustOrder(self, data, error, flag):
|
def onRspSOPQryEntrustOrder(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQrySerialTrade(self, data, error, flag):
|
def onRspSOPQrySerialTrade(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryPosition(self, data, error, flag):
|
def onRspSOPQryPosition(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryCollateralPosition(self, data, error, flag):
|
def onRspSOPQryCollateralPosition(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryCapitalAccountInfo(self, data, error):
|
def onRspSOPQryCapitalAccountInfo(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryAccountInfo(self, data, error):
|
def onRspSOPQryAccountInfo(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryShareholderInfo(self, data, error):
|
def onRspSOPQryShareholderInfo(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPCalcAbleEntrustQty(self, data, error):
|
def onRspSOPCalcAbleEntrustQty(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryAbleLockStock(self, data, error, flag):
|
def onRspSOPQryAbleLockStock(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryContactInfo(self, data, error, flag):
|
def onRspSOPQryContactInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPExectueOrder(self, data, error):
|
def onRspSOPExectueOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryExecAssiInfo(self, data, error, flag):
|
def onRspSOPQryExecAssiInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryTradeTime(self, data, error, flag):
|
def onRspSOPQryTradeTime(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryExchangeInfo(self, data, error, flag):
|
def onRspSOPQryExchangeInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryCommission(self, data, error, flag):
|
def onRspSOPQryCommission(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryDeposit(self, data, error, flag):
|
def onRspSOPQryDeposit(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspSOPQryContractObjectInfo(self, data, error, flag):
|
def onRspSOPQryContractObjectInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onSOPEntrustOrderRtn(self, data):
|
def onSOPEntrustOrderRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onSOPTradeRtn(self, data):
|
def onSOPTradeRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onSOPWithdrawOrderRtn(self, data):
|
def onSOPWithdrawOrderRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLUserLogin(self, data, error):
|
def onRspFASLUserLogin(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLUserLogout(self, data, error):
|
def onRspFASLUserLogout(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryAbleFinInfo(self, data, error):
|
def onRspFASLQryAbleFinInfo(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryAbleSloInfo(self, data, error, flag):
|
def onRspFASLQryAbleSloInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLTransferCollateral(self, data, error):
|
def onRspFASLTransferCollateral(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLDirectRepayment(self, data, error):
|
def onRspFASLDirectRepayment(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLRepayStockTransfer(self, data, error):
|
def onRspFASLRepayStockTransfer(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLEntrustCrdtOrder(self, data, error):
|
def onRspFASLEntrustCrdtOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLEntrustOrder(self, data, error):
|
def onRspFASLEntrustOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLCalcAbleEntrustCrdtQty(self, data, error):
|
def onRspFASLCalcAbleEntrustCrdtQty(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryCrdtFunds(self, data, error):
|
def onRspFASLQryCrdtFunds(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryCrdtContract(self, data, error, flag):
|
def onRspFASLQryCrdtContract(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryCrdtConChangeInfo(self, data, error, flag):
|
def onRspFASLQryCrdtConChangeInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLTransferFunds(self, data, error):
|
def onRspFASLTransferFunds(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryAccountInfo(self, data, error):
|
def onRspFASLQryAccountInfo(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryCapitalAccountInfo(self, data, error, flag):
|
def onRspFASLQryCapitalAccountInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryShareholderInfo(self, data, error, flag):
|
def onRspFASLQryShareholderInfo(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryPosition(self, data, error, flag):
|
def onRspFASLQryPosition(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryEntrustOrder(self, data, error, flag):
|
def onRspFASLQryEntrustOrder(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQrySerialTrade(self, data, error, flag):
|
def onRspFASLQrySerialTrade(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryRealTimeTrade(self, data, error, flag):
|
def onRspFASLQryRealTimeTrade(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryFreezeFundsDetail(self, data, error, flag):
|
def onRspFASLQryFreezeFundsDetail(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryFreezeStockDetail(self, data, error, flag):
|
def onRspFASLQryFreezeStockDetail(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryTransferFundsDetail(self, data, error, flag):
|
def onRspFASLQryTransferFundsDetail(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLWithdrawOrder(self, data, error):
|
def onRspFASLWithdrawOrder(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQrySystemTime(self, data, error):
|
def onRspFASLQrySystemTime(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryTransferredContract(self, data, error, flag):
|
def onRspFASLQryTransferredContract(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLDesirableFundsOut(self, data, error):
|
def onRspFASLDesirableFundsOut(self, data, error):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryGuaranteedContract(self, data, error, flag):
|
def onRspFASLQryGuaranteedContract(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onRspFASLQryUnderlyingContract(self, data, error, flag):
|
def onRspFASLQryUnderlyingContract(self, data, error, flag):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onFASLEntrustOrderRtn(self, data):
|
def onFASLEntrustOrderRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onFASLTradeRtn(self, data):
|
def onFASLTradeRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def onFASLWithdrawOrderRtn(self, data):
|
def onFASLWithdrawOrderRtn(self, data):
|
||||||
""""""
|
""""""
|
||||||
print sys._getframe().f_code.co_name
|
print(sys._getframe().f_code.co_name)
|
||||||
print locals()
|
print(locals())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -596,4 +598,4 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
api.reqSOPUserLogin(req)
|
api.reqSOPUserLogin(req)
|
||||||
|
|
||||||
raw_input()
|
input()
|
||||||
|
Loading…
Reference in New Issue
Block a user