Merge pull request #899 from cclauss/modernize-vnpy_api_sec

Modernize vnpy/api/sec
This commit is contained in:
vn.py 2018-05-30 09:37:43 +08:00 committed by GitHub
commit 29eb606e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 247 additions and 238 deletions

View File

@ -1,5 +1,6 @@
# encoding: UTF-8
from vnsecmd import MdApi
from vnsectd import TdApi
import sec_data_type as DATA_TYPE
from __future__ import absolute_import
from .vnsecmd import MdApi
from .vnsectd import TdApi
from . import sec_data_type as DATA_TYPE

View File

@ -2,6 +2,7 @@
# C++和Python类型映射
from __future__ import print_function
type_map = {
'int': 'int',
'long': 'long',
@ -97,7 +98,7 @@ def main(cpp_filename, py_filename):
cpp_f.close()
py_f.close()
print u'data_type处理完成'
print(u'data_type处理完成')
if __name__ == '__main__':

View File

@ -1,5 +1,6 @@
# encoding: UTF-8
from __future__ import print_function
from generate_data_type import pre_process
import sec_struct
@ -69,7 +70,7 @@ def process_function(cpp_line):
args_type_list.append(l[0])
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:
create_function(fc_name, args_type_list, args_name_list)
@ -298,4 +299,4 @@ header_process_f.close()
header_on_f.close()
header_function_f.close()
print API_NAME + u'处理完成'
print(API_NAME + u'处理完成')

View File

@ -1,5 +1,6 @@
# encoding: UTF-8
from __future__ import print_function
from generate_data_type import pre_process
import sec_data_type
@ -62,7 +63,7 @@ def main(cpp_filename, py_filename):
cpp_f.close()
py_f.close()
print u'struct处理完成'
print(u'struct处理完成')
if __name__ == '__main__':

View File

@ -1,5 +1,6 @@
# encoding: UTF-8
from __future__ import print_function
from generate_data_type import pre_process
import sec_struct
@ -69,7 +70,7 @@ def process_function(cpp_line):
args_type_list.append(l[0])
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:
create_function(fc_name, args_type_list, args_name_list)
@ -298,4 +299,4 @@ header_process_f.close()
header_on_f.close()
header_function_f.close()
print API_NAME + u'处理完成'
print(API_NAME + u'处理完成')

View File

@ -1,7 +1,9 @@
# encoding: UTF-8
from __future__ import print_function
import sys
from six.moves import input
from vnsecmd import MdApi
@ -9,7 +11,7 @@ from vnsecmd import MdApi
def print_dict(d):
"""输出字典"""
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):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onFrontDisconnected(self, reason):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRtnNotice(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspError(self, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print dict(error)
print(sys._getframe().f_code.co_name)
print(locals())
print(dict(error))
#----------------------------------------------------------------------
def onRspStockUserLogin(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockUserLogout(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPUserLogin(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
print_dict(data)
print_dict(error)
#----------------------------------------------------------------------
def onRspSOPUserLogout(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLUserLogin(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLUserLogout(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockSubMarketData(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockUnSubMarketData(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPSubMarketData(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPUnSubMarketData(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onStockMarketData(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onSOPMarketData(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockAvailableQuot(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSopAvailableQuot(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspUserMDPasswordUpdate(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
if __name__ == '__main__':
@ -157,5 +159,5 @@ if __name__ == '__main__':
}
api.reqSOPUserLogin(req)
raw_input()
input()

View File

@ -1,7 +1,9 @@
# encoding: UTF-8
from __future__ import print_function
import sys
from six.moves import input
from vnsectd import TdApi
@ -9,7 +11,7 @@ from vnsectd import TdApi
def print_dict(d):
"""输出字典"""
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, ):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onFrontDisconnected(self, reason):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRtnNotice(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspError(self, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockUserLogin(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockUserLogout(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockUserPasswordUpdate(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockEntrustOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockWithdrawOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryEntrustOrder(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryRealTimeTrade(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQrySerialTrade(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryPosition(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryCapitalAccountInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryAccountInfo(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryShareholderInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockTransferFunds(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockEntrustBatchOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockWithdrawBatchOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockCalcAbleEntrustQty(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockCalcAblePurchaseETFQty(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryFreezeFundsDetail(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryFreezeStockDetail(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryTransferStockDetail(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryTransferFundsDetail(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryStockInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryStockStaticInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspStockQryTradeTime(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onStockEntrustOrderRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onStockTradeRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onStockWithdrawOrderRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPUserLogin(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
print_dict(data)
print_dict(error)
#----------------------------------------------------------------------
def onRspSOPUserLogout(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPUserPasswordUpdate(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPEntrustOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPGroupSplit(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryGroupPosition(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPLockOUnLockStock(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPWithdrawOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryEntrustOrder(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQrySerialTrade(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryPosition(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryCollateralPosition(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryCapitalAccountInfo(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryAccountInfo(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryShareholderInfo(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPCalcAbleEntrustQty(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryAbleLockStock(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryContactInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPExectueOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryExecAssiInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryTradeTime(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryExchangeInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryCommission(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryDeposit(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspSOPQryContractObjectInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onSOPEntrustOrderRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onSOPTradeRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onSOPWithdrawOrderRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLUserLogin(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLUserLogout(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryAbleFinInfo(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryAbleSloInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLTransferCollateral(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLDirectRepayment(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLRepayStockTransfer(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLEntrustCrdtOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLEntrustOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLCalcAbleEntrustCrdtQty(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryCrdtFunds(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryCrdtContract(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryCrdtConChangeInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLTransferFunds(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryAccountInfo(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryCapitalAccountInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryShareholderInfo(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryPosition(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryEntrustOrder(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQrySerialTrade(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryRealTimeTrade(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryFreezeFundsDetail(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryFreezeStockDetail(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryTransferFundsDetail(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLWithdrawOrder(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQrySystemTime(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryTransferredContract(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLDesirableFundsOut(self, data, error):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryGuaranteedContract(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onRspFASLQryUnderlyingContract(self, data, error, flag):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onFASLEntrustOrderRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onFASLTradeRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
#----------------------------------------------------------------------
def onFASLWithdrawOrderRtn(self, data):
""""""
print sys._getframe().f_code.co_name
print locals()
print(sys._getframe().f_code.co_name)
print(locals())
@ -595,5 +597,5 @@ if __name__ == '__main__':
}
api.reqSOPUserLogin(req)
raw_input()
input()