CN115936886A - Failure detection method, device, equipment and medium for heterogeneous security trading system - Google Patents
Failure detection method, device, equipment and medium for heterogeneous security trading system Download PDFInfo
- Publication number
- CN115936886A CN115936886A CN202310249172.1A CN202310249172A CN115936886A CN 115936886 A CN115936886 A CN 115936886A CN 202310249172 A CN202310249172 A CN 202310249172A CN 115936886 A CN115936886 A CN 115936886A
- Authority
- CN
- China
- Prior art keywords
- trading system
- execution result
- centralized
- transaction system
- failure detection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention relates to the technical field of big data, and provides a failure detection method, a device, equipment and a medium for a heterogeneous security trading system, which can verify the consistency of account authorities between a centralized trading system and an extremely fast trading system in the heterogeneous security trading system to judge whether the authorities are in compliance, and verify the consistency of trading specifications between the centralized trading system and the extremely fast trading system to judge whether the trading specifications are in compliance with exchange specifications, thereby performing automatic failure detection on the heterogeneous security trading system.
Description
Technical Field
The invention relates to the technical field of big data, in particular to a failure detection method, a device, equipment and a medium for a heterogeneous security trading system.
Background
At present, the ratio of the holdup market value of professional institution investors in China to the total holdup market value of market investors is increased from 15.88% in 2010 to 17.77% in 2020, and the capital market mechanization trend is obvious. In the face of the pursuit of mechanism investors for increasingly rigorous transaction delay, the centralized transaction system can not meet the current market demand gradually, and all large ticket merchants gradually launch a low-delay very-fast transaction system to seize the clients of the mechanism investors.
The rapid trading system is more focused on lower trading delay, is usually significantly different from a centralized trading system in the architecture of system deployment, and also has optimized trading execution logic, so how to ensure consistency of two heterogeneous system types, namely the rapid trading system and the centralized trading system, in the aspects of account related data synchronization, trading execution logic and the like, a unified method is urgently needed for verification.
Disclosure of Invention
In view of the above, there is a need to provide a failure detection method, apparatus, device and medium for heterogeneous security trading system, which can perform automatic failure detection on the heterogeneous security trading system.
A failure detection method of a heterogeneous security trading system is applied to the heterogeneous security trading system, the heterogeneous security trading system comprises a centralized trading system and a rapid trading system, and the failure detection method of the heterogeneous security trading system comprises the following steps:
synchronizing account data from the centralized trading system to the very fast trading system in response to a failure detection instruction to the heterogeneous securities trading system;
after the synchronization is completed, starting the centralized transaction system and the top-speed transaction system;
after the centralized transaction system and the rapid transaction system are started, the same order is issued to the centralized transaction system and the rapid transaction system;
executing the order in the centralized transaction system and the rapid transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the rapid transaction system;
and performing failure detection on the heterogeneous security trading system according to the first execution result and the second execution result.
According to the preferred embodiment of the invention, the centralized trading system is oriented to common scattered households, and comprises the functions of the whole process of securities trading, specifically comprising account management, fund management, trade management, inquiry service and clearing service;
the extremely fast trading system is oriented to institutional customers and high-net-value individual customers, and only provides trading functions;
the up-speed trading system has a lower trading latency than the centralized trading system.
According to a preferred embodiment of the present invention, when the failure detection includes authority side detection, the centralized transaction system includes a batch of accounts, each of the batch of accounts has different authority and authority identification, and the batch of accounts is configured to execute transactions on the very fast transaction system; and
when the failure detection comprises business side detection, the centralized transaction system comprises a target account, the target account has the maximum authority, and the target account is configured to execute transaction on the extremely fast transaction system.
According to a preferred embodiment of the present invention, before synchronizing account data from the centralized transaction system to the up-speed transaction system, the method further comprises:
detecting whether the connectivity between the centralized transaction system and the top-speed transaction system is normal;
and when the connectivity between the centralized transaction system and the extremely-fast transaction system is normal, synchronizing the account data from the centralized transaction system to the extremely-fast transaction system.
According to a preferred embodiment of the present invention, the synchronizing account data from the centralized transaction system to the very fast transaction system comprises:
synchronizing account data from the centralized transaction system to the up-speed transaction system via a file or interface.
According to a preferred embodiment of the present invention, the detecting the failure of the heterogeneous security trading system according to the first execution result and the second execution result comprises:
when the order result in the first execution result and the second execution result is the same, determining that the heterogeneous security trading system passes the permission side detection;
when the order results in the first execution result and the second execution result are different, determining that the heterogeneous security trading system fails the detection of the authority side;
when the first execution result and the second execution result both show successful declaration of an order, or the first execution result and the second execution result both show refusal of the order due to insufficient authority, determining that the order results are the same;
and when one of the first execution result and the second execution result shows that the order is successfully declared and the other one shows that the order is rejected due to insufficient authority, determining that the order results are different.
According to a preferred embodiment of the present invention, the detecting the failure of the heterogeneous security trading system according to the first execution result and the second execution result comprises:
when the coupon resource variation in the first execution result and the second execution result is the same, determining that the heterogeneous security trading system passes the business side detection;
when the ticket resource variation in the first execution result and the second execution result is different, determining that the heterogeneous security trading system fails the service side detection;
when the fund variation and the position taking variation of the orders of the first execution result and the second execution result are the same, determining that the fund variation is the same;
and when the fund variation of the first execution result and the fund variation of the second execution result are different and/or the position change is different, determining that the coupon fund variation is different.
A failure detection apparatus of a heterogeneous security trading system, which operates in the heterogeneous security trading system including a centralized trading system and a super-speed trading system, the failure detection apparatus of the heterogeneous security trading system comprising:
a synchronization unit for synchronizing account data from the centralized trading system to the very fast trading system in response to a failure detection instruction for the heterogeneous security trading system;
the starting unit is used for starting the centralized transaction system and the top-speed transaction system after synchronization is completed;
the issuing unit is used for issuing the same order to the centralized transaction system and the extremely fast transaction system after the centralized transaction system and the extremely fast transaction system are started;
the execution unit is used for executing the order in the centralized trading system and the rapid trading system respectively to obtain a first execution result of the centralized trading system and a second execution result of the rapid trading system;
and the detection unit is used for carrying out failure detection on the heterogeneous security trading system according to the first execution result and the second execution result.
A computer device, the computer device comprising:
a memory storing at least one instruction; and
a processor executing instructions stored in the memory to implement a failure detection method of the heterogeneous security trading system.
A computer-readable storage medium having stored therein at least one instruction for execution by a processor in a computer device to implement a failure detection method for the heterogeneous security trading system.
According to the technical scheme, the method and the device can verify the consistency of the account authority between the centralized trading system and the rapid trading system in the heterogeneous security trading system to judge whether the authority is in compliance, and simultaneously verify the consistency of the trading standard between the centralized trading system and the rapid trading system to judge whether the trading standard is in compliance with the exchange standard, so that the heterogeneous security trading system is subjected to automatic failure detection.
Drawings
FIG. 1 is a flow chart of the exemplary embodiment of the failure detection method of the heterogeneous security trading system of the present invention.
FIG. 2 is a functional block diagram of the failure detection apparatus of the heterogeneous security transaction system according to the preferred embodiment of the present invention.
FIG. 3 is a schematic structural diagram of a computer device for implementing the failure detection method of the heterogeneous security trading system according to the preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flow chart of a preferred embodiment of the failure detection method of the heterogeneous security trading system of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The failure detection method of the heterogeneous security trading system is applied to one or more computer devices, wherein the computer devices are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and hardware of the computer devices comprises but is not limited to a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device and the like.
The computer device may be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive web Television (IPTV), an intelligent wearable device, and the like.
The computer device may also include a network device and/or a user device. The network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network servers.
The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The Network in which the computer device is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
The failure detection method of the heterogeneous security trading system is applied to the heterogeneous security trading system, the heterogeneous security trading system comprises a centralized trading system and a rapid trading system, and the failure detection method comprises the following steps:
and S10, responding to a failure detection instruction of the heterogeneous security trading system, and synchronizing account data from the centralized trading system to the high-speed trading system.
In this embodiment, the failure detection instruction may be triggered by a relevant worker, or may be configured to be triggered periodically, which is not limited in the present invention.
In this embodiment, the centralized trading system is oriented to common scattered households, and the centralized trading system includes a security trading whole-flow function, specifically including account management, fund management, trading management, query service, and clearing service;
the extremely fast trading system is oriented to institutional customers and high net value individual customers, and only provides a trading function;
the ultra-fast trading system has a lower trading latency than the centralized trading system.
Wherein, since the ultra-fast trading system focuses more on lower trading latency, only trading function is usually provided, and account data, fund position data, authority data, fee data and the like of investors are usually acquired from the centralized trading system.
In this embodiment, when the failure detection includes authority side detection, the centralized transaction system includes a batch of accounts, each account in the batch of accounts has different authority and authority identifier, and the batch of accounts is configured to execute transactions on the very fast transaction system; and
when the failure detection comprises business side detection, the centralized transaction system comprises a target account, the target account has the maximum authority, and the target account is configured to execute transaction on the extremely fast transaction system.
In this embodiment, before synchronizing account data from the centralized transaction system to the up-speed transaction system, the method further comprises:
detecting whether the connectivity between the centralized transaction system and the top-speed transaction system is normal;
and when the connectivity between the centralized transaction system and the extremely fast transaction system is normal, synchronizing the account data from the centralized transaction system to the extremely fast transaction system.
Through the embodiment, data transmission can be ensured between the centralized transaction system and the rapid transaction system before failure detection.
In this embodiment, the synchronizing account data from the centralized transaction system to the very fast transaction system includes:
synchronizing account data from the centralized transaction system to the up-speed transaction system via a file or interface.
And S11, after the synchronization is finished, starting the centralized transaction system and the top-speed transaction system.
In this embodiment, the centralized transaction system and the fast transaction system are started, so that transactions can be executed in the centralized transaction system and the fast transaction system respectively in the following.
And S12, after the centralized transaction system and the rapid transaction system are started, the same order is issued to the centralized transaction system and the rapid transaction system.
In this embodiment, the same order can be issued to the centralized transaction system and the very fast transaction system through an API (Application Programming Interface) comparison tool. That is, the order has the same order elements of account, business type, consignment type, security code, price, etc. in the centralized transaction system and the ultra-fast transaction system.
And S13, executing the order in the centralized transaction system and the rapid transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the rapid transaction system.
The first execution result comprises an order result and a coupon resource variation obtained after the order is executed in the centralized transaction system.
The second execution result comprises an order result and a ticket resource variation obtained after the order is executed in the extremely-high-speed trading system.
And S14, performing failure detection on the heterogeneous security trading system according to the first execution result and the second execution result.
In this embodiment, whether the control of the account authority of the very fast trading system conforms to the exchange specification and is consistent with the centralized trading system is a very critical compliance requirement. Therefore, authority side detection is required to ensure that the top-speed trading system is always consistent with the centralized trading system in authority control, and the risk of out-of-control authority is prevented.
Specifically, the detecting the failure of the heterogeneous security trading system according to the first execution result and the second execution result includes:
when the order results in the first execution result and the second execution result are the same, judging that the authority identification control logics are consistent, and determining that the heterogeneous security trading system passes the authority side detection;
when the order results in the first execution result and the second execution result are different, judging that the authority identification control logics are inconsistent, and determining that the heterogeneous security trading system fails the authority side detection;
when the first execution result and the second execution result both show that the order is successfully declared, or the first execution result and the second execution result both show that the order is rejected due to insufficient authority, determining that the order results are the same;
and when one of the first execution result and the second execution result shows that the order is successfully declared and the other one shows that the order is rejected due to insufficient authority, determining that the order results are different.
Through the embodiment, the authority side detection can be executed, and the risk of out-of-control authority is prevented.
In this embodiment, whether the service transaction control of the top-speed transaction system meets the specification of the exchange and is consistent with the centralized transaction system is a basic premise that the top-speed transaction system is online. Once the business transaction control is in error, the serious result of the loss of control of the resource ticket can be caused. Therefore, service side detection is required to ensure that the rapid trading system is always consistent with the centralized trading system in service trading control, so as to prevent the risk of out-of-control of the voucher.
Specifically, the performing failure detection on the heterogeneous security trading system according to the first execution result and the second execution result includes:
when the coupon resource variation in the first execution result and the second execution result is the same, determining that the business control logic is consistent, and determining that the heterogeneous security trading system passes the business side detection;
when the coupon resource variation in the first execution result and the second execution result is different, judging that service control logics are inconsistent, and determining that the heterogeneous security trading system fails the service side detection;
when the fund variation and the position taking variation of the orders of the first execution result and the second execution result are the same, determining that the fund variation is the same;
and when the fund variation of the first execution result and the fund variation of the second execution result are different and/or the position change is different, determining that the coupon fund variation is different.
Wherein, whether the charging of the fee is consistent or not can be indirectly judged by judging whether the fund variation is consistent or not.
In the above embodiment, since the account has the maximum authority, the completely same orders (the same order elements such as account, business type, entrusting type, security code, price, and the like) are sent to the centralized trading system and the very fast trading system through the API, respectively, so that the orders are necessarily successfully declared in principle, and the order states are controlled to be consistent through the same simulated match. At this time, whether the transaction control logic is consistent or not can be judged by checking the fund and position change of the account under the two systems.
Through the embodiment, the service side detection can be executed, and the risk of out-of-control of the resource ticket is prevented.
By comparing the executed orders, the consistency of the authority and the service control of the top-speed trading system and the centralized trading system can be ensured, so that the authority and the service processing logic of the top-speed trading system are judged to be correct, and a decision basis for passing the test is provided for the online of the top-speed trading system.
According to the technical scheme, the method and the device can verify the consistency of the account authority between the centralized trading system and the rapid trading system in the heterogeneous security trading system to judge whether the authority is in compliance, and simultaneously verify the consistency of the trading standard between the centralized trading system and the rapid trading system to judge whether the trading standard is in compliance with the exchange standard, so that the heterogeneous security trading system is subjected to automatic failure detection.
Fig. 2 is a functional block diagram of a failure detection apparatus of the heterogeneous security transaction system according to the preferred embodiment of the present invention. The failure detection device 11 of the heterogeneous security trading system comprises a synchronization unit 110, a starting unit 111, an issuing unit 112, an execution unit 113 and a detection unit 114. A module/unit as referred to herein is a series of computer program segments stored in a memory that can be executed by a processor and that can perform a fixed function. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
The failure detection device 11 of the heterogeneous security trading system is operated in the heterogeneous security trading system, the heterogeneous security trading system comprises a centralized trading system and a rapid trading system, and the failure detection device comprises:
the synchronization unit 110 is configured to synchronize account data from the centralized trading system to the ultra-fast trading system in response to a failure detection instruction for the heterogeneous security trading system.
In this embodiment, the failure detection instruction may be triggered by a relevant worker, or may be configured to be triggered periodically, which is not limited in the present invention.
In this embodiment, the centralized trading system is oriented to common scattered households, and the centralized trading system includes a security trading whole-flow function, specifically including account management, fund management, trading management, query service, and clearing service;
the extremely fast trading system is oriented to institutional customers and high-net-value individual customers, and only provides trading functions;
the ultra-fast trading system has a lower trading latency than the centralized trading system.
Wherein, since the ultra-fast trading system focuses more on lower trading latency, only trading function is usually provided, and account data, fund position data, authority data, fee data and the like of investors are usually acquired from the centralized trading system.
In this embodiment, when the failure detection includes authority side detection, the centralized transaction system includes a batch of accounts, each account in the batch of accounts has different authority and authority identifier, and the batch of accounts is configured to execute transactions on the very fast transaction system; and
when the failure detection comprises business side detection, the centralized transaction system comprises a target account, the target account has the maximum authority, and the target account is configured to execute transaction on the extremely fast transaction system.
In this embodiment, before synchronizing account data from the centralized transaction system to the fast transaction system, detecting whether connectivity between the centralized transaction system and the fast transaction system is normal;
and when the connectivity between the centralized transaction system and the extremely-fast transaction system is normal, synchronizing the account data from the centralized transaction system to the extremely-fast transaction system.
Through the embodiment, data transmission between the centralized transaction system and the rapid transaction system can be ensured before failure detection.
In this embodiment, the synchronizing unit 110 for synchronizing the account data from the centralized transaction system to the fast transaction system includes:
synchronizing account data from the centralized transaction system to the up-speed transaction system via a file or interface.
The starting unit 111 is configured to start the centralized transaction system and the fast transaction system after synchronization is completed.
In this embodiment, the starting unit 111 starts the centralized transaction system and the very fast transaction system, so that transactions can be subsequently executed in the centralized transaction system and the very fast transaction system, respectively.
The issuing unit 112 is configured to issue the same order to the centralized transaction system and the rapid transaction system after the centralized transaction system and the rapid transaction system are started.
In this embodiment, the same order may be issued to the centralized transaction system and the very fast transaction system through an API (Application Programming Interface) comparison tool. That is, the order has the same order elements of account, business type, consignment type, security code, price, etc. in the centralized transaction system and the ultra-fast transaction system.
The execution unit 113 is configured to execute the order in the centralized transaction system and the fast transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the fast transaction system.
The first execution result comprises an order result and a ticket resource variation obtained after the order is executed in the centralized trading system.
The second execution result comprises an order result and a coupon resource variation obtained after the order is executed in the extremely-high-speed trading system.
The detecting unit 114 is configured to perform failure detection on the heterogeneous security trading system according to the first execution result and the second execution result.
In this embodiment, whether the control of the account authority of the very fast trading system conforms to the exchange specification and is consistent with the centralized trading system is a very critical compliance requirement. Therefore, authority side detection is required to be carried out to ensure that the top-speed trading system is always consistent with the centralized trading system in authority control, and the risk of out-of-control authority is prevented.
Specifically, the detecting unit 114, performing failure detection on the heterogeneous security trading system according to the first execution result and the second execution result, includes:
when the order results in the first execution result and the second execution result are the same, judging that the authority identification control logics are consistent, and determining that the heterogeneous security trading system passes the authority side detection;
when the order results in the first execution result and the second execution result are different, judging that the authority identification control logics are inconsistent, and determining that the heterogeneous security trading system fails the authority side detection;
when the first execution result and the second execution result both show that the order is successfully declared, or the first execution result and the second execution result both show that the order is rejected due to insufficient authority, determining that the order results are the same;
and when one of the first execution result and the second execution result shows that the order is successfully declared and the other one shows that the order is rejected due to insufficient authority, determining that the order results are different.
Through the embodiment, the authority side detection can be executed, and the risk of out-of-control authority is prevented.
In this embodiment, whether the service transaction control of the top-speed transaction system meets the specification of the exchange and is consistent with the centralized transaction system is a basic premise that the top-speed transaction system is online. Once the business transaction control is in error, the serious result of the loss of control of the resource ticket can be caused. Therefore, service side detection is required to ensure that the rapid trading system is always consistent with the centralized trading system in terms of service trading control, so as to prevent the risk of losing control of the resource tickets.
Specifically, the detecting unit 114 performs failure detection on the heterogeneous security trading system according to the first execution result and the second execution result, including:
when the ticket resource variation in the first execution result and the second execution result is the same, judging that the business control logic is consistent, and determining that the heterogeneous security trading system passes the business side detection;
when the coupon resource variation in the first execution result and the second execution result is different, judging that service control logics are inconsistent, and determining that the heterogeneous security trading system fails the service side detection;
when the variable quantity of the order fund and the variable quantity of the position taken of the first execution result and the second execution result are the same, determining that the variable quantity of the order fund is the same;
and when the fund variation of the first execution result and the fund variation of the second execution result are different and/or the position change is different, determining that the coupon fund variation is different.
Wherein, whether the charge is consistent or not can be indirectly judged by judging whether the fund variation is consistent or not.
In the above embodiment, since the account has the maximum authority, the completely same orders (the order elements such as the account, the service type, the consignment type, the security code, the price, and the like are all the same) are respectively sent to the centralized trading system and the rapid trading system through the API, so that the orders must be successfully declared in principle, and the order states are controlled to be consistent through the same simulated matching. At this time, whether the transaction control logic is consistent or not can be judged by checking the fund and position change of the account under the two systems.
Through the embodiment, the service side detection can be executed, and the risk of out-of-control of the resource ticket is prevented.
By comparing the executed orders, the consistency of the authority and the service control of the top-speed trading system and the centralized trading system can be ensured, so that the authority and the service processing logic of the top-speed trading system are judged to be correct, and a decision basis for passing the test is provided for the online of the top-speed trading system.
According to the technical scheme, the method and the device can verify the consistency of the account authority between the centralized trading system and the rapid trading system in the heterogeneous security trading system to judge whether the authority is in compliance, and simultaneously verify the consistency of the trading standard between the centralized trading system and the rapid trading system to judge whether the trading standard is in compliance with the exchange standard, so that the heterogeneous security trading system is subjected to automatic failure detection.
Fig. 3 is a schematic structural diagram of a computer device for implementing the failure detection method of the heterogeneous security trading system according to the preferred embodiment of the present invention.
The computer device 1 may comprise a memory 12, a processor 13 and a bus, and may further comprise a computer program stored in the memory 12 and executable on the processor 13, such as a failure detection program of a heterogeneous security trading system.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the computer device 1, and does not constitute a limitation to the computer device 1, the computer device 1 may be in a bus structure or a star structure, the computer device 1 may include more or less hardware or software than those shown, or different component arrangements, for example, the computer device 1 may further include an input and output device, a network access device, and the like.
It should be noted that the computer device 1 is only an example, and other electronic products that are currently available or may come into existence in the future, such as electronic products that can be adapted to the present invention, should also be included in the scope of the present invention, and are included herein by reference.
The memory 12 includes at least one type of readable storage medium, which includes flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 12 may in some embodiments be an internal storage unit of the computer device 1, for example a removable hard disk of the computer device 1. The memory 12 may also be an external storage device of the computer device 1 in other embodiments, such as a plug-in removable hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device 1. Further, the memory 12 may also include both an internal storage unit and an external storage device of the computer device 1. The memory 12 may be used not only to store application software installed in the computer device 1 and various kinds of data such as codes of a failure detection program of a heterogeneous security trading system, etc., but also to temporarily store data that has been output or is to be output.
The processor 13 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 13 is a Control Unit (Control Unit) of the computer device 1, connects various components of the entire computer device 1 by using various interfaces and lines, and executes various functions and processes data of the computer device 1 by running or executing programs or modules (for example, executing a failure detection program of a heterogeneous security trading system, etc.) stored in the memory 12 and calling data stored in the memory 12.
The processor 13 executes the operating system of the computer device 1 and various installed application programs. The processor 13 executes the application program to implement the steps in the above-described embodiments of the failure detection method for heterogeneous security trading systems, such as the steps shown in fig. 1.
Illustratively, the computer program may be divided into one or more modules/units, which are stored in the memory 12 and executed by the processor 13 to accomplish the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the computer device 1. For example, the computer program may be divided into a synchronization unit 110, a start unit 111, a distribution unit 112, an execution unit 113, a detection unit 114.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a computer device, or a network device) or a processor (processor) to execute the parts of the failure detection method of the heterogeneous security trading system according to the embodiments of the present invention.
The modules/units integrated by the computer device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random-access Memory, or the like.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one line is shown in FIG. 3, but this does not mean only one bus or one type of bus. The bus is arranged to enable connection communication between the memory 12 and at least one processor 13 or the like.
Although not shown, the computer device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 13 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The computer device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the computer device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the computer device 1 and other computer devices.
Optionally, the computer device 1 may further comprise a user interface, which may be a Display (Display), an input unit, such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the computer device 1 and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
Fig. 3 shows only the computer device 1 with the components 12-13, and it will be understood by a person skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the computer device 1 and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
Referring to fig. 1, the memory 12 of the computer device 1 stores a plurality of instructions to implement a failure detection method of a heterogeneous security trading system, and the processor 13 can execute the plurality of instructions to implement:
synchronizing account data from the centralized trading system to the very fast trading system in response to failure detection instructions for the heterogeneous security trading system;
after the synchronization is finished, starting the centralized transaction system and the extremely fast transaction system;
after the centralized transaction system and the top speed transaction system are started, the same order is issued to the centralized transaction system and the top speed transaction system;
executing the order in the centralized trading system and the rapid trading system respectively to obtain a first execution result of the centralized trading system and a second execution result of the rapid trading system;
and performing failure detection on the heterogeneous security trading system according to the first execution result and the second execution result.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the instruction, which is not described herein again.
It should be noted that all the data involved in the present application are legally acquired.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it will be obvious that the term "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the present invention may also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. A failure detection method of a heterogeneous security trading system is applied to the heterogeneous security trading system, the heterogeneous security trading system comprises a centralized trading system and a super-speed trading system, and the failure detection method of the heterogeneous security trading system comprises the following steps:
synchronizing account data from the centralized trading system to the very fast trading system in response to failure detection instructions for the heterogeneous security trading system;
after the synchronization is finished, starting the centralized transaction system and the extremely fast transaction system;
after the centralized transaction system and the top speed transaction system are started, the same order is issued to the centralized transaction system and the top speed transaction system;
executing the order in the centralized transaction system and the rapid transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the rapid transaction system;
and performing failure detection on the heterogeneous security trading system according to the first execution result and the second execution result.
2. The failure detection method of a heterogeneous security trading system of claim 1, wherein:
the centralized trading system is oriented to common scattered households, and comprises the functions of the whole security trading process, specifically comprising account management, fund management, trading management, query service and clearing service;
the extremely fast trading system is oriented to institutional customers and high-net-value individual customers, and only provides trading functions;
the up-speed trading system has a lower trading latency than the centralized trading system.
3. The failure detection method of a heterogeneous security trading system of claim 1, wherein:
when the failure detection comprises authority side detection, the centralized transaction system comprises a batch of accounts, each account in the batch of accounts has different authority and authority identification, and the batch of accounts are configured to execute transaction on the extremely-high-speed transaction system; and
when the failure detection comprises business side detection, the centralized transaction system comprises a target account, the target account has the maximum authority, and the target account is configured to execute transaction on the extremely fast transaction system.
4. The failure detection method in a heterogeneous securities trading system of claim 1, wherein prior to synchronizing account data from said centralized trading system to said ultra-fast trading system, said method further comprises:
detecting whether the connectivity between the centralized transaction system and the extremely fast transaction system is normal;
and when the connectivity between the centralized transaction system and the extremely-fast transaction system is normal, synchronizing the account data from the centralized transaction system to the extremely-fast transaction system.
5. The failure detection method of a heterogeneous security trading system of claim 1, wherein synchronizing account data from the centralized trading system to the ultra trading system comprises:
synchronizing account data from the centralized transaction system to the up-speed transaction system via a file or interface.
6. The method of claim 3, wherein said detecting the failure of the heterogeneous security trading system based on the first execution result and the second execution result comprises:
when the order results in the first execution result and the second execution result are the same, determining that the heterogeneous security trading system passes the permission side detection;
when the order results in the first execution result and the second execution result are different, determining that the heterogeneous security trading system fails the detection of the authority side;
when the first execution result and the second execution result both show that the order is successfully declared, or the first execution result and the second execution result both show that the order is rejected due to insufficient authority, determining that the order results are the same;
and when one of the first execution result and the second execution result shows that the order is successfully declared and the other one shows that the order is rejected due to insufficient authority, determining that the order results are different.
7. The method of claim 3, wherein said detecting the failure of the heterogeneous security trading system based on the first execution result and the second execution result comprises:
when the ticket resource variation in the first execution result and the second execution result is the same, determining that the heterogeneous security trading system passes the service side detection;
when the ticket resource variation in the first execution result and the second execution result is different, determining that the heterogeneous security trading system fails the service side detection;
when the variable quantity of the order fund and the variable quantity of the position taken of the first execution result and the second execution result are the same, determining that the variable quantity of the order fund is the same;
and when the fund variation of the first execution result and the fund variation of the second execution result are different and/or the position change is different, determining that the coupon fund variation is different.
8. A failure detection apparatus of a heterogeneous security trading system, which is operated in the heterogeneous security trading system including a centralized trading system and a super-speed trading system, the failure detection apparatus of the heterogeneous security trading system comprising:
a synchronization unit for synchronizing account data from the centralized trading system to the very fast trading system in response to a failure detection instruction for the heterogeneous security trading system;
the starting unit is used for starting the centralized transaction system and the extremely fast transaction system after the synchronization is finished;
the issuing unit is used for issuing the same order to the centralized transaction system and the extremely fast transaction system after the centralized transaction system and the extremely fast transaction system are started;
the execution unit is used for executing the order in the centralized transaction system and the rapid transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the rapid transaction system;
and the detection unit is used for carrying out failure detection on the heterogeneous security trading system according to the first execution result and the second execution result.
9. A computer device, characterized in that the computer device comprises:
a memory storing at least one instruction; and
a processor executing instructions stored in the memory to implement the failure detection method of a heterogeneous security trading system of any of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium having stored therein at least one instruction for execution by a processor in a computer device to implement the failure detection method of a heterogeneous security trading system of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310249172.1A CN115936886B (en) | 2023-03-15 | 2023-03-15 | Failure detection method, device, equipment and medium for heterogeneous securities trading system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310249172.1A CN115936886B (en) | 2023-03-15 | 2023-03-15 | Failure detection method, device, equipment and medium for heterogeneous securities trading system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115936886A true CN115936886A (en) | 2023-04-07 |
CN115936886B CN115936886B (en) | 2023-06-27 |
Family
ID=86558033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310249172.1A Active CN115936886B (en) | 2023-03-15 | 2023-03-15 | Failure detection method, device, equipment and medium for heterogeneous securities trading system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115936886B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116225789A (en) * | 2023-05-09 | 2023-06-06 | 深圳华锐分布式技术股份有限公司 | Transaction system backup capability detection method, device, equipment and medium |
CN116541309A (en) * | 2023-07-03 | 2023-08-04 | 深圳华锐分布式技术股份有限公司 | Test method, device, equipment and medium based on transaction system conversion |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110178915A1 (en) * | 2010-01-15 | 2011-07-21 | Lime Brokerage Holding Llc | Trading Order Validation System and Method and High-Performance Trading Data Interface |
US20170148020A1 (en) * | 2015-11-23 | 2017-05-25 | Mastercard International Incorporated | Systems and Methods for Use in Verifying Recurring Transactions to Payment Accounts |
CN113807969A (en) * | 2021-09-22 | 2021-12-17 | 中国建设银行股份有限公司 | Parallel verification method for service system and related equipment |
WO2022142040A1 (en) * | 2020-12-29 | 2022-07-07 | 平安普惠企业管理有限公司 | Billing data verification method and apparatus, computer device and storage medium |
CN114782189A (en) * | 2022-04-25 | 2022-07-22 | 深圳市泰铼科技有限公司 | Artificial intelligence-based security programmed transaction real-time risk monitoring system and method |
CN115271736A (en) * | 2022-07-11 | 2022-11-01 | 中电金信软件有限公司 | Method, device, equipment, storage medium and product for verifying transaction consistency |
CN115345746A (en) * | 2022-10-17 | 2022-11-15 | 深圳华锐分布式技术股份有限公司 | Security transaction method, device, equipment and medium |
-
2023
- 2023-03-15 CN CN202310249172.1A patent/CN115936886B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110178915A1 (en) * | 2010-01-15 | 2011-07-21 | Lime Brokerage Holding Llc | Trading Order Validation System and Method and High-Performance Trading Data Interface |
US20170148020A1 (en) * | 2015-11-23 | 2017-05-25 | Mastercard International Incorporated | Systems and Methods for Use in Verifying Recurring Transactions to Payment Accounts |
WO2022142040A1 (en) * | 2020-12-29 | 2022-07-07 | 平安普惠企业管理有限公司 | Billing data verification method and apparatus, computer device and storage medium |
CN113807969A (en) * | 2021-09-22 | 2021-12-17 | 中国建设银行股份有限公司 | Parallel verification method for service system and related equipment |
CN114782189A (en) * | 2022-04-25 | 2022-07-22 | 深圳市泰铼科技有限公司 | Artificial intelligence-based security programmed transaction real-time risk monitoring system and method |
CN115271736A (en) * | 2022-07-11 | 2022-11-01 | 中电金信软件有限公司 | Method, device, equipment, storage medium and product for verifying transaction consistency |
CN115345746A (en) * | 2022-10-17 | 2022-11-15 | 深圳华锐分布式技术股份有限公司 | Security transaction method, device, equipment and medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116225789A (en) * | 2023-05-09 | 2023-06-06 | 深圳华锐分布式技术股份有限公司 | Transaction system backup capability detection method, device, equipment and medium |
CN116225789B (en) * | 2023-05-09 | 2023-08-11 | 深圳华锐分布式技术股份有限公司 | Transaction system backup capability detection method, device, equipment and medium |
CN116541309A (en) * | 2023-07-03 | 2023-08-04 | 深圳华锐分布式技术股份有限公司 | Test method, device, equipment and medium based on transaction system conversion |
CN116541309B (en) * | 2023-07-03 | 2023-09-29 | 深圳华锐分布式技术股份有限公司 | Test method, device, equipment and medium based on transaction system conversion |
Also Published As
Publication number | Publication date |
---|---|
CN115936886B (en) | 2023-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115936886B (en) | Failure detection method, device, equipment and medium for heterogeneous securities trading system | |
CN115964307B (en) | Automatic test method, device, equipment and medium for transaction data | |
CN115081538A (en) | Customer relationship identification method, device, equipment and medium based on machine learning | |
CN115617403A (en) | Clearing task execution method, device, equipment and medium based on task segmentation | |
CN114356530A (en) | Task scheduling method and device, electronic equipment and storage medium | |
CN114399397A (en) | Renewal tracking method, device, equipment and medium | |
CN114185776A (en) | Big data point burying method, device, equipment and medium for application program | |
CN116501610B (en) | Method, device, equipment and medium for testing market transaction system | |
CN115345746B (en) | Security transaction method, device, equipment and medium | |
CN115731047B (en) | Batch order processing method, equipment and medium | |
CN114816371B (en) | Message processing method, device, equipment and medium | |
CN115147031B (en) | Clearing workflow execution method, device, equipment and medium | |
CN116823141A (en) | Payment data processing method, device, equipment and medium | |
CN116188189A (en) | Data checking method, device, equipment and medium | |
CN115357666A (en) | Abnormal business behavior identification method and device, electronic equipment and storage medium | |
CN114372892A (en) | Payment data monitoring method, device, equipment and medium | |
CN113687834A (en) | Distributed system node deployment method, device, equipment and medium | |
CN116225789B (en) | Transaction system backup capability detection method, device, equipment and medium | |
CN116541309B (en) | Test method, device, equipment and medium based on transaction system conversion | |
CN115065642B (en) | Code table request method, device, equipment and medium under bandwidth limitation | |
CN116934263B (en) | Product batch admittance method, device, equipment and medium | |
CN118037453B (en) | Order processing method, device, equipment and medium of transaction system | |
CN116225971B (en) | Transaction interface compatibility detection method, device, equipment and medium | |
CN116414699A (en) | Operation and maintenance testing method, device, equipment and medium | |
CN115936885A (en) | Method, device, equipment and medium for real-time execution of clearing task |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |