Transaction data detection method, device, computer equipment and storage medium
By introducing a transaction data detection method based on the FPGA hardware system in the trading system, decoding and judging transaction data, the problem of low pre-risk control efficiency of existing transactions is solved, and more efficient risk control and transaction data processing is achieved.
Patent Information
- Application Number
- CN202111446001.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2041-11-30
AI Technical Summary
The existing transaction pre-risk control system is inefficient and affects trading behavior.
Using the transaction data detection method based on the FPGA hardware system, through the receipt of the order report protocol sent by the trading counter, decode and obtain the identifiable transaction information, extract the transaction data that meets the transaction characteristics, and determine whether the pre-configured detection rules are met. If not, a rejection protocol will be generated.
It improves the efficiency of risk control of transaction data, reduces data processing time, and reduces the impact of network instability on transactions.
Smart Images

Figure CN114066317B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of transaction risk control, and in particular to a transaction data detection method, device, computer equipment and storage medium based on an FPGA hardware system. Background Art
[0002] Transaction risk control is to ensure the legality of user transactions, prevent illegal transactions, and avoid illegal risks. In the current market, the risk control of mainstream trading systems is often divided into pre-risk control and post-risk control; the pre-risk control system is often in the software structure of the trading counter, and the risk control operation is performed by the brokerage's trading counter. The software design of the current pre-risk control system is slow due to the instability and high latency of network transmission on the software operating system, that is, the efficiency of pre-transaction risk control is low, which in turn affects trading behavior. Summary of the invention
[0003] The main purpose of this application is to provide a transaction data detection method, device, computer equipment and storage medium based on an FPGA hardware system, aiming to solve the problem that the current low efficiency of pre-transaction risk control affects transaction behavior.
[0004] In order to achieve the above-mentioned invention object, the present application proposes a transaction data detection method based on an FPGA hardware system, comprising:
[0005] Receive order agreements based on transaction information sent by the trading desk;
[0006] Decoding the order agreement based on preconfigured protocol information to obtain identifiable transaction information contained in the order agreement;
[0007] Identifying the identifiable transaction information, and extracting transaction data satisfying transaction characteristics from the identifiable transaction information;
[0008] Obtaining a detection rule corresponding to the order protocol from a preconfigured detection file, and determining whether the transaction data satisfies the detection rule, wherein the detection rule includes a restriction condition on the transaction data;
[0009] If the transaction data meets the detection rules, forward the order agreement to the exchange order system;
[0010] If the transaction data does not satisfy the detection rule, a detection result of the transaction data is obtained, a rejection agreement is generated according to the detection result, and the rejection agreement is forwarded to the transaction counter so that the transaction counter terminates the transaction corresponding to the transaction information.
[0011] Furthermore, decoding the order protocol based on the preconfigured protocol information to obtain identifiable transaction information contained in the order protocol includes:
[0012] The right to obtain the transaction information;
[0013] Determining preconfigured protocol information according to the authority;
[0014] The order protocol is decoded based on preconfigured protocol information to obtain identifiable transaction information contained in the order protocol.
[0015] Further, the identifying the identifiable transaction information and extracting transaction data satisfying transaction characteristics from the identifiable transaction information includes:
[0016] Recognize the identifiable transaction information according to natural language, and extract entity information that matches the identifiable transaction information with preset keywords that meet transaction characteristics;
[0017] Obtaining the content scope of the entity information;
[0018] Identify content information within the content range according to a natural language algorithm, and obtain transaction data corresponding to the entity information.
[0019] Furthermore, the identifying content information within the content range according to the natural language algorithm and acquiring transaction data corresponding to the entity information includes:
[0020] Acquire prior knowledge data of the entity information;
[0021] Configuring the natural language algorithm with the prior knowledge data to obtain a natural language algorithm with prior knowledge;
[0022] The content information within the content range is identified according to the natural language algorithm with prior knowledge, and the transaction data corresponding to the entity information is acquired.
[0023] Furthermore, after receiving the order agreement formed based on the transaction information sent by the transaction counter, the method further includes:
[0024] Verifying the order agreement according to a preset encryption algorithm;
[0025] If the order submission agreement does not conform to the verification rule of the preset encryption algorithm, a rejection agreement is generated, and the rejection agreement is forwarded to the transaction counter, so that the transaction counter terminates the transaction corresponding to the transaction information.
[0026] Further, the acquiring the detection rule corresponding to the order protocol from the preconfigured detection file includes:
[0027] Obtaining the first agreement number of the order agreement;
[0028] Matching a second number of the detection file according to the first protocol number;
[0029] Using the detection file with the second number as a pre-configured detection file;
[0030] The detection rules corresponding to the order protocol are obtained from the preconfigured detection file.
[0031] Furthermore, forwarding the order agreement to the exchange order system includes:
[0032] Determine the target exchange according to the order agreement;
[0033] The order agreement is forwarded to the order system of the target exchange.
[0034] The present application also provides a transaction data detection device based on an FPGA hardware system, comprising:
[0035] The agreement receiving module is used to receive the order agreement formed based on the transaction information sent by the transaction counter;
[0036] An information acquisition module, used to decode the order agreement based on pre-configured protocol information and acquire identifiable transaction information contained in the order agreement;
[0037] A data identification module, used to identify the identifiable transaction information and extract transaction data satisfying transaction characteristics from the identifiable transaction information;
[0038] A data judgment module, used to obtain the detection rules corresponding to the order protocol from a pre-configured detection file, and judge whether the transaction data satisfies the detection rules, wherein the detection rules include restriction conditions on the transaction data;
[0039] A protocol forwarding module, configured to forward the order protocol to the exchange order system if it is determined that the transaction data meets the detection rule;
[0040] The agreement rejection module is used to obtain the detection result of the transaction data if it is determined that the transaction data does not meet the detection rule, generate a rejection agreement according to the detection result, and forward the rejection agreement to the transaction counter so that the transaction counter terminates the transaction corresponding to the transaction information.
[0041] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the above-mentioned transaction data detection methods based on the FPGA hardware system are implemented.
[0042] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the above-mentioned transaction data detection methods based on an FPGA hardware system are implemented.
[0043] The present application example provides a transaction data detection method based on an FPGA hardware system. By connecting the FPGA hardware system to different trading counter systems, risk control is implemented for different types of transactions before the orders are submitted to the exchange. First, an order protocol formed based on transaction information sent by the trading counter is received, and protocol decoding rules for various order protocols are configured in the FPGA hardware system, that is, the FPGA hardware system includes decoding rules for various order protocols required by various exchanges, and the order protocol is decoded based on pre-configured protocol information to obtain identifiable transaction information contained in the order protocol, thereby ensuring that the FPGA hardware system can be connected to the current trading system. There is no need to modify the trading counter. It is only necessary to change the path from the trading counter to the exchange to point to the FPGA hardware system, identify the identifiable transaction information, extract transaction data from the identifiable transaction information, and then obtain the detection rules corresponding to the order protocol from the pre-configured detection file. Different order protocols correspond to different transaction behaviors, and different detection rules are formulated for different transaction behaviors to determine whether the transaction data meets the requirements. If the transaction data meets the detection rules, the order agreement is forwarded to the exchange order system, that is, the original order agreement generated by the trading counter is forwarded to the exchange order system, and the exchange order system performs transaction processing on the order agreement. If the transaction data does not meet the detection rules, the reason why the transaction data does not meet the detection rules is obtained, the detection result of the transaction data is obtained, and a rejection agreement is generated according to the detection result, and the rejection agreement is forwarded to the trading counter, so that the trading counter terminates the transaction corresponding to the transaction information. After the trading counter receives the rejection agreement with the correct detection result, the rejection processing of the transaction behavior can be displayed, thereby improving the efficiency of transaction data risk control. In addition, based on the FPGA hardware system, data processing can be performed while receiving data, saving data processing time. At the same time, compared with software, the FPGA hardware system has fewer network transmission steps at the transaction system level in logic processing, reduces network instability during transmission, reduces the impact of risk control on transactions, and improves transaction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is a flow chart of an embodiment of a transaction data detection method based on an FPGA hardware system of the present application;
[0045] Figure 2This is a schematic diagram of the structure of an embodiment of a transaction data detection device based on an FPGA hardware system of the present application;
[0046] Figure 3 This is a schematic block diagram of the structure of an embodiment of a computer device of the present application.
[0047] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] Reference Figure 1 An embodiment of the present application provides a transaction data detection method based on an FPGA hardware system, including steps S10-S60. The detailed description of each step of the transaction data detection method based on the FPGA hardware system is as follows.
[0050] S10. Receive an order agreement based on transaction information sent by the transaction counter.
[0051] This embodiment is applied to risk control identification and detection scenarios of transaction data in the trading system, especially pre-transaction risk control. When the trading counter generates a transaction behavior, the information generated by the transaction behavior is defined as transaction information. A trader may be involved in different transaction behaviors in the transaction, such as low-frequency manual stock trading, low-frequency quantitative trading, high-frequency quantitative trading, high-frequency derivative trading, margin trading, etc. The trading counter forms an order protocol with the information generated by the transaction behavior and forwards it to the FPGA hardware system. The FPGA hardware system therefore receives the order protocol formed based on the transaction information sent by the trading counter.
[0052] S20. Decode the order protocol based on preconfigured protocol information to obtain identifiable transaction information contained in the order protocol.
[0053] In this embodiment, after receiving the order protocol formed based on the transaction information sent by the trading counter, the FPGA hardware system needs to first decode the transaction protocol in order to identify the risks of the transaction data in the order protocol. The order protocol received by the above-mentioned FPGA hardware system is exactly the same as the order protocol sent directly by the counter to the exchange. Therefore, protocol decoding rules for various order protocols are configured in the FPGA hardware system, that is, the FPGA hardware system includes protocol information for decoding various order protocols required by various exchanges. The order protocols include the Step protocol and the Binary protocol of the Shenzhen Stock Exchange, which ensures that the FPGA hardware system can be perfectly connected to the current trading system. There is no need to modify the trading counter. It is only necessary to change the path from the trading counter to the exchange to point to the FPGA hardware system of this embodiment. The FPGA hardware system decodes the order protocol based on the pre-configured protocol information to obtain the identifiable transaction information contained in the order protocol. The open program of the protocol is limited. When the protocol information is configured, the identifiable information contained in the protocol can be decoded according to the protocol information and defined as identifiable transaction information.
[0054] S30: Identify the identifiable transaction information, and extract transaction data satisfying transaction characteristics from the identifiable transaction information.
[0055] In this embodiment, after obtaining the identifiable transaction information contained in the order agreement, it is necessary to calculate the transaction data therein, that is, to identify the identifiable transaction information and extract the transaction data that meets the transaction characteristics from the identifiable transaction information. In one embodiment, for the identification and extraction of transaction data contained in the transaction information, the transaction information includes different parts and corresponding data, a part of the data does not contain transaction characteristics, such as description and introduction information, and a part of the data contains transaction characteristics, such as transaction amounts, formulas, numbers and other transaction characteristics. By performing recognition training on samples after splicing different parts, the trained natural language model has the ability to identify and classify whether different parts of the transaction information have transaction characteristics, and then extract the corresponding data according to the identified part with transaction characteristics, thereby obtaining the transaction data of this part.
[0056] S40: Obtain detection rules corresponding to the order protocol from a preconfigured detection file, and determine whether the transaction data satisfies the detection rules, wherein the detection rules include restriction conditions on the transaction data.
[0057] In this embodiment, after identifying the identifiable transaction information and extracting the transaction data from the identifiable transaction information, the detection rules corresponding to the order protocol are obtained from the preconfigured detection file. Different order protocols correspond to different transaction behaviors, and different detection rules need to be formulated for different transaction behaviors, that is, the detection rules contain restrictions on the transaction data. For example, in the case of a stock trading transaction, the corresponding detection rule has a restriction condition on the transaction data that the sale of more than 5% of the floating shares requires a placard; after obtaining the detection rule corresponding to the order protocol, it is determined whether the transaction data meets the detection rule, that is, the transaction data is calculated according to the detection rule to determine whether the transaction data meets the restriction condition of the detection rule.
[0058] S50: If the transaction data meets the detection rule, forward the order agreement to the exchange order system.
[0059] S60: If the transaction data does not satisfy the detection rule, obtain the detection result of the transaction data, generate a rejection agreement according to the detection result, and forward the rejection agreement to the transaction counter so that the transaction counter terminates the transaction corresponding to the transaction information.
[0060] In this embodiment, after determining whether the transaction data meets the detection rules, if the transaction data meets the detection rules, the order agreement is forwarded to the exchange order system, that is, the original order agreement generated by the trading counter is forwarded to the exchange order system, and the exchange order system performs transaction processing on the order agreement. If the transaction data does not meet the detection rules, the detection result of the transaction data is obtained, that is, the reason why the transaction data does not meet the detection rules is obtained, such as lack of placard information, exceeding the transaction limit, exceeding the transaction range, etc., and then a rejection agreement is generated according to the detection result, the rejection agreement states the detection result, and the rejection agreement is forwarded to the trading counter so that the trading counter terminates the transaction corresponding to the transaction information. After receiving the rejection agreement with the correct detection result, the trading counter can display the rejection processing of the transaction behavior, thereby improving the efficiency of transaction data risk control.
[0061] The present embodiment provides a transaction data detection method based on an FPGA hardware system. By connecting the FPGA hardware system to different trading counter systems, risk control is implemented for different types of transactions before the orders are submitted to the exchange. First, an order protocol formed based on transaction information sent by the trading counter is received, and protocol decoding rules of various order protocols are configured in the FPGA hardware system, that is, the FPGA hardware system includes decoding rules of various order protocols required by various exchanges, and the order protocol is decoded based on pre-configured protocol information to obtain identifiable transaction information contained in the order protocol, so as to ensure that the FPGA hardware system can be connected to the current trading system. There is no need to modify the trading counter. It is only necessary to change the path from the trading counter to the exchange to point to the FPGA hardware system, identify the identifiable transaction information, extract transaction data from the identifiable transaction information, and then obtain the detection rules corresponding to the order protocol from the pre-configured detection file. Different order protocols correspond to different transaction behaviors, and different detection rules are formulated for different transaction behaviors. It is judged whether the transaction data meets the detection rules, that is, the detection rules are decoded according to the detection rules. The transaction data is calculated to determine whether the transaction data meets the requirements of the detection rules. If the transaction data meets the detection rules, the order agreement is forwarded to the exchange order system, that is, the original order agreement generated by the trading counter is forwarded to the exchange order system, and the exchange order system performs transaction processing on the order agreement. If the transaction data does not meet the detection rules, the reason why the transaction data does not meet the detection rules is obtained, and the detection result of the transaction data is obtained. A rejection agreement is generated according to the detection result, and the rejection agreement is forwarded to the trading counter, so that the trading counter terminates the transaction corresponding to the transaction information. After the trading counter receives the rejection agreement with the correct detection result, the rejection processing of the transaction behavior can be displayed, thereby improving the efficiency of transaction data risk control. In addition, based on the FPGA hardware system, data processing can be performed while receiving data, saving data processing time. At the same time, compared with software, the FPGA hardware system has fewer network transmission steps at the transaction system level in logic processing, reducing network instability during transmission, reducing the impact of risk control on transactions, and improving transaction efficiency.
[0062] In one embodiment, decoding the order protocol based on preconfigured protocol information to obtain identifiable transaction information contained in the order protocol includes:
[0063] The right to obtain the transaction information;
[0064] Determining preconfigured protocol information according to the authority;
[0065] The order protocol is decoded based on preconfigured protocol information to obtain identifiable transaction information contained in the order protocol.
[0066] In this embodiment, the order protocol is decoded based on preconfigured protocol information to obtain identifiable transaction information contained in the order protocol, the transaction information includes transaction data and personal data. In order to ensure that the content of the transaction information is displayed differently under different permissions, the permission of the transaction information is obtained, and the permission can be associated with the trader who performs the transaction. Then, the preconfigured protocol information is determined according to the permission, and then the order protocol is decoded based on the preconfigured protocol information to obtain the identifiable transaction information contained in the order protocol. In one embodiment, the protocol information determined based on the permission is configured to be unable to decode personal data in the order protocol, and only decode the transaction data in the order protocol, so as to obtain the identifiable transaction information contained in the order protocol, thereby avoiding the leakage of personal data due to the decoding of transaction information and ensuring data security.
[0067] In one embodiment, the identifying the identifiable transaction information and extracting transaction data satisfying transaction characteristics from the identifiable transaction information includes:
[0068] Recognize the identifiable transaction information according to natural language, and extract entity information that matches the identifiable transaction information with preset keywords that meet transaction characteristics;
[0069] Obtaining the content scope of the entity information;
[0070] Identify content information within the content range according to a natural language algorithm, and obtain transaction data corresponding to the entity information.
[0071] In this embodiment, in the process of identifying the identifiable transaction information and extracting transaction data from the identifiable transaction information, entity information matching the preset keywords that satisfy the transaction characteristics in the identifiable transaction information is first extracted. Specifically, the keywords that satisfy the transaction characteristics are obtained, and then the words matching the keywords in the identifiable transaction information are identified by keyword matching. The matched words are determined as the corresponding entity information, and then the content scope of the entity information is identified. Generally, the content of each part of the entity information is in the same content scope. By identifying the two entity information, the content scope of the previous entity information can be determined. The content scope of each entity information is determined based on this method, and then the content information within the content scope is identified according to the natural language algorithm to obtain the transaction data corresponding to the entity information, thereby accurately identifying the transaction data corresponding to each entity information, so as to accurately identify the risks of the transaction data and improve the accuracy of risk identification. For example, for part A in the transaction information, that is, entity information A, the transaction data A1 of entity information A is identified; for part B in the transaction information, that is, entity information B, the transaction data B1 of entity information B is identified, thereby accurately determining the transaction data of each different part. For an order agreement containing multiple transaction behaviors, the transaction data can be accurately identified.
[0072] In one embodiment, identifying content information within the content range according to a natural language algorithm and acquiring transaction data corresponding to the entity information includes:
[0073] Acquire prior knowledge data of the entity information;
[0074] Configuring the natural language algorithm with the prior knowledge data to obtain a natural language algorithm with prior knowledge;
[0075] The content information within the content range is identified according to the natural language algorithm with prior knowledge, and the transaction data corresponding to the entity information is acquired.
[0076] In this embodiment, in the process of identifying the content information within the content scope according to the natural language algorithm and obtaining the transaction data corresponding to the entity information, different entity information parts contain different exclusive nouns. In order to accurately identify the data in the entity information of different parts, the prior knowledge data of the entity information is obtained. The prior knowledge is obtained by collecting statistics of the word library corresponding to the entity information. Then, the natural language algorithm is configured to add the prior knowledge data to obtain a natural language algorithm with prior knowledge. Then, the content information within the content scope is identified according to the natural language algorithm with prior knowledge, and the transaction data corresponding to the entity information is obtained. By configuring the natural language algorithm with prior knowledge of the corresponding exclusive nouns, the content information within the content scope can be quickly and accurately identified, and the target data required within the content scope can be extracted as transaction data, thereby improving the recognition efficiency of the transaction data corresponding to the entity information.
[0077] In one embodiment, after receiving the order agreement formed based on the transaction information sent by the transaction counter, the method further includes:
[0078] Verifying the order agreement according to a preset encryption algorithm;
[0079] If the order submission agreement does not conform to the verification rule of the preset encryption algorithm, a rejection agreement is generated, and the rejection agreement is forwarded to the transaction counter, so that the transaction counter terminates the transaction corresponding to the transaction information.
[0080] In this embodiment, after receiving the order agreement formed based on the transaction information sent by the trading counter, the order agreement is an encrypted agreement, and then the order agreement is verified according to a preset encryption algorithm to verify whether the order agreement is modified during the transmission process. If so, the order agreement does not meet the verification rules of the preset encryption algorithm. At this time, a rejection agreement is generated and forwarded to the trading counter, so that the trading counter terminates the transaction corresponding to the transaction information, avoids the wrong order agreement being forwarded to the trading system and completing the wrong transaction, reduces the calculation of subsequent data volume, and improves the risk control processing efficiency of the wrong order agreement.
[0081] In one embodiment, the acquiring the detection rule corresponding to the order protocol from the preconfigured detection file includes:
[0082] Obtaining the first agreement number of the order agreement;
[0083] Matching a second number of the detection file according to the first protocol number;
[0084] Using the detection file with the second number as a pre-configured detection file;
[0085] The detection rules corresponding to the order protocol are obtained from the preconfigured detection file.
[0086] In this embodiment, in the process of obtaining the detection rules corresponding to the order protocol from the preconfigured detection file, the detection rules need to be verified. Specifically, the detection rules of different stages are configured differently, and the detection rules of different stages are stored in detection files with different numbers. When obtaining the detection rules corresponding to the order protocol from the preconfigured detection file, first obtain the first protocol number of the order protocol, and then match the second number of the detection file according to the first protocol number, and then use the detection file with the second number as the preconfigured detection file to obtain the detection file corresponding to the order protocol, and then obtain the detection rules corresponding to the order protocol from the preconfigured detection file to complete the verification of the detection rules and improve the accuracy of data verification.
[0087] In one embodiment, forwarding the order agreement to the exchange order system includes:
[0088] Determine the target exchange according to the order agreement;
[0089] The order agreement is forwarded to the order system of the target exchange.
[0090] In this embodiment, in the process of forwarding the order agreement to the exchange order system, different transaction behaviors need to be forwarded to different exchanges, that is, the target exchange is determined according to the order agreement, and then the order agreement is forwarded to the order system of the target exchange, so that different order agreements are forwarded to the exchange that can correctly process the order agreement, complete the correct forwarding of transaction data, and increase the probability that the order agreement can be correctly processed.
[0091] Reference Figure 2 The present application also provides a transaction data detection device based on an FPGA hardware system, comprising:
[0092] The agreement receiving module 10 is used to receive the order agreement formed based on the transaction information sent by the transaction counter;
[0093] An information acquisition module 20, configured to decode the order agreement based on pre-configured protocol information and acquire identifiable transaction information contained in the order agreement;
[0094] A data identification module 30, used to identify the identifiable transaction information and extract transaction data from the identifiable transaction information;
[0095] A data judgment module 40 is used to obtain a detection rule corresponding to the order protocol from a pre-configured detection file, and to judge whether the transaction data satisfies the detection rule, wherein the detection rule includes a restriction condition on the transaction data;
[0096] The protocol forwarding module 50 is used to forward the order protocol to the exchange order system if it is determined that the transaction data meets the detection rule;
[0097] The agreement rejection module 60 is used to obtain the detection result of the transaction data if it is determined that the transaction data does not meet the detection rule, generate a rejection agreement according to the detection result, and forward the rejection agreement to the transaction counter so that the transaction counter terminates the transaction corresponding to the transaction information.
[0098] As described above, it can be understood that the various components of the transaction data detection device based on the FPGA hardware system proposed in this application can realize the functions of any one of the transaction data detection methods based on the FPGA hardware system described above.
[0099] In one embodiment, decoding the order protocol based on preconfigured protocol information to obtain identifiable transaction information contained in the order protocol includes:
[0100] The right to obtain the transaction information;
[0101] Determining preconfigured protocol information according to the authority;
[0102] The order protocol is decoded based on preconfigured protocol information to obtain identifiable transaction information contained in the order protocol.
[0103] In one embodiment, the identifying the identifiable transaction information and extracting transaction data satisfying transaction characteristics from the identifiable transaction information includes:
[0104] Recognize the identifiable transaction information according to natural language, and extract entity information that matches the identifiable transaction information with preset keywords that meet transaction characteristics;
[0105] Obtaining the content scope of the entity information;
[0106] Identify content information within the content range according to a natural language algorithm, and obtain transaction data corresponding to the entity information.
[0107] In one embodiment, identifying content information within the content range according to a natural language algorithm and acquiring transaction data corresponding to the entity information includes:
[0108] Acquire prior knowledge data of the entity information;
[0109] Configuring the natural language algorithm with the prior knowledge data to obtain a natural language algorithm with prior knowledge;
[0110] The content information within the content range is identified according to the natural language algorithm with prior knowledge, and the transaction data corresponding to the entity information is acquired.
[0111] In one embodiment, after receiving the order agreement formed based on the transaction information sent by the transaction counter, the method further includes:
[0112] Verifying the order agreement according to a preset encryption algorithm;
[0113] If the order submission agreement does not conform to the verification rule of the preset encryption algorithm, a rejection agreement is generated, and the rejection agreement is forwarded to the transaction counter, so that the transaction counter terminates the transaction corresponding to the transaction information.
[0114] In one embodiment, the acquiring the detection rule corresponding to the order protocol from the preconfigured detection file includes:
[0115] Obtaining the first agreement number of the order agreement;
[0116] Matching a second number of the detection file according to the first protocol number;
[0117] Using the detection file with the second number as a pre-configured detection file;
[0118] The detection rules corresponding to the order protocol are obtained from the preconfigured detection file.
[0119] In one embodiment, forwarding the order agreement to the exchange order system includes:
[0120] Determine the target exchange according to the order agreement;
[0121] The order agreement is forwarded to the order system of the target exchange.
[0122] Reference Figure 3 In the embodiment of the present application, a computer device is also provided. The computer device may be a mobile terminal, and its internal structure may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface, a display device and an input device connected through a system bus. Among them, the network interface of the computer device is used to communicate with an external terminal through a network connection. The input device of the computer device is used to receive user input. The processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a storage medium. The storage medium stores an operating system, a computer program and a database. The database of the computer device is used to store data. When the computer program is executed by the processor, a transaction data detection method based on an FPGA hardware system is implemented.
[0123] The processor executes the transaction data detection method based on the FPGA hardware system, including: receiving an order protocol formed based on transaction information sent by a transaction counter; decoding the order protocol based on pre-configured protocol information to obtain identifiable transaction information contained in the order protocol; identifying the identifiable transaction information, and extracting transaction data that meets transaction characteristics from the identifiable transaction information; obtaining a detection rule corresponding to the order protocol from a pre-configured detection file, and determining whether the transaction data meets the detection rule, wherein the detection rule includes restriction conditions on the transaction data; if the transaction data meets the detection rule, forwarding the order protocol to an exchange order system; if the transaction data does not meet the detection rule, obtaining a detection result of the transaction data, generating an order rejection protocol according to the detection result, and forwarding the order rejection protocol to the transaction counter, so that the transaction counter terminates the transaction corresponding to the transaction information.
[0124] The computer device provides a transaction data detection method based on an FPGA hardware system. By connecting the FPGA hardware system to different trading counter systems, risk control is implemented for different types of transactions before orders are submitted to the exchange. First, an order protocol formed based on transaction information sent by the trading counter is received, and protocol decoding rules of various order protocols are configured in the FPGA hardware system, that is, the FPGA hardware system includes decoding rules of various order protocols required by various exchanges, and the order protocol is decoded based on pre-configured protocol information to obtain identifiable transaction information contained in the order protocol, so as to ensure that the FPGA hardware system can be connected to the current trading system. There is no need to modify the trading counter, and only the path of the trading counter pointing to the exchange needs to be changed to point to the FPGA hardware system, the identifiable transaction information is identified, and transaction data is extracted from the identifiable transaction information. Then, the detection rules corresponding to the order protocol are obtained from the pre-configured detection file. Different order protocols correspond to different transaction behaviors, and different detection rules are formulated for different transaction behaviors. It is judged whether the transaction data meets the detection rules, that is, the detection rules are determined according to the detection rules. The transaction data is calculated to determine whether the transaction data meets the requirements of the detection rules. If the transaction data meets the detection rules, the order agreement is forwarded to the exchange order system, that is, the original order agreement generated by the trading counter is forwarded to the exchange order system, and the exchange order system performs transaction processing on the order agreement. If the transaction data does not meet the detection rules, the reason why the transaction data does not meet the detection rules is obtained, and the detection result of the transaction data is obtained. A rejection agreement is generated according to the detection result, and the rejection agreement is forwarded to the trading counter, so that the trading counter terminates the transaction corresponding to the transaction information. After the trading counter receives the rejection agreement with the correct detection result, it can display the rejection processing of the transaction behavior, thereby improving the efficiency of transaction data risk control. In addition, based on the FPGA hardware system, data processing can be performed while receiving data, saving data processing time. At the same time, compared with software, the FPGA hardware system has fewer network transmission steps at the transaction system level in logic processing, reducing network instability during transmission, reducing the impact of risk control on transactions, and improving transaction efficiency.
[0125] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, a transaction data detection method based on an FPGA hardware system is implemented, including the steps of: receiving an order protocol formed based on transaction information and sent by a trading counter; decoding the order protocol based on pre-configured protocol information to obtain identifiable transaction information contained in the order protocol; identifying the identifiable transaction information, and extracting transaction data that meets transaction characteristics from the identifiable transaction information; obtaining a detection rule corresponding to the order protocol from a pre-configured detection file, and determining whether the transaction data meets the detection rule, wherein the detection rule includes restriction conditions on the transaction data; if the transaction data meets the detection rule, forwarding the order protocol to an exchange order system; if the transaction data does not meet the detection rule, obtaining a detection result of the transaction data, generating an order rejection protocol according to the detection result, and forwarding the order rejection protocol to the trading counter, so that the trading counter terminates the transaction corresponding to the transaction information.
[0126] The computer-readable storage medium provides a transaction data detection method based on an FPGA hardware system. By connecting the FPGA hardware system to different trading counter systems, risk control is implemented for different types of transactions before the orders are submitted to the exchange. First, an order protocol formed based on transaction information sent by the trading counter is received, and protocol decoding rules of various order protocols are configured in the FPGA hardware system, that is, the FPGA hardware system includes decoding rules of various order protocols required by various exchanges, and the order protocol is decoded based on pre-configured protocol information to obtain identifiable transaction information contained in the order protocol, so as to ensure that the FPGA hardware system can be connected to the current trading system. There is no need to modify the trading counter, and only the path from the trading counter to the exchange needs to be changed to point to the FPGA hardware system, the identifiable transaction information is identified, and transaction data is extracted from the identifiable transaction information. Then, the detection rules corresponding to the order protocol are obtained from the pre-configured detection file. Different order protocols correspond to different transaction behaviors, and different detection rules are formulated for different transaction behaviors. It is judged whether the transaction data meets the detection rules, that is, according to the detection rules, The transaction data is calculated to determine whether the transaction data meets the requirements of the detection rules. If the transaction data meets the detection rules, the order agreement is forwarded to the exchange order system, that is, the original order agreement generated by the trading counter is forwarded to the exchange order system, and the exchange order system performs transaction processing on the order agreement. If the transaction data does not meet the detection rules, the reason why the transaction data does not meet the detection rules is obtained, and the detection result of the transaction data is obtained. A rejection agreement is generated according to the detection result, and the rejection agreement is forwarded to the trading counter, so that the trading counter terminates the transaction corresponding to the transaction information. After the trading counter receives the rejection agreement with the correct detection result, it can display the rejection processing of the transaction behavior, thereby improving the efficiency of transaction data risk control. In addition, based on the FPGA hardware system, data processing can be performed while receiving data, saving data processing time. At the same time, compared with software, the FPGA hardware system has fewer network transmission steps at the transaction system level in logic processing, reduces network instability during transmission, reduces the impact of risk control on transactions, and improves transaction efficiency.
[0127] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.
[0128] Any reference to memory, storage, database, or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory.
[0129] Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0130] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.
[0131] The above description is only a preferred embodiment of the present application and does not limit the patent scope of the present application.
[0132] Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are similarly included in the scope of patent protection of this application.
Claims
1. A transaction data detection method based on FPGA hardware system, characterized in that: include: Receive order agreements based on transaction information sent by the trading desk; Decoding the order agreement based on preconfigured protocol information to obtain identifiable transaction information contained in the order agreement; Identifying the identifiable transaction information, and extracting transaction data satisfying transaction characteristics from the identifiable transaction information; Obtaining a detection rule corresponding to the order protocol from a preconfigured detection file, and determining whether the transaction data satisfies the detection rule, wherein the detection rule includes a restriction condition on the transaction data; If the transaction data meets the detection rules, forward the order agreement to the exchange order system; If the transaction data does not satisfy the detection rule, obtaining the detection result of the transaction data, generating a rejection agreement according to the detection result, and forwarding the rejection agreement to the transaction counter so that the transaction counter terminates the transaction corresponding to the transaction information; The decoding of the order agreement based on the preconfigured protocol information to obtain identifiable transaction information contained in the order agreement includes: The right to obtain the transaction information; Determining preconfigured protocol information according to the authority; Decoding the order agreement based on preconfigured protocol information to obtain identifiable transaction information contained in the order agreement; The identifying the identifiable transaction information and extracting transaction data satisfying transaction characteristics from the identifiable transaction information includes: Recognize the identifiable transaction information according to natural language, and extract entity information that matches the identifiable transaction information with preset keywords that meet transaction characteristics; Obtaining the content scope of the entity information; Identify content information within the content range according to a natural language algorithm, and obtain transaction data corresponding to the entity information; The acquiring the detection rule corresponding to the order protocol from the pre-configured detection file includes: Obtaining the first agreement number of the order agreement; Matching a second number of the detection file according to the first protocol number; Using the detection file with the second number as a pre-configured detection file; Acquire the detection rules corresponding to the order protocol from the pre-configured detection file; The forwarding of the order agreement to the exchange order system includes: Determine the target exchange according to the order agreement; The order agreement is forwarded to the order system of the target exchange.
2. The transaction data detection method based on FPGA hardware system according to claim 1, characterized in that: The identifying the content information within the content range according to the natural language algorithm and acquiring the transaction data corresponding to the entity information includes: Acquire prior knowledge data of the entity information; Configuring the natural language algorithm with the prior knowledge data to obtain a natural language algorithm with prior knowledge; The content information within the content range is identified according to the natural language algorithm with prior knowledge, and the transaction data corresponding to the entity information is acquired.
3. The transaction data detection method based on FPGA hardware system according to claim 1, characterized in that: After receiving the order agreement formed based on the transaction information sent by the transaction counter, the method further includes: Verifying the order agreement according to a preset encryption algorithm; If the order submission agreement does not conform to the verification rule of the preset encryption algorithm, a rejection agreement is generated, and the rejection agreement is forwarded to the transaction counter, so that the transaction counter terminates the transaction corresponding to the transaction information.
4. A transaction data detection device based on FPGA hardware system, characterized in that: include: The agreement receiving module is used to receive the order agreement formed based on the transaction information sent by the trading counter; An information acquisition module, used to decode the order agreement based on pre-configured protocol information and obtain identifiable transaction information contained in the order agreement; A data identification module, used to identify the identifiable transaction information and extract transaction data satisfying transaction characteristics from the identifiable transaction information; A data judgment module, used to obtain the detection rules corresponding to the order protocol from a pre-configured detection file, and judge whether the transaction data satisfies the detection rules, wherein the detection rules include restriction conditions on the transaction data; A protocol forwarding module, configured to forward the order protocol to the exchange order system if it is determined that the transaction data meets the detection rule; The agreement rejection module is used to obtain the detection result of the transaction data if it is determined that the transaction data does not meet the detection rule, generate a rejection agreement according to the detection result, and forward the rejection agreement to the transaction counter so that the transaction counter terminates the transaction corresponding to the transaction information.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the transaction data detection method based on the FPGA hardware system described in any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the transaction data detection method based on the FPGA hardware system described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Automated detection of deception in short and multilingual electronic messages
US20120254333A1
Dynamically verifying a signature for a transaction
US20210233087A1