CN113656435A - Transaction data query method, electronic device and storage medium - Google Patents

Transaction data query method, electronic device and storage medium Download PDF

Info

Publication number
CN113656435A
CN113656435A CN202110958695.4A CN202110958695A CN113656435A CN 113656435 A CN113656435 A CN 113656435A CN 202110958695 A CN202110958695 A CN 202110958695A CN 113656435 A CN113656435 A CN 113656435A
Authority
CN
China
Prior art keywords
transaction
simulated
transaction data
query
request
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
Application number
CN202110958695.4A
Other languages
Chinese (zh)
Other versions
CN113656435B (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.)
Beijing Sino Bridge Technology Co ltd
Original Assignee
Beijing Sino Bridge 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 Beijing Sino Bridge Technology Co ltd filed Critical Beijing Sino Bridge Technology Co ltd
Priority to CN202110958695.4A priority Critical patent/CN113656435B/en
Publication of CN113656435A publication Critical patent/CN113656435A/en
Application granted granted Critical
Publication of CN113656435B publication Critical patent/CN113656435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Mathematical Physics (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the disclosure discloses a transaction data query method, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a transaction data query request, and acquiring a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request; sending a simulated transaction data query request corresponding to the query transaction type and the query transaction time; receiving simulated transaction data returned by the transaction data server in response to the simulated transaction data query request; generating verification simulation transaction data according to the first simulation algorithm, the second simulation algorithm and the inquiry transaction time; and when the simulated transaction data is matched with the verification simulated transaction data, sending a transaction data query request. The technical scheme can ensure that the transaction data server can return real transaction data which has no error and is recorded in the transaction inquiring time and has the transaction type of the inquired transaction type, and improves the accuracy of the inquired transaction data.

Description

Transaction data query method, electronic device and storage medium
Technical Field
The disclosure relates to the technical field of transaction data query, and in particular relates to a transaction data query method, electronic equipment and a storage medium.
Background
In recent years, with the benefit of rapid development of macroscopic economy and explosive increase of financial demand of residents, financial transaction services provided by financial institutions such as banks are more and more, the types of the financial transaction services are more and more abundant, and the business logic of the financial transaction services is more and more complex. Meanwhile, while providing the financial transaction service, it is generally necessary to provide a transaction data query service to the user, so that the user can use the queried transaction data as a reference for a subsequent transaction policy.
In general, in the process of providing a transaction data query service, there is a situation that a transaction data queried by a user through a terminal is wrong, and this situation may cause that the user cannot acquire correct transaction data, possibly causing adverse effects on a subsequent transaction policy of the user, and damaging user experience. The transaction data server may record the transaction data according to the transaction data, wherein the transaction data queried through the terminal has an error, which may be caused by an error occurring when the transaction data server records the transaction data. In the related art, when it is determined whether the transaction data recorded by the transaction data server is erroneous, the transaction data recorded by the transaction data server may be analyzed, and when the data value frequency distribution of the transaction data has a significant difference or the fluctuation range exceeds a certain range, it is determined that the transaction data is erroneous. However, in the above scheme, determining whether the transaction data is in error is performed based on a statistical theory, and needs to be accumulated according to a certain amount of data, and because fluctuation of the transaction data is nonlinear, it is difficult to obtain a fluctuation rule thereof, so that the accuracy rate of determining whether the transaction data recorded by the transaction data server is in error is low, and the accuracy of the inquired transaction data is reduced.
Disclosure of Invention
The embodiment of the disclosure provides a transaction data query method, electronic equipment and a computer-readable storage medium.
In a first aspect, an embodiment of the present disclosure provides a transaction data query method, which is applied to a transaction query terminal, and includes:
acquiring a transaction data query request, and acquiring a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request;
sending a simulated transaction data query request corresponding to the query transaction type and the query transaction time;
receiving simulated transaction data returned by a transaction data server in response to a simulated transaction data query request, wherein the transaction type of the simulated transaction data is matched with the query transaction type, the simulated transaction time of the simulated transaction data is matched with the query transaction time, the simulated transaction data is generated by the transaction data server according to a first simulated transaction request, a second simulated algorithm and the simulated transaction time, and the first simulated transaction request is generated and sent by a simulated transaction terminal at intervals of preset time according to the first simulated algorithm;
generating verification simulation transaction data according to the first simulation algorithm, the second simulation algorithm and the inquiry transaction time;
and when the simulated transaction data is matched with the verification simulated transaction data, sending a transaction data query request.
In one implementation manner of the present disclosure, the transaction data query method further includes:
and receiving real transaction data returned by the transaction data server in response to the transaction data query request, and displaying the real transaction data, wherein the real transaction time of the real transaction data is matched with the query transaction time, and the transaction type of the real transaction data is matched with the query transaction type.
In one implementation of the present disclosure, the query transaction type is used to indicate at least one of a transaction market corresponding to the target transaction data requested by the transaction data query request, a transaction item corresponding to the target transaction data, a transaction currency unit corresponding to the target transaction data, and a transaction rule corresponding to the target transaction data.
In one implementation of the present disclosure, generating verification simulation transaction data according to a first simulation algorithm, a second simulation algorithm, and a query transaction time includes:
obtaining a first simulated transaction request according to a first simulation algorithm, wherein the first simulated transaction request comprises a plurality of first simulated bid requests, and each of the plurality of first simulated bid requests comprises different transaction parameters;
obtaining a second simulated transaction request according to a second simulation algorithm and the query transaction time, wherein the second simulated transaction request comprises a plurality of second simulated bid requests, and the plurality of second simulated bid requests respectively comprise different transaction parameters;
and generating verification simulated transaction data according to the first simulated bid request and the second simulated bid request which are successfully matched with the transaction parameters.
In a second aspect, an embodiment of the present disclosure provides a transaction data query method, which is applied to a transaction data server, and includes:
receiving a first simulated transaction request, wherein the first simulated transaction request is generated and sent by a simulated transaction terminal at preset time intervals according to a first simulation algorithm;
generating simulated transaction data according to the first simulated transaction request, the second simulated algorithm and the simulated transaction time;
receiving a simulated transaction data query request, and acquiring a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request, wherein the transaction data query request is sent by a transaction query terminal;
and sending simulated transaction data of which the transaction type is matched with the query transaction type and the simulated transaction time is matched with the query transaction time.
In one implementation of the present disclosure, before receiving the transaction data query request, the method further comprises;
real transaction data and real transaction time of the real transaction data are recorded in real time;
the method further comprises the following steps:
and receiving a transaction data query request, and responding to the transaction data query request to send real transaction data of which the real transaction time is matched with the query transaction time and the transaction type is matched with the query transaction type.
In one implementation of the present disclosure, the query transaction type is used to indicate at least one of a transaction market corresponding to the target transaction data requested by the transaction data query request, a transaction item corresponding to the target transaction data, a transaction currency unit corresponding to the target transaction data, and a transaction rule corresponding to the target transaction data.
In a third aspect, an embodiment of the present disclosure provides a transaction data query method, which is applied to a simulated transaction terminal, and includes:
generating and sending a first simulated transaction request according to a first simulation algorithm at intervals of preset time, so that a transaction data server generates simulated transaction data according to the first simulated transaction request, a second simulation algorithm and simulated transaction time;
in a fourth aspect, an embodiment of the present disclosure provides a transaction data query device, including:
the query request acquisition module is configured to acquire a transaction data query request, and acquire a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request;
a simulation request sending module configured to send a simulation transaction data query request corresponding to the query transaction type and the query transaction time;
the simulated data receiving module is configured to receive simulated transaction data returned by a transaction data server in response to the simulated transaction data query request, the transaction type of the simulated transaction data is matched with the query transaction type, the simulated transaction time of the simulated transaction data is matched with the query transaction time, the simulated transaction data is generated by the transaction data server according to a first simulated transaction request, a second simulated algorithm and the simulated transaction time, and the first simulated transaction request is generated and sent by a simulated transaction terminal at preset time intervals according to the first simulated algorithm;
a verification data acquisition module configured to generate verification simulation transaction data according to the first simulation algorithm, the second simulation algorithm, and the inquiry transaction time;
a query request sending module configured to send the transaction data query request when the simulated transaction data matches the verified simulated transaction data.
In a fifth aspect, an embodiment of the present disclosure provides a transaction data query device, including:
the simulation request receiving module is configured to receive a first simulation transaction request, wherein the first simulation transaction request is generated and sent by a simulation transaction terminal at intervals of preset time according to a first simulation algorithm;
a simulated data generation module configured to generate simulated transaction data according to the first simulated transaction request, a second simulated algorithm, and a simulated transaction time;
the query request receiving module is configured to receive a transaction data query request, and acquire a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request;
and the simulated data sending module is configured to send simulated transaction data of which the transaction type is matched with the inquiry transaction type and the simulated transaction time is matched with the inquiry transaction time.
In a sixth aspect, an embodiment of the present disclosure provides a transaction data query device, including:
the transaction simulation system comprises a simulation transaction request sending module and a transaction data server, wherein the simulation transaction request sending module is configured to generate and send a first simulation transaction request according to a first simulation algorithm at intervals of preset time, so that the transaction data server generates simulation transaction data according to the first simulation transaction request, a second simulation algorithm and simulation transaction time.
In a seventh aspect, an electronic device is provided in this disclosed embodiment, where the electronic device includes a memory, a processor, and a computer program stored on the memory, where the processor executes the computer program to implement the method of any one of the first to third aspects.
In an eighth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, where the computer instructions, when executed by a processor, implement the method of any one of the first to third aspects.
In a ninth aspect, the disclosed embodiments provide a computer program product comprising computer instructions which, when executed by a processor, are adapted to implement the method of any of the above aspects.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the technical scheme, when the transaction inquiry terminal needs to inquire the real transaction data of which the transaction type is the inquiry transaction type and the transaction time is the inquiry transaction time in the transaction data server according to the transaction data inquiry request, the transaction inquiry terminal sends a simulated transaction data inquiry request to request the transaction data server to return simulated transaction data with the transaction type matched with the inquiry transaction type and the simulated transaction time matched with the inquiry transaction time, wherein, the simulated transaction terminal generates and sends a first simulated transaction request according to a preset first simulation algorithm at intervals of preset time, the transaction data server generates simulated transaction data according to the first simulated transaction request, a preset second simulation algorithm and the simulated transaction time, namely, the simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the simulated transaction time transaction data server are normal or not. When the simulated transaction data is matched with the verification simulated transaction data (i.e. simulated transaction data without errors) generated according to the first simulation algorithm, the second simulation algorithm and the inquiry transaction time, it can be determined that no error occurs in the simulated transaction data generated by the transaction data server at the inquiry transaction time, so that it can be confirmed that the function of the transaction data server at the inquiry transaction time is normal, and under such a condition, no error occurs in the real transaction data of which the transaction type is the inquiry transaction type recorded by the transaction data server at the inquiry transaction time. By sending the transaction data query request through the transaction query terminal, the transaction data server can be ensured to return real transaction data which has no error and is recorded in the transaction query time and has the transaction type of the query transaction type, and the accuracy of the queried transaction data is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other features, objects, and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments when taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 shows a schematic block diagram of a transactional data query system according to an embodiment of the disclosure;
FIG. 2 shows a schematic flow diagram of a transactional data query method according to an embodiment of the disclosure;
FIG. 3 shows a schematic flow diagram of a transactional data query method according to an embodiment of the disclosure;
FIG. 4 shows a schematic flow diagram of a transactional data query method according to an embodiment of the disclosure;
fig. 5 shows a schematic block diagram of a transaction data querying device according to an embodiment of the present disclosure;
fig. 6 shows a schematic block diagram of a transaction data querying device according to an embodiment of the present disclosure;
fig. 7 shows a schematic block diagram of a transaction data querying device according to an embodiment of the present disclosure;
FIG. 8 shows a schematic block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device suitable for implementing a transaction data query method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Also, for the sake of clarity, parts not relevant to the description of the exemplary embodiments are omitted in the drawings.
In the present disclosure, it is to be understood that terms such as "including" or "having," etc., are intended to indicate the presence of the disclosed features, numbers, steps, actions, components, parts, or combinations thereof, and do not preclude the possibility that one or more other features, numbers, steps, actions, components, parts, or combinations thereof are present or added.
It should be further noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
The details of the embodiments of the present disclosure are described in detail below with reference to specific embodiments.
In recent years, with the benefit of rapid development of macroscopic economy and explosive increase of financial demand of residents, financial transaction services provided by financial institutions such as banks are more and more, the types of the financial transaction services are more and more abundant, and the business logic of the financial transaction services is more and more complex. Meanwhile, while providing the financial transaction service, it is generally necessary to provide a transaction data query service to the user, so that the user can use the queried transaction data as a reference for a subsequent transaction policy.
In general, in the process of providing a transaction data query service, there is a situation that a transaction data queried by a user through a terminal is wrong, and this situation may cause that the user cannot acquire correct transaction data, possibly causing adverse effects on a subsequent transaction policy of the user, and damaging user experience.
The transaction data server may record the transaction data according to the transaction data, wherein the transaction data queried through the terminal has an error, which may be caused by an error occurring when the transaction data server records the transaction data. In the related art, when it is determined whether the transaction data recorded by the transaction data server is erroneous, the transaction data recorded by the transaction data server may be analyzed, and when the data value frequency distribution of the transaction data has a significant difference or the fluctuation range exceeds a certain range, it is determined that the transaction data is erroneous. However, in the above scheme, determining whether the transaction data is in error is performed based on a statistical theory, and needs to be accumulated according to a certain amount of data, and because fluctuation of the transaction data is nonlinear, it is difficult to obtain a fluctuation rule thereof, so that the accuracy rate of determining whether the transaction data recorded by the transaction data server is in error is low, and the accuracy of the inquired transaction data is reduced.
In view of the above drawbacks, the technical solution provided by the present disclosure requires querying a request according to transaction data at a transaction querying terminal, when the real transaction data of which the transaction type is the query transaction type and the transaction time is the query transaction time in the transaction data server is queried, the transaction inquiry terminal sends a simulated transaction data inquiry request to request the transaction data server to return simulated transaction data with the transaction type matched with the inquiry transaction type and the simulated transaction time matched with the inquiry transaction time, wherein, the simulated transaction terminal generates and sends a first simulated transaction request according to a preset first simulation algorithm at intervals of preset time, the transaction data server generates simulated transaction data according to the first simulated transaction request, a preset second simulation algorithm and the simulated transaction time, namely, the simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the simulated transaction time transaction data server are normal or not. When the simulated transaction data is matched with the verification simulated transaction data (i.e. simulated transaction data without errors) generated according to the first simulation algorithm, the second simulation algorithm and the inquiry transaction time, it can be determined that no error occurs in the simulated transaction data generated by the transaction data server at the inquiry transaction time, so that it can be confirmed that the function of the transaction data server at the inquiry transaction time is normal, and under such a condition, no error occurs in the real transaction data of which the transaction type is the inquiry transaction type recorded by the transaction data server at the inquiry transaction time. By sending the transaction data query request through the transaction query terminal, the transaction data server can be ensured to return real transaction data which has no error and is recorded in the transaction query time and has the transaction type of the query transaction type, and the accuracy of the queried transaction data is improved.
Fig. 1 shows a schematic block diagram of a transaction data query system according to an embodiment of the present disclosure, wherein the transaction data query system includes a transaction query terminal 101, a transaction data server 102, a simulated transaction terminal 103, and a network 104, the network 104 is used for providing a medium of a communication link between the transaction query terminal 101 and the transaction data server 102 and between the simulated transaction terminal 103 and the transaction data server 102, and the network 104 may include various connection types, such as a wired connection, a wireless communication link, or an optical fiber cable.
The transaction inquiry terminal 101 may have installed thereon a transaction service application having a transaction data inquiry function. The transaction querying terminal 101 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The transaction data server 102 may be a cloud server, or may be a server provided by a data query service provider. It should be noted that there may be a plurality of transaction data servers in the embodiments of the present application, for example, the data query service provider may divide the administered area into a plurality of blocks, and each block has one or more transaction data servers.
The simulated transaction terminal 103 may be an electronic device separate from the transaction data server 102 and the transaction inquiry terminal 101, including but not limited to a smartphone, a tablet, a laptop and desktop computer, and the like.
Fig. 2 shows a schematic flow chart of a transaction data query method applied to a transaction query terminal according to an embodiment of the present disclosure. As shown in fig. 2, the transaction data query method includes the following steps:
in step S101, a transaction data query request is obtained, and a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request are obtained.
In step S102, a simulated transaction data query request corresponding to the query transaction type and the query transaction time is sent.
In step S103, simulated transaction data returned by the transaction data server in response to the simulated transaction data query request is received.
The transaction type of the simulated transaction data is matched with the query transaction type, the simulated transaction time of the simulated transaction data is matched with the query transaction time, the simulated transaction data is generated by the transaction data server according to a first simulated transaction request, a second simulated algorithm and the simulated transaction time, and the first simulated transaction request is generated and sent by the simulated transaction terminal at intervals of preset time according to the first simulated algorithm.
In step S104, verification simulated transaction data is generated according to the first simulation algorithm, the second simulation algorithm, and the inquiry transaction time.
In step S105, when the simulated transaction data matches the verified simulated transaction data, a transaction data query request is sent.
In an embodiment of the present disclosure, the query transaction type may be used to indicate at least one of a transaction market corresponding to the target transaction data requested by the transaction data query request, a transaction item corresponding to the target transaction data, a transaction currency unit corresponding to the target transaction data, and a transaction rule corresponding to the target transaction data. For example, the query transaction type may be used to indicate that the transaction market corresponding to the target transaction data is zheng zhou commodity exchange, the transaction item corresponding to the target transaction data is white granulated sugar, the unit of transaction currency corresponding to the target transaction data is renminbi, and the transaction rule corresponding to the target transaction data is zheng zhou commodity exchange futures settlement rules. For another example, the query transaction type may be used to indicate that the trading market corresponding to the target transaction data is a new york security exchange, the transaction item corresponding to the target transaction data is a central international (code SMI), the unit of currency for transaction corresponding to the target transaction data is U.S. dollars, and the transaction rule corresponding to the target transaction data is NYSE motherboard rule (NYSE Rules).
In an embodiment of the present disclosure, the query transaction time refers to a time achieved by a transaction behavior corresponding to the target transaction data, and the query transaction time may include one or more time intervals, where the time intervals may be continuous or discrete, and the query transaction time may also include one or more time points, where the time points may be continuous or discrete. For example, the query transaction time may be 10:05:00 am in Beijing to 11:00:00 am in Beijing.
In one embodiment of the present disclosure, the transaction type of the simulated transaction data matches the query transaction type, which may be understood as the transaction type of the simulated transaction data includes the query transaction type, wherein the simulated transaction data may correspond to one or more transaction types. The simulated trade time of the simulated trade data matches the query trade time, which may be understood as the simulated trade time of the simulated trade data comprising the query trade time, wherein the simulated trade time of the simulated trade data may comprise one or more time periods, or the simulated trade time may comprise one or more time points.
In an embodiment of the present disclosure, the first simulated algorithm may be run on a simulated trading terminal, and the first simulated trading request may include trading parameters for the requested trade, wherein the trading parameters may include a trading market, a trading item, a trading currency unit, a trading price, and a trading amount. It should be noted that the request transaction data of the first simulated transaction request generated according to the first simulation algorithm at different times may be the same or different. For example, in the first simulated transaction requests generated according to the first simulation algorithm at different times in the same simulated transaction period, the requested transaction data of any two first simulated transaction requests are different, wherein the same simulated transaction period may be one or more hours or one or more transaction days.
In an embodiment of the present disclosure, a second simulation algorithm may be run on the transaction data server, and the second simulation algorithm may be configured to calculate whether a transaction can be completed according to the request transaction data in the first simulated transaction request at the simulated transaction time, and if the transaction is completed, generate the simulated transaction data. It should be noted that when the first simulated transaction request is calculated at different simulated transaction times according to the second simulation algorithm and including the same requested transaction data, the transaction may be completed to generate the simulated transaction data, or the transaction may not be completed to generate the simulated transaction data.
The transaction data server generates the simulated transaction data according to the first simulated transaction request, the second simulated algorithm and the simulated transaction time, so that the generated simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the transaction data server are normal or not.
In one embodiment of the present disclosure, the first simulation algorithm and the second simulation algorithm may be run simultaneously on the transaction query terminal. By simultaneously operating the first simulation algorithm and the second simulation algorithm on the transaction inquiry terminal, the purpose of simulating information interaction and data processing process between the simulated transaction terminal and the transaction data server at the transaction inquiry terminal can be realized. Since the error of the obtained verification simulated transaction data caused by the failure of the transaction data server can be avoided in the simulation process, the verification simulated transaction data can be understood as the simulated transaction data without the error.
In an embodiment of the present disclosure, the simulated transaction data and the verified simulated transaction data are matched, which may be understood as that the simulated transaction data is the same as the verified simulated transaction data, or that the simulated transaction data includes a portion that is the same as the verified simulated transaction data, or that a similarity between the simulated transaction data and the verified simulated transaction data is greater than a similarity threshold, where the similarity between the simulated transaction data and the verified simulated transaction data may be obtained by comparing the two.
In this embodiment, when the real transaction data in which the transaction type is the query transaction type and the transaction time is the query transaction time in the transaction data server needs to be queried according to the transaction data query request, by sending a simulated transaction data query request, requesting the transaction data server to return simulated transaction data with transaction type matching the query transaction type and simulated transaction time matching the query transaction time, wherein, the simulated transaction terminal device generates and sends a first simulated transaction request according to a preset first simulation algorithm at intervals of preset time, the transaction data server generates simulated transaction data according to the first simulated transaction request, a preset second simulation algorithm and the simulated transaction time, namely, the simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the simulated transaction time transaction data server are normal or not. When the simulated transaction data is matched with the verification simulated transaction data (i.e. simulated transaction data without errors) generated according to the first simulation algorithm, the second simulation algorithm and the inquiry transaction time, it can be determined that no error occurs in the simulated transaction data generated by the transaction data server at the inquiry transaction time, so that it can be confirmed that the function of the transaction data server at the inquiry transaction time is normal, and under such a condition, no error occurs in the real transaction data of which the transaction type is the inquiry transaction type recorded by the transaction data server at the inquiry transaction time. By sending the transaction data query request, the transaction data server can be ensured to return real transaction data which has no error and is recorded in the transaction query time and has the transaction type of the query transaction type, and the accuracy of the queried transaction data is improved.
In an embodiment of the present disclosure, the transaction data query method further includes the following steps:
and receiving real transaction data returned by the transaction data server in response to the transaction data query request, and displaying the real transaction data, wherein the real transaction time of the real transaction data is matched with the query transaction time, and the transaction type of the real transaction data is matched with the query transaction type.
The displaying of the real transaction data may be displaying the real transaction data on a transaction data display interface through a display screen, or converting the real transaction data into image information and displaying the image information through the display screen, or converting the real transaction data into voice information and playing the voice information through a speaker.
In this embodiment, the user can conveniently know the real transaction data by displaying the real transaction data with the transaction time matched with the query transaction time and the transaction type of the real transaction data matched with the query transaction type.
In one implementation manner of the present disclosure, step S104, generating verification simulation transaction data according to the first simulation algorithm, the second simulation algorithm, and the query transaction time may be implemented by the following steps:
obtaining a first simulated transaction request according to a first simulation algorithm, wherein the first simulated transaction request comprises a plurality of first simulated bid requests, and each of the plurality of first simulated bid requests comprises different transaction parameters;
obtaining a second simulated transaction request according to a second simulation algorithm and the query transaction time, wherein the second simulated transaction request comprises a plurality of second simulated bid requests, and the plurality of second simulated bid requests respectively comprise different transaction parameters;
and generating verification simulated transaction data according to the first simulated bid request and the second simulated bid request which are successfully matched with the transaction parameters.
The first simulated bid request and the second simulated bid transaction are matched with each other in terms of transaction parameters, and the transaction parameters of the first simulated bid request are completely the same as the transaction parameters of the second simulated bid request, or the transaction parameters of the first simulated bid request are partially the same as the transaction parameters of the second simulated bid request, and the difference between different parts is smaller than or equal to the difference threshold. For example, if the first simulated bid request and the second simulated bid request have the same trading market, the same trading items, and the same trading currency units, and the price difference between the trading price of the first simulated bid request and the trading price of the second simulated bid request is less than or equal to the price difference threshold, and the trading amount of the first simulated bid request is less than or equal to the trading amount of the second simulated bid request, the first simulated bid request and the second simulated bid trading data match successfully.
In this embodiment, by making the first simulated transaction request obtained according to the first simulation algorithm include a plurality of first simulated bid requests each including different transaction parameters, and making the second simulated transaction request obtained according to the second simulation algorithm and the inquiry transaction time include a plurality of second simulated bid requests each including different transaction parameters, the probability of successful matching of the transaction data of the first simulated bid request and the transaction parameters of the second simulated bid request can be increased, and the efficiency of generating the verified simulated transaction data can be increased.
In one implementation manner of the present disclosure, before receiving the simulated transaction data returned by the transaction data server in response to the simulated transaction data query request in step S103, the transaction data query method further includes the following steps:
obtaining network delay corresponding to each of a plurality of data servers, and determining the transaction data server with the network delay less than or equal to a network delay threshold value in the plurality of data servers;
in this embodiment, by determining the transaction data server with the network delay less than or equal to the network delay threshold value among the plurality of data servers, the probability of error of the real transaction data acquired by the transaction inquiry terminal due to too high network delay between the transaction data server and the transaction inquiry terminal can be reduced.
In one implementation manner of the present disclosure, before sending the simulated transaction data query request corresponding to the query transaction type and the query transaction time in step S102, the transaction data query method further includes the following steps:
and determining an inquiry transaction date corresponding to the inquiry transaction time, and sending an on-board transaction data inquiry request corresponding to the inquiry transaction date and the transaction type.
Receiving simulated pre-inventory transaction data returned by a transaction data server in response to the pre-inventory transaction data query request, wherein the transaction type of the simulated pre-inventory transaction data is matched with the query transaction type, the simulated transaction time of the simulated pre-inventory transaction data is matched with the pre-inventory time of the query transaction day, the pre-inventory time is before the allowable transaction time of the query transaction day, the simulated pre-inventory transaction data is generated by the transaction data server according to a third simulated transaction request, the second simulation algorithm and the pre-inventory transaction time, and the third simulated transaction request is generated and sent by a simulated transaction terminal at the pre-inventory time according to the first simulation algorithm.
And generating verification simulation pre-disc transaction data according to the first simulation algorithm, the second simulation algorithm and the pre-disc time.
In step S102, sending a simulated transaction data query request corresponding to the query transaction type and the query transaction time may be implemented by the following steps:
and when the simulated transaction data is matched with the verified simulated transaction data, sending the simulated transaction data query request.
In this embodiment, the simulated pre-market transaction data can reflect that prior to querying the allowable transaction time for the transaction day, before the business is formally carried out on the inquiring business day, the information receiving function and the business data generating function of the business data server are normal, when the simulated pre-inventory transaction data matches the verified simulated pre-inventory transaction data, the transaction data server may be considered to be operating normally, the information receiving function and the transaction data generating function are normal, in this condition, the transaction data server can work normally in the allowable transaction time including the inquiry transaction time, the probability that the information receiving function and the transaction data generating function are normal is high, therefore, the matching probability of the simulated transaction data and the verified simulated transaction data is improved, unnecessary sending of simulated transaction data query requests is reduced, and occupation of network resources is reduced.
In one implementation manner of the present disclosure, after the step S102 of sending the simulated transaction data query request corresponding to the query transaction type and the query transaction time, the transaction data query method further includes the following steps:
and determining an inquiry transaction date corresponding to the inquiry transaction time, and sending an after-disc transaction data inquiry request corresponding to the inquiry transaction date and the transaction type.
And receiving simulated off-board transaction data returned by the transaction data server in response to the off-board transaction data query request, wherein the transaction type of the simulated off-board transaction data is matched with the query transaction type, the simulated transaction time of the simulated off-board transaction data is matched with the off-board time of the query transaction day, the off-board time is positioned after the allowable transaction time of the query transaction day, the simulated off-board transaction data is generated by the transaction data server according to a fourth simulated transaction request, a second simulated algorithm and the off-board transaction time, and the fourth simulated transaction request is generated and sent by the simulated transaction terminal at the off-board time according to the first simulated algorithm.
And generating post-verification simulated transaction data according to the first simulation algorithm, the second simulation algorithm and the post-verification time.
Step S102, sending a simulated transaction data query request corresponding to the query transaction type and the query transaction time, which may be implemented by the following steps:
and when the simulated transaction data after the disk is matched with the simulated transaction data after the disk is verified, sending the simulated transaction data query request.
In this embodiment, the post-trailed simulated trade data can be reflected in the post-trailed simulated trade data after querying the allowed trade time for the trade day, namely, after the transaction is formally carried out on the inquiry transaction date, whether the information receiving function and the transaction data generating function of the transaction data server are normal or not, when the simulated transaction data after the disk is matched with the simulated transaction data after the disk is verified, the transaction data server can be considered to work normally, the information receiving function and the transaction data generating function are normal, in this condition, the transaction data server can work normally in the allowable transaction time including the inquiry transaction time, the probability that the information receiving function and the transaction data generating function are normal is high, therefore, the matching probability of the simulated transaction data and the verified simulated transaction data is improved, unnecessary sending of simulated transaction data query requests is reduced, and occupation of network resources is reduced.
Fig. 3 shows a schematic flow chart of a transaction data query method applied to a transaction data server according to an embodiment of the present disclosure. As shown in fig. 3, the transaction data query method includes the following steps:
in step S201, a first simulated transaction request is received.
The first simulation transaction request is generated and sent by the simulation transaction terminal at preset time intervals according to a first simulation algorithm.
In step S202, simulated transaction data is generated according to the first simulated transaction request, the second simulated algorithm, and the simulated transaction time.
In step S203, a simulated transaction data query request is received, and a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request are obtained.
The transaction data query request is sent by a transaction query terminal.
In step S204, simulated transaction data with the transaction type matching the query transaction type and the simulated transaction time matching the query transaction time is sent.
In an embodiment of the present disclosure, the query transaction type may be used to indicate at least one of a transaction market corresponding to the target transaction data requested by the transaction data query request, a transaction item corresponding to the target transaction data, a transaction currency unit corresponding to the target transaction data, and a transaction rule corresponding to the target transaction data. For example, the query transaction type may be used to indicate that the transaction market corresponding to the target transaction data is zheng zhou commodity exchange, the transaction item corresponding to the target transaction data is white granulated sugar, the unit of transaction currency corresponding to the target transaction data is renminbi, and the transaction rule corresponding to the target transaction data is zheng zhou commodity exchange futures settlement rules. For another example, the query transaction type may be used to indicate that the trading market corresponding to the target transaction data is a new york security exchange, the transaction item corresponding to the target transaction data is a central international (code SMI), the unit of currency for transaction corresponding to the target transaction data is U.S. dollars, and the transaction rule corresponding to the target transaction data is NYSE motherboard rule (NYSE Rules).
In an embodiment of the present disclosure, the query transaction time refers to a time achieved by a transaction behavior corresponding to the target transaction data, and the query transaction time may include one or more time intervals, where the time intervals may be continuous or discrete, and the query transaction time may also include one or more time points, where the time points may be continuous or discrete. For example, the query transaction time may be 10:05:00 am in Beijing to 11:00:00 am in Beijing.
In one embodiment of the present disclosure, the transaction type of the simulated transaction data matches the query transaction type, which may be understood as the transaction type of the simulated transaction data includes the query transaction type, wherein the simulated transaction data may correspond to one or more transaction types. The simulated trade time of the simulated trade data matches the query trade time, which may be understood as the simulated trade time of the simulated trade data comprising the query trade time, wherein the simulated trade time of the simulated trade data may comprise one or more time periods, or the simulated trade time may comprise one or more time points.
In an embodiment of the present disclosure, the first simulated algorithm may be run on a simulated trading terminal, and the first simulated trading request may include trading parameters for the requested trade, wherein the trading parameters may include a trading market, a trading item, a trading currency unit, a trading price, and a trading amount. It should be noted that the request transaction data of the first simulated transaction request generated according to the first simulation algorithm at different times may be the same or different. For example, in the first simulated transaction requests generated according to the first simulation algorithm at different times in the same simulated transaction period, the requested transaction data of any two first simulated transaction requests are different, wherein the same simulated transaction period may be one or more hours or one or more transaction days.
In an embodiment of the present disclosure, a second simulation algorithm may be run on the transaction data server, and the second simulation algorithm may be configured to calculate whether a transaction can be completed according to the request transaction data in the first simulated transaction request at the simulated transaction time, and if the transaction is completed, generate the simulated transaction data. It should be noted that when the first simulated transaction request is calculated at different simulated transaction times according to the second simulation algorithm and including the same requested transaction data, the transaction may be completed to generate the simulated transaction data, or the transaction may not be completed to generate the simulated transaction data.
The transaction data server generates the simulated transaction data according to the first simulated transaction request, the second simulated algorithm and the simulated transaction time, so that the generated simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the transaction data server are normal or not.
In this embodiment, the first simulated transaction request received by the transaction data server is generated and sent by the simulated transaction terminal device at preset intervals according to a preset first simulation algorithm, and the transaction data server generates simulated transaction data according to the first simulated transaction request, a preset second simulation algorithm and the simulated transaction time, that is, the simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the simulated transaction time transaction data server are normal. The transaction data server receives a simulated transaction data query request which is sent by a transaction query terminal when real transaction data with a transaction type of a query transaction type and a transaction time of a query transaction time in the transaction data server needs to be queried according to the transaction data query request, the transaction query terminal can match the simulated transaction data with the query transaction type and the simulated transaction time of the query transaction type according to the transaction type returned by the transaction data server, and the simulated transaction data is matched with verification simulated transaction data (namely simulated transaction data without errors) generated by the transaction query terminal according to a first simulation algorithm, a second simulation algorithm and the query transaction time, and when the two are matched, the transaction query terminal can determine that the transaction data server has normal functions in the query transaction time. When the transaction data server has a normal function of inquiring the transaction time, the transaction data server does not have errors in the real transaction data of which the transaction type is the inquiry transaction type recorded in the inquiry transaction time, and the transaction data server can return the real transaction data of which the transaction type is the inquiry transaction type and which is recorded in the inquiry transaction time and has no errors by sending a transaction data inquiry request after the transaction inquiry terminal, so that the accuracy of the inquired transaction data is improved.
In one implementation manner of the present disclosure, before receiving the first simulated transaction request in step S201, the transaction data query method further includes the following steps;
real transaction data and real transaction time of the real transaction data are recorded in real time;
the transaction data query method further comprises the following steps:
and receiving a transaction data query request, and responding to the transaction data query request to send real transaction data of which the real transaction time is matched with the query transaction time and the transaction type is matched with the query transaction type.
In the embodiment, the real transaction data and the real transaction time of the real transaction data are recorded in real time, and the real transaction data with the real transaction time matched with the query transaction time and the transaction type matched with the query transaction type are sent in response to the transaction data query request by receiving the transaction data query request, so that the transaction query terminal can obtain the real transaction data, and a user can conveniently obtain the real transaction data through the transaction query terminal.
In one implementation of the present disclosure, the first simulated transaction request includes a plurality of third simulated bid requests that each include different transaction parameters.
Step S202, generating simulated transaction data according to the first simulated transaction request, the second simulated algorithm and the simulated transaction time, which can be implemented as follows.
And acquiring a fourth simulated transaction request according to the second simulation algorithm and the query transaction time. Wherein the fourth simulated transaction request comprises a plurality of fourth simulated bid requests each comprising different transaction parameters.
And generating simulated transaction data according to the third simulated bid request and the fourth simulated bid request which are successfully matched with the transaction parameters.
The third simulated bid request and the fourth simulated bid transaction are matched with each other in terms of transaction parameters, and it can be understood that the transaction parameters of the third simulated bid request are completely the same as the transaction parameters of the fourth simulated bid request, or that the transaction parameters of the third simulated bid request are partially the same as the transaction parameters of the fourth simulated bid request, and the difference between the different parts is less than or equal to the difference threshold. For example, if the third simulated bid request is the same trading market, the same trading items, and the same trading currency units as the fourth simulated bid request, and the price difference between the trading price of the third simulated bid request and the trading price of the fourth simulated bid request is less than or equal to the price difference threshold, and the trading amount of the third simulated bid request is less than or equal to the trading amount of the fourth simulated bid request, then the third simulated bid request and the fourth simulated bid trading data match successfully.
For example, if the first simulated bid request and the second simulated bid request have the same trading market, the same trading items, and the same trading currency units, and the price difference between the trading price of the first simulated bid request and the trading price of the second simulated bid request is less than or equal to the price difference threshold, and the trading amount of the first simulated bid request is less than or equal to the trading amount of the second simulated bid request, the first simulated bid request and the second simulated bid trading data match successfully.
In this embodiment, by making the third simulated transaction request obtained according to the first simulation algorithm include a plurality of third simulated bid requests each including different transaction parameters, and making the fourth simulated transaction request obtained according to the second simulation algorithm and the query transaction time include a plurality of fourth simulated bid requests each including different transaction parameters, the probability of successful matching of the transaction data of the third simulated bid request and the transaction parameters of the fourth simulated bid request can be increased, and the efficiency of generating the simulated transaction data can be increased.
In one implementation manner of the present disclosure, in step S201, before receiving the first simulated transaction request, the transaction data query method further includes the following steps:
and receiving a pre-transaction data query request corresponding to the query transaction date and the transaction type, wherein the pre-transaction data query request is sent by a transaction query terminal.
And sending simulated transaction data before the disk, wherein the transaction type of the simulated transaction data after the disk is matched with the query transaction type, the simulated transaction time of the simulated transaction data after the disk is matched with the disk time of the query transaction day, the disk time is positioned after the allowable transaction time of the query transaction day, the simulated transaction data after the disk is generated for the transaction data server according to a fourth simulated transaction request, a second simulated algorithm and the disk transaction time, and the fourth simulated transaction request is generated and sent for the simulated transaction terminal at the disk time according to the first simulated algorithm.
In this embodiment, the post-transaction simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the transaction data server are normal after the transaction time allowed by the transaction date is inquired, that is, after the transaction is formally performed on the transaction date, when the post-transaction simulated data matches the post-verification-disk simulated transaction data generated by the transaction inquiring terminal according to the first simulation algorithm, the second simulation algorithm and the post-transaction time, the transaction data server can be considered to be normally operated, and the information receiving function and the transaction data generating function thereof are normal, under such a condition, the transaction data server can be normally operated within the transaction time allowed including the transaction time inquired, the probability of the information receiving function and the transaction data generating function thereof is high, thereby improving the probability of matching the simulated transaction data and the verification simulated transaction data, unnecessary sending of simulated transaction data query requests is reduced, and occupation of network resources is reduced.
In one implementation manner of the present disclosure, in step S201, after receiving the first simulated transaction request, the transaction data query method further includes the following steps:
and receiving a post-inventory transaction data query request corresponding to the query transaction date and the transaction type, wherein the post-inventory transaction data query request is sent by a transaction query terminal.
And sending simulated transaction data after the transaction, wherein the transaction type of the simulated transaction data after the transaction is matched with the query transaction type, the simulated transaction time of the simulated transaction data after the transaction is matched with the transaction time after the transaction is inquired, the transaction data after the transaction is simulated after the transaction time is allowed after the transaction date is inquired, the simulated transaction data after the transaction is generated for the transaction data server according to a fourth simulated transaction request, a second simulated algorithm and the transaction time after the transaction, and the fourth simulated transaction request is generated and sent for the simulated transaction terminal at the transaction time after the transaction according to the first simulated algorithm.
In this embodiment, the post-transaction simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the transaction data server are normal after the transaction time allowed by the transaction date is inquired, that is, after the transaction is formally performed on the transaction date, when the post-transaction simulated data matches the post-verification-disk simulated transaction data generated by the transaction inquiring terminal according to the first simulation algorithm, the second simulation algorithm and the post-transaction time, the transaction data server can be considered to be normally operated, and the information receiving function and the transaction data generating function thereof are normal, under such a condition, the transaction data server can be normally operated within the transaction time allowed including the transaction time inquired, the probability of the information receiving function and the transaction data generating function thereof is high, thereby improving the probability of matching the simulated transaction data and the verification simulated transaction data, unnecessary sending of simulated transaction data query requests is reduced, and occupation of network resources is reduced.
Fig. 4 shows a schematic flow chart of a transaction data query method applied to a simulated transaction terminal according to an embodiment of the present disclosure. As shown in fig. 4, the transaction data query method includes the following steps:
in step S301, a first simulated transaction request is generated and sent according to a first simulated algorithm at a preset time interval, so that the transaction data server generates simulated transaction data according to the first simulated transaction request, the second simulated algorithm, and the simulated transaction time.
In an embodiment of the present disclosure, the first simulated algorithm may be run on a simulated trading terminal, and the first simulated trading request may include trading parameters for the requested trade, wherein the trading parameters may include a trading market, a trading item, a trading currency unit, a trading price, and a trading amount. It should be noted that the request transaction data of the first simulated transaction request generated according to the first simulation algorithm at different times may be the same or different. For example, in the first simulated transaction requests generated according to the first simulation algorithm at different times in the same simulated transaction period, the requested transaction data of any two first simulated transaction requests are different, wherein the same simulated transaction period may be one or more hours or one or more transaction days.
In an embodiment of the present disclosure, a second simulation algorithm may be run on the transaction data server, and the second simulation algorithm may be configured to calculate whether a transaction can be completed according to the request transaction data in the first simulated transaction request at the simulated transaction time, and if the transaction is completed, generate the simulated transaction data. It should be noted that when the first simulated transaction request is calculated at different simulated transaction times according to the second simulation algorithm and including the same requested transaction data, the transaction may be completed to generate the simulated transaction data, or the transaction may not be completed to generate the simulated transaction data.
In this embodiment, the simulated transaction terminal sends the first simulated transaction request to the transaction data server, and the transaction data server generates simulated transaction data according to the first simulated transaction request, the second simulated algorithm, and the simulated transaction time, so that the generated simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the transaction data server are normal.
In one implementation of the present disclosure, the first simulated transaction request includes a plurality of third simulated bid requests that each include different transaction parameters.
In this embodiment, by making the first simulated transaction request obtained according to the first simulation algorithm include a plurality of first simulated bid requests each including different transaction parameters, when the second simulated transaction request obtained according to the second simulation algorithm and the inquiry transaction time includes a plurality of second simulated bid requests each including different transaction parameters, the probability of successful matching of the transaction data of the first simulated bid request and the transaction parameters of the second simulated bid request can be increased, so that the efficiency of generating the verified simulated transaction data is high.
In one implementation manner of the present disclosure, in step S301, before generating and sending a first simulated transaction request according to a first simulation algorithm at preset time intervals, and enabling a transaction data server to generate simulated transaction data according to the first simulated transaction request, a second simulation algorithm, and simulated transaction time, the transaction data query method further includes the following steps:
and generating a fourth simulated transaction request according to the first simulation algorithm at the pre-inventory time, and sending the fourth simulated transaction request to enable the transaction data server to generate simulated pre-inventory transaction data according to the fourth simulated transaction request, the second simulation algorithm and the pre-inventory transaction time.
In this embodiment, the simulated pre-market transaction data can reflect that prior to querying the allowable transaction time for the transaction day, before the business is formally carried out on the inquiring business day, the information receiving function and the business data generating function of the business data server are normal, when the simulated pre-inventory transaction data matches the verified simulated pre-inventory transaction data, the transaction data server may be considered to be operating normally, the information receiving function and the transaction data generating function are normal, in this condition, the transaction data server can work normally in the allowable transaction time including the inquiry transaction time, the probability that the information receiving function and the transaction data generating function are normal is high, therefore, the matching probability of the simulated transaction data and the verified simulated transaction data is improved, unnecessary sending of simulated transaction data query requests is reduced, and occupation of network resources is reduced.
In one implementation manner of the present disclosure, in step S301, after generating and sending a first simulated transaction request according to a first simulation algorithm at preset time intervals, and enabling a transaction data server to generate simulated transaction data according to the first simulated transaction request, a second simulation algorithm, and simulated transaction time, the transaction data query method further includes the following steps:
and generating a fourth simulated transaction request according to the first simulation algorithm at the post-inventory time, and sending the fourth simulated transaction request to enable the transaction data server to generate simulated post-inventory transaction data according to the fourth simulated transaction request, the second simulation algorithm and the post-inventory transaction time.
In this embodiment, the simulated post-inventory trading data can be reflected in the simulated post-inventory trading data after querying the allowable trading time for the trading day, namely, after the transaction is formally carried out on the inquiry transaction date, whether the information receiving function and the transaction data generating function of the transaction data server are normal or not, when the simulated transaction data after the disk is matched with the verified simulated transaction data after the disk, the transaction data server can be considered to work normally, the information receiving function and the transaction data generating function are normal, in this condition, the transaction data server can work normally in the allowable transaction time including the inquiry transaction time, the probability that the information receiving function and the transaction data generating function are normal is high, therefore, the matching probability of the simulated transaction data and the verified simulated transaction data is improved, unnecessary sending of simulated transaction data query requests is reduced, and occupation of network resources is reduced.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
According to the transaction data inquiry device of an embodiment of the present disclosure, the transaction data inquiry device is disposed in a transaction inquiry terminal, and the transaction data inquiry device may be implemented as a part or all of an electronic device by software, hardware, or a combination of both. Fig. 5 is a schematic block diagram illustrating a transaction data query apparatus according to an embodiment of the present disclosure, and as shown in fig. 5, the transaction data query apparatus includes:
the query request obtaining module 401 is configured to obtain a transaction data query request, and obtain a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request.
A simulation request sending module 402 configured to send a simulation transaction data query request corresponding to the query transaction type and the query transaction time.
The simulated data receiving module 403 is configured to receive simulated transaction data returned by the transaction data server in response to the simulated transaction data query request, where the transaction type of the simulated transaction data is matched with the query transaction type, and the simulated transaction time of the simulated transaction data is matched with the query transaction time, the simulated transaction data is generated by the transaction data server according to a first simulated transaction request, a second simulated algorithm and the simulated transaction time, and the first simulated transaction request is generated and sent by the simulated transaction terminal at preset time intervals according to the first simulated algorithm.
A verification data acquisition module 404 configured to generate verification simulated transaction data according to the first simulation algorithm, the second simulation algorithm, and the inquiry transaction time.
A query request sending module 405 configured to send the transaction data query request when the simulated transaction data matches the verified simulated transaction data.
In this embodiment, when the transaction data query device needs to query the real transaction data in the transaction data server, wherein the transaction type is the query transaction type and the transaction time is the query transaction time, the transaction data inquiry device sends a simulated transaction data inquiry request to request the transaction data server to return simulated transaction data with the transaction type matched with the inquiry transaction type and the simulated transaction time matched with the inquiry transaction time, wherein, the simulated transaction terminal generates and sends a first simulated transaction request according to a preset first simulation algorithm at intervals of preset time, the transaction data server generates simulated transaction data according to the first simulated transaction request, a preset second simulation algorithm and the simulated transaction time, namely, the simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the simulated transaction time transaction data server are normal or not. When the simulated transaction data is matched with the verification simulated transaction data (i.e. simulated transaction data without errors) generated according to the first simulation algorithm, the second simulation algorithm and the inquiry transaction time, it can be determined that no error occurs in the simulated transaction data generated by the transaction data server at the inquiry transaction time, so that it can be confirmed that the function of the transaction data server at the inquiry transaction time is normal, and under such a condition, no error occurs in the real transaction data of which the transaction type is the inquiry transaction type recorded by the transaction data server at the inquiry transaction time. By sending the transaction data query request by the transaction data query device, the transaction data server can be ensured to return real transaction data which has no error and is recorded in the transaction query time and of which the transaction type is the query transaction type, so that the accuracy of the queried transaction data is improved
According to the transaction data inquiry device of an embodiment of the present disclosure, the transaction data inquiry device is disposed in the transaction data server, and the transaction data inquiry device may be implemented as a part or all of the electronic device by software, hardware, or a combination of the two. Fig. 6 is a schematic block diagram illustrating a transaction data query apparatus according to an embodiment of the present disclosure, and as shown in fig. 6, the transaction data query apparatus includes:
the simulation request receiving module 501 is configured to receive a first simulation transaction request, where the first simulation transaction request is generated and sent by a simulation transaction terminal according to a first simulation algorithm at preset time intervals.
A simulated data generation module 502 configured to generate simulated transaction data according to the first simulated transaction request, the second simulated algorithm, and the simulated transaction time.
The query request receiving module 503 is configured to receive a transaction data query request, and obtain a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request.
A simulated data sending module 504 configured to send simulated transaction data with a transaction type matching the query transaction type and a simulated transaction time matching the query transaction time.
In an optional implementation manner of this embodiment, the first simulated transaction request received by the transaction data query device is generated and sent by the simulated transaction terminal device at preset time intervals according to a preset first simulation algorithm, and the transaction data query device generates simulated transaction data according to the first simulated transaction request, a preset second simulation algorithm, and the simulated transaction time, that is, the simulated transaction data can reflect whether an information receiving function and a transaction data generating function of the simulated transaction time transaction data query device are normal. The transaction data query device is used for receiving a simulated transaction data query request, the simulated transaction data query request is sent when a transaction query terminal queries real transaction data, the transaction type of which is a query transaction type and the transaction time of which is a query transaction time, in the transaction data query device according to the transaction data query request, the transaction query terminal can match simulated transaction data, the simulated transaction data is matched with the query transaction type and the simulated transaction time of which is matched with the query transaction time, and the simulated transaction data is generated by the transaction query terminal according to a first simulation algorithm, a second simulation algorithm and the query transaction time (namely the simulated transaction data without errors), and when the simulated transaction data query request and the simulated transaction data are matched, the transaction query terminal can determine that the transaction data query device has normal functions in the query transaction time. When the transaction data query device has a normal function of querying transaction time, the transaction data query device does not generate errors in the real transaction data of which the transaction type is the query transaction type recorded in the query transaction time, and the transaction data query device can return the real transaction data of which the transaction type is the query transaction type and which is recorded in the query transaction time and has no errors by sending a transaction data query request after the transaction query terminal, so that the accuracy of the queried transaction data is improved.
According to the transaction data inquiry device of an embodiment of the present disclosure, the transaction data inquiry device is disposed in the simulated transaction terminal, and the transaction data inquiry device may be implemented as a part or all of the electronic device by software, hardware, or a combination of the two. Fig. 7 is a block diagram illustrating a schematic structure of a transaction data query apparatus according to an embodiment of the present disclosure, and as shown in fig. 7, the transaction data query apparatus includes:
the simulated transaction request sending module 601 is configured to generate and send a first simulated transaction request according to a first simulated algorithm at preset intervals, so that the transaction data server generates simulated transaction data according to the first simulated transaction request, a second simulated algorithm and simulated transaction time.
In this embodiment, the transaction data inquiry apparatus sends the first simulated transaction request to the transaction data server, and the transaction data server generates simulated transaction data according to the first simulated transaction request, the second simulated algorithm, and the simulated transaction time, so that the generated simulated transaction data can reflect whether the information receiving function and the transaction data generating function of the transaction data server are normal.
The present disclosure also discloses an electronic device, fig. 8 shows a schematic block diagram of an electronic device according to an embodiment of the present disclosure, and as shown in fig. 8, the electronic device 700 includes a memory 701 and a processor 702; wherein the content of the first and second substances,
the memory 701 is used to store one or more computer instructions, which are executed by the processor 702 to implement any of the methods of the embodiments of the present disclosure.
Fig. 9 is a schematic structural diagram of an electronic device suitable for implementing a transaction data query method according to an embodiment of the present disclosure.
As shown in fig. 9, the electronic device 800 includes a processing unit 801, which may be implemented as a CPU, GPU, FPGA, NPU, or the like processing unit. The processing unit 801 may execute various processes in the embodiment of any one of the above-described methods of the present disclosure according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing unit 801, the ROM802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to embodiments of the present disclosure, any of the methods described above with reference to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods of the embodiments of the present disclosure. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809 and/or installed from the removable medium 811.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus in the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A transaction data query method is applied to a transaction query terminal and comprises the following steps:
acquiring a transaction data query request, and acquiring a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request;
sending a simulated transaction data query request corresponding to the query transaction type and the query transaction time;
receiving simulated transaction data returned by a transaction data server in response to the simulated transaction data query request, wherein the transaction type of the simulated transaction data is matched with the query transaction type, the simulated transaction time of the simulated transaction data is matched with the query transaction time, the simulated transaction data is generated by the transaction data server according to a first simulated transaction request, a second simulated algorithm and the simulated transaction time, and the first simulated transaction request is generated and sent by a simulated transaction terminal at intervals of preset time according to the first simulated algorithm;
generating verification simulated transaction data according to the first simulation algorithm, the second simulation algorithm and the inquiry transaction time;
and when the simulated transaction data is matched with the verification simulated transaction data, sending the transaction data query request.
2. The transaction data querying method of claim 1, the method further comprising:
and receiving real transaction data returned by the transaction data server in response to the transaction data query request, and displaying the real transaction data, wherein the real transaction time of the real transaction data is matched with the query transaction time, and the transaction type of the real transaction data is matched with the query transaction type.
3. The transaction data query method of claim 1, wherein the query transaction type is used to indicate at least one of a transaction market corresponding to the target transaction data requested by the transaction data query request, a transaction item corresponding to the target transaction data, a transaction currency unit corresponding to the target transaction data, and a transaction rule corresponding to the target transaction data.
4. The transaction data query method of claim 1, said generating validation simulated transaction data from said first simulation algorithm, said second simulation algorithm, and said query transaction time, comprising:
obtaining the first simulated transaction request according to the first simulation algorithm, the first simulated transaction request comprising a plurality of first simulated bid requests each comprising different transaction parameters;
obtaining the second simulated transaction request according to the second simulated algorithm and the query transaction time, wherein the second simulated transaction request comprises a plurality of second simulated bid requests, and each of the plurality of second simulated bid requests comprises different transaction parameters;
and generating the verification simulated transaction data according to the first simulated bid request and the second simulated bid request which are successfully matched with the transaction parameters.
5. A transaction data query method is applied to a transaction data server and comprises the following steps:
receiving a first simulated transaction request, wherein the first simulated transaction request is generated and sent by a simulated transaction terminal at preset time intervals according to a first simulation algorithm;
generating simulated transaction data according to the first simulated transaction request, the second simulated algorithm and the simulated transaction time;
receiving a simulated transaction data query request, and acquiring a query transaction type corresponding to the transaction data query request and a query transaction time corresponding to the transaction data query request, wherein the transaction data query request is sent by a transaction query terminal;
and sending simulated transaction data of which the transaction type is matched with the query transaction type and the simulated transaction time is matched with the query transaction time.
6. The transactional data querying method of claim 5, prior to receiving the transactional data querying request, further comprising;
recording real transaction data and real transaction time of the real transaction data in real time;
the method further comprises the following steps:
and receiving a transaction data query request, and responding to the transaction data query request to send real transaction data of which the real transaction time is matched with the query transaction time and the transaction type is matched with the query transaction type.
7. The transaction data query method of claim 5, wherein the query transaction type is used for indicating at least one of a transaction market corresponding to the target transaction data requested by the transaction data query request, a transaction item corresponding to the target transaction data, a transaction currency unit corresponding to the target transaction data, and a transaction rule corresponding to the target transaction data.
8. A transaction data query method is applied to a simulated transaction terminal and comprises the following steps:
and generating and sending a first simulated transaction request according to a first simulation algorithm at preset intervals, so that the transaction data server generates simulated transaction data according to the first simulated transaction request, the second simulation algorithm and the simulated transaction time.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory, wherein the processor executes the computer program to implement the method of any of claims 1-8.
10. A computer readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method of any one of claims 1-8.
CN202110958695.4A 2021-08-20 2021-08-20 Transaction data query method, electronic device and storage medium Active CN113656435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110958695.4A CN113656435B (en) 2021-08-20 2021-08-20 Transaction data query method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110958695.4A CN113656435B (en) 2021-08-20 2021-08-20 Transaction data query method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN113656435A true CN113656435A (en) 2021-11-16
CN113656435B CN113656435B (en) 2023-09-01

Family

ID=78481508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110958695.4A Active CN113656435B (en) 2021-08-20 2021-08-20 Transaction data query method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113656435B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040254876A1 (en) * 2003-06-13 2004-12-16 Joshua Coval Schemes for simulating a financial market
DE102013113969A1 (en) * 2013-12-12 2015-06-18 Contnet AG Documentation of transactions between terminals and a server
CN107730385A (en) * 2017-07-27 2018-02-23 上海壹账通金融科技有限公司 Simulation process method, apparatus, storage medium and the computer equipment of sequence information
CN108268375A (en) * 2018-01-12 2018-07-10 深圳壹账通智能科技有限公司 Applied program testing method, device, computer equipment and storage medium
CN110309185A (en) * 2019-05-24 2019-10-08 平安银行股份有限公司 Data query method, system, computer equipment and storage medium
CN111352821A (en) * 2020-03-10 2020-06-30 深圳市宝能投资集团有限公司 Service testing method, device, electronic equipment and computer readable storage medium
CN111415256A (en) * 2020-03-16 2020-07-14 苏州吉风智能科技有限公司 Multi-account stock trading control method and device
CN112052179A (en) * 2020-09-21 2020-12-08 华云数据控股集团有限公司 Simulation method, simulation system and computer readable medium for software system
CN112631910A (en) * 2020-12-22 2021-04-09 平安普惠企业管理有限公司 Front-end testing method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040254876A1 (en) * 2003-06-13 2004-12-16 Joshua Coval Schemes for simulating a financial market
DE102013113969A1 (en) * 2013-12-12 2015-06-18 Contnet AG Documentation of transactions between terminals and a server
CN107730385A (en) * 2017-07-27 2018-02-23 上海壹账通金融科技有限公司 Simulation process method, apparatus, storage medium and the computer equipment of sequence information
CN108268375A (en) * 2018-01-12 2018-07-10 深圳壹账通智能科技有限公司 Applied program testing method, device, computer equipment and storage medium
CN110309185A (en) * 2019-05-24 2019-10-08 平安银行股份有限公司 Data query method, system, computer equipment and storage medium
CN111352821A (en) * 2020-03-10 2020-06-30 深圳市宝能投资集团有限公司 Service testing method, device, electronic equipment and computer readable storage medium
CN111415256A (en) * 2020-03-16 2020-07-14 苏州吉风智能科技有限公司 Multi-account stock trading control method and device
CN112052179A (en) * 2020-09-21 2020-12-08 华云数据控股集团有限公司 Simulation method, simulation system and computer readable medium for software system
CN112631910A (en) * 2020-12-22 2021-04-09 平安普惠企业管理有限公司 Front-end testing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113656435B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
WO2023207146A1 (en) Service simulation method and apparatus for esop system, and device and storage medium
CN110782310B (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN113656435B (en) Transaction data query method, electronic device and storage medium
US20170178165A1 (en) Method and system for generation of indices regarding neighborhood growth
CN114327802B (en) Method, apparatus, device and medium for block chain access to data outside chain
US11875357B2 (en) Method and system of using miner commitment to reward proofs
CN114004701A (en) Method and device for generating transaction result, electronic equipment and storage medium
CN114022136A (en) Method, equipment and system for computing power transaction
CN114240436A (en) Electronic certificate verification and cancellation method and device, computer equipment and storage medium
CN110413499B (en) Service information monitoring method, device, equipment and storage medium
CN111461891A (en) Order approval system, method, computer equipment and storage medium
CN113592470A (en) Service processing method and device, electronic equipment and storage medium
US20210174317A1 (en) Method and system for modified mining probabilities based on fees
CN116506333B (en) Transaction system production inversion detection method and equipment
CN117171816B (en) Data verification method based on industrial identification and related equipment
CN113468059B (en) Information acquisition method and device, terminal and server
CN116596304A (en) Bank account management method, apparatus, electronic device, medium and program product
CN113506101A (en) Settlement request, response and cross-platform settlement method, apparatus and medium
CN114092098A (en) Transaction information processing method and device, electronic equipment and storage medium
CN115439227A (en) Error transaction request response method, device, equipment and storage medium
CN117290394A (en) Data processing method and device, electronic equipment and storage medium
CN114092237A (en) Clearing processing method, device, system and equipment based on difference value
CN115689718A (en) Loan approval method, device, equipment and medium
CN116167849A (en) Service processing method, device, electronic equipment and storage medium
CN117078340A (en) Order processing method and device, electronic equipment and storage 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