Method and apparatus for analyzing a financial transaction system program
By dynamically analyzing and weighting financial transaction system programs, a dynamic knowledge graph is constructed, which solves the problem of not being able to understand the importance of programs in real time in existing technologies, and realizes dynamic real-time management and risk control of the system.
Patent Information
- Application Number
- CN202310890975.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-19
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-07-19
AI Technical Summary
Existing technologies cannot provide real-time, dynamic insights into the importance of a program in a real-world production system, leading to inconveniences in R&D management and risk control.
By analyzing the running financial trading system program, dynamically calculating the program weight in real time, constructing a dynamic knowledge graph of the program, and generating a weight graph, a basis is provided for the research and development and risk management of the financial trading system.
It enables dynamic real-time analysis of financial transaction system programs, provides effective R&D and risk management tools, and improves the system's management and quality control capabilities.
Smart Images

Figure CN116893950B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data and can be used in the financial field, specifically a method and apparatus for analyzing financial transaction system programs. Background Technology
[0002] Currently, in the financial system, most existing technologies for analyzing programs in financial trading systems are based on static code scanning. However, static code scanning analysis lacks dynamic real-time self-learning capabilities and cannot dynamically grasp the execution status of specific trading programs in actual production systems. Consequently, it is difficult to understand the importance of each specific trading program in the overall trading system, causing numerous inconveniences for the research and development management, quality control, and risk management of financial systems. Summary of the Invention
[0003] To address the problems in the prior art, this application provides a method and apparatus for analyzing financial trading system programs. This method can dynamically and in real-time calculate program weights during program execution, thereby dynamically and in real-time generating a weight map of the program in the financial trading system, providing an effective basis for the research and development, quality control, and risk management of financial trading systems.
[0004] To solve the above-mentioned technical problems, this application provides the following technical solution:
[0005] Firstly, this application provides a method for analyzing financial transaction system programs, including:
[0006] Analyze the running financial trading system program to obtain the corresponding program execution trajectory;
[0007] The weights of program methods and program classes included in the program execution trajectory are determined according to the preset transaction scenario weights; wherein, the program method corresponds to the program method weight; and the program class corresponds to the program class weight.
[0008] A dynamic knowledge graph of the program is constructed based on the program's execution trajectory, the program's method weights, and the program's class weights, so as to realize retrieval using the dynamic knowledge graph of the program.
[0009] Furthermore, the analysis of the financial trading system program in its running state to obtain the corresponding program execution trajectory includes:
[0010] Static analysis is performed on the financial transaction system program to obtain the corresponding program execution entry point and program identifier; the program identifier includes the program method and the program class.
[0011] The financial trading system program is started from the program execution entry point to obtain the program execution trajectory corresponding to the running state; wherein, the program execution trajectory includes the program method and the program class.
[0012] Furthermore, determining the weights of program methods and program classes included in the program execution trajectory based on preset transaction scenario weights includes:
[0013] The corresponding transaction scenario and number of transaction executions are determined based on the keywords in the program method.
[0014] The weight of the program method is determined based on the transaction scenario weight corresponding to the transaction scenario and the number of times the transaction is executed.
[0015] Furthermore, determining the weights of program methods and program classes included in the program execution trajectory based on preset transaction scenario weights includes:
[0016] Determine the program methods included in each program class in the program execution trajectory;
[0017] The weight of the program class is determined based on the weight of the program method corresponding to each program method.
[0018] Furthermore, the step of constructing a dynamic knowledge graph of the program based on the program execution trajectory, the program method weights, and the program class weights, and then using the dynamic knowledge graph to achieve retrieval, includes:
[0019] The program classes are sorted according to their respective weights to obtain the first sorting result.
[0020] Within each program class, the program methods are sorted according to their weights to obtain a second sorting result.
[0021] The program's dynamic knowledge graph is generated based on the program's execution trajectory, the first sorting result, and the second sorting result.
[0022] Furthermore, the analysis method for the aforementioned financial transaction system program also includes:
[0023] The program maintenance parameters corresponding to the financial trading system program are retrieved using the program dynamic knowledge graph to perform financial trading system program maintenance.
[0024] Secondly, this application provides an analysis device for a financial transaction system program, comprising:
[0025] The trajectory determination unit is used to analyze the financial trading system program in its running state and obtain the corresponding program trajectory.
[0026] The weight determination unit is used to determine the weights of program methods and program classes included in the program execution trajectory according to preset transaction scenario weights; wherein, the program method corresponds to the program method weight; and the program class corresponds to the program class weight.
[0027] The knowledge graph construction unit is used to construct a dynamic knowledge graph of the program based on the program execution trajectory, the program method weights, and the program class weights, so as to realize retrieval using the dynamic knowledge graph of the program.
[0028] Furthermore, the trajectory determination unit includes:
[0029] The entry point identifier determination module is used to perform static analysis on the financial transaction system program to obtain the corresponding program execution entry point and program identifier; the program identifier includes the program method and the program class.
[0030] The execution trajectory determination module is used to start the financial trading system program from the program execution entry point and obtain the program execution trajectory corresponding to the execution state; wherein, the program execution trajectory includes the program method and the program class.
[0031] Further, the weight determination unit includes:
[0032] The scenario execution frequency determination module is used to determine the corresponding transaction scenario and the number of transaction executions based on the keywords in the program method.
[0033] The program method weight determination module is used to determine the program method weight based on the transaction scenario weight corresponding to the transaction scenario and the number of transaction executions.
[0034] Further, the weight determination unit includes:
[0035] The program method determination module is used to determine the program methods included in each program class in the program execution trajectory;
[0036] The program class weight determination module is used to determine the program class weight based on the program method weights corresponding to each program method.
[0037] Furthermore, the knowledge graph construction unit includes:
[0038] The first sorting module is used to sort each program class according to the program class weight to obtain a first sorting result;
[0039] The second sorting module is used to sort the program methods in each program class according to the weight of the program method, and obtain the second sorting result.
[0040] The knowledge graph construction module is used to generate the program's dynamic knowledge graph based on the program's running trajectory, the first sorting result, and the second sorting result.
[0041] Furthermore, the analysis device for the financial transaction system program further includes:
[0042] The maintenance parameter retrieval unit is used to retrieve the program maintenance parameters corresponding to the financial trading system program using the program dynamic knowledge graph, so as to perform financial trading system program maintenance.
[0043] Thirdly, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the analysis method of the financial transaction system program.
[0044] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the analysis method of the financial transaction system program.
[0045] Fifthly, this application provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the analysis method of the financial trading system program.
[0046] To address the problems in existing technologies, the financial trading system program analysis method and apparatus provided in this application can analyze the financial trading system program in its running state to obtain the corresponding program running trajectory; determine the weights of program methods and program classes included in the program running trajectory according to preset trading scenario weights; and construct a dynamic knowledge graph of the program based on the program running trajectory, program method weights, and program class weights. That is, during the program's operation, the program weights are dynamically calculated in real time, thereby dynamically generating a weight graph of the program in the financial trading system in real time, providing an effective basis for the research and development, quality, and risk control of the financial trading system. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This is a flowchart of the analysis method for the financial transaction system program in the embodiments of this application;
[0049] Figure 2This is a flowchart illustrating the program execution trajectory obtained in this application embodiment;
[0050] Figure 3 This is a flowchart illustrating the determination of program method weights in the embodiments of this application;
[0051] Figure 4 This is a flowchart illustrating the determination of program class weights in this application embodiment;
[0052] Figure 5 This is a flowchart illustrating the construction of a dynamic knowledge graph in an embodiment of this application;
[0053] Figure 6 This is a structural diagram of the analysis device for the financial transaction system program in the embodiments of this application;
[0054] Figure 7 This is a structural diagram of the analysis device for the financial transaction system program in the embodiments of this application;
[0055] Figure 8 This is a structural diagram of the analysis device for the financial transaction system program in the embodiments of this application;
[0056] Figure 9 This is a structural diagram of the analysis device for the financial transaction system program in the embodiments of this application;
[0057] Figure 10 This is a structural diagram of the analysis device for the financial transaction system program in the embodiments of this application;
[0058] Figure 11 This is a schematic diagram of the structure of the electronic device in the embodiments of this application. Detailed Implementation
[0059] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0060] It should be noted that the analysis method and apparatus for the financial trading system program provided in this application can be used in the financial field, or in any field other than the financial field. The application field of the analysis method and apparatus for the financial trading system program provided in this application is not limited.
[0061] The acquisition, storage, use, and processing of data in this application comply with relevant laws and regulations.
[0062] In one embodiment, see Figure 1In order to dynamically calculate program weights in real time during program execution, and thus dynamically generate a weight map of the program in the financial trading system, providing an effective basis for the research and development, quality and risk control of the financial trading system, this application provides a method for analyzing financial trading system programs, including:
[0063] S101: Analyze the financial trading system program in operation to obtain the corresponding program execution trajectory;
[0064] S102: Determine the weights of the program methods and program classes included in the program execution trajectory according to the preset transaction scenario weights; wherein, the program method corresponds to the program method weight; the program class corresponds to the program class weight;
[0065] S103: Construct a dynamic knowledge graph of the program based on the program execution trajectory, the program method weights, and the program class weights, so as to realize retrieval using the dynamic knowledge graph of the program.
[0066] It is understood that the embodiments of this application can be used, but are not limited to, for the analysis and maintenance of financial transaction system programs in the financial field. The method provided in this application can be used to construct a knowledge graph of each program segment in a software system, and the construction process is dynamic, real-time, and self-learning. Using the method provided in this application, a knowledge graph related to the dynamic execution process of the program can be automatically generated based on the program's dynamic execution process, thereby effectively analyzing and maintaining the software system. The method provided in this application mainly includes the following processes: static code analysis, transaction scenario weight setting, transaction trace tracking and collection, transaction trace analysis, dynamic calculation of program weights, and knowledge graph construction.
[0067] Specifically, first, the financial trading system program within the financial trading system is run. Then, the running financial trading system program is analyzed to obtain the corresponding program execution trajectory; this analysis includes static code analysis. Next, the weights of the program methods and program classes included in the program execution trajectory are determined according to preset trading scenario weights. In this step, each program execution trajectory generally includes several program methods and program classes; among them, program methods have program method weights, and program classes have program class weights. Finally, after determining the program method weights and program class weights, a dynamic knowledge graph of the program can be constructed based on the program execution trajectory, program method weights, and program class weights.
[0068] In addition, to better illustrate the various embodiments of this application, the following terms will be explained first.
[0069] (1) Marking: In the program code, mark the class, the method in the class, the transaction entry, etc.
[0070] (2) Class: It is the foundation for information encapsulation in object-oriented programming. It contains data and functions (methods) that operate on the data.
[0071] (3) Method: A function in a class that operates on data.
[0072] (4) Data lake: A large data warehouse that stores raw data.
[0073] (5) MapReduce: is a parallel computing model and method for large-scale data processing.
[0074] As described above, the analysis method and apparatus for financial trading system programs provided in this application can analyze financial trading system programs in operation to obtain the corresponding program running trajectory; determine the weights of program methods and program classes included in the program running trajectory according to preset trading scenario weights; and construct a dynamic knowledge graph of the program based on the program running trajectory, program method weights, and program class weights. That is, during the program operation, the program weights are dynamically calculated in real time, thereby dynamically generating a weight graph of the program in the financial trading system in real time, providing an effective basis for the research and development, quality, and risk control of financial trading systems.
[0075] The following provides a detailed explanation of steps S101 to S103.
[0076] Step S101: Analyze the financial trading system program in operation to obtain the corresponding program execution trajectory.
[0077] Figure 2 This is a specific embodiment of the analysis method for financial transaction system programs implemented in this application.
[0078] In one embodiment, see Figure 2 The analysis of the financial trading system program in its running state to obtain the corresponding program execution trajectory includes:
[0079] S201: Perform static analysis on the financial transaction system program to obtain the corresponding program execution entry point and program identifier; the program identifier includes the program method and the program class.
[0080] S202: Start the financial trading system program from the program execution entry point and obtain the program execution trajectory corresponding to the running state; wherein, the program execution trajectory includes the program method and the program class.
[0081] Understandably, by dynamically analyzing financial transaction system programs, classes, methods, and their associated transactions can be identified within the code. This identification process can be accomplished using appropriate code scanning tools, which can extract this information by scanning the code project.
[0082] For example, class identifiers are: C1, C2, C3...Ci
[0083] The methods are identified as: M11, M12, M13...M1i, M21, M22, M23...M2j...Mij
[0084] Where Mij identifies the j-th method in class Ci;
[0085] Transaction identifiers are: T1, T2, T3...Tj
[0086] For example, for class C1:
[0087] Class C1{ / / C1 is the class name, which is the class identifier mentioned above.
[0088] void functionM11(); / / functionM11 is the method name in class C1, that is, the method identifier.
[0089] void functionM12(); / / functionM12 is the method name in class C1, that is, the method identifier.
[0090] void functionM13(); / / functionM13 is the method name in class C1, that is, the method identifier.
[0091] }
[0092] For class C2:
[0093] Class C2{ / / C2 is the class name, which is the class identifier mentioned above.
[0094] void functionM21(); / / functionM21 is the method name in class C2, that is, the method identifier.
[0095] void functionM22(); / / functionM22 is the method name in class C2, that is, the method identifier.
[0096] void functionM23(); / / functionM23 is the method name in class C2, that is, the method identifier.
[0097] }
[0098] "Transfer and remittance" transactions are identified using T1, while "account inquiry" transactions are identified using T2.
[0099] Through the above static analysis, since we already know the program methods and program classes, we can naturally obtain the corresponding program execution entry point.
[0100] Next, it is necessary to track and collect transaction data.
[0101] When financial transactions are conducted in the financial transaction system, the bank's back-end system can collect the code path of the financial transaction in real time and store it in the data lake for subsequent real-time calculation and analysis. The code path of the transaction is in the following format:
[0102] Ti:Mk1s1->Mk2s2->Mk3s3......->Mknsn
[0103] Ti represents the i-th transaction, and Mk1s1 identifies the s1-th method of the k1-th class. Both k1 and s1 are variables.
[0104] For example, after completing the "transfer and remittance" transaction T1, the methods M12 of class C1, M22 and M23 of class C2, and M34 of class C3 are executed sequentially. Therefore, the trajectory of T1 is:
[0105] T1: M12->M22->M23->M34
[0106] After completing the "Account Inquiry" transaction T2, methods M12 of class C1, M21 and M24 of class C2, and M31 and M34 of class C3 are executed sequentially. Therefore, the trajectory of T2 is as follows:
[0107] T2: M12->M21->M31->M34
[0108] As can be seen from the above description, the analysis method and apparatus for financial trading system programs provided in this application can analyze financial trading system programs in operation and obtain the corresponding program running trajectory.
[0109] In one embodiment, see Figure 3 The step of determining the weights of program methods and program classes included in the program execution trajectory according to preset transaction scenario weights includes:
[0110] S301: Determine the corresponding transaction scenario and number of transaction executions based on the keywords in the program method;
[0111] S302: Determine the weight of the program method based on the transaction scenario weight corresponding to the transaction scenario and the number of transaction executions.
[0112] Understandably, in order to determine the weights of program methods and program classes included in the program's execution trajectory, it is first necessary to set the weights of the transaction scenarios.
[0113] For example, for a system transaction Ti, the transaction scenario weight can be set as Qi:
[0114] T1:Q1
[0115] T2:Q2 ...
[0117] Ti:Qi
[0118] The MapReduce algorithm can be used to process and analyze the program execution trajectory in a data lake. The goal is to generate transaction scenarios corresponding to specific methods (Methods) within the program, and then calculate the weights of the specific methods and classes based on the weights of these transaction scenarios. The processing and analysis method for transaction traces is as follows: using the MapReduce algorithm, based on the relationship between transactions and program methods, the transaction corresponding to each method and the number of transactions are calculated in their respective directions.
[0119] For example, if transaction T1 is executed S times, the corresponding transaction trajectory is as follows:
[0120] T1: M12->M22->M23->M34
[0121] The method sequence of T1 yields the following correspondence between methods and transactions (the numbers in parentheses below represent the number of transactions):
[0122] M12: T1(S)
[0123] M22: T1(S)
[0124] M23: T1(S)
[0125] M34: T1(S)
[0126] Transaction T1 was executed P times, and the corresponding transaction trajectory is as follows:
[0127] T2: M12->M21->M31->M34
[0128] By using the method sequence of T2, the following correspondence between methods and transactions can be obtained:
[0129] M12:T2(P)
[0130] M21:T2(P)
[0131] M31: T2(P)
[0132] M34: T2(P)
[0133] Summarizing the above correspondences, we can obtain:
[0134] M12: T1(S), T2(P)
[0135] M21:T2(P)
[0136] M22: T1(S)
[0137] M23: T1(S)
[0138] M31: T2(P)
[0139] M34: T1(S), T2(P)
[0140] Based on the above identifiers, the weight of method Mij can be calculated. Specifically, the mapping between method Mij and transactions in the program is obtained through the MapReduce algorithm, which can be represented as:
[0141] Mij=Tk1(S1), Tk2(S2), Tk3(S3)...Tkn(Sn)
[0142] The weights of method Mij are the weighted average of the corresponding transaction weights, calculated using the following formula:
[0143]
[0144] Here, Q(Tkz) represents the weight of the kz-th transaction, where kz is a variable, and z increases from 1 to n, such as k1, k2, ..., kn. These are all variables. For example, if the value of k1 is 5, then Q(Tk1) is the weight of transaction T5. Sz represents the number of times transaction Tkz is executed.
[0145] As can be seen from the above description, the analysis method for the financial transaction system program provided in this application can determine the weights of the program methods and program classes included in the program's running trajectory according to the preset transaction scenario weights.
[0146] In one embodiment, see Figure 4 The step of determining the weights of program methods and program classes included in the program execution trajectory according to preset transaction scenario weights includes:
[0147] S401: Determine the program methods included in each program class in the program execution trajectory;
[0148] S402: Determine the weight of the program class based on the weight of the program method corresponding to each program method.
[0149] It is understandable that the weights of the program methods have already been calculated in the aforementioned steps, and based on this, the weights of the program classes can be further calculated.
[0150] Specifically, the weight calculation method for program class C is as follows:
[0151] The class weight is calculated by taking a weighted average of the method weights of all methods in that class. If class Ci contains methods Mi1, Mi2, ..., Mij, then its weight is:
[0152] Where Ci represents the i-th class;
[0153] Mij represents the j-th method of the i-th class;
[0154] Q(Mik) represents the weight of transaction Mik (the k-th method of the i-th class);
[0155] Q(Ci) represents the weight of class Ci.
[0156] As can be seen from the above description, the analysis method and apparatus for the financial transaction system program provided in this application can determine the weights of the program methods and program classes included in the program running trajectory according to the preset transaction scenario weights.
[0157] In one embodiment, see Figure 5 The step of constructing a dynamic knowledge graph of a program based on the program's execution trajectory, the program's method weights, and the program's class weights, and then using the dynamic knowledge graph to perform retrieval, includes:
[0158] S501: Sort each program class according to the program class weight to obtain the first sorting result;
[0159] S502: In each program class, sort the program methods according to the program method weights to obtain a second sorting result;
[0160] S503: Generate the program dynamic knowledge graph based on the program execution trajectory, the first sorting result, and the second sorting result.
[0161] Understandably, in this example, there are two classes, C1 and C2. Class C1 contains three methods: M11, M12, and M13, while class C2 contains four methods: M21, M22, M23, and M24.
[0162] The program dynamic knowledge graph has three types of graphs: a topological relationship graph of classes, methods, and transactions; a class graph; and a method graph.
[0163] In the topological relationship graph of classes, methods, and transactions, all classes in the system, the methods contained under each class, and the transactions corresponding to each method are displayed through the graph.
[0164] In the class graph, all classes are sorted from high to low according to their weights. The average weight of all classes is calculated. Classes with weights higher than the average weight are marked in red in the graph, indicating high-weight class areas, while classes with weights lower than the average weight are marked in green in the graph, indicating low-weight class areas.
[0165] In the method spectrum, all methods are sorted from high to low according to their weights. The average weight of all methods is calculated. Methods with a weight higher than the average weight are marked in red in the spectrum, indicating the high-weight method area, while methods with a weight lower than the average weight are marked in green in the spectrum, indicating the low-weight method area.
[0166] It should be noted that, since the execution process of a program is dynamic, the calling relationships between the classes and methods mentioned above can also change dynamically, thus forming a dynamic knowledge graph of the program.
[0167] In one embodiment, the method for analyzing the financial trading system program further includes: using the program dynamic knowledge graph to retrieve the program maintenance parameters corresponding to the financial trading system program, so as to perform financial trading system program maintenance.
[0168] Understandably, when system modifications or changes occur, the first step is to use static code analysis tools to identify the changed classes and methods, and then locate the regions of these classes and methods in the graph. If the corresponding classes and methods are in high-weight regions, it can be considered that core system components have been modified, and the number of corresponding test cases and the number of transactions covered must reach a certain standard.
[0169] Based on the same inventive concept, this application also provides an analysis device for a financial trading system program, which can be used to implement the methods described in the above embodiments, as described in the following embodiments. Since the principle of the analysis device for a financial trading system program is similar to that of the analysis method for a financial trading system program, the implementation of the analysis device for a financial trading system program can refer to the implementation of the method based on software performance benchmarks, and will not be repeated. As used below, the terms "unit" or "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0170] In one embodiment, see Figure 6In order to dynamically calculate program weights in real time during program execution, and then dynamically generate a weight graph of the program in the financial trading system, so as to provide an effective basis for the research and development, quality and risk control of the financial trading system, this application provides an analysis device for a financial trading system program, including: a running trajectory determination unit 601, a weight determination unit 602 and a knowledge graph construction unit 603.
[0171] The trajectory determination unit 601 is used to analyze the financial trading system program in the running state and obtain the corresponding program trajectory.
[0172] The weight determination unit 602 is used to determine the weights of the program methods and program classes included in the program execution trajectory according to the preset transaction scenario weights; wherein, the program method corresponds to the program method weight; and the program class corresponds to the program class weight.
[0173] The knowledge graph construction unit 603 is used to construct a dynamic knowledge graph of the program based on the program running trajectory, the program method weights and the program class weights, so as to realize retrieval using the dynamic knowledge graph of the program.
[0174] In one embodiment, see Figure 7 The trajectory determination unit 601 includes an entrance identifier determination module 701 and a trajectory determination module 702.
[0175] The entry point identifier determination module 701 is used to perform static analysis on the financial transaction system program to obtain the corresponding program execution entry point and program identifier; the program identifier includes the program method and the program class.
[0176] The running trajectory determination module 702 is used to start the financial trading system program from the program execution entry point and obtain the program running trajectory corresponding to the running state; wherein, the program running trajectory includes the program method and the program class.
[0177] In one embodiment, see Figure 8 The weight determination unit 602 includes: a scene number determination module 801 and a program method weight determination module 802.
[0178] The scenario execution frequency determination module 801 is used to determine the corresponding transaction scenario and transaction execution frequency based on the keywords in the program method;
[0179] The program method weight determination module 802 is used to determine the program method weight based on the transaction scenario weight corresponding to the transaction scenario and the number of transaction executions.
[0180] In one embodiment, see Figure 9The weight determination unit 602 includes: a program method determination module 901 and a program class weight determination module 902.
[0181] The program method determination module 901 is used to determine each program method included in each program class in the program execution trajectory;
[0182] The program class weight determination module 902 is used to determine the program class weight based on the program method weight corresponding to each program method.
[0183] In one embodiment, see Figure 10 The knowledge graph construction unit 603 includes: a first sorting module 1001, a second sorting module 1002, and a knowledge graph construction module 1003.
[0184] The first sorting module 1001 is used to sort each program class according to the program class weight to obtain a first sorting result;
[0185] The second sorting module 1002 is used to sort each program method in each program class according to the weight of the program method, and obtain a second sorting result;
[0186] The knowledge graph construction module 1003 is used to generate the program dynamic knowledge graph based on the program running trajectory, the first sorting result, and the second sorting result.
[0187] In one embodiment, the analysis device for the financial transaction system program further includes:
[0188] The maintenance parameter retrieval unit is used to retrieve the program maintenance parameters corresponding to the financial trading system program using the program dynamic knowledge graph, so as to perform financial trading system program maintenance.
[0189] From a hardware perspective, in order to dynamically and in real-time calculate program weights during program execution, and thereby dynamically and in real-time generate a weight map of the program in the financial trading system, providing an effective basis for the research and development, quality, and risk management of the financial trading system, this application provides an embodiment of an electronic device for implementing all or part of the analysis method for the financial trading system program. The electronic device specifically includes the following components:
[0190] The system comprises a processor, a memory, a communications interface, and a bus; wherein the processor, memory, and communications interface communicate with each other via the bus; the communications interface is used to realize information transmission between the analysis device of the financial trading system program and related devices such as the core trading system, user terminals, and related databases; the logic controller can be a desktop computer, tablet computer, or mobile terminal, etc., and this embodiment is not limited to these. In this embodiment, the logic controller can be implemented with reference to the embodiments of the analysis method and the analysis device of the financial trading system program in the embodiments, the contents of which are incorporated herein, and repeated details will not be described again.
[0191] It is understood that the user terminal may include smartphones, tablet computers, network set-top boxes, portable computers, desktop computers, personal digital assistants (PDAs), in-vehicle devices, smart wearable devices, etc. Among these, the smart wearable devices may include smart glasses, smartwatches, smart bracelets, etc.
[0192] In practical applications, the analysis methods of a financial trading system program can be executed on the electronic device side as described above, or all operations can be completed on the client device. The choice can be made based on the processing power of the client device and the limitations of the user's usage scenario. This application does not impose any limitations on this. If all operations are completed on the client device, the client device may further include a processor.
[0193] The aforementioned client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission. The server may include a server on the task scheduling center side; in other implementation scenarios, it may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, a server cluster consisting of multiple servers, or a distributed server structure.
[0194] Figure 11 This is a schematic block diagram illustrating the system configuration of the electronic device 9600 according to an embodiment of this application. Figure 11 As shown, the electronic device 9600 may include a central processing unit 9100 and a memory 9140; the memory 9140 is coupled to the central processing unit 9100. It is worth noting that... Figure 11 This is an example; other types of structures can also be used to supplement or replace this structure to achieve telecommunications functions or other functions.
[0195] In one embodiment, the analysis method function of the financial trading system program can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following control:
[0196] S101: Analyze the financial trading system program in operation to obtain the corresponding program execution trajectory;
[0197] S102: Determine the weights of the program methods and program classes included in the program execution trajectory according to the preset transaction scenario weights; wherein, the program method corresponds to the program method weight; the program class corresponds to the program class weight;
[0198] S103: Construct a dynamic knowledge graph of the program based on the program execution trajectory, the program method weights, and the program class weights, so as to realize retrieval using the dynamic knowledge graph of the program.
[0199] As described above, the analysis method and apparatus for financial trading system programs provided in this application can analyze financial trading system programs in operation to obtain the corresponding program running trajectory; determine the weights of program methods and program classes included in the program running trajectory according to preset trading scenario weights; and construct a dynamic knowledge graph of the program based on the program running trajectory, program method weights, and program class weights. That is, during the program operation, the program weights are dynamically calculated in real time, thereby dynamically generating a weight graph of the program in the financial trading system in real time, providing an effective basis for the research and development, quality, and risk control of financial trading systems.
[0200] In another embodiment, the analysis device of the financial trading system program can be configured separately from the central processing unit 9100. For example, the analysis device of the financial trading system program can be configured as a chip connected to the central processing unit 9100, and the function of the analysis method of the financial trading system program can be realized through the control of the central processing unit.
[0201] like Figure 11 As shown, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily need to include these components. Figure 11 All components shown; in addition, the electronic device 9600 may also include Figure 11 For components not shown, please refer to existing technologies.
[0202] like Figure 11As shown, the central processing unit 9100, sometimes also referred to as a controller or operating control, may include a microprocessor or other processor device and / or logic device, which receives inputs and controls the operation of various components of the electronic device 9600.
[0203] The memory 9140 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It may store the aforementioned failure-related information, and also store a program for executing that information. The central processing unit 9100 may execute the program stored in the memory 9140 to perform information storage or processing, etc.
[0204] Input unit 9120 provides input to central processing unit 9100. Input unit 9120 may be, for example, a keypad or touch input device. Power supply 9170 provides power to electronic device 9600. Display 9160 displays images and text. Display may be, for example, an LCD display, but is not limited thereto.
[0205] The memory 9140 can be a solid-state memory, such as a read-only memory (ROM), random access memory (RAM), a SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROMs. The memory 9140 can also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142 for storing application programs and function programs or processes for executing the operation of the electronic device 9600 via the central processing unit 9100.
[0206] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for the electronic device's communication functions and / or for performing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0207] The communication module 9110 is a transmitter / receiver 9110 that transmits and receives signals via the antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processing unit 9100 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.
[0208] Based on different communication technologies, multiple communication modules 9110 can be configured in the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby realizing typical telecommunications functions. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor 9130 is also coupled to a central processing unit 9100, enabling on-device recording via the microphone 9132 and on-device playback of stored sound via the speaker 9131.
[0209] Embodiments of this application also provide a computer-readable storage medium capable of implementing all steps of the analysis method for a financial trading system program whose execution subject is a server or client as described in the above embodiments. The computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps of the analysis method for a financial trading system program whose execution subject is a server or client as described in the above embodiments. For example, when the processor executes the computer program, it implements the following steps:
[0210] S101: Analyze the financial trading system program in operation to obtain the corresponding program execution trajectory;
[0211] S102: Determine the weights of the program methods and program classes included in the program execution trajectory according to the preset transaction scenario weights; wherein, the program method corresponds to the program method weight; the program class corresponds to the program class weight;
[0212] S103: Construct a dynamic knowledge graph of the program based on the program execution trajectory, the program method weights, and the program class weights, so as to realize retrieval using the dynamic knowledge graph of the program.
[0213] As described above, the analysis method and apparatus for financial trading system programs provided in this application can analyze financial trading system programs in operation to obtain the corresponding program running trajectory; determine the weights of program methods and program classes included in the program running trajectory according to preset trading scenario weights; and construct a dynamic knowledge graph of the program based on the program running trajectory, program method weights, and program class weights. That is, during the program operation, the program weights are dynamically calculated in real time, thereby dynamically generating a weight graph of the program in the financial trading system in real time, providing an effective basis for the research and development, quality, and risk control of financial trading systems.
[0214] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0215] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0216] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0217] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0218] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.
Claims
1. A method for analyzing financial transaction system programs, characterized in that, include: Analyze the running financial trading system program to obtain the corresponding program execution trajectory; The weights of program methods and program classes included in the program execution trajectory are determined according to the preset transaction scenario weights; wherein, the program method corresponds to the program method weight; and the program class corresponds to the program class weight. A dynamic knowledge graph of the program is constructed based on the program execution trajectory, the program method weights, and the program class weights, so as to realize retrieval using the dynamic knowledge graph of the program; The step of determining the weights of program methods and program classes included in the program execution trajectory according to preset transaction scenario weights includes: The corresponding transaction scenario and number of transaction executions are determined based on the keywords in the program method. The weight of the program method is determined based on the transaction scenario weight corresponding to the transaction scenario and the number of transaction executions. The step of determining the weights of program methods and program classes included in the program execution trajectory according to preset transaction scenario weights includes: Determine the program methods included in each program class in the program execution trajectory; The weight of the program class is determined based on the weight of the program method corresponding to each program method. The step of constructing a dynamic knowledge graph of a program based on the program execution trajectory, the program method weights, and the program class weights, and then using the dynamic knowledge graph to perform retrieval, includes: The program classes are sorted according to their respective weights to obtain the first sorting result. Within each program class, the program methods are sorted according to their weights to obtain a second sorting result. The program's dynamic knowledge graph is generated based on the program's execution trajectory, the first sorting result, and the second sorting result.
2. The analysis method for financial transaction system programs according to claim 1, characterized in that, The analysis of the financial trading system program in its running state to obtain the corresponding program execution trajectory includes: Static analysis is performed on the financial transaction system program to obtain the corresponding program execution entry point and program identifier; the program identifier includes the program method and the program class. The financial trading system program is started from the program execution entry point to obtain the program execution trajectory corresponding to the running state; wherein, the program execution trajectory includes the program method and the program class.
3. The analysis method for financial transaction system programs according to claim 1, characterized in that, Also includes: The program maintenance parameters corresponding to the financial trading system program are retrieved using the program dynamic knowledge graph to perform financial trading system program maintenance.
4. An analysis device for a financial transaction system program, characterized in that, include: The trajectory determination unit is used to analyze the financial trading system program in its running state and obtain the corresponding program trajectory. The weight determination unit is used to determine the weights of program methods and program classes included in the program execution trajectory according to preset transaction scenario weights; wherein, the program method corresponds to the program method weight; and the program class corresponds to the program class weight. The knowledge graph construction unit is used to construct a dynamic knowledge graph of the program based on the program execution trajectory, the program method weights, and the program class weights, so as to realize retrieval using the dynamic knowledge graph of the program; The weight determination unit includes: a scenario number determination module and a program method weight determination module; The scenario frequency determination module is used to determine the corresponding transaction scenario and transaction execution frequency based on the keywords in the program method; The program method weight determination module is used to determine the program method weight based on the transaction scenario weight corresponding to the transaction scenario and the number of transaction executions. The weight determination unit includes: a program method determination module and a program class weight determination module; The program method determination module is used to determine each program method included in each program class in the program execution trajectory; The program class weight determination module is used to determine the program class weight based on the program method weights corresponding to each program method. The knowledge graph construction unit includes: a first sorting module, a second sorting module, and a knowledge graph construction module; The first sorting module is used to sort each program class according to the program class weight to obtain a first sorting result; The second sorting module is used to sort the program methods in each program class according to the program method weights to obtain a second sorting result; The knowledge graph construction module is used to generate the program dynamic knowledge graph based on the program execution trajectory, the first sorting result, and the second sorting result.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the analysis method of the financial transaction system program according to any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the analysis method of the financial transaction system program according to any one of claims 1 to 3.
7. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the steps of the analysis method of the financial transaction system program according to any one of claims 1 to 3.
Citation Information
Patent Citations
Test environment detection method and device
CN114661617A
Method for controlling transaction means
KR1020150101019A
