CN-122023017-A - Quotation source automatic switching method, device, equipment and storage medium
Abstract
The application provides a quotation source automatic switching method, a device, equipment and a storage medium, wherein the quotation source automatic switching method respectively acquires quotation data of a default quotation source and quotation data of a plurality of standby quotation sources, performs data quality detection on the quotation data of the default quotation source, determines a quality detection result, automatically detects the quality and triggers quotation source switching operation based on the quality detection result, and the method comprises the steps of respectively carrying out data availability detection on the market data of the standby market, determining an availability detection result, providing the standby market except for the default market, automatically carrying out availability detection when the market needs to be switched, determining a target standby market based on the availability detection result and carrying out switching, ensuring timeliness of switching the market and data validity, and being beneficial to maintaining normal transaction.
Inventors
- HE QINGGUI
- Ge Enli
Assignees
- 广州金十信息科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260130
Claims (10)
- 1. A method for automatically switching quotation sources, comprising: respectively acquiring quotation data of a default quotation source and quotation data of a plurality of standby quotation sources; carrying out data quality detection on the market data of the default market source, and determining a quality detection result; triggering a market source switching operation according to the quality detection result, respectively detecting the data availability of market data of the standby market source, and determining an availability detection result; and determining a target standby quotation source according to the availability detection result and switching.
- 2. The automatic quotation source switching method according to claim 1, wherein the step of detecting the data quality of the quotation data of the default quotation source, and the step of determining the quality detection result comprises the steps of: Carrying out integrity detection on the quotation data of the default quotation source, and determining whether the data is complete or not to obtain an integrity detection result; Updating timeliness detection is carried out on the market data of the default market source, whether the time difference between the updating time and the current time is larger than a time threshold value is determined, and a timeliness detection result is obtained; carrying out rule check on the quotation data of the default quotation source, and determining whether the data meets the data rule limit or not to obtain a rule check result; the quality detection result comprises the integrity detection result, the timeliness detection result and the rule verification result.
- 3. The method for automatically switching a market place source according to claim 2, wherein the step of triggering a market place source switching operation according to the quality detection result comprises the steps of: when the integrity detection result is that the data is incomplete or the timeliness detection result is that the time difference is larger than a time threshold, triggering a quotation source switching operation; And when the integrity detection result is complete, and the timeliness detection result is that the time difference is smaller than or equal to a time threshold, if the rule checking result is that the data does not meet the data rule limit, an alarm is sent to prompt a user to trigger the quotation source switching operation.
- 4. The method for automatically switching between market information sources according to any one of claims 1 to 3, wherein the detecting the availability of the data of the market information of the backup market information source respectively comprises: the integrity detection is carried out on the market data of the standby market place sources respectively, whether the market data of each standby market place source is complete or not is determined, and an integrity detection result corresponding to the market data of each standby market place source is obtained; updating timeliness detection is carried out on the market data of the standby market place sources respectively, whether the time difference between the updating time and the current time of the market place data of each standby market place source is larger than a time threshold value or not is determined, and timeliness detection results corresponding to the market place data of each standby market place source are obtained; respectively determining the similarity of the market data of each standby market source and the market data of a default market source; the availability detection results comprise an integrity detection result corresponding to the market data of each standby market, an timeliness detection result corresponding to the market data of each standby market and similarity of the market data of each standby market and the market data of a default market.
- 5. The method for automatically switching between market data according to claim 4, wherein said determining the similarity between the market data of each of said backup market and the market data of the default market comprises: According to a preset trading index rule, respectively extracting first index data corresponding to a plurality of designated trading indexes from the market data of each standby market source and extracting second index data corresponding to a plurality of designated trading indexes from the market data of the default market source; determining candidate market sources from the standby market sources, and respectively determining data deviation values corresponding to the specified transaction indexes according to the first index data and the second index data corresponding to the specified transaction indexes of the candidate market sources; Respectively normalizing the data deviation values corresponding to the specified transaction indexes, calculating an average deviation value according to the normalized data deviation values corresponding to all the specified transaction indexes, and returning to the step of determining candidate market sources from the standby market sources until the average deviation value of each standby market source is determined; and taking the average deviation value of each standby quotation source as the similarity of quotation data of the default quotation source.
- 6. The method for automatically switching a market place source according to claim 4, wherein determining a target standby market place source and switching the market place source according to the availability detection result comprises: Determining that the integrity detection result of the market data is the integrity of the market data in all the standby market sources, and the timeliness detection result is the available market source that the time difference between the update time of the market data and the current time is smaller than or equal to a time threshold value; when the number of the available quotation sources is one, determining the available quotation sources as target standby quotation sources and switching; When the number of the available quotation sources is multiple, determining the available quotation source with the minimum similarity as a target standby quotation source and switching; and when the number of the available quotation sources is zero, determining the standby quotation source with the minimum similarity as a target standby quotation source and switching, or sending out an alarm to prompt a user to select the target standby quotation source and switching.
- 7. The automatic market switching method according to claim 6, wherein the method further comprises: updating the market source configuration of a default market source according to the target standby market source under the condition that the switching of the target standby market source is completed; and sending out the quotation source switching notification information, and clearing the alarm count, wherein the alarm count is the recorded number of times of sending out the alarm.
- 8. An automatic quotation switching device, comprising: The acquisition module is used for respectively acquiring the quotation data of the default quotation source and the quotation data of a plurality of standby quotation sources; the first detection module is used for detecting the data quality of the quotation data of the default quotation source and determining a quality detection result; The second detection module is used for triggering the market place source switching operation according to the quality detection result, respectively carrying out data availability detection on the market place data of the standby market place source and determining an availability detection result; And the switching module is used for determining a target standby quotation source according to the availability detection result and switching.
- 9. An electronic device comprising a processor and a memory, the memory storing instructions that are loaded and executed by the processor to implement the method of any of claims 1-7.
- 10. A computer readable storage medium having stored therein a computer program which when executed implements the method of any of claims 1-7.
Description
Quotation source automatic switching method, device, equipment and storage medium Technical Field The application relates to the technical field of financial data processing, in particular to a method, a device, equipment and a storage medium for automatically switching quotation sources. Background In the field of financial transactions, accuracy, real-time and continuity of market data are critical to transaction decisions. At present, the market data of software merchants mainly depend on single market sources, on one hand, the market data is easily interrupted by faults to influence the normal operation of transactions, and on the other hand, the abnormal conditions are required to be found and processed by manual intervention, and an abnormal detection and processing mechanism which is effective in time is lacked. Disclosure of Invention The embodiment of the application provides a method, a device, equipment and a storage medium for automatically switching quotation sources, which are used for solving at least one problem existing in the related technology, and have the following technical scheme: In a first aspect, an embodiment of the present application provides a method for automatically switching a market place source, including: respectively acquiring quotation data of a default quotation source and quotation data of a plurality of standby quotation sources; carrying out data quality detection on the market data of the default market source, and determining a quality detection result; triggering a market source switching operation according to the quality detection result, respectively detecting the data availability of market data of the standby market source, and determining an availability detection result; and determining a target standby quotation source according to the availability detection result and switching. In one embodiment, the performing data quality detection on the market data of the default market source, and determining the quality detection result includes: Carrying out integrity detection on the quotation data of the default quotation source, and determining whether the data is complete or not to obtain an integrity detection result; Updating timeliness detection is carried out on the market data of the default market source, whether the time difference between the updating time and the current time is larger than a time threshold value is determined, and a timeliness detection result is obtained; carrying out rule check on the quotation data of the default quotation source, and determining whether the data meets the data rule limit or not to obtain a rule check result; the quality detection result comprises the integrity detection result, the timeliness detection result and the rule verification result. In one embodiment, the triggering the operation of switching the market place source according to the quality detection result includes: when the integrity detection result is that the data is incomplete or the timeliness detection result is that the time difference is larger than a time threshold, triggering a quotation source switching operation; And when the integrity detection result is complete, and the timeliness detection result is that the time difference is smaller than or equal to a time threshold, if the rule checking result is that the data does not meet the data rule limit, an alarm is sent to prompt a user to trigger the quotation source switching operation. In one embodiment, the detecting the availability of data for the market data of the backup market source respectively, and determining the availability detection result includes: the integrity detection is carried out on the market data of the standby market place sources respectively, whether the market data of each standby market place source is complete or not is determined, and an integrity detection result corresponding to the market data of each standby market place source is obtained; updating timeliness detection is carried out on the market data of the standby market place sources respectively, whether the time difference between the updating time and the current time of the market place data of each standby market place source is larger than a time threshold value or not is determined, and timeliness detection results corresponding to the market place data of each standby market place source are obtained; respectively determining the similarity of the market data of each standby market source and the market data of a default market source; the availability detection results comprise an integrity detection result corresponding to the market data of each standby market, an timeliness detection result corresponding to the market data of each standby market and similarity of the market data of each standby market and the market data of a default market. In one embodiment, the determining the similarity between the market data of each standby market source and the market data of the default market so