Market information importing method, device and electronic equipment

By establishing a market configuration table, a market intermediate table and a market processing table in the trading system, the collection, transcoding and distribution process of market files can be independently controlled, which solves the problem of low import efficiency of market files in the existing technology and achieves high efficiency and adaptability. Import of sex market information.

CN117892702BActive Publication Date: 2024-08-30GUOTAI JUNAN SECURITIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410089479.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-22
Publication Date
2024-08-30
Estimated Expiration
2044-01-22

AI Technical Summary

Technical Problem

When processing market data files, the existing technology needs to frequently arrange the import process, resulting in heavy workload and low efficiency. Especially when the market data files are updated, the import process needs to be restarted, which reduces the efficiency and adaptability of market data imports.

Method used

By establishing a database, including a market configuration table, a market intermediate table and a market processing table, the target market file path is determined based on the configuration information, the data is collected, parsed, transcoded and distributed, and the import process is independently controlled through status management to improve the controllability of the import. sex and efficiency.

Benefits of technology

It realizes the efficiency and adaptability of market information import, reduces the frequent modification and restart of the import process, and improves the maintenance efficiency and adaptability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117892702B
    Figure CN117892702B
Patent Text Reader

Abstract

The present application provides a method, device and electronic device for importing market information. The method includes: by establishing a market configuration table and a market processing table in a database, determining a target market file according to the market configuration table, and when determining that the current target market file meets the collection premise according to the market configuration table, updating the market collection status in the market processing table and performing collection conversion on the target market file, generating intermediate data, updating the market collection status again according to the collection result, and then determining the label information according to the market configuration table and adding it to the intermediate data, based on the indication of the label information, transcoding the intermediate data according to the market collection status and generating business data, and updating the market transcoding status again according to the transcoding result, so as to distribute and import the business data to the relevant components on demand according to the market transcoding status, so that the components can operate. The method of the present application improves the efficiency of importing market information and enhances the controllability and adaptability of importing market information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to market data processing technology, and in particular to a market information importing method, device and electronic equipment. Background Art

[0002] Market data is the most basic process in the transaction process. Usually, in the transaction process, the market data must first be collected through the transaction system and transcoded to obtain business data or market information, which is then imported into various transaction components so that the transaction components can complete the transaction based on the market information.

[0003] When obtaining market information files, the prior art usually uses a hard-coded method to arrange the market information import process, that is, different market information files need to have their corresponding market information import processes arranged specifically, and when the import fails, the import process needs to be restarted to execute the entire process again.

[0004] However, the prior art arranges an import process for each market file. When faced with irregular updates and / or changes to market files, the trading system must not only process business logic but also frequently arrange the source code of the import process, which increases the workload and reduces the efficiency of importing market files. Summary of the invention

[0005] The present application provides a method, device and electronic device for importing market information, so as to improve the efficiency and scalability of market information import.

[0006] In a first aspect, the present application provides a method for importing market information, which is applied to a trading system and includes:

[0007] Establishing a database, wherein the database includes a market configuration table, a market intermediate table, a market business table and a market processing table, and the market processing table includes the market collection status, market transcoding status and market distribution status corresponding to the market file;

[0008] Obtain the market configuration table, determine the path of the target market file according to the configuration information of the market configuration table, and collect the target market file according to the path; parse and convert the target market file, generate the intermediate data corresponding to the target market file and store it in the market intermediate table, and update the current market collection status;

[0009] Determine the label information according to the market configuration table, add the label information to the intermediate data, and add the intermediate data to the waiting queue of the market intermediate table according to the label information;

[0010] According to the status of the target market data in the market processing table, the intermediate data is transcoded to generate business data and stored in the market business table, and the current market transcoding status is updated;

[0011] Distribute business data to corresponding components of the trading system according to each status, and update the current market distribution status so that related components can operate according to business data.

[0012] Optionally, a database is established, specifically including:

[0013] Generate a name directory according to each market file; and establish a mapping relationship between each name in the name directory and the path of the corresponding market file, and also establish a mapping relationship between each name in the name directory and the collection number threshold of the corresponding market file;

[0014] Generate multiple MD5 codes according to each market information file, establish a mapping relationship between each name in the name directory and the MD5 code of the corresponding market information file, and generate a market information configuration table according to the mapping relationship;

[0015] Generate the market intermediate table and market business table according to the name directory, and update the market intermediate table and market business table according to the market configuration table;

[0016] A market processing table is generated according to the market configuration table, the market intermediate table and the market business table; wherein, the market collection status in the market processing table includes the collection initial state, the collection processing state and the collection completion state, the market transcoding status includes the transcoding initial state, the transcoding processing state and the transcoding completion state, and the market distribution status includes the distribution initial state, the distribution processing state and the distribution completion state.

[0017] Optionally, obtaining a market configuration table, determining a path of a target market file according to configuration information of the market configuration table, and collecting the target market file according to the path, specifically includes:

[0018] Obtain the market configuration table, determine the target market file according to the configuration information of the market configuration table, determine whether the real-time collection times exceed the collection times threshold according to the configuration information of the target market file, and determine the path of the target market file if it does not exceed the collection times threshold;

[0019] Determine the MD5 code corresponding to the last acquisition of the target market file according to the market configuration table and determine the current MD5 code of the target market file according to the target market file;

[0020] The current MD5 code of the target market file is verified according to the MD5 code generated last time by the target market file, and a verification result is generated. The market collection status is determined according to the verification result, and the target market file is collected according to the path and the market collection status.

[0021] Optionally, the target market information file is parsed and converted, intermediate data corresponding to the target market information file is generated and stored in the market information intermediate table, and the current market information collection status is updated, specifically including:

[0022] Analyze the target market file according to the collection and processing state of the target market file to generate target market file data;

[0023] Convert the target market file data to generate intermediate data, and store the intermediate data in the market intermediate table;

[0024] Generate collection results based on intermediate data, and update the market collection status of the target market file based on the collection results.

[0025] Optionally, determining the label information according to the market configuration table, adding the label information to the intermediate data, and adding the intermediate data to a queue to be processed of the market intermediate table according to the label information, specifically includes:

[0026] Determine the label information according to the market configuration table, and add it to the intermediate data according to the label information, wherein the label information includes enabling labels and disabling labels;

[0027] Delete intermediate data based on disabled tags;

[0028] Add the intermediate data to the queue to be processed in the market intermediate table according to the enabled tag.

[0029] Optionally, based on the activation tag of the intermediate data, the intermediate data is transcoded according to each state of the target market data file in the market processing table to generate business data and store it in the market business table, specifically including:

[0030] Determine the market transcoding status corresponding to the target market file according to the market processing table, transcode the intermediate data corresponding to the target market file according to the market transcoding status, and generate business data corresponding to the target market file;

[0031] Accordingly, the method further includes:

[0032] When it is determined that the market transcoding status is the transcoding completion status, the market transcoding status in the market processing table is updated to the transcoding processing status according to the transcoding completion status;

[0033] And transcode the intermediate data corresponding to the target market file to generate business data;

[0034] Generate a transcoding result according to the business data, and update the market transcoding status in the market processing table to the transcoding completion state according to the successful transcoding result; and update the market transcoding status in the market processing table to the transcoding initial state according to the failed transcoding result.

[0035] Optionally, the business data is distributed to the corresponding components of the trading system according to each status, and the current market distribution status is updated, including:

[0036] Determine the market distribution status corresponding to the target market file according to the market processing table, and distribute the business data corresponding to the target market file to the corresponding components of the trading system according to the market distribution status;

[0037] Accordingly, the method further includes:

[0038] When it is determined according to the market processing table that the market distribution state corresponding to the business data is the distribution initial state, the market distribution state in the market processing table is updated to the distribution processing state according to the transcoding completion state of the market transcoding state;

[0039] And distribute the business data corresponding to the target market file to the corresponding components respectively, and generate distribution results;

[0040] According to the result of successful distribution, the market distribution status in the market processing table is updated to the distribution completion state; and according to the result of failed distribution, the market distribution status in the market processing table is updated to the distribution initial state.

[0041] In a second aspect, the present application provides a device for importing market information, comprising:

[0042] Establishing a module for establishing a database, wherein the database includes a market configuration table, a market intermediate table, a market business table and a market processing table, and the market processing table includes the market collection status, market transcoding status and market distribution status corresponding to the market file;

[0043] The acquisition module is used to obtain the market configuration table, determine the path of the target market file according to the configuration information of the market configuration table, and collect the target market file according to the path; parse and convert the target market file, generate the intermediate data corresponding to the target market file and store it in the market intermediate table, and update the current market collection status;

[0044] A processing module, used to determine the label information according to the market configuration table, add the label information to the intermediate data, and add the intermediate data to the to-be-processed queue of the market intermediate table according to the label information;

[0045] The processing module is also used to transcode the intermediate data to generate business data according to the various states of the target market file in the market processing table and store it in the market business table, and update the current market transcoding state;

[0046] The processing module is also used to distribute business data to corresponding components of the trading system according to various states, and update the current market distribution state so that related components can operate according to the business data.

[0047] Optionally, a module is established, further used to generate a name directory according to each market file; and establish a mapping relationship between each name in the name directory and the path of the corresponding market file, and also establish a mapping relationship between each name in the name directory and the collection number threshold of the corresponding market file;

[0048] Generate multiple MD5 codes according to each market information file, establish a mapping relationship between each name in the name directory and the MD5 code of the corresponding market information file, and generate a market information configuration table according to the mapping relationship;

[0049] Generate the market intermediate table and market business table according to the name directory, and update the market intermediate table and market business table according to the market configuration table;

[0050] A market processing table is generated according to the market configuration table, the market intermediate table and the market business table; wherein, the market collection status in the market processing table includes the collection initial state, the collection processing state and the collection completion state, the market transcoding status includes the transcoding initial state, the transcoding processing state and the transcoding completion state, and the market distribution status includes the distribution initial state, the distribution processing state and the distribution completion state.

[0051] Optionally, the acquisition module is further used to acquire a market configuration table, determine a target market file according to configuration information of the market configuration table, determine whether the real-time collection times exceed a collection times threshold according to the target market file configuration information, and determine a path of the target market file when the real-time collection times threshold is not exceeded;

[0052] Determine the MD5 code corresponding to the last acquisition of the target market file according to the market configuration table and determine the current MD5 code of the target market file according to the target market file;

[0053] The current MD5 code of the target market file is verified according to the MD5 code generated last time by the target market file, and a verification result is generated. The market collection status is determined according to the verification result, and the target market file is collected according to the path and the market collection status.

[0054] Optionally, the processing module is further used to parse the target market file according to the collection and processing state of the target market file to generate target market file data;

[0055] Convert the target market file data to generate intermediate data, and store the intermediate data in the market intermediate table;

[0056] Generate collection results based on intermediate data, and update the market collection status of the target market file based on the collection results.

[0057] Optionally, the processing module is further used to determine label information according to the market configuration table, and add the label information to the intermediate data according to the label information, wherein the label information includes an enabled label and a disabled label;

[0058] Delete intermediate data based on disabled tags;

[0059] Add the intermediate data to the queue to be processed in the market intermediate table according to the enabled tag.

[0060] Optionally, the processing module is further used to determine the market transcoding state corresponding to the target market file according to the market processing table, transcode the intermediate data corresponding to the target market file according to the market transcoding state, and generate business data corresponding to the target market file;

[0061] Accordingly, the method further includes:

[0062] When it is determined that the market transcoding status is the transcoding completion status, the market transcoding status in the market processing table is updated to the transcoding processing status according to the transcoding completion status;

[0063] And transcode the intermediate data corresponding to the target market file to generate business data;

[0064] Generate a transcoding result according to the business data, and update the market transcoding status in the market processing table to the transcoding completion state according to the successful transcoding result; and update the market transcoding status in the market processing table to the transcoding initial state according to the failed transcoding result.

[0065] Optionally, the processing module is further used to determine the market distribution status corresponding to the target market file according to the market processing table, and distribute the business data corresponding to the target market file to the corresponding components of the trading system according to the market distribution status;

[0066] Accordingly, the method further includes:

[0067] When it is determined according to the market processing table that the market distribution state corresponding to the business data is the distribution initial state, the market distribution state in the market processing table is updated to the distribution processing state according to the transcoding completion state of the market transcoding state;

[0068] And distribute the business data corresponding to the target market file to the corresponding components respectively, and generate distribution results;

[0069] According to the result of successful distribution, the market distribution status in the market processing table is updated to the distribution completion state; and according to the result of failed distribution, the market distribution status in the market processing table is updated to the distribution initial state.

[0070] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0071] Memory stores computer-executable instructions;

[0072] The processor executes the computer-executable instructions stored in the memory to implement the method involved in the first aspect.

[0073] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method involved in the first aspect as above.

[0074] In a fifth aspect, the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the method involved in the first aspect above.

[0075] The method, device and electronic device for importing market information provided by the present application establish a database, determine a target market file according to the configuration information of a market configuration table in the database, and determine to import the target market file according to the configuration information, obtain the path of the target market file, collect the target market file according to the path, parse and convert the target market file and generate intermediate data corresponding to the target market file, update the current market collection status of the target market file according to the collection process, determine label information through the market configuration table and add it to the intermediate data for classifying the target market file, trigger a transcoding process according to the current market collection status, transcode the intermediate data to generate business data, and update the market transcoding status according to the transcoding process, thereby triggering a distribution process according to the market transcoding status, and importing the business data into corresponding components on demand. By independently controlling each process of importing market information, the controllability of importing market information is enhanced, and the import efficiency and adaptability are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0077] Figure 1 A schematic diagram of an application scenario of a method for importing market information provided in an embodiment of the present application;

[0078] Figure 2 A flowchart of a method for importing market information provided in an embodiment of the present application;

[0079] Figure 3 A state transition diagram of a method for importing market information provided in an embodiment of the present application;

[0080] Figure 4 A flowchart of a method for importing market information provided in an embodiment of the present application;

[0081] Figure 5 A flowchart of a method for importing market information provided in an embodiment of the present application;

[0082] Figure 6A flowchart of a method for importing market information provided in an embodiment of the present application;

[0083] Figure 7 A flowchart of a method for importing market information provided in an embodiment of the present application;

[0084] Figure 8 A schematic diagram of the structure of a market information importing device provided in an embodiment of the present application;

[0085] Fig. 9 A schematic diagram of the structure of an electronic device provided for an application embodiment.

[0086] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0087] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0088] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0089] The market data file is a basic part of the financial transaction process. The market data file includes the market data related to each financial product. A transaction usually requires obtaining the target market data of the target financial product first, and completing the corresponding transaction based on the obtained target market data. For example, Figure 1 A schematic diagram of an application scenario of a method for importing market information provided in an embodiment of the application, such as Figure 1 As shown, the application scenario includes a market system 10, a trading system 11 and an exchange 12. During the trading process, the market system obtains market files from the exchange, and the trading system collects market files from the market system. After transcoding, the generated results are distributed and imported into the components corresponding to the needs in the trading system, so that each component performs related business processing based on the data.

[0090] In the prior art, when importing a market file, the corresponding market file import logic is usually established based on the source code related to the market file, and the specified market file is imported into the corresponding component of the trading system according to the logic. However, when other market files are imported, the import logic needs to be replaced, which increases the maintenance difficulty and import efficiency of the trading system.

[0091] In addition, the prior art also controls the import of market files and the processing of trading business by hard coding at the application layer. However, when the import process of market files needs to be changed, the hard coding needs to be modified, and the modified coding needs to be recompiled and deployed to import the market files again, which reduces the adaptability and scalability of the imported market files, increases the workload, and consumes time. In addition, when any process fails to execute, the entire process of importing the market files needs to be re-executed, which reduces the import efficiency.

[0092] The present application establishes a database including a market configuration table, a market intermediate table, a market business table and a market processing table through a trading system. The trading system determines the corresponding target market file according to the market configuration table, generates a market collection status according to the relevant configuration information of the target market file, and updates it to the market processing table, thereby triggering the collection of the target market file through the current status, and parsing and converting to generate intermediate data to update to the market intermediate table, and also generates a market collection status according to the collection result and updates the market processing table, thereby triggering re-collection or transcoding according to the current market collection status. Correspondingly, in the transcoding process, transcoding is triggered and business data is generated according to the market transcoding status, and the market processing table is updated after transcoding, thereby triggering re-transcoding or distribution according to the current market transcoding status. Correspondingly, in the distribution process, distribution of business data is triggered according to the market distribution status to process related business. A database configured with relevant information of market files is established through the trading system to improve the adaptability of market import, and by controlling the real-time update of the execution result status in different import processes, errors are found according to the real-time status, and corrected, thereby enhancing the controllability of market import and improving the efficiency of market import.

[0093] The method for importing market information provided in this application is intended to solve the above technical problems in the prior art.

[0094] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0095] Figure 2A flowchart of a method for importing market information provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, this method is applied to Figure 1 The application scenario shown includes the following steps:

[0096] S201. Establish a database.

[0097] More specifically, the trading system establishes a database, wherein the database includes a market configuration table, a market intermediate table, a market business table and a market processing table, and the market processing table includes the market collection status, market transcoding status and market distribution status corresponding to the market file.

[0098] Optionally, before trading, the trading system generates a name directory for each market file by acquiring each market file, stores the name directory in a database, establishes a mapping of the corresponding file path for each market file name in the name directory, and establishes a mapping relationship between each name in the name directory and the collection time threshold of the corresponding market file.

[0099] Optionally, the trading system calculates and generates an MD5 code corresponding to the market file based on the acquired market file. Accordingly, a corresponding MD5 code is generated for each market file, a mapping relationship between each name in the name directory is established based on the MD5 code corresponding to each market file, and a market configuration table is generated based on the mapping relationship between the name of each market file in the name directory and the path, collection time threshold and MD5 code.

[0100] Optionally, when the data of the market information file changes, the MD5 code corresponding to the market information file is recalculated and updated according to the changed market information file.

[0101] Optionally, a market intermediate table and a market business table are generated according to the name directory, and the market intermediate table and the market business table are updated in real time according to the configuration information of the market configuration table. The market intermediate table includes the name directory and the intermediate data corresponding to each name, and the market business table includes the name directory and the business data corresponding to each name.

[0102] Optionally, a market processing table is generated according to the market configuration table, the market intermediate table and the market business table, wherein the market processing table also includes a collection model, a transcoding model and a distribution model.

[0103] In a possible embodiment, a market collection status is generated according to the configuration information of each market file in the market configuration table, and a collection model is called according to the market collection status to execute the collection process for the target market file, and the collection result is generated to update the market intermediate table; a market transcoding status is generated according to the execution result of the collection process, and a transcoding model is called according to the market transcoding status to execute the transcoding process for the target market file, and a transcoding result is generated to update the market business table; a market distribution status is generated according to the execution result of the transcoding process, and a distribution model is called according to the market distribution status to execute the distribution process for the target market file, and a market processing table is generated according to the market collection status, market transcoding status and market distribution status corresponding to each market file.

[0104] Optionally, the market information collection status in the market information processing table includes the collection initial status, collection processing status and collection completion status, the market information transcoding status includes the transcoding initial status, transcoding processing status and transcoding completion status, and the market information distribution status includes the distribution initial status, distribution processing status and distribution completion status.

[0105] Optionally, the acquisition model, transcoding model and distribution model of the embodiment of the present application include but are not limited to related functions.

[0106] S202, obtaining a market configuration table, collecting target market files according to the market configuration table and performing parsing and conversion, generating intermediate data corresponding to the target market files, and updating the current market collection status.

[0107] More specifically, the trading system obtains a market configuration table, determines an acquisition path for a target market file according to the market configuration table, collects and opens the target market file according to the path, generates data for the target market file according to the type of the target market file, converts the data for the target market file, generates intermediate data corresponding to the target market file, and updates the intermediate data-related items of the target market file stored in the market intermediate table.

[0108] In a possible embodiment, when collecting the target market file, the trading system generates a collection processing status and updates the market collection status in the market processing table, calls the collection model in the market processing table according to the collection processing status to collect the target market file, and generates intermediate data after parsing the target market file.

[0109] Optionally, the trading system determines the collection result according to the intermediate data, and updates the current market collection status of the target market file in the market processing table according to the collection result.

[0110] In a possible embodiment, Figure 3As shown, it is a state transition diagram of a method for importing market information provided by an embodiment of the present application, which is suitable for collection, transcoding and distribution. Among them, when it is determined that the collection result is a successful collection, a collection completion state is generated, and the current collection processing state of the target market file in the market processing table is updated, and after reaching the collection completion state, the collection initial state is triggered, and the next target market file is continued to be collected; when it is determined that the collection result is a failed collection, the collection initial state is generated, and the current collection processing state of the target market file in the market processing table is updated, and the target market file is re-collected, and the convenience of correcting the collection failure is improved by automatically triggering the reset of the collection process.

[0111] S203: Determine label information according to the market configuration table, and add the intermediate data to the to-be-processed queue of the market intermediate table according to the label information.

[0112] More specifically, after the target market file is collected, the trading system determines the label information according to the market configuration table, adds the label information to the intermediate data, and adds the intermediate data to the pending queue of the market intermediate table according to the label information, wherein the label information includes enabling labels and disabling labels.

[0113] For example: according to the disabled tag, the intermediate data corresponding to the target market data file is deleted, and according to the enabled tag, the intermediate data corresponding to the target market data file is added to the to-be-processed queue of the market data intermediate table.

[0114] Optionally, the trading system stores the intermediate data persistently in the market information intermediate table according to the tag information.

[0115] In a possible embodiment, the trading system determines whether the target market file is in a normal provision state based on the dynamic information of the target market file in the market configuration table, and when it is determined that the target market file is in a normal provision state, generates an enablement tag and adds the enablement tag to the intermediate data corresponding to the target market file, thereby adding the intermediate data to the to-be-processed queue of the market intermediate table according to the enablement tag carried by the intermediate data.

[0116] In a possible embodiment, when the trading system determines that the target market file is in an abnormal provision state according to the market configuration table, a disabling tag is generated and the disabling tag is added to the intermediate data corresponding to the target market file. The target market file is determined to be an invalid file through the disabling tag identified by the intermediate data in the market intermediate table, and the file is deleted to release the trading system running memory in time and improve the efficiency of importing market information.

[0117] S204, according to each state of the target market file in the market processing table, the intermediate data is transcoded to generate business data and stored in the market business table, and the current market transcoding state is updated.

[0118] More specifically, after adding the intermediate data with the identification enable tag to the pending queue of the market intermediate table, the trading system transcodes the intermediate data in the pending queue of the market intermediate table to generate business data according to the market collection status and / or market transcoding status corresponding to the target market file in the market processing table, and stores the business data in the business data-related items corresponding to the target market file in the market business table.

[0119] Optionally, after the trading system transcodes the intermediate data to generate business data, it determines the transcoding result and updates the current market transcoding status of the target market file in the market processing table according to the transcoding result.

[0120] In a possible embodiment, Figure 3 As shown, the market transcoding status in the market processing table is updated to the transcoding completion state according to the result of successful transcoding. After reaching the transcoding completion state, the transcoding initial state is triggered, and the intermediate data corresponding to the next target market file is continued to be transcoded. The market transcoding status in the market processing table is also updated to the transcoding initial state according to the result of failed transcoding, and the intermediate data corresponding to the target market file is re-transcoded. By automatically triggering the reset of the transcoding process, the convenience of correcting transcoding failure is improved.

[0121] S205. Distribute the business data to the corresponding components of the trading system according to each status, and update the current market distribution status.

[0122] More specifically, the trading system distributes business data to corresponding components of the trading system according to the market collection status and / or market transcoding status, so that the relevant components can trade according to the business data. The business data is the market and / or market information required by each component, and the trading system imports the market information into each component.

[0123] Optionally, after distributing the business data to the corresponding components of the trading system, the trading system determines the distribution result, and updates the current market distribution status of the target market file in the market processing table according to the distribution result.

[0124] In a possible embodiment, Figure 3 As shown, the market distribution status in the market processing table is updated to the distribution completion state according to the result of successful distribution. After reaching the distribution completion state, the distribution initial state is triggered, and the business data corresponding to the next target market file is continued to be waited for. The market distribution status in the market processing table is also updated or reset to the distribution initial state according to the result of failed distribution, and the business data corresponding to the target market file is redistributed. By automatically triggering the reset of the distribution process, the convenience of correcting distribution failure is improved.

[0125] Optionally, the target market file includes one or more market files, and a set is generated according to the one or more market files, wherein the set includes a set number, and a mapping relationship in the database is established according to the set number.

[0126] In a possible embodiment, Figure 4 As shown, the trading system collects the target market file based on the database to generate intermediate data, transcodes the intermediate data to generate business data, and distributes it to various components that need corresponding information based on the business data, thereby completing the import of the market file.

[0127] In the method for importing market information provided in the embodiment of the present application, a database is established to store the configuration information of each market file, and the target market file is collected according to the relevant mapping relationship in the market configuration table in the database. The method can collect static and dynamic market files without frequently switching or re-arranging the control method when the market file changes, thereby improving adaptability and control efficiency. In addition, by real-time monitoring of the market collection status in the market processing table, transcoding is triggered in time when the conditions are met, and the transcoding status is stored at the same time. The distribution process is triggered according to the real-time market transcoding status, thereby realizing market import, and when the import fails, the fault location is promptly determined through the recorded real-time status, thereby improving repair efficiency.

[0128] Optionally, Figure 5 A flowchart of a method for importing market information provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, in step S202, the acquisition path of the target market file is determined according to the market configuration table in the database, and the target market file is collected according to the path, which specifically includes the following steps:

[0129] S501. Obtain a market configuration table, and determine a target market file according to configuration information in the market configuration table.

[0130] More specifically, the trading system obtains a market configuration table, determines configuration information of each market file, and determines a target market file according to the configuration information.

[0131] Optionally, the configuration information of each market information file includes a collection time period and a collection cycle corresponding to each market information file, and the target market information file is determined according to the collection time period and the collection cycle.

[0132] In a possible embodiment, whether the collection time period is met is determined based on the real-time time. When the real-time time is within the collection time period, it is determined whether the time interval between the real-time time and the last collection time meets the collection cycle, and a target market file is generated based on the market file that meets the collection cycle.

[0133] Optionally, configuration information of the target market file is obtained according to the target market file, wherein the configuration information of the target market file includes a collection times threshold, a path and an MD5 code.

[0134] S502: Determine whether the real-time collection times exceed the collection times threshold according to the target market file configuration information, and determine the path of the target market file when the real-time collection times threshold is not exceeded.

[0135] More specifically, the real-time collection times are obtained, and whether the real-time collection times exceed the collection times threshold is determined according to the target market file configuration information. When the collection times threshold is not exceeded, the path of the target market file is determined. When the collection times threshold is exceeded, the collection of the current target market file is skipped, and the next target market file is collected.

[0136] S503: Collect target market information files according to the market information configuration table and path.

[0137] More specifically, the MD5 code generated when the target market file was collected last time is determined according to the market configuration table, and the MD5 code of the current target market file is generated according to the current target market file. The MD5 code of the current target market file is verified by the MD5 code generated last time, and a verification result is generated. The market collection status is determined according to the verification result.

[0138] In a possible embodiment, when it is determined that the MD5 code of the current target market file is consistent with the MD5 code generated by the previous target market file, the market collection status of the previous target market file is determined. When the market collection status of the previous target market file is the collection initial state or the collection completion state, it is determined that the market file has not changed, the current target market file is consistent with the previous target market file, and the target market file has been collected successfully and does not need to be re-collected.

[0139] In a possible embodiment, when it is determined that the MD5 code of the current target market file is consistent with the MD5 code generated by the previous target market file, and the market collection status of the previous target market file is the collection processing state, it is determined that the target market file has not changed, the current target market file is consistent with the previous target market file, but the target market file needs to be re-collected.

[0140] In a possible embodiment, when it is determined that the MD5 code of the current target market file is inconsistent with the MD5 code generated by the previous target market file, it is determined that the target market file has changed, and the current target market file is inconsistent with the previous target market file. It is necessary to generate a new MD5 code based on the current target market file to update the previous MD5 code, and collect the current target market file.

[0141] Optionally, when collecting the target market information file, a collection model in the market information processing table is called according to the market information collection state, and the collection model collects the target market information file according to the determined path.

[0142] In a possible embodiment, when the target market file has not changed, the market collection state of the current target market file is updated to the collection processing state according to the collection processing state of the previous target market file, and the collection model in the market processing table is called according to the collection processing state, and the target market file is collected according to the determined path.

[0143] In a possible embodiment, when the target market file changes, the market collection state of the current target market file is updated to the collection processing state, and the collection model in the market processing table is called according to the collection processing state, and the current target market file is collected according to the determined path.

[0144] Optionally, during the collection process of the target market information file, if an error occurs in the collection, the market information collection state of the current target market information file is maintained as a collection processing state, and waits for the next re-collection.

[0145] Optionally, when the trading system collects the target market file, it also updates the real-time collection times corresponding to the target market file in the market configuration table. For example, the real-time collection times increase once the collection model is called once.

[0146] In a possible embodiment, the counter management interface is configured with a re-collection emergency button for resetting the collection of the target market information file. Figure 4 As shown, during the collection process, the market collection status in the collection processing state can be updated to the collection initial state through the re-collection emergency button on the counter management interface, and the market collection status in the collection completion state can be updated to the collection initial state.

[0147] In the method for importing market information provided in the embodiment of the present application, the target market information is determined by the configuration information in the market configuration table, and it is further determined whether the target market file has changed. The market collection status is used to determine whether the current demand for the static target market file needs to be re-collected or skipped, and the dynamic target market file is separately recorded and collected according to the market collection status. Different types of market files are collected separately to avoid repeated collection of successfully collected market files, thereby improving system utilization. In addition, by recording the market collection status of the target market file, error finding and re-collection after collection failure are facilitated, thereby improving the import efficiency of the target market file.

[0148] Optionally, in step S204, the trading system transcodes the intermediate data to generate business data according to the market collection status and / or market transcoding status of the target market file in the market processing table, such as Figure 6FIG. 1 is a flowchart of a method for importing market information provided in an embodiment of the present application, which specifically includes the following steps:

[0149] S601. Determine the market transcoding status corresponding to the target market file according to the market processing table.

[0150] More specifically, when the trading system determines that the market collection status of the target market file is the collection completion state, it determines the market transcoding status corresponding to the target market file according to the market processing table, wherein the market transcoding status corresponding to the target market file includes the transcoding initial state, the transcoding processing state and the transcoding completion state.

[0151] S602: Transcode the intermediate data corresponding to the target market information file according to the market information transcoding status to generate business data corresponding to the target market information file.

[0152] More specifically, the market transcoding state in the market processing table is updated to the transcoding processing state according to the transcoding completion state or the transcoding initial state of the target market file, and the transcoding model is called according to the transcoding processing state to transcode the intermediate data corresponding to the target market file to generate business data. The transcoding model is also directly called according to the transcoding processing state of the target market file to transcode the intermediate data corresponding to the target market file to generate business data.

[0153] For example, Figure 4 As shown, during the transcoding process, the transcoding initial state triggers the transition to the transcoding processing state, and the transcoding process is performed; the transcoding completion state triggers the transition to the transcoding processing state, and the transcoding process is performed.

[0154] Optionally, when it is determined that the market transcoding state of the target market file is a transcoding processing state, the market distribution state of the target market file is also updated to a distribution initial state.

[0155] In a possible embodiment, for a dynamic target market file that has been modified, when the trading system determines that the market collection state of the target market file is the collection processing state, the transcoding processing state of the target market file is reset to the transcoding initial state, or the transcoding completion state of the target market file is reset to the transcoding initial state; and the distribution processing state of the target market file is reset to the distribution initial state, or the distribution completion state of the target market file is reset to the transcoding initial state. After the reset is successful, when waiting for the market collection state to be transformed into the collection completion state, the application system updates the transcoding initial state to the transcoding processing state, calls the transcoding model, and updates the transcoding processing state to the transcoding completion state after the transcoding is successful. After the transcoding event, the transcoding processing state is updated to the transcoding initial state for re-transcoding.

[0156] Alternatively, if Figure 4As shown, for the dynamic target market file that has been modified, and when the market collection state of the target market file is determined to be the collection processing state, during the transcoding process, the transcoding processing state of the target market file triggers a reset to the transcoding initial state, and the transcoding completion state triggers a reset to the transcoding initial state; during the distribution process, the distribution processing state of the target market file triggers a reset to the distribution initial state, and the distribution completion state triggers a reset to the distribution initial state.

[0157] In the method for importing market information provided in the embodiment of the present application, the transcoding process is automatically triggered according to the market collection status of the target market file, and it is ensured that the transcoding process can only be entered based on the collection completion state. When the target market file is in the collection processing state, the market transcoding state is controlled to remain in the transcoding initial state, and when the target market file reaches the collection completion state, the transcoding initial state is updated to the transcoding processing state and transcoding is performed, thereby realizing independent control of the collection process and the transcoding process and reducing the coupling degree. When transcoding fails, the transcoding process can be reset independently, thereby improving the market import efficiency, and performing different processing according to the market collection status, thereby enhancing the adaptability of the control method to different market files.

[0158] Optionally, in step S205, the trading system distributes the business data to corresponding components of the trading system according to the market collection status and / or market transcoding status, such as Figure 7 As shown, Figure 7 A flowchart of a method for importing market information provided in an embodiment of the present application specifically includes the following steps:

[0159] S701. Determine the market distribution status corresponding to the target market file according to the market processing table.

[0160] More specifically, when the trading system determines that the market collection status of the target market file is the collection completion status, and the market transcoding status is the transcoding completion status, the market distribution status corresponding to the target market file is determined according to the market processing table, wherein the market distribution status corresponding to the target market file includes the distribution initial status, the distribution processing status and the distribution completion status.

[0161] S702. Distribute the business data corresponding to the target market information file to corresponding components of the trading system according to the market information distribution status.

[0162] More specifically, when the transcoding status of the market transcoding state is in the transcoding completion state, and the market distribution state corresponding to the business data of the target market file is determined to be the distribution initial state according to the market processing table, the distribution initial state in the market processing table is updated to the distribution processing state, and the distribution model is called according to the distribution processing state to distribute the business data to the components of corresponding needs.

[0163] Optionally, when the distribution is successful, the distribution processing state is updated to the distribution completion state, and when the distribution fails, the distribution processing state is updated to the distribution initial state, thereby controlling the redistribution.

[0164] In the method for importing market information provided in the embodiment of the present application, different market distribution states are updated by independently controlling the market collection state and the market transcoding state of the target market file, so that when the collection and transcoding are completed, the redistribution can be independently controlled for the results of distribution failure, saving the time of market import.

[0165] Optionally, when resetting the market information collection state, the real-time collection times of the target market information file are also reset to zero.

[0166] Figure 8 A schematic diagram of a device for importing market information provided in an embodiment of the application, the schematic diagram of the device is as follows Figure 8 As shown, the device 800 includes:

[0167] Establishing module 801, for establishing a database, wherein the database includes a market configuration table, a market intermediate table, a market business table and a market processing table, and the market processing table includes the market collection status, market transcoding status and market distribution status corresponding to the market file;

[0168] The acquisition module 802 is used to acquire the market configuration table, determine the path of the target market file according to the configuration information of the market configuration table, and collect the target market file according to the path; parse and convert the target market file, generate the intermediate data corresponding to the target market file and store it in the market intermediate table, and update the current market collection status;

[0169] Processing module 803, used to determine label information according to the market configuration table, add the label information to the intermediate data, and add the intermediate data to the to-be-processed queue of the market intermediate table according to the label information;

[0170] The processing module 803 is also used to transcode the intermediate data to generate business data according to each state of the target market file in the market processing table, store it in the market business table, and update the current market transcoding state;

[0171] The processing module 803 is also used to distribute the business data to the corresponding components of the trading system according to each state, and update the current market distribution state so that the relevant components can operate according to the business data.

[0172] Optionally, the module 801 is established to generate a name directory according to each market file; and to establish a mapping relationship between each name in the name directory and the path of the corresponding market file, and to establish a mapping relationship between each name in the name directory and the collection number threshold of the corresponding market file;

[0173] Generate multiple MD5 codes according to each market information file, establish a mapping relationship between each name in the name directory and the MD5 code of the corresponding market information file, and generate a market information configuration table according to the mapping relationship;

[0174] Generate the market intermediate table and market business table according to the name directory, and update the market intermediate table and market business table according to the market configuration table;

[0175] A market processing table is generated according to the market configuration table, the market intermediate table and the market business table; wherein, the market collection status in the market processing table includes the collection initial state, the collection processing state and the collection completion state, the market transcoding status includes the transcoding initial state, the transcoding processing state and the transcoding completion state, and the market distribution status includes the distribution initial state, the distribution processing state and the distribution completion state.

[0176] Optionally, the acquisition module 802 is further used to acquire a market configuration table, determine a target market file according to configuration information of the market configuration table, determine whether the real-time collection times exceed a collection times threshold according to the target market file configuration information, and determine a path of the target market file when the real-time collection times threshold is not exceeded;

[0177] Determine the MD5 code corresponding to the last acquisition of the target market file according to the market configuration table and determine the current MD5 code of the target market file according to the target market file;

[0178] The current MD5 code of the target market file is verified according to the MD5 code generated last time by the target market file, and a verification result is generated. The market collection status is determined according to the verification result, and the target market file is collected according to the path and the market collection status.

[0179] Optionally, the processing module 803 is further used to parse the target market file according to the collection and processing state of the target market file to generate target market file data;

[0180] Convert the target market file data to generate intermediate data, and store the intermediate data in the market intermediate table;

[0181] Generate collection results based on intermediate data, and update the market collection status of the target market file based on the collection results.

[0182] Optionally, the processing module 803 is further used to determine label information according to the market configuration table, and add the label information to the intermediate data according to the label information, wherein the label information includes an enabled label and a disabled label;

[0183] Delete intermediate data based on disabled tags;

[0184] Add the intermediate data to the queue to be processed in the market intermediate table according to the enabled tag.

[0185] Optionally, the processing module 803 is further used to determine the market transcoding state corresponding to the target market file according to the market processing table, transcode the intermediate data corresponding to the target market file according to the market transcoding state, and generate business data corresponding to the target market file;

[0186] Accordingly, the method further includes:

[0187] When it is determined that the market transcoding status is the transcoding completion status, the market transcoding status in the market processing table is updated to the transcoding processing status according to the transcoding completion status;

[0188] And transcode the intermediate data corresponding to the target market file to generate business data;

[0189] Generate a transcoding result according to the business data, and update the market transcoding status in the market processing table to the transcoding completion state according to the successful transcoding result; and update the market transcoding status in the market processing table to the transcoding initial state according to the failed transcoding result.

[0190] Optionally, the processing module 803 is further used to determine the market distribution status corresponding to the target market file according to the market processing table, and distribute the business data corresponding to the target market file to the corresponding components of the trading system according to the market distribution status;

[0191] Accordingly, the method further includes:

[0192] When it is determined according to the market processing table that the market distribution state corresponding to the business data is the distribution initial state, the market distribution state in the market processing table is updated to the distribution processing state according to the transcoding completion state of the market transcoding state;

[0193] And distribute the business data corresponding to the target market file to the corresponding components respectively, and generate distribution results;

[0194] According to the result of successful distribution, the market distribution status in the market processing table is updated to the distribution completion state; and according to the result of failed distribution, the market distribution status in the market processing table is updated to the distribution initial state.

[0195] like Fig. 9 As shown, an embodiment of the present application provides an electronic device 900 , which includes a memory 901 and a processor 902 .

[0196] The memory 901 is used to store computer instructions executable by the processor;

[0197] The processor 902 implements each step of the method in the above embodiment when executing the computer instruction. For details, please refer to the relevant description in the above method embodiment.

[0198] Optionally, the memory 901 can be independent or integrated with the processor 902. When the memory 901 is independently provided, the electronic device further includes a bus for connecting the memory 901 and the processor 902.

[0199] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When a processor executes the computer instructions, each step of the method in the above embodiment is implemented.

[0200] The embodiment of the present application also provides a computer program product, including computer instructions, which implement the various steps of the method in the above embodiment when executed by a processor.

[0201] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0202] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for importing market information, characterized in that: The method is applied to a trading system, and the method comprises: Establishing a database, wherein the database includes a market configuration table, a market intermediate table, a market business table and a market processing table, and the market processing table includes the market collection status, market transcoding status and market distribution status corresponding to the market file; Obtain a market configuration table, determine the path of a target market file according to the configuration information of the market configuration table, and collect the target market file according to the path; parse and convert the target market file, generate intermediate data corresponding to the target market file and store it in the market intermediate table, and update the current market collection status; Determine label information according to the market configuration table, add the label information to the intermediate data, and add the intermediate data to a to-be-processed queue of the market intermediate table according to the label information; According to the various states of the target market data in the market processing table, the intermediate data is transcoded to generate business data and stored in the market business table, and the current market transcoding state is updated; Distribute the business data to corresponding components of the trading system according to each status, and update the current market distribution status so that relevant components can operate according to the business data; Establish a database, including: Generate a name directory according to each market file; and establish a mapping relationship between each name in the name directory and the path of the corresponding market file, and also establish a mapping relationship between each name in the name directory and the collection number threshold of the corresponding market file; Generate multiple MD5 codes according to the various market information files, establish a mapping relationship between each name in the name directory and the MD5 code of the corresponding market information file, and generate a market information configuration table according to the mapping relationship; Generate a market intermediate table and a market business table according to the name directory, and update the market intermediate table and the market business table according to the market configuration table; Generate a market processing table according to the market configuration table, the market intermediate table and the market service table; wherein the market collection status in the market processing table includes the collection initial state, the collection processing state and the collection completion state, the market transcoding status includes the transcoding initial state, the transcoding processing state and the transcoding completion state, and the market distribution status includes the distribution initial state, the distribution processing state and the distribution completion state; Acquiring a market configuration table, determining a path of a target market file according to configuration information of the market configuration table, and collecting the target market file according to the path, specifically includes: Obtaining a market configuration table, determining a target market file according to configuration information of the market configuration table, determining whether the real-time collection times exceed a collection times threshold according to the configuration information of the target market file, and determining a path of the target market file when the real-time collection times threshold is not exceeded; Determine the MD5 code corresponding to the last acquisition of the target market file according to the market configuration table and determine the current MD5 code of the target market file according to the target market file; Verify the current MD5 code of the target market file according to the MD5 code generated last time by the target market file, generate a verification result, determine the market collection status according to the verification result, and collect the target market file according to the path and the market collection status; Determining label information according to the market configuration table, adding the label information to the intermediate data, and adding the intermediate data to a to-be-processed queue of the market intermediate table according to the label information, specifically includes: Determine label information according to the market configuration table, and add it to the intermediate data according to the label information, wherein the label information includes an enabled label and a disabled label; Deleting the intermediate data according to the disabled tag; Adding the intermediate data to a to-be-processed queue of the market intermediate table according to the enabling tag; Based on the activation tag of the intermediate data, the intermediate data is transcoded to generate business data according to each state of the target market file in the market processing table and stored in the market business table, specifically including: Determine the market transcoding state corresponding to the target market file according to the market processing table, transcode the intermediate data corresponding to the target market file according to the market transcoding state, and generate the business data corresponding to the target market file; Accordingly, the method further includes: When it is determined that the market transcoding state is a transcoding completion state, updating the market transcoding state in the market processing table to a transcoding processing state according to the transcoding completion state; and transcoding the intermediate data corresponding to the target market information file to generate business data; Generate a transcoding result according to the business data, update the market transcoding status in the market processing table to a transcoding completion state according to the result of the successful transcoding; and update the market transcoding status in the market processing table to a transcoding initial state according to the result of the failed transcoding; Distribute the business data to the corresponding components of the trading system according to each status, and update the current market distribution status, specifically including: Determine the market distribution status corresponding to the target market file according to the market processing table, and distribute the business data corresponding to the target market file to the corresponding components of the trading system according to the market distribution status; Accordingly, the method further includes: When it is determined according to the market processing table that the market distribution state corresponding to the business data is the distribution initial state, the market distribution state in the market processing table is updated to the distribution processing state according to the transcoding completion state of the market transcoding state; and distributing the business data corresponding to the target market data file to the corresponding components respectively, and generating a distribution result; The market distribution status in the market processing table is updated to a distribution completion state according to the result of successful distribution; and the market distribution status in the market processing table is updated to a distribution initial state according to the result of failed distribution.

2. The method according to claim 1, characterized in that Parsing and converting the target market information file, generating intermediate data corresponding to the target market information file and storing the intermediate data in the market information intermediate table, and updating the current market information collection status, specifically including: Parsing the target market file according to the collection and processing state of the target market file to generate target market file data; Convert the target market data into intermediate data, and store the intermediate data in the market intermediate table; Generate a collection result according to the intermediate data, and update the market collection state of the target market file according to the collection result.

3. A device for importing market information, characterized in that: Applied to a trading system, the device comprises: An establishment module is used to establish a database, wherein the database includes a market configuration table, a market intermediate table, a market business table and a market processing table, and the market processing table includes the market collection status, market transcoding status and market distribution status corresponding to the market file; An acquisition module is used to acquire a market configuration table, determine the path of a target market file according to the configuration information of the market configuration table, and collect the target market file according to the path; parse and convert the target market file, generate intermediate data corresponding to the target market file and store it in the market intermediate table, and update the current market collection status; A processing module, used to determine label information according to the market configuration table, add the label information to the intermediate data, and add the intermediate data to a to-be-processed queue of the market intermediate table according to the label information; The processing module is further used to transcode the intermediate data to generate business data and store it in the market business table according to the various states of the target market file in the market processing table, and update the current market transcoding state; The processing module is further used to distribute the business data to corresponding components of the trading system according to various states, and update the current market distribution state so that relevant components can operate according to the business data; The establishment module is specifically used to generate a name directory according to each market file; and establish a mapping relationship between each name in the name directory and the path of the corresponding market file, and also establish a mapping relationship between each name in the name directory and the collection number threshold of the corresponding market file; Generate multiple MD5 codes according to the various market information files, establish a mapping relationship between each name in the name directory and the MD5 code of the corresponding market information file, and generate a market information configuration table according to the mapping relationship; Generate a market intermediate table and a market business table according to the name directory, and update the market intermediate table and the market business table according to the market configuration table; Generate a market processing table according to the market configuration table, the market intermediate table and the market service table; wherein the market collection status in the market processing table includes the collection initial state, the collection processing state and the collection completion state, the market transcoding status includes the transcoding initial state, the transcoding processing state and the transcoding completion state, and the market distribution status includes the distribution initial state, the distribution processing state and the distribution completion state; The acquisition module is specifically used to acquire a market configuration table, determine a target market file according to configuration information of the market configuration table, determine whether the real-time collection times exceed a collection times threshold according to the configuration information of the target market file, and determine the path of the target market file when the real-time collection times threshold is not exceeded; Determine the MD5 code corresponding to the last acquisition of the target market file according to the market configuration table and determine the current MD5 code of the target market file according to the target market file; Verify the current MD5 code of the target market file according to the MD5 code generated last time by the target market file, generate a verification result, determine the market collection status according to the verification result, and collect the target market file according to the path and the market collection status; The processing module is further used to determine label information according to the market configuration table, and add the label information to the intermediate data according to the label information, wherein the label information includes an enabled label and a disabled label; Deleting the intermediate data according to the disabled tag; Adding the intermediate data to a to-be-processed queue of the market intermediate table according to the enabling tag; Based on the activation tag of the intermediate data, the intermediate data is transcoded to generate business data according to each state of the target market file in the market processing table and stored in the market business table, specifically including: Determine the market transcoding state corresponding to the target market file according to the market processing table, transcode the intermediate data corresponding to the target market file according to the market transcoding state, and generate the business data corresponding to the target market file; Correspondingly, it also includes: When it is determined that the market transcoding state is a transcoding completion state, updating the market transcoding state in the market processing table to a transcoding processing state according to the transcoding completion state; and transcoding the intermediate data corresponding to the target market information file to generate business data; Generate a transcoding result according to the business data, update the market transcoding status in the market processing table to a transcoding completion state according to the result of the successful transcoding; and update the market transcoding status in the market processing table to a transcoding initial state according to the result of the failed transcoding; The processing module is also used Determine the market distribution status corresponding to the target market file according to the market processing table, and distribute the business data corresponding to the target market file to the corresponding components of the trading system according to the market distribution status; Correspondingly, it also includes: When it is determined according to the market processing table that the market distribution state corresponding to the business data is the distribution initial state, the market distribution state in the market processing table is updated to the distribution processing state according to the transcoding completion state of the market transcoding state; and distributing the business data corresponding to the target market data file to the corresponding components respectively, and generating a distribution result; The market distribution status in the market processing table is updated to a distribution completion state according to the result of successful distribution; and the market distribution status in the market processing table is updated to a distribution initial state according to the result of failed distribution.

4. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 2.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 2 when executed by a processor.

Citation Information

Patent Citations

  • Auction transaction engine capable of realizing high-concurrency transaction information processing

    CN111324473A

  • Snapshot market distribution method and device, equipment and storage medium

    CN112965860A