Information updating device, method, equipment and medium of risk control system
By receiving and evaluating securities trading orders, deleting self-executed orders, and updating price information, the problem of insufficient information in securities trading is solved, achieving a true reflection of market prices and liquidity, and improving the user experience.
Patent Information
- Application Number
- CN202310025567.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2043-01-09
AI Technical Summary
Existing securities trading risk control systems lack effective information management methods, resulting in limited information available to users before stock trading. Market prices and liquidity cannot accurately reflect the true situation of contracts, leading to inducement problems caused by self-dealing and self-buying.
By receiving stock trading orders, determining whether the self-trading conditions are met, deleting self-trading orders, generating information update logic to update the target price, and using information update tools to update the quantity of the target price, a true market trading price information is generated.
It effectively prevents self-dealing and ensures the authenticity and liquidity of market price information, provides more comprehensive market transaction information references, and enhances user experience.
Smart Images

Figure CN116051279B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to an information updating device and method of a risk control system, equipment and medium. BACKGROUND
[0002] The risk control system of securities trading is a system integrating statistics, analysis and trading on the basis of programmatic trading. Before conducting stock trading, users usually need to refer to the trading market of the entire market to make decisions, such as referring to the stock price trend chart to make decisions. However, the stock price trend is only one aspect of the entire market trading market. There is a lack of such information management method in the prior art to present more reference information reflecting the market trading market to users, thereby resulting in limited information that users can refer to before stock trading, and poor user experience. With the popularity of programmatic trading, the behavior of self-trading in the securities market becomes more and more common. By controlling the self-buying and self-selling behavior of the same account or different accounts, the market transmits false information, which leads to the fact that the price and liquidity of the market cannot truly reflect the true situation of the contract, and there is an inducing behavior.
[0003] In summary, how to obtain price information that more truly reflects the market trading market during updating is a problem to be solved in the art. SUMMARY
[0004] Therefore, the purpose of the present application is to provide an information updating device and method of a risk control system, equipment and medium, which can obtain price information that more truly reflects the market trading market during updating. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses an information updating method of a risk control system, comprising:
[0006] An order receiving interface is configured to receive a current stock trading order.
[0007] A judgment tool is configured to judge whether the current stock trading order meets a self-trading condition.
[0008] A deletion tool is configured to delete the current stock trading order if the current stock trading order meets the self-trading condition.
[0009] An update logic generation tool is configured to determine a target price corresponding to the current stock trading order and generate an information update logic corresponding to the current stock trading order if the current stock trading order does not meet the self-trading condition.
[0010] An information updating tool is configured to update the total quantity of the target price by using the information update logic to obtain the price information of the current risk control system.
[0011] Optionally, the judging tool comprises:
[0012] a type determining unit configured to determine an order type of the current stock transaction order; wherein the order type is classified into a stock order, a stock cancellation order and a stock transaction order;
[0013] a first determining unit configured to determine that the current stock transaction order does not satisfy the self-transaction condition if the order type is not the stock order;
[0014] a second determining unit configured to determine whether a buyer identity and a seller identity of the current stock transaction order match if the order type is the stock order, and determine that the current stock transaction order satisfies the self-transaction condition if the buyer identity and the seller identity match, and determine that the current stock transaction order does not satisfy the self-transaction condition if the buyer identity and the seller identity do not match.
[0015] Optionally, the updating logic generating tool comprises:
[0016] a first updating logic generating unit configured to generate a first information updating logic corresponding to the current stock transaction order and used for reducing a total quantity of the target price if the order type is not the stock order;
[0017] a second updating logic generating unit configured to generate a second information updating logic corresponding to the current stock transaction order and used for increasing the total quantity of the target price if the order type is the stock order.
[0018] Optionally, the information updating tool comprises:
[0019] a quantity reducing unit configured to perform corresponding reducing processing on the total quantity of the target price by using the first information updating logic to obtain a reduced total quantity of the target price, so as to obtain price information of a current risk control system;
[0020] a first storage address determining unit configured to determine whether the reduced total quantity of the target price is less than a first preset threshold, and determine a first target storage address corresponding to the current stock transaction order and a first target cache unit where the first target storage address is located if the reduced total quantity of the target price is less than the first preset threshold;
[0021] a first pointer field updating unit configured to release the first target storage address, determine whether the total quantity of each price stored in the first target cache unit is less than the first preset threshold, release the first target cache unit if the total quantity of each price stored in the first target cache unit is less than the first preset threshold, and update a next pointer field of a cache unit adjacent to the first target cache unit.
[0022] Optionally, the information updating tool comprises:
[0023] The second storage address determining unit is configured to determine a second target cache unit corresponding to the current stock transaction order, and determine a second target storage address for storing the current stock transaction order in the second target cache unit, so as to store the current stock transaction order in the second target storage address of the second target cache unit, if the cache unit does not store the price same as the target price.
[0024] The quantity increasing unit is configured to increase the total quantity of the target price based on the second information updating logic, to obtain an increased total quantity of the target price, so as to obtain the price information of the current risk control system.
[0025] Optionally, the second storage address determining unit comprises:
[0026] The quantity judging unit is configured to determine a second target cache unit corresponding to the current stock transaction order, and judge whether the quantity of the current idle storage address in the second target cache unit is greater than a second preset threshold.
[0027] The target storage address determining unit is configured to apply an additional cache unit of the second target cache unit from the DDR memory, and determine a second target storage address for storing the current stock transaction order in the additional cache unit, so as to store the current stock transaction order in the second target storage address of the second target cache unit, if the quantity of the current idle storage address in the second target cache unit is less than the second preset threshold.
[0028] The first pointer field updating unit is configured to update a next pointer field of the second target cache unit, a next pointer field of the additional cache unit, and a next pointer field of a cache unit adjacent to the second target cache unit.
[0029] Optionally, the second storage address determining unit comprises:
[0030] The first cache determining unit is configured to judge whether the key information of each cache unit matches the target price based on a preset pointer position, so as to determine a cache unit matching the target price as a second target cache unit corresponding to the current stock transaction order, if the cache unit is stored in the internal RAM.
[0031] The first cache determining unit is configured to set a target quantity of querying the cache unit each time, and determine a second target cache unit corresponding to the current stock transaction order in the QDR memory based on the target quantity, if the cache unit is stored in the QDR memory.
[0032] In a second aspect, the application discloses a method for updating information of a risk control system, comprising:
[0033] receiving a current stock transaction order;
[0034] determining whether the current stock transaction order meets a self-deal condition;
[0035] if the current stock transaction order meets the self-deal condition, deleting the current stock transaction order;
[0036] if the current stock transaction order does not meet the self-deal condition, determining a target price corresponding to the current stock transaction order, and generating information update logic corresponding to the current stock transaction order;
[0037] updating a total quantity of the target price by using the information update logic to obtain price information of a current risk control system.
[0038] In a third aspect, the present application discloses an electronic device, comprising:
[0039] a memory for saving a computer program;
[0040] a processor for executing the computer program to implement the steps of the information update method of the risk control system disclosed above.
[0041] In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program is executed by a processor to implement the steps of the information update method of the risk control system disclosed above.
[0042] It can be seen that the order receiving interface of the application is used to receive a current stock transaction order; the judgment tool is used to judge whether the current stock transaction order meets the self-dealing condition; the deletion tool is used to delete the current stock transaction order if the current stock transaction order meets the self-dealing condition; the update logic generation tool is used to determine the target price corresponding to the current stock transaction order and generate information update logic corresponding to the current stock transaction order if the current stock transaction order does not meet the self-dealing condition; and the information update tool is used to update the total quantity of the target price by using the information update logic to obtain the price information of the current risk control system. It can be seen that the application needs to judge whether the current stock transaction order meets the self-dealing condition, and if it meets the condition, the current stock transaction order is deleted, and if it does not meet the condition, the target price corresponding to the current stock transaction order is determined, and the total quantity of the target price is updated by using the information update logic corresponding to the current stock transaction order to obtain the price information of the current risk control system. That is, when updating the price information of the risk control system, it is necessary to determine whether the current stock transaction order is a self-dealing order. In order to avoid the behavior of self-selling and self-buying to transmit false information to the market, and in order to update the price information of the market transaction after the transaction, it is necessary to delete the illegal self-dealing order to avoid disturbing the market transaction, and then to feed back the price information of the contract more truly. BRIEF DESCRIPTION OF DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only embodiments of the application, and for those skilled in the art, other drawings can be obtained without creative labor on the basis of the provided drawings.
[0044] Figure 1 A structure schematic diagram of the information updating device of the risk control system disclosed by the application;
[0045] Figure 2 A specific pointer linked list relationship schematic diagram disclosed by the application;
[0046] Figure 3 A specific structure schematic diagram of the information updating device of the risk control system disclosed by the application;
[0047] Figure 4 A specific DDR data content initialization disclosed by the application;
[0048] Figure 5 A specific address management module block diagram disclosed by the application;
[0049] Figure 6A specific address determination schematic diagram disclosed in the present application;
[0050] Figure 7 An information updating method flowchart of a risk control system disclosed in the present application;
[0051] Figure 8 An electronic device structure diagram disclosed in the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
[0053] The risk control system for securities trading is a system integrating statistics, analysis and trading on the basis of programmatic trading. Before conducting stock trading, users usually need to refer to the trading market information on the entire market to make decisions, for example, referring to a stock price trend chart to make decisions. However, the stock price trend is only one aspect of the entire market trading information, and there is a lack of such information management method in the prior art to present more reference information reflecting the market trading information to users, thereby resulting in limited information that can be referred to by users before stock trading, and poor user experience. With the popularization of programmatic trading, the behavior of self-trading becomes more and more common in the securities market. By controlling the self-buying and self-selling behavior of the same account or different accounts, false information is transmitted to the market, which causes the price and liquidity of the market to not truly reflect the real situation of the contract, and there is an inducing behavior.
[0054] Therefore, the present application correspondingly provides an information updating scheme of a risk control system, which can obtain price information that more truly reflects the market trading information during updating.
[0055] Referring to Figure 1 The embodiment of the present application discloses an information updating device of a risk control system, which comprises:
[0056] An order receiving interface 11 is configured to receive a current stock trading order.
[0057] A judgment tool 12 is configured to judge whether the current stock trading order meets a self-trading condition.
[0058] A deletion tool 13 is configured to delete the current stock trading order if the current stock trading order meets the self-trading condition.
[0059] The updating logic generation tool 14 is configured to determine a target price corresponding to the current stock transaction order and generate information updating logic corresponding to the current stock transaction order if the current stock transaction order does not satisfy the self-execution condition.
[0060] The information updating tool 15 is configured to update the total number of the target price by using the information updating logic to obtain price information of the current risk control system.
[0061] The judging tool 12 includes a type determining unit 121 configured to determine an order type of the current stock transaction order, wherein the order type is classified into a stock order, a stock cancellation order and a stock transaction order; a first determining unit 122 configured to determine that the current stock transaction order does not satisfy the self-execution condition if the order type is not the stock order; and a second determining unit 123 configured to determine whether a buyer identity and a seller identity of the current stock transaction order match if the order type is the stock order, and determine that the current stock transaction order satisfies the self-execution condition if the buyer identity and the seller identity match, and determine that the current stock transaction order does not satisfy the self-execution condition if the buyer identity and the seller identity do not match.
[0062] It can be understood that the judging tool 12 includes a self-execution judging module, and the self-execution judging module includes the type determining unit 121, the first determining unit 122 and the second determining unit 123, and is configured to update a price of a contract buying and selling direction in real time, determine whether an order input constitutes self-execution with a current cached price of the contract buying and selling direction, output a self-execution flag and discard the order if the order input can constitute self-execution, and send the order to a pointer linked list module if the order input cannot constitute self-execution. When a cancellation order or a transaction order is input, the order is sent to the pointer linked list module.
[0063] The pointer linked list module is configured to include a buying price sorting queue (the prices are sorted from high to low) and a selling price sorting queue (the prices are sorted from low to high) under the same contract. When the number of prices in the price queue changes, the price storage position needs to be updated. In order to reduce the number of price re-sorting caused by the increase and decrease of the number of prices, a certain number of prices are stored in a cache unit, and the sorting of each cache unit is maintained by a pointer linked list. For example Figure 2 FIG. 1 shows a specific pointer linked list relationship diagram, and the cache unit includes a next pointer field and a price number field, wherein the next pointer field only occupies one storage row, and the price number field occupies 31 storage rows.
[0064] The update logic generation tool 14 comprises a first update logic generation unit for generating first information update logic corresponding to the current stock transaction order and used for reducing the total quantity of the target price if the order type is not the stock limit order; and a second update logic generation unit for generating second information update logic corresponding to the current stock transaction order and used for increasing the total quantity of the target price if the order type is the stock limit order. It can be understood that if the order type is not the stock limit order, the first information update logic is used to reduce the total quantity of the corresponding target price, and if the order type is the stock limit order, the second information update logic is used to increase the total quantity of the corresponding target price, i.e. the price information of the current risk control system contains the total quantity of the price of the stock limit order type.
[0065] The information update tool 15 comprises a price sorting module, which is used to compare the order price with the cached price. If the order is placed and the price is newly added, the order price is reordered with the cached price, and the buyers are sorted from large to small and the sellers are sorted from small to large. If the order is cancelled / transaction and the quantity of the limit order at the price is not 0, only the quantity of the limit order at the price is updated; if the quantity of the cancelled / transaction order is equal to the quantity of the cached price, the price information in the current price unit block is deleted, and the price sorting of the current processed price block unit is reordered.
[0066] It can be seen that the order receiving interface of the present application is used to receive a current stock transaction order; the judging tool is used to judge whether the current stock transaction order meets the self-transaction condition; the deleting tool is used to delete the current stock transaction order if the current stock transaction order meets the self-transaction condition; the update logic generation tool is used to determine a target price corresponding to the current stock transaction order and generate information update logic corresponding to the current stock transaction order if the current stock transaction order does not meet the self-transaction condition; and the information update tool is used to update the total quantity of the target price by using the information update logic to obtain the price information of the current risk control system. It can be seen that the present application needs to judge whether the current stock transaction order meets the self-transaction condition, and if it meets, the current stock transaction order is deleted, and if it does not meet, the target price corresponding to the current stock transaction order is determined and the total quantity of the target price is updated by using the information update logic corresponding to the current stock transaction order to obtain the price information of the current risk control system, i.e. when updating the price information of the risk control system, it is necessary to determine whether the current stock transaction order is a self-transaction order, in order to avoid the self-buying and self-selling behavior from transmitting false information to the market, and in order to update the price information of the market transaction after the transaction to more truly reflect the market transaction, it is necessary to delete the illegal self-transaction order to avoid disturbing the market transaction, and then to more truly feed back the price information of the contract.
[0067] Referring to Figure 3 As shown in the embodiment, the information updating device framework of the specific risk control system is disclosed, and the technical solution is further described and optimized compared with the previous embodiment.
[0068] Specifically,
[0069] The information updating tool 15 comprises a quantity reduction unit 1511 configured to perform corresponding reduction processing on the total quantity of the target price by using the first information updating logic to obtain the reduced total quantity of the target price, so as to obtain the price information of the current risk control system; a first storage address determination unit 1512 configured to determine whether the reduced total quantity of the target price is less than a first preset threshold, and if so, determine a first target storage address corresponding to the current stock transaction order and a first target cache unit where the first target storage address is located; and a first pointer field updating unit 1513 configured to release the first target storage address, determine whether the total quantity of each price stored in the first target cache unit is less than the first preset threshold, and if so, release the first target cache unit and update the next pointer field of the cache unit adjacent to the first target cache unit. If the reduced total quantity of the current price block is 0, the value of the next pointer field of the current cache unit is updated to the next pointer field of the previous cache unit. By using the pointer mode, the same contract can be connected with numerous cache units.
[0070] The information updating tool 15 comprises a second storage address determination unit 1521 configured to determine a second target cache unit corresponding to the current stock transaction order if the cache unit does not store the same price as the target price, and determine a second target storage address for storing the current stock transaction order in the second target cache unit, so as to store the current stock transaction order to the second target storage address of the second target cache unit; and a quantity increasing unit 1522 configured to perform corresponding increasing processing on the total quantity of the target price based on the second information updating logic to obtain the increased total quantity of the target price, so as to obtain the price information of the current risk control system.
[0071] The second storage address determination unit 1521 comprises: a quantity determination unit, configured to determine a second target cache unit corresponding to the current stock transaction order, and determine whether the quantity of current idle storage addresses in the second target cache unit is greater than a second preset threshold; a target storage address determination unit, configured to, if the quantity of current idle storage addresses in the second target cache unit is less than the second preset threshold, apply an additional cache unit of the second target cache unit from a DDR memory, and determine a second target storage address for storing the current stock transaction order in the additional cache unit, so as to store the current stock transaction order to the second target storage address of the second target cache unit; and a first pointer field update unit, configured to update a next pointer field of the second target cache unit, a next pointer field of the additional cache unit, and a next pointer field of a cache unit adjacent to the second target cache unit. If the current price cache unit is full, a new cache unit is applied to store the price quantity information; meanwhile, the value of the next pointer field of the current price cache unit is the address of the newly applied price cache unit, and the next pointer field of the newly applied price cache unit is the next pointer field of the current processing price cache unit.
[0072] The information updating tool 15 comprises an address management module, which is configured to manage the storage address of the current stock transaction order when the total quantity of target prices is updated by the information updating logic. In order to support the fast address application and recycling mechanism, the address management module, limited by the FPGA (Field Programmable Gate Array, i.e. field programmable logic gate array) chip resource capacity, adopts a two-level cache mode for address management. The first-level cache is implemented by using two FIFOs (first in, first out, i.e. first-in first-out queue) in the FPGA, and the second-level cache is implemented by using a DDR (Double Data Rate) memory.
[0073] At system initialization, the number of first-level cache addresses is 0, and the number of second-level DDR address caches is 2 addresses. 20-1 The data bit width of each row of DDR data is 256 bits, and each space address occupies 32 bits, so that each row of DDR addresses can store 8 space addresses. The DDR data content of each row is initialized as shown in Figure 4 In order to accurately represent the space address storage address and read address, a wr_idle_offset (initial value is 2 20) and rd_idle_offset (initial value 1), the number of cache space addresses = wr_idle_offset-rd_idle_offset; the initial write address of DDR is 0, and the offset is 0 (because each row of DDR can store 8 space addresses); the initial read address of DDR is 0, and the offset is 1 (because the address is 0, the offset is 0, and the storage content is invalid at initialization). When there are m space addresses to be read from the DDR cache area, only the DDR read operation is initiated, and the rd_idle_offset is updated as rd_idle_offset+m; when there are n space addresses to be stored in the DDR cache area, only the DDR write operation is sent, and the wr_ilde_offset is updated as wr_ilde_offset+n.
[0074] For example Figure 5 A specific address management module block diagram is shown, wherein the input cache FIFO and the output cache FIFO are 1-level cache areas, and the DDR address cache is a 2-level cache area. The input cache FIFO control and the output cache FIFO control are two independent processes. The input cache control starts to move 16 idle addresses from the input FIFO to the DDR cache by DDR write operation when it is determined that the current number of idle cache addresses is greater than 256. At the same time, the output FIFO control starts the DDR read operation (DDR cache has space addresses) to move the DDR idle addresses to the output FIFO when it is found that the current output FIFO storage space address is less than 16 and the input FIFO is empty. If the input FIFO has idle addresses and the output FIFO has less than 64 idle addresses, the read operation is initiated to move the idle addresses from the input FIFO cache to the output FIFO. The two-level space address management mechanism and the DDR read and write operation of 16 idle addresses have a much shorter time than the same number of addresses applied and released by the price sorting module, which ensures that the pointer linked list module will not be blocked due to full address release and empty address application.
[0075] The second storage address determination unit 1521 comprises: a first cache determination unit, configured to, if the cache units are stored in an internal RAM (random access memory), determine whether the key information of each of the cache units matches the target price based on a preset pointer position, so as to determine the cache unit matching the target price as a second target cache unit corresponding to the current stock transaction order; and a first cache determination unit, configured to, if the cache units are stored in a QDR memory, set a target number of cache units to be queried each time, and determine the second target cache unit corresponding to the current stock transaction order in the QDR (Quad Data Rate) memory based on the target number.
[0076] In the system, data storage media are divided into three categories: FPGA internal RAM, QDR chips, and DDR memory modules. The query cycle for internal RAM is 2 clock cycles, QDR is around 15 clock cycles, and DDR is around 40 clock cycles. The storage capacity is 8 Gbytes for DDR and 8 Mbytes for QDR. Different acceleration schemes can be adopted based on different priorities. The first cache determination unit has the fastest query speed and supports a small number of contracts; the second cache determination unit has almost the same internal price query time for the first 8 price unit blocks and supports a larger number of contracts.
[0077] First cache determination unit: such as Figure 6 The diagram illustrates a specific address determination process, where pointer and keyword information are stored in internal RAM. Each memory cell includes the next address index, the lower limit price of the current price block cell, and the DDR address. The diagram below shows the buy-side lookup process for three price block cells. When the input update order price is 10, because the first pointer's lookup address is 5, and address 5 shows a price of 40 > order price 10, the lookup address becomes 3. Following a similar process, the price at address 1 is finally found to meet the condition. This involves three address lookups, consuming a total of six clock cycles.
[0078] The second cache determination unit: In QDR, a QDR storage unit is composed of 8 price block units. QDR reads information from 8 price block units at a time, that is, transferring the px+ddr_addr field data from internal RAM to the QDR cache for Scheme 1. During processing, a QDR read operation is performed first. If the order price falls within the price range of the QDR storage unit, a DDR read operation is performed on the corresponding price block. If not, the DDR read operation is performed on the 9th price block, and so on, until the corresponding price block is found. This accelerates the address processing of the first 8 price blocks of the contract while reducing the use of internal RAM resources.
[0079] See Figure 7 As shown in the figure, this application discloses an information update method for a risk control system, including:
[0080] Step S11: Receive the current stock trading order.
[0081] Step S12: Determine whether the current stock trading order meets the self-trading conditions.
[0082] Step S13: If the current stock trading order meets the self-trading condition, then delete the current stock trading order.
[0083] Step S14: If the current stock transaction order does not meet the self-deal condition, determining a target price corresponding to the current stock transaction order, and generating information update logic corresponding to the current stock transaction order.
[0084] Step S15: Updating the total quantity of the target price by using the information update logic to obtain the price information of the current risk control system.
[0085] It can be seen that the order receiving interface of the application is used to receive a current stock transaction order; the judgment tool is used to judge whether the current stock transaction order meets the self-deal condition; the deletion tool is used to delete the current stock transaction order if the current stock transaction order meets the self-deal condition; the update logic generation tool is used to determine a target price corresponding to the current stock transaction order and generate information update logic corresponding to the current stock transaction order if the current stock transaction order does not meet the self-deal condition; and the information update tool is used to update the total quantity of the target price by using the information update logic to obtain the price information of the current risk control system. It can be seen that the application needs to judge whether the current stock transaction order meets the self-deal condition, and if it meets the self-deal condition, the current stock transaction order is deleted, and if it does not meet the self-deal condition, a target price corresponding to the current stock transaction order is determined, and the total quantity of the target price is updated by using the information update logic corresponding to the current stock transaction order to obtain the price information of the current risk control system. That is, when updating the price information of the risk control system, it is necessary to determine whether the current stock transaction order is a self-deal order. In order to avoid the behavior of self-selling and self-buying to transmit false information to the market, and in order to update the price information of the market transaction after the transaction to more truly reflect the market transaction, it is necessary to delete the illegal self-deal order to avoid disturbing the market transaction, and then to more truly feedback the price information of the contract.
[0086] Further, the application embodiment also provides an electronic device. Figure 8 The electronic device 20 structure diagram shown in the figure cannot be considered as any limitation on the use range of the application.
[0087] Figure 8 The electronic device structure diagram provided by the application embodiment. Specifically, it can include at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the related steps in the information update method of the risk control system executed by the electronic device disclosed in any of the preceding embodiments.
[0088] In this embodiment, the power supply 23 is configured to provide operating voltage for each hardware device on the electronic device; the communication interface 24 is configured to create a data transmission channel between the electronic device and external devices, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the present application, which will not be specifically limited herein; the input and output interface 25 is configured to obtain external input data or output data to the outside, and the specific interface type can be selected according to the specific application needs, which will not be specifically limited herein.
[0089] The processor 21 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 can also include a main processor and a coprocessor. The main processor is a processor for processing data in a wake-up state, also known as a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 can be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 can also include an AI (Artificial Intelligence) processor configured to process machine learning-related computing operations.
[0090] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a magnetic disk, or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223, etc. The storage mode can be temporary storage or permanent storage.
[0091] The operating system 221 is used to manage and control each hardware device on the electronic device and the computer program 222, so as to realize the operation and processing of the processor 21 on the mass data 223 in the memory 22, and can be Windows, Unix, Linux, etc. The computer program 222 can further include a computer program capable of completing other specific work in addition to the computer program capable of completing the information updating method of the risk control system disclosed by the electronic device in any of the foregoing embodiments. The data 223 can include data transmitted by an external device received by the electronic device, and data collected by the self input and output interface 25, etc.
[0092] Further, the embodiment of the present application further discloses a computer readable storage medium, the storage medium stores a computer program, and the computer program is loaded and executed by a processor to realize the method steps executed in the information updating process of the risk control system disclosed in any of the foregoing embodiments.
[0093] Finally, it should be noted that, in this paper, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0094] The above provides a kind of information updating device, method, equipment and medium of risk control system provided by the present application, detailed introduction is carried out in this paper, the principle and implementation mode of the present application are described by specific example, the above embodiment is only for helping to understand the method of the present application and its core idea;For the general technical personnel in the art, according to the idea of the present application, there will be changes in specific implementation mode and application range, and the above description should not be understood as the limitation of the present application.
Claims
1. An information update device for a risk control system, characterized in that, Comprise: An order receiving interface configured to receive a current stock transaction order; A judging tool configured to determine whether the current stock transaction order meets a self-deal condition; A deleting tool configured to delete the current stock transaction order if the current stock transaction order meets the self-deal condition; An update logic generating tool configured to determine a target price corresponding to the current stock transaction order and generate an information update logic corresponding to the current stock transaction order if the current stock transaction order does not meet the self-deal condition; An information updating tool configured to update a total quantity of the target price by using the information update logic to obtain price information of a current risk control system; The judging tool comprises: A type determining unit configured to determine an order type of the current stock transaction order; wherein the order type is classified into a stock order, a stock cancellation order and a stock deal order; A first determining unit configured to determine that the current stock transaction order does not meet the self-deal condition if the order type is not the stock order; A second determining unit configured to determine whether a buyer identity and a seller identity of the current stock transaction order match if the order type is the stock order; and determine that the current stock transaction order meets the self-deal condition if the buyer identity and the seller identity match; and determine that the current stock transaction order does not meet the self-deal condition if the buyer identity and the seller identity do not match; The update logic generating tool comprises: A first update logic generating unit configured to generate a first information update logic corresponding to the current stock transaction order and used for reducing the total quantity of the target price if the order type is not the stock order; A second update logic generating unit configured to generate a second information update logic corresponding to the current stock transaction order and used for increasing the total quantity of the target price if the order type is the stock order; The information updating tool comprises: A second storage address determining unit configured to determine a second target cache unit corresponding to the current stock transaction order and determine a second target storage address used for storing the current stock transaction order in the second target cache unit if the same price as the target price is not stored in the cache unit, so as to store the current stock transaction order to the second target storage address of the second target cache unit; A quantity increasing unit configured to obtain an increased total quantity of the target price by performing corresponding increasing processing on the total quantity of the target price based on the second information update logic, so as to obtain the price information of the current risk control system; The second storage address determining unit comprises: A quantity determining unit configured to determine a second target cache unit corresponding to the current stock transaction order and determine whether a quantity of current idle storage addresses in the second target cache unit is greater than a second preset threshold value; The target storage address determination unit is configured to, if the total quantity is less than the first preset threshold, apply an additional cache unit for the second target cache unit from the DDR memory, and determine a second target storage address for storing the current stock transaction order in the additional cache unit, so as to store the current stock transaction order to the second target storage address of the second target cache unit. The first pointer field updating unit is configured to update a next pointer field of the second target cache unit, a next pointer field of the additional cache unit, and a next pointer field of a cache unit adjacent to the second target cache unit.
2. The information updating apparatus of the risk control system according to claim 1, wherein The information updating tool comprises: The quantity reduction unit is configured to perform corresponding reduction processing on the total quantity of the target price by using the first information updating logic, to obtain a reduced total quantity of the target price, so as to obtain price information of the current risk control system; The first storage address determination unit is configured to determine whether the reduced total quantity of the target price is less than a first preset threshold, and if the reduced total quantity is less than the first preset threshold, determine a first target storage address corresponding to the current stock transaction order and a first target cache unit in which the first target storage address is located. The first pointer field updating unit is configured to release the first target storage address, determine whether the total quantity of each price stored in the first target cache unit is less than the first preset threshold, and if the total quantity of each price is less than the first preset threshold, release the first target cache unit and update a next pointer field of a cache unit adjacent to the first target cache unit.
3. The information updating apparatus of the risk control system according to claim 1, wherein The second storage address determination unit comprises: The first cache determination unit is configured to, if the cache unit is stored in the internal RAM, determine whether the key information of each cache unit matches the target price based on a preset pointer position in sequence, so as to determine a cache unit matching the target price as a second target cache unit corresponding to the current stock transaction order. The first cache determination unit is configured to, if the cache unit is stored in the QDR memory, set a target quantity of the cache unit to be queried each time, and determine a second target cache unit corresponding to the current stock transaction order in the QDR memory based on the target quantity.
4. An information updating method of a risk control system, characterized by, Comprise: Receiving a current stock transaction order; Determining whether the current stock transaction order satisfies a self-trade condition; If the current stock transaction order satisfies the self-trade condition, deleting the current stock transaction order; If the current stock transaction order does not satisfy the self-trade condition, determining a target price corresponding to the current stock transaction order, and generating an information updating logic corresponding to the current stock transaction order; Updating the total quantity of the target price by using the information updating logic to obtain price information of the current risk control system; The determination of whether the current stock transaction order satisfies the self-trade condition comprises: determining an order type of the current stock transaction order; wherein the order type is classified as a stock order, a stock cancel order, and a stock transaction order; if the order type is not the stock order, determining that the current stock transaction order does not satisfy a self-transaction condition; if the order type is the stock order, determining whether a buyer identity and a seller identity of the current stock transaction order match, if the buyer identity and the seller identity match, determining that the current stock transaction order satisfies the self-transaction condition; if the buyer identity and the seller identity do not match, determining that the current stock transaction order does not satisfy the self-transaction condition; the generating of the information update logic corresponding to the current stock transaction order comprises: if the order type is not the stock order, generating a first information update logic corresponding to the current stock transaction order and used for reducing a total quantity of the target price; if the order type is the stock order, generating a second information update logic corresponding to the current stock transaction order and used for increasing the total quantity of the target price; the updating of the total quantity of the target price by using the information update logic to obtain price information of a current risk control system comprises: if the same price as the target price is not stored in the cache unit, determining a second target cache unit corresponding to the current stock transaction order, determining a second target storage address used for storing the current stock transaction order in the second target cache unit, and storing the current stock transaction order to the second target storage address of the second target cache unit; based on the corresponding increasing processing of the total quantity of the target price by using the second information update logic, obtaining an increased total quantity of the target price, and obtaining the price information of the current risk control system; if the same price as the target price is not stored in the cache unit, determining a second target cache unit corresponding to the current stock transaction order, determining a second target storage address used for storing the current stock transaction order in the second target cache unit, and storing the current stock transaction order to the second target storage address of the second target cache unit, comprises: determining a second target cache unit corresponding to the current stock transaction order, and determining whether a quantity of current idle storage addresses in the second target cache unit is greater than a second preset threshold; if the quantity of the current idle storage addresses is less than the second preset threshold, applying an additional cache unit of the second target cache unit from a DDR memory, determining a second target storage address used for storing the current stock transaction order in the additional cache unit, and storing the current stock transaction order to the second target storage address of the second target cache unit; updating a next pointer field of the second target cache unit, a next pointer field of the additional cache unit, and a next pointer field of a cache unit adjacent to the second target cache unit.
5. An electronic device, comprising: comprise: a memory for saving a computer program; a processor for executing the computer program to implement the steps of the information update method of the risk control system according to claim 4.
6. A computer readable storage medium characterized by A computer program product for storing a computer program; wherein the computer program, when executed by a processor, implements the steps of the information updating method of the risk control system according to claim 4.
Citation Information
Patent Citations
Stock transaction order processing system, method and program
JP2009116573A
Method for trading by variable factor of share price in on-line stock exchange
KR1020130016739A