CN115936886B - Failure detection method, device, equipment and medium for heterogeneous securities trading system - Google Patents

Failure detection method, device, equipment and medium for heterogeneous securities trading system Download PDF

Info

Publication number
CN115936886B
CN115936886B CN202310249172.1A CN202310249172A CN115936886B CN 115936886 B CN115936886 B CN 115936886B CN 202310249172 A CN202310249172 A CN 202310249172A CN 115936886 B CN115936886 B CN 115936886B
Authority
CN
China
Prior art keywords
transaction system
execution result
heterogeneous
trading system
centralized
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.)
Active
Application number
CN202310249172.1A
Other languages
Chinese (zh)
Other versions
CN115936886A (en
Inventor
曾俊海
张笑虹
苗咏
邹胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huarui Distributed Technology Co ltd
Original Assignee
Shenzhen Huarui Distributed Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Huarui Distributed Technology Co ltd filed Critical Shenzhen Huarui Distributed Technology Co ltd
Priority to CN202310249172.1A priority Critical patent/CN115936886B/en
Publication of CN115936886A publication Critical patent/CN115936886A/en
Application granted granted Critical
Publication of CN115936886B publication Critical patent/CN115936886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the technical field of big data, and provides a failure detection method, device, equipment and medium for a heterogeneous securities trading system, which can verify the consistency of account authorities between a centralized trading system and a very fast trading system in the heterogeneous securities trading system to judge whether the authorities are compliant or not, and verify the consistency of trade specifications between the centralized trading system and the very fast trading system to judge whether the trade specifications are met or not, so as to automatically failure detect the heterogeneous securities trading system.

Description

Failure detection method, device, equipment and medium for heterogeneous securities trading system
Technical Field
The invention relates to the technical field of big data, in particular to a failure detection method, device, equipment and medium of a heterogeneous securities trading system.
Background
At present, the proportion of the market value held by the investors of professional institutions in China to the total market value held by market investors is improved from 15.88% in 2010 to 17.77% in 2020, and the trend of capital marketing organization is obvious. In the face of the increasingly severe pursuit of investors in institutions for trade time delay, centralized trading systems have gradually failed to meet current market demands, and all ticket merchants are gradually pushing out low-time-delay extremely-fast trading systems so as to preempt the investors in institutions.
The extremely fast transaction system is more focused on lower transaction delay, is generally significantly different from the centralized transaction system in the architecture of system deployment, and also has optimized transaction execution logic, so that a unified method is needed to verify how to ensure the consistency of two heterogeneous system types of the extremely fast transaction system and the centralized transaction system in the aspects of account related data synchronization, transaction execution logic and the like.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a failure detection method, apparatus, device and medium for a heterogeneous securities trading system, which can automatically perform failure detection on the heterogeneous securities trading system.
A failure detection method of a heterogeneous securities trading system is applied to the heterogeneous securities trading system, wherein the heterogeneous securities trading system comprises a centralized trading system and a very fast trading system, and the failure detection method of the heterogeneous securities trading system comprises the following steps:
synchronizing account data from the centralized trading system to the extremely fast trading system in response to a failure detection instruction to the heterogeneous securities trading system;
after synchronization is completed, starting the centralized transaction system and the extremely-fast transaction system;
After the centralized transaction system and the extremely-fast transaction system are started, the same order is issued to the centralized transaction system and the extremely-fast transaction system;
executing the order in the centralized transaction system and the extremely fast transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the extremely fast transaction system;
and performing failure detection on the heterogeneous securities trading system according to the first execution result and the second execution result.
According to the preferred embodiment of the invention, the centralized transaction system is oriented to common scattered households, and comprises a securities transaction whole-flow function, specifically comprising account management, fund management, transaction management, inquiry service and clearing service;
the high-speed transaction system is oriented to institution clients and high-net-value personal clients and only provides transaction functions;
the extremely fast transaction system has a lower transaction latency than the centralized transaction system.
According to a preferred embodiment of the present invention, when the invalidation detection comprises rights side detection, the centralized transaction system comprises a batch of accounts, each account in the batch having different rights and rights identifications, and the batch of accounts being configured to perform transactions on the extremely fast transaction system; a kind of electronic device with high-pressure air-conditioning system
When the failure detection includes a service side detection, the centralized transaction system includes a target account having maximum authority and configured to perform transactions 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 extremely fast transaction system, the method further comprises:
detecting whether connectivity between the centralized transaction system and the extremely-fast transaction system is normal or not;
and synchronizing the account data from the centralized transaction system to the extremely fast transaction system when the connectivity between the centralized transaction system and the extremely fast transaction system is normal.
According to a preferred embodiment of the present invention, the synchronizing account data from the centralized transaction system to the extremely fast transaction system includes:
and synchronizing account data from the centralized transaction system to the extremely fast transaction system through a file or interface.
According to a preferred embodiment of the present invention, the performing invalidation detection on the heterogeneous securities 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, determining that the heterogeneous securities trading system passes the authority side detection;
When the order results in the first execution result and the second execution result are different, determining that the heterogeneous securities trading system does not pass the authority side detection;
when the first execution result and the second execution result show that the order is successfully declared or the first execution result and the second execution result show that the order is refused due to the 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 refused due to insufficient authority, determining that the order results are different.
According to a preferred embodiment of the present invention, the performing invalidation detection on the heterogeneous securities trading system according to the first execution result and the second execution result includes:
when the ticket resource variation in the first execution result and the second execution result is the same, determining that the heterogeneous securities trading system passes the service side detection;
when the ticket resource variation in the first execution result and the ticket resource variation in the second execution result are different, determining that the heterogeneous securities trading system does not pass the service side detection;
When the order fund change amount and the holding warehouse change amount of the first execution result and the second execution result are the same, determining that the coupon fund change amount is the same;
and when the fund change amounts of the first execution result and the second execution result are different, or the holding change amounts are different, determining that the coupon change amounts are different.
A failure detection device of a heterogeneous securities trading system, which is operated in the heterogeneous securities trading system, wherein the heterogeneous securities trading system comprises a centralized trading system and a very fast trading system, and the failure detection device of the heterogeneous securities trading system comprises:
a synchronizing unit for synchronizing account data from the centralized trading system to the extremely fast trading system in response to a failure detection instruction to the heterogeneous securities trading system;
the starting unit is used for starting the centralized transaction system and the extremely-fast 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 transaction system and the extremely-fast transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the extremely-fast transaction system;
And the detection unit is used for performing failure detection on the heterogeneous securities 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; a kind of electronic device with high-pressure air-conditioning system
And the processor executes the instructions stored in the memory to realize a failure detection method of the heterogeneous securities 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 of the heterogeneous securities trading system.
According to the technical scheme, the method and the system can verify the consistency of the account authorities between the centralized trading system and the extremely-fast trading system in the heterogeneous securities trading system to judge whether the authorities are in compliance, and verify the consistency of the trade specifications between the centralized trading system and the extremely-fast trading system to judge whether the trade specifications are met or not, so that automatic invalidation detection is carried out on the heterogeneous securities trading system.
Drawings
FIG. 1 is a flow chart of a failure detection method of the heterogeneous securities trading system according to a preferred embodiment of the present invention.
FIG. 2 is a functional block diagram of a failure detection device of the heterogeneous securities trading system according to a preferred embodiment of the present invention.
FIG. 3 is a schematic diagram of a computer device for implementing a failure detection method of a heterogeneous securities trading system according to a 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 failure detection method of the heterogeneous securities trading system according to a preferred embodiment of the present invention. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs.
The failure detection method of the heterogeneous securities trading system is applied to one or more computer devices, wherein the computer device is a device capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and the hardware comprises, but is not limited to, a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device and the like.
The computer device may be any electronic product that can interact with a user in a human-computer manner, such as a personal computer, tablet computer, smart phone, personal digital assistant (Personal Digital Assistant, PDA), game console, interactive internet protocol television (Internet Protocol Television, IPTV), smart wearable device, etc.
The computer device may also include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network server, a server group composed of a plurality of network servers, or a Cloud based Cloud Computing (Cloud Computing) composed of a large number of hosts or network servers.
The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Artificial intelligence infrastructure technologies generally include 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 other directions.
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 (Virtual Private Network, VPN), and the like.
The failure detection method of the heterogeneous securities trading system is applied to the heterogeneous securities trading system, wherein the heterogeneous securities trading system comprises a centralized trading system and a very fast trading system, and comprises the following steps:
s10, responding to a failure detection instruction of the heterogeneous securities trading system, and synchronizing account data from the centralized trading system to the extremely fast trading system.
In this embodiment, the failure detection command may be triggered by an associated staff member, or may be configured to be triggered periodically, which is not limited by the present invention.
In this embodiment, the centralized transaction system is oriented to a common individual, and the centralized transaction system includes a security transaction complete flow function, specifically including account management, fund management, transaction management, inquiry service, and clearing service;
The high-speed transaction system is oriented to institution clients and high-net-value personal clients and only provides transaction functions;
the extremely fast transaction system has a lower transaction latency than the centralized transaction system.
Among them, since the extremely fast transaction system focuses more on lower transaction delay, only transaction functions are generally provided, and account data, fund holding data, rights data, cost data, etc. of investors are generally required to be acquired from the centralized transaction system.
In this embodiment, when the invalidation detection includes rights side detection, the centralized transaction system includes a batch of accounts, each account in the batch of accounts having different rights and rights identifications, and the batch of accounts being configured to perform transactions on the extremely fast transaction system; a kind of electronic device with high-pressure air-conditioning system
When the failure detection includes a service side detection, the centralized transaction system includes a target account having maximum authority and configured to perform transactions on the extremely fast transaction system.
In this embodiment, before synchronizing account data from the centralized transaction system to the extremely fast transaction system, the method further comprises:
Detecting whether connectivity between the centralized transaction system and the extremely-fast transaction system is normal or not;
and synchronizing the account data from the centralized transaction system to the extremely fast transaction system when the connectivity between the centralized transaction system and the extremely fast transaction system is normal.
By the embodiment, the centralized transaction system and the extremely-fast transaction system can be ensured to perform data transmission before failure detection.
In this embodiment, synchronizing account data from the centralized transaction system to the extremely fast transaction system includes:
and synchronizing account data from the centralized transaction system to the extremely fast transaction system through a file or interface.
S11, after synchronization is completed, starting the centralized transaction system and the extremely-fast transaction system.
In this embodiment, the centralized transaction system and the extremely fast transaction system are activated so that transactions may be subsequently performed in the centralized transaction system and the extremely fast transaction system, respectively.
S12, after the centralized transaction system and the extremely-fast transaction system are started, the same order is issued to the centralized transaction system and the extremely-fast transaction system.
In this embodiment, the same order may be placed by an API (Application Programming Interface, application program interface) comparison tool to the centralized transaction system and the fast transaction system. The order has the same account, business type, entrusting type, security code, price and other order elements in the centralized trading system and the extremely fast trading system.
S13, executing the order in the centralized transaction system and the extremely-fast transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the extremely-fast transaction system.
The first execution result comprises an order result and a ticket resource variable quantity obtained after the order is executed in the centralized transaction system.
The second execution result comprises an order result and a ticket resource variable quantity obtained after the order is executed in the extremely-fast transaction system.
S14, performing failure detection on the heterogeneous securities trading system according to the first execution result and the second execution result.
In this embodiment, whether the control of the extremely fast transaction system on account authority accords with the specification of the exchange and whether the control is consistent with the centralized transaction system is a very critical compliance requirement. Therefore, authority side detection is needed to ensure that the extremely fast transaction system is consistent with the centralized transaction system in authority control all the time, so that the risk of out-of-control of the authority is prevented.
Specifically, the performing invalidation detection on the heterogeneous securities 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 authority identification control logic is consistent, and determining that the heterogeneous securities 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 logic is inconsistent, and determining that the heterogeneous securities trading system does not pass the authority side detection;
when the first execution result and the second execution result show that the order is successfully declared or the first execution result and the second execution result show that the order is refused due to the 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 refused due to insufficient authority, determining that the order results are different.
By the embodiment, the authority side detection can be performed, and the risk of out-of-control authority is prevented.
In this embodiment, whether the business transaction control of the fast transaction system meets the specification of the exchange and is consistent with the centralized transaction system is a basic premise of online of the fast transaction system. Business transaction control once in error, can have serious consequences for the loss of control of the ticket. Therefore, the service side detection is needed to ensure that the extremely fast transaction system is consistent with the centralized transaction system in service transaction control all the time, so as to prevent the risk of out of control of the ticket.
Specifically, the performing invalidation detection on the heterogeneous securities trading system according to the first execution result and the second execution result includes:
when the ticket resource variation in the first execution result and the second execution result is the same, judging that the service control logic is consistent, and determining that the heterogeneous securities trading system passes the service side detection;
when the ticket resource variation in the first execution result and the ticket resource variation in the second execution result are different, judging that the service control logic is inconsistent, and determining that the heterogeneous securities trading system does not pass the service side detection;
when the order fund change amount and the holding warehouse change amount of the first execution result and the second execution result are the same, determining that the coupon fund change amount is the same;
And when the fund change amounts of the first execution result and the second execution result are different, or the holding change amounts are different, determining that the coupon change amounts are different.
Wherein, whether the charge of the fee is consistent can be indirectly judged by judging whether the change of the funds is consistent.
In the above embodiment, since the account has the maximum authority, and the same order (the order elements such as account, service type, commission type, security code, price, etc. are the same) is sent to the centralized transaction system and the fast transaction system respectively through the API, the order is basically declared successfully, and the status of the order is controlled to be consistent through the same simulation matching. At this time, by checking the funds and the change of the holding of the account under the two systems, whether the transaction control logic is consistent can be judged.
By the embodiment, the service side detection can be performed, and the risk of out-of-control of the coupons is prevented.
By comparing the execution orders, consistency of the authority and the business control of the extremely-fast transaction system and the centralized transaction system can be ensured, so that the authority and the business processing logic of the extremely-fast transaction system are judged to be correct, and a decision basis for passing the test is provided for the online of the extremely-fast transaction system.
According to the technical scheme, the method and the system can verify the consistency of the account authorities between the centralized trading system and the extremely-fast trading system in the heterogeneous securities trading system to judge whether the authorities are in compliance, and verify the consistency of the trade specifications between the centralized trading system and the extremely-fast trading system to judge whether the trade specifications are met or not, so that automatic invalidation detection is carried out on the heterogeneous securities trading system.
FIG. 2 is a functional block diagram of a failure detection device of the heterogeneous securities trading system according to a preferred embodiment of the present invention. The invalidation detection device 11 of the heterogeneous securities trade system comprises a synchronization unit 110, a starting unit 111, a issuing unit 112, an executing unit 113 and a detection unit 114. The module/unit referred to in the present invention refers to a series of computer program segments, which are stored in a memory, capable of being executed by a processor and of performing a fixed function. In the present embodiment, the functions of the respective modules/units will be described in detail in the following embodiments.
The invalidation detection device 11 of the heterogeneous securities trading system operates in the heterogeneous securities trading system, which includes a centralized trading system and a very fast trading system, comprising:
The synchronization unit 110 is configured to synchronize account data from the centralized trading system to the fast trading system in response to a failure detection instruction for the heterogeneous securities trading system.
In this embodiment, the failure detection command may be triggered by an associated staff member, or may be configured to be triggered periodically, which is not limited by the present invention.
In this embodiment, the centralized transaction system is oriented to a common individual, and the centralized transaction system includes a security transaction complete flow function, specifically including account management, fund management, transaction management, inquiry service, and clearing service;
the high-speed transaction system is oriented to institution clients and high-net-value personal clients and only provides transaction functions;
the extremely fast transaction system has a lower transaction latency than the centralized transaction system.
Among them, since the extremely fast transaction system focuses more on lower transaction delay, only transaction functions are generally provided, and account data, fund holding data, rights data, cost data, etc. of investors are generally required to be acquired from the centralized transaction system.
In this embodiment, when the invalidation detection includes rights side detection, the centralized transaction system includes a batch of accounts, each account in the batch of accounts having different rights and rights identifications, and the batch of accounts being configured to perform transactions on the extremely fast transaction system; a kind of electronic device with high-pressure air-conditioning system
When the failure detection includes a service side detection, the centralized transaction system includes a target account having maximum authority and configured to perform transactions on the extremely fast transaction system.
In this embodiment, before synchronizing account data from the centralized transaction system to the extremely fast transaction system, detecting whether connectivity between the centralized transaction system and the extremely fast transaction system is normal;
and synchronizing the account data from the centralized transaction system to the extremely fast transaction system when the connectivity between the centralized transaction system and the extremely fast transaction system is normal.
By the embodiment, the centralized transaction system and the extremely-fast transaction system can be ensured to perform data transmission before failure detection.
In this embodiment, the synchronizing unit 110 synchronizes account data from the centralized transaction system to the fast transaction system includes:
and synchronizing account data from the centralized transaction system to the extremely fast transaction system through 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 the present embodiment, the starting unit 111 starts the centralized transaction system and the extremely fast transaction system so that transactions can be subsequently performed in the centralized transaction system and the extremely fast transaction system, respectively.
The issuing unit 112 is configured to issue the same order to the centralized transaction system and the fast transaction system after the centralized transaction system and the fast transaction system are started.
In this embodiment, the same order may be placed by an API (Application Programming Interface, application program interface) comparison tool to the centralized transaction system and the fast transaction system. The order has the same account, business type, entrusting type, security code, price and other order elements in the centralized trading system and the extremely fast trading 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 variable quantity obtained after the order is executed in the centralized transaction system.
The second execution result comprises an order result and a ticket resource variable quantity obtained after the order is executed in the extremely-fast transaction system.
The detecting unit 114 is configured to perform failure detection on the heterogeneous securities trading system according to the first execution result and the second execution result.
In this embodiment, whether the control of the extremely fast transaction system on account authority accords with the specification of the exchange and whether the control is consistent with the centralized transaction system is a very critical compliance requirement. Therefore, authority side detection is needed to ensure that the extremely fast transaction system is consistent with the centralized transaction system in authority control all the time, so that the risk of out-of-control of the authority is prevented.
Specifically, the detecting unit 114 performs failure detection on the heterogeneous securities trading system according to the first execution result and the second execution result, including:
when the order results in the first execution result and the second execution result are the same, judging that authority identification control logic is consistent, and determining that the heterogeneous securities 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 logic is inconsistent, and determining that the heterogeneous securities trading system does not pass the authority side detection;
When the first execution result and the second execution result show that the order is successfully declared or the first execution result and the second execution result show that the order is refused due to the 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 refused due to insufficient authority, determining that the order results are different.
By the embodiment, the authority side detection can be performed, and the risk of out-of-control authority is prevented.
In this embodiment, whether the business transaction control of the fast transaction system meets the specification of the exchange and is consistent with the centralized transaction system is a basic premise of online of the fast transaction system. Business transaction control once in error, can have serious consequences for the loss of control of the ticket. Therefore, the service side detection is needed to ensure that the extremely fast transaction system is consistent with the centralized transaction system in service transaction control all the time, so as to prevent the risk of out of control of the ticket.
Specifically, the detecting unit 114 performs failure detection on the heterogeneous securities 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 service control logic is consistent, and determining that the heterogeneous securities trading system passes the service side detection;
when the ticket resource variation in the first execution result and the ticket resource variation in the second execution result are different, judging that the service control logic is inconsistent, and determining that the heterogeneous securities trading system does not pass the service side detection;
when the order fund change amount and the holding warehouse change amount of the first execution result and the second execution result are the same, determining that the coupon fund change amount is the same;
and when the fund change amounts of the first execution result and the second execution result are different, or the holding change amounts are different, determining that the coupon change amounts are different.
Wherein, whether the charge of the fee is consistent can be indirectly judged by judging whether the change of the funds is consistent.
In the above embodiment, since the account has the maximum authority, and the same order (the order elements such as account, service type, commission type, security code, price, etc. are the same) is sent to the centralized transaction system and the fast transaction system respectively through the API, the order is basically declared successfully, and the status of the order is controlled to be consistent through the same simulation matching. At this time, by checking the funds and the change of the holding of the account under the two systems, whether the transaction control logic is consistent can be judged.
By the embodiment, the service side detection can be performed, and the risk of out-of-control of the coupons is prevented.
By comparing the execution orders, consistency of the authority and the business control of the extremely-fast transaction system and the centralized transaction system can be ensured, so that the authority and the business processing logic of the extremely-fast transaction system are judged to be correct, and a decision basis for passing the test is provided for the online of the extremely-fast transaction system.
According to the technical scheme, the method and the system can verify the consistency of the account authorities between the centralized trading system and the extremely-fast trading system in the heterogeneous securities trading system to judge whether the authorities are in compliance, and verify the consistency of the trade specifications between the centralized trading system and the extremely-fast trading system to judge whether the trade specifications are met or not, so that automatic invalidation detection is carried out on the heterogeneous securities trading system.
FIG. 3 is a schematic diagram of a computer device for implementing a failure detection method of a heterogeneous securities trading system according to a 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 malfunction detection program of a heterogeneous securities 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 of the computer device 1, the computer device 1 may be a bus type structure, a star type structure, the computer device 1 may further comprise more or less other hardware or software than illustrated, or a different arrangement of components, for example, the computer device 1 may further comprise an input-output device, a network access device, etc.
It should be noted that the computer device 1 is only used as an example, and other electronic products that may be present in the present invention or may be present in the future are also included in the scope of the present invention by way of reference.
The memory 12 includes at least one type of readable storage medium including flash memory, a removable hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 12 may in some embodiments be an internal storage unit of the computer device 1, such as a removable hard disk of the computer device 1. The memory 12 may in other embodiments also be an external storage device of the computer device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are 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 for storing application software installed in the computer device 1 and various types of data, such as codes of failure detection programs of heterogeneous securities trading systems, etc., but also for temporarily storing data that has been output or is to be output.
The processor 13 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, a combination of various control chips, and the like. The processor 13 is a Control Unit (Control Unit) of the computer device 1, connects the respective components of the entire computer device 1 using various interfaces and lines, executes various functions of the computer device 1 and processes data by running or executing programs or modules stored in the memory 12 (for example, executing a failure detection program of a heterogeneous securities trading system, etc.), and calls data stored in the memory 12.
The processor 13 executes the operating system of the computer device 1 and various types of applications installed. The processor 13 executes the application program to implement the steps of the above-described embodiments of the failure detection method of each of the heterogeneous securities trading systems, such as the steps shown in fig. 1.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing the specified functions, which instruction segments 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-up unit 111, a delivery unit 112, an execution unit 113, a detection unit 114.
The integrated units implemented in the form of software functional modules described above may be stored in a computer readable storage medium. The software functional module is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a processor (processor) to execute portions of the failure detection method of the heterogeneous securities trade system according to the embodiments of the present invention.
The modules/units integrated in the computer device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on this understanding, the present invention may also be implemented by a computer program for instructing a relevant hardware device to implement all or part of the procedures of the above-mentioned embodiment method, where the computer program may be stored in a computer readable storage medium and the computer program may be executed by a processor to implement the steps of each of the above-mentioned method embodiments.
Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a 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 from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one straight line is shown in fig. 3, but not only one bus or one type of bus. The bus is arranged to enable a connection communication between the memory 12 and at least one processor 13 or the like.
Although not shown, the computer device 1 may further comprise a power source (such as a battery) for powering the various components, preferably the power source may be logically connected to the at least one processor 13 via a power management means, whereby the functions of charge management, discharge management, and power consumption management are achieved by the power management means. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The computer device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described in detail herein.
Further, the computer device 1 may also comprise a network interface, optionally comprising a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the computer device 1 and other computer devices.
The computer device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or 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, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the computer device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
Fig. 3 shows only a computer device 1 with components 12-13, it being understood by those skilled in the art that the structure shown in fig. 3 is not limiting of the computer device 1 and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
In connection with fig. 1, the memory 12 in the computer device 1 stores a plurality of instructions to implement a failure detection method of a heterogeneous securities trading system, the processor 13 being executable to implement:
synchronizing account data from the centralized trading system to the extremely fast trading system in response to a failure detection instruction to the heterogeneous securities trading system;
after synchronization is completed, starting the centralized transaction system and the extremely-fast transaction system;
after the centralized transaction system and the extremely-fast transaction system are started, the same order is issued to the centralized transaction system and the extremely-fast transaction system;
executing the order in the centralized transaction system and the extremely fast transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the extremely fast transaction system;
And performing failure detection on the heterogeneous securities trading system according to the first execution result and the second execution result.
Specifically, the specific implementation method of the above instructions by the processor 13 may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
The data in this case were obtained legally.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The invention is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet 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 components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
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 characteristics 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 is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. The units or means stated in the invention may also be implemented by one unit or means, either by software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

1. The failure detection method of the heterogeneous securities trading system is characterized by being applied to the heterogeneous securities trading system, wherein the heterogeneous securities trading system comprises a centralized trading system and a very fast trading system, and the failure detection method of the heterogeneous securities trading system comprises the following steps:
synchronizing account data from the centralized trading system to the extremely fast trading system in response to a failure detection instruction to the heterogeneous securities trading system;
after synchronization is completed, starting the centralized transaction system and the extremely-fast transaction system;
After the centralized transaction system and the extremely-fast transaction system are started, the same order is issued to the centralized transaction system and the extremely-fast transaction system;
executing the order in the centralized transaction system and the extremely fast transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the extremely fast transaction system;
performing failure detection on the heterogeneous securities trading system according to the first execution result and the second execution result;
the first execution result comprises an order result and a ticket resource variable quantity, wherein the order result is obtained after the order is executed in the centralized transaction system; the second execution result comprises an order result and a ticket resource variable quantity obtained after the order is executed in the extremely-fast transaction system;
when the invalidation detection comprises rights side detection, the centralized transaction system comprises a batch of accounts, each account in the batch of accounts has different rights and rights identifications, and the batch of accounts is configured to execute transactions on the very fast transaction system; a kind of electronic device with high-pressure air-conditioning system
When the failure detection comprises a service side detection, the centralized transaction system comprises a target account having maximum authority and configured to perform transactions on the extremely fast transaction system;
The performing invalidation detection on the heterogeneous securities trading system according to 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 securities trading system passes the service side detection;
when the ticket resource variation in the first execution result and the ticket resource variation in the second execution result are different, determining that the heterogeneous securities trading system does not pass the service side detection;
when the order fund change amount and the holding warehouse change amount of the first execution result and the second execution result are the same, determining that the coupon fund change amount is the same;
when the fund change amounts of the first execution result and the second execution result are different, or the holding warehouse change amounts are different, determining that the coupon change amounts are different;
the method comprises the steps of judging whether the fund change amount is consistent or not, and judging whether the charge of the fee is consistent or not;
the same order is issued to the centralized transaction system and the extremely-fast transaction system through an API comparison tool; the order has the same account, business type, commission type, security code and price in the centralized trading system and the extremely fast trading system.
2. A method of invalidation detection for a heterogeneous securities trading system according to claim 1, wherein:
the centralized transaction system is oriented to common scattered households and comprises a securities transaction whole-flow function, and specifically comprises account management, fund management, transaction management, inquiry service and clearing service;
the high-speed transaction system is oriented to institution clients and high-net-value personal clients and only provides transaction functions;
the extremely fast transaction system has a lower transaction latency than the centralized transaction system.
3. A method of invalidating a heterogeneous securities trading system according to claim 1, wherein prior to synchronizing account data from the central trading system to the extremely fast trading system, the method further comprises:
detecting whether connectivity between the centralized transaction system and the extremely-fast transaction system is normal or not;
and synchronizing the account data from the centralized transaction system to the extremely fast transaction system when the connectivity between the centralized transaction system and the extremely fast transaction system is normal.
4. The method of claim 1, wherein synchronizing account data from the centralized trading system to the extremely fast trading system comprises:
And synchronizing account data from the centralized transaction system to the extremely fast transaction system through a file or interface.
5. The method of claim 1, wherein the invalidating the heterogeneous securities trading system according to 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 securities trading system passes the authority side detection;
when the order results in the first execution result and the second execution result are different, determining that the heterogeneous securities trading system does not pass the authority side detection;
when the first execution result and the second execution result show that the order is successfully declared or the first execution result and the second execution result show that the order is refused due to the 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 refused due to insufficient authority, determining that the order results are different.
6. A failure detection device of a heterogeneous securities trading system, which is characterized in that the failure detection device is operated in the heterogeneous securities trading system, the heterogeneous securities trading system comprises a centralized trading system and a very fast trading system, and the failure detection device of the heterogeneous securities trading system comprises:
a synchronizing unit for synchronizing account data from the centralized trading system to the extremely fast trading system in response to a failure detection instruction to the heterogeneous securities trading system;
the starting unit is used for starting the centralized transaction system and the extremely-fast 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 transaction system and the extremely-fast transaction system respectively to obtain a first execution result of the centralized transaction system and a second execution result of the extremely-fast transaction system;
the detection unit is used for performing failure detection on the heterogeneous securities trading system according to the first execution result and the second execution result;
The first execution result comprises an order result and a ticket resource variable quantity, wherein the order result is obtained after the order is executed in the centralized transaction system; the second execution result comprises an order result and a ticket resource variable quantity obtained after the order is executed in the extremely-fast transaction system;
when the invalidation detection comprises rights side detection, the centralized transaction system comprises a batch of accounts, each account in the batch of accounts has different rights and rights identifications, and the batch of accounts is configured to execute transactions on the very fast transaction system; a kind of electronic device with high-pressure air-conditioning system
When the failure detection comprises a service side detection, the centralized transaction system comprises a target account having maximum authority and configured to perform transactions on the extremely fast transaction system;
the detection unit is specifically used for:
when the ticket resource variation in the first execution result and the second execution result is the same, determining that the heterogeneous securities trading system passes the service side detection;
when the ticket resource variation in the first execution result and the ticket resource variation in the second execution result are different, determining that the heterogeneous securities trading system does not pass the service side detection;
When the order fund change amount and the holding warehouse change amount of the first execution result and the second execution result are the same, determining that the coupon fund change amount is the same;
when the fund change amounts of the first execution result and the second execution result are different, or the holding warehouse change amounts are different, determining that the coupon change amounts are different;
the method comprises the steps of judging whether the fund change amount is consistent or not, and judging whether the charge of the fee is consistent or not;
the same order is issued to the centralized transaction system and the extremely-fast transaction system through an API comparison tool; the order has the same account, business type, commission type, security code and price in the centralized trading system and the extremely fast trading system.
7. A computer device, the computer device comprising:
a memory storing at least one instruction; a kind of electronic device with high-pressure air-conditioning system
A processor executing instructions stored in the memory to implement a method of invalidating a heterogeneous securities trading system according to any of claims 1 to 5.
8. 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 method of failure detection of a heterogeneous securities trading system of any of claims 1 to 5.
CN202310249172.1A 2023-03-15 2023-03-15 Failure detection method, device, equipment and medium for heterogeneous securities trading system Active CN115936886B (en)

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 CN115936886A (en) 2023-04-07
CN115936886B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116225789B (en) * 2023-05-09 2023-08-11 深圳华锐分布式技术股份有限公司 Transaction system backup capability detection method, device, equipment and medium
CN116541309B (en) * 2023-07-03 2023-09-29 深圳华锐分布式技术股份有限公司 Test method, device, equipment and medium based on transaction system conversion

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022142040A1 (en) * 2020-12-29 2022-07-07 平安普惠企业管理有限公司 Billing data verification method and apparatus, computer device and storage medium
CN115271736A (en) * 2022-07-11 2022-11-01 中电金信软件有限公司 Method, device, equipment, storage medium and product for verifying transaction consistency

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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
US10210515B2 (en) * 2015-11-23 2019-02-19 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
CN114782189A (en) * 2022-04-25 2022-07-22 深圳市泰铼科技有限公司 Artificial intelligence-based security programmed transaction real-time risk monitoring system and method
CN115345746B (en) * 2022-10-17 2023-01-24 深圳华锐分布式技术股份有限公司 Security transaction method, device, equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022142040A1 (en) * 2020-12-29 2022-07-07 平安普惠企业管理有限公司 Billing data verification method and apparatus, computer device and storage medium
CN115271736A (en) * 2022-07-11 2022-11-01 中电金信软件有限公司 Method, device, equipment, storage medium and product for verifying transaction consistency

Also Published As

Publication number Publication date
CN115936886A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN115936886B (en) Failure detection method, device, equipment and medium for heterogeneous securities trading system
CN116501610B (en) Method, device, equipment and medium for testing market transaction system
CN115147031B (en) Clearing workflow execution method, device, equipment and medium
CN114816371B (en) Message processing method, device, equipment and medium
CN114372892A (en) Payment data monitoring method, device, equipment and medium
CN114185776A (en) Big data point burying method, device, equipment and medium for application program
CN114399397A (en) Renewal tracking method, device, equipment and medium
CN116414699B (en) Operation and maintenance testing method, device, equipment and medium
CN116225789B (en) Transaction system backup capability detection method, device, equipment and medium
CN116225971B (en) Transaction interface compatibility detection method, device, equipment and medium
CN115964307B (en) Automatic test method, device, equipment and medium for transaction data
CN115731047B (en) Batch order processing method, equipment and medium
CN116361753B (en) Authority authentication method, device, equipment and medium
CN116010290A (en) Transaction system testing method, device, equipment and medium
CN116541309B (en) Test method, device, equipment and medium based on transaction system conversion
CN116306591B (en) Flow form generation method, device, equipment and medium
CN116483689B (en) Method, device, equipment and medium for testing option brokerage quick trading system
CN113687834B (en) Distributed system node deployment method, device, equipment and medium
CN116934263B (en) Product batch admittance method, device, equipment and medium
CN115934576B (en) Test case generation method, device, equipment and medium in transaction scene
CN117519938A (en) Form data-based order receiving task processing method, device, equipment and medium
CN116843454A (en) Channel information management method, device, equipment and medium
CN116823141A (en) Payment data processing method, device, equipment and medium
CN114139199A (en) Data desensitization method, apparatus, device and medium
CN116188189A (en) Data checking method, device, equipment and medium

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