A method and device for intelligent quotation of precious metals
Generating the optimal price of precious metals through intelligent calculation and risk management models has solved the problem of insufficient quotation accuracy and real-time in the existing technology, and realized efficient quotation processing and risk management to meet different market needs.
Patent Information
- Application Number
- CN202111338549.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2041-11-12
AI Technical Summary
The existing technology is difficult to achieve the accuracy and real-time quotation of precious metals, and cannot meet the high requirements of market participants for quotation.
By obtaining the quotation conditions of the trading market platform, using intelligent computing and risk management models to perform optimal solution calculations, generating the best price, and publishing it on different trading market platforms.
It realizes the accuracy and real-time quotation of precious metals, meets the different needs of institutions' self-operation and agency, and improves the quotation efficiency and ability to capture market opportunities.
Smart Images

Figure CN114119220B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data processing, and particularly, to a method and device for intelligent quotation of precious metals. Background Art
[0002] With the continuous deepening of economic globalization, along with the reform of interest rates, exchange rates, currency marketization, and the progress of the internationalization of the RMB, various market participants in China have a higher and higher degree of market participation in precious metals and other businesses. As the scale of capital transactions in each business is getting larger and larger, the requirements for the accuracy and real-time of quotations are getting higher and higher. Therefore, there is an urgent need for an intelligent quotation engine platform for precious metals to provide more powerful business services to support the rapid development of its business. Summary of the Invention
[0003] In view of the problems in the above content, this application provides a method and device for intelligent quotation of precious metals to achieve the accuracy and real-time of precious metal quotations.
[0004] To achieve the above purpose, this application provides the following technical solutions:
[0005] A method for intelligent quotation of precious metals, including:
[0006] Obtain the precious metal quotation market conditions sent by the trading market platform, where the precious metal quotation market conditions include the quotation requirements corresponding to the trading market platform;
[0007] Obtain the current precious metal quotations from multiple trading market platforms;
[0008] Taking the quotation requirements as the goal, perform an optimal solution calculation on the current precious metal quotations through an intelligent calculation and risk management model to determine the optimal price of precious metals;
[0009] Publish the optimal price of precious metals on the corresponding trading market platform according to the corresponding quotation requirements.
[0010] Further, the obtaining of the precious metal quotation market conditions sent by the trading market platform includes:
[0011] Receive the login request and broadcast request messages in the form of IMIX sent in real time;
[0012] Push the IMIX market condition messages according to the broadcast request messages, where the IMIX market condition messages are for peak shaving of data queued and asynchronous threads to retrieve the IMIX market condition messages from the message queue;
[0013] Parse the IMIX market condition messages according to the IMIX message parsing rules to obtain the corresponding precious metal quotation market conditions, and transmit them to the trading market platform through RabbitMQ;
[0014] The trading market platform sends the precious metal quotation market conditions to the quotation engine.
[0015] Further, aiming at the quotation requirement, the optimal solution of the current precious metal quotation is calculated through intelligent calculation and risk management model to determine the optimal price of precious metal, including:
[0016] Taking the current precious metal quotation as the comparison benchmark for the optimal bid price and the optimal ask price of the previous market condition, determining the minimum spread interval range according to the set minimum spread, and comparing the current precious metal quotations of all trading market platforms;
[0017] If the new market condition falls within the minimum spread interval range, the corresponding precious metal quotation is retained;
[0018] If the new market condition falls outside the minimum spread interval range, the corresponding precious metal quotation is filtered.
[0019] Further, aiming at the quotation requirement, the optimal solution of the current precious metal quotation is calculated through intelligent calculation and risk management model to determine the optimal price of precious metal, and further includes:
[0020] Obtain the http request sent by the trading market platform, determine the current precious metal quotation according to the http request, and store it in Redis and the database;
[0021] Through the query and cleaning logic, obtain the current precious metal quotation from Redis and the database in turn, and feedback the current precious metal quotation as the optimal price of precious metal to the trading market platform.
[0022] Further, aiming at the quotation requirement, the optimal solution of the current precious metal quotation is calculated through intelligent calculation and risk management model to determine the optimal price of precious metal, and further includes:
[0023] The trading market platform sends query requests to Redis and the database according to a preset polling cycle;
[0024] Compare the latest optimal price time with the current time. If the latest optimal price time is the same as the current time, determine the latest optimal price as the optimal price of precious metal.
[0025] A precious metal intelligent quotation device includes:
[0026] A first processing unit, configured to obtain the precious metal quotation market conditions sent by the trading market platform, where the precious metal quotation market conditions include the quotation requirements corresponding to the trading market platform;
[0027] A second processing unit for obtaining the current precious metal quotes from multiple trading market platforms;
[0028] A third processing unit for calculating the optimal solution of the current precious metal quotes through intelligent calculation and risk management models with the quote demand as the target, and determining the optimal price of precious metals;
[0029] A fourth processing unit for publishing the optimal price of precious metals on the corresponding trading market platform according to the corresponding quote demand.
[0030] Further, the first processing unit is specifically used for:
[0031] Receiving login requests and broadcast request messages in the form of IMIX sent regularly;
[0032] Pushing IMIX market messages according to the broadcast request message, where the IMIX market message is for peak shaving of enqueued data and an asynchronous thread retrieves the IMIX market message from the message queue;
[0033] Parsing the IMIX market message according to the IMIX message parsing rule to obtain the corresponding precious metal quote market, and transmitting it to the trading market platform via RabbitMQ;
[0034] The trading market platform sends the precious metal quote request to the quote engine.
[0035] Further, the third processing unit is specifically used for:
[0036] Taking the current precious metal quotes as the comparison benchmarks for the previous market's best bid price and best ask price, determining the minimum spread range according to the set minimum spread, and comparing the current precious metal quotes of all trading market platforms;
[0037] If the new market falls within the minimum spread range, retain the corresponding precious metal quotes;
[0038] If the new market falls outside the minimum spread range, filter the corresponding precious metal quotes.
[0039] A storage medium, the storage medium includes a stored program, wherein when the program runs, it controls the device where the storage medium is located to execute the precious metal intelligent quoting method as described above.
[0040] An electronic device, the electronic device includes at least one processor, at least one memory connected to the processor, and a bus; wherein, the processor and the memory complete communication with each other through the bus; the processor is used to call the program instructions in the memory to execute the precious metal intelligent quoting method as described above.
[0041] The precious metal intelligent quotation method and device described in this application first obtain the precious metal quotation market sent by the trading market platform, and the precious metal quotation market includes the quotation requirements corresponding to the trading market platform; then obtain the current precious metal quotations from multiple trading market platforms; then, with the quotation requirements as the target, perform optimal solution calculation on the current precious metal quotations through an intelligent calculation and risk management model to determine the optimal precious metal price; finally, publish the optimal precious metal price on the corresponding trading market platform according to the corresponding quotation requirements. This application automatically generates the optimal precious metal price through an intelligent calculation and risk management model, and publishes it according to different requirements for different trading market platforms, ensuring the accuracy and real-time nature of precious metal quotations and meeting the different needs of institutional self-operation and agency.
[0042] In addition, this application supports flexible spread management through a cleaning and filtering mechanism and a powerful quotation strategy, provides a graphical interface for users, manages quotations more conveniently and quickly, improves quotation efficiency, and helps users seize market opportunities and obtain bilateral trading spread benefits. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0044] Figure 1 Schematic diagram of the system architecture of the intelligent quotation engine disclosed in the embodiments of this application;
[0045] Figure 2 Schematic diagram of the technical architecture of the intelligent quotation engine system disclosed in the embodiments of this application;
[0046] Figure 3 Schematic diagram of the deployment architecture of the intelligent quotation engine system disclosed in the embodiments of this application;
[0047] Figure 4 Schematic diagram of the process of a precious metal intelligent quotation method disclosed in the embodiments of this application;
[0048] Figure 5 Schematic diagram of the timing of the front-end machine module design of the CFETS foreign exchange trading center disclosed in the embodiments of this application;
[0049] Figure 6 Schematic diagram of the timing of the cleaning setting - minimum spread interval design disclosed in the embodiments of this application;
[0050] Figure 7 Timing diagram of the cleaning setting - unilateral hanging check module disclosed in the embodiment of the present application;
[0051] Figure 8 Timing diagram of the basic quotation setting - non - updated price duration module disclosed in the embodiment of the present application;
[0052] Figure 9 Structural schematic diagram of a precious metal intelligent quotation device disclosed in the embodiment of the present application;
[0053] Figure 10 Structural schematic diagram of an electronic device disclosed in the embodiment of the present application. Detailed implementation manners
[0054] The present application provides a precious metal intelligent quotation method and device, which are applied to Figure 1 the intelligent quotation engine system shown in the figure, can access multiple price sources, including precious metal quotations from multiple markets such as the China Foreign Exchange Trade System, the Shanghai Gold Exchange, and SPDB, etc. Through intelligent calculation and risk management, the optimal price is automatically generated and published to different channels at different frequencies to meet the different needs of institutional proprietary trading and agency trading. In addition, the present application can also provide continuous quotation and price receiving processing as well as a perfect price cleaning and filtering mechanism, support strategic quotation and dynamically adjust the spread according to market conditions in intraday quotations, simplify manual operations and improve quotation efficiency through graphical operations, and the perfect pre - and in - process risk control can assist in reducing trading risks, while realizing systematic discovery of market arbitrage opportunities to enhance profitability. The present application can be based on institutional market - making as the business foundation and support business scopes including inter - bank, over - the - counter, and exchange.
[0055] The precious metal intelligent quotation engine system provided by the present application has a perfect cleaning and filtering mechanism and powerful quotation strategies built - in, supports flexible spread management, provides a graphical interface for users, manages quotations more conveniently and quickly, improves quotation efficiency, and helps users seize market opportunities and obtain bilateral trading spread benefits. In addition, the full - process quotation risk monitoring can reduce users' trading risks.
[0056] The system technical architecture diagram of the precious metal intelligent quotation engine system provided by the present application is as Figure 2 shown, designed based on the microservice architecture, composed of a batch of independent microservices, with a perfect microservice governance platform. Each microservice can work independently and cooperate with each other; at the same time, it supports elastic expansion and has great advantages in high reliability and high security. In addition, the coupling between modules is low, which is easy to split and integrate. The safety factor is high and it can be dynamically expanded according to the level of concurrent requests.
[0057] The system deployment architecture diagram of the intelligent quotation engine system provided by the present application is as Figure 3As shown in the figure, it adopts a multi-machine deployment method and is interconnected through an IP network, with strong scalability and high security.
[0058] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present application.
[0059] Please refer to the attached Figure 4 , which is a schematic flowchart of a method for intelligent quotation of precious metals provided by an embodiment of the present application. As Figure 4 shown, an embodiment of the present application provides a method for intelligent quotation of precious metals, and the method includes the following steps:
[0060] S401: Obtain the precious metal quotation market sent by the trading market platform, and the precious metal quotation market includes the quotation requirements corresponding to the trading market platform.
[0061] In the embodiment of the present application, multiple price sources can be automatically accessed, mainly including precious metal quotations from multiple markets such as the China Foreign Exchange Trade System, the Shanghai Gold Exchange, and Shanghai Pufa Bank.
[0062] In this step, the above-mentioned obtaining the precious metal quotation market sent by the trading market platform includes:
[0063] Receive the login request and broadcast request message in the form of IMIX sent regularly;
[0064] Push the IMIX market message according to the broadcast request message, and the IMIX market message is for peak shaving of data entering the queue and an asynchronous thread to take out the IMIX market message in the message queue;
[0065] Parse the IMIX market message according to the IMIX message parsing rule to obtain the corresponding precious metal quotation market, and transmit it to the trading market platform through RabbitMQ;
[0066] The trading market platform sends the precious metal quotation request to the quotation engine.
[0067] Specifically, as Figure 5 shown, it is the timing diagram design of the front-end machine module of the CFETS Foreign Exchange Trading Center:
[0068] 1) The front-end machine of the foreign exchange CMDS (CFETS Market Data Service) combines the login and broadcast request messages in a timed task every morning to the foreign exchange trading center.
[0069] 2) The login broadcast request message is sent to the front-end machine in the form of IMIX.
[0070] 3) After receiving the message, the Foreign Exchange Trading Center pushes the data to the front-end machine in the form of an IMIX message.
[0071] 4) Determine whether it is the required market data. The front-end machine first queues the data to smooth the peak. An asynchronous thread fetches the IMIX message from the message queue. The purpose of smoothing the peak is to prevent a large amount of data from suddenly surging in a certain period of time and impacting the system.
[0072] 5) The IMIX message is parsed into corresponding entity forms according to the IMIX message parsing rules and sent to the quote engine via RabbitMQ.
[0073] 6) The quote engine makes corresponding price processing.
[0074] It should be noted that this module needs to maintain the order of instructions and the concurrency of the market. It makes extensive use of the first-in, first-out feature of the blocking queue to ensure that the order of instructions will not be disrupted due to instruction processing.
[0075] S402: Obtain the current precious metal quotes from multiple trading market platforms.
[0076] S403: Taking the said quote requirement as the goal, perform an optimal solution calculation on the current precious metal quotes through an intelligent calculation and risk management model to determine the optimal price of the precious metal.
[0077] In the embodiment of the present application, the above-mentioned taking the said quote requirement as the goal, performing an optimal solution calculation on the current precious metal quotes through an intelligent calculation and risk management model to determine the optimal price of the precious metal includes:
[0078] Taking the current precious metal quotes as the comparison benchmarks for the previous market optimal buy price and the market optimal sell price, determining the minimum spread interval range according to the set minimum spread, and comparing the current precious metal quotes of all trading market platforms;
[0079] If the new market condition falls within the minimum spread interval range, retain the corresponding precious metal quote;
[0080] If the new market condition falls outside the minimum spread interval range, filter the corresponding precious metal quote.
[0081] Specifically, as Figure 6As shown in the figure, it is the timing diagram of the cleaning setting - minimum spread interval design: Minimum spread interval logic: Taking the previous market best bid price and best ask price of the price source variety as the comparison benchmark, forming upper and lower comparison intervals according to the set minimum spread, and applying it to all currency pairs of the price source. If the new market price falls within the minimum spread interval (including exactly on the interval), the corresponding precious metal quote is retained; if the new market price falls outside the minimum spread interval, the corresponding precious metal quote is filtered, and the spread value needs to be multiplied by the minimum change unit of the currency pair exchange rate.
[0082] It should be noted that this module is to prevent abnormal market conditions from affecting the system quotes, effectively preventing large deviations in the system quotes caused by the emergence of abnormal market conditions, and is an essential part of pre - event risk control.
[0083] Furthermore, aiming at the above - mentioned quotation requirements, through intelligent calculation and risk management models to calculate the optimal solution of the current precious metal quotes to determine the optimal precious metal price, it also includes:
[0084] Obtain the http request sent by the trading market platform, determine the current precious metal quotes according to the http request, and store them in Redis and the database;
[0085] Through query and cleaning logic, sequentially obtain the current precious metal quotes from Redis and the database, and feedback the current precious metal quotes as the optimal precious metal price to the trading market platform.
[0086] Specifically, as Figure 7 shown, it is the timing diagram of the cleaning setting - unilateral inversion check module design: When the front - end clicks the checkbox, an http request is sent to the background, and Redis and the database are synchronized for update operations.
[0087] The front - end query and cleaning logic query first queries from redis. If it exists in redis, it directly returns. If it does not exist in redis, it queries the database, stores the query result in redis, and then returns to the front - end.
[0088] It should be noted that this module effectively eliminates invalid quotes, and the elimination rules can be changed according to user operations, and it is also an essential part of pre - event risk control.
[0089] Even further, aiming at the above - mentioned quotation requirements, through intelligent calculation and risk management models to calculate the optimal solution of the current precious metal quotes to determine the optimal precious metal price, it also includes:
[0090] The trading market platform sends query requests to Redis and the database according to a preset polling cycle;
[0091] The latest best price time is compared with the current time. If the latest best price time is consistent with the current time, the latest best price is determined to be the best price of the precious metal.
[0092] Specifically, Figure 8 As shown, the timing diagram of the basic quotation setting-no update price duration module design is as follows:
[0093] After the first price warning occurs (in the form of a pop-up window), the price will be continuously monitored for updates. The warning reminder is in a cyclic mode with a cycle interval of 1 minute until a new price is reported (automatic quotation or manual quotation mode is acceptable). The warning is then lifted. The system sets the upper limit of pop-up reminders to 60 times. If the upper limit is exceeded, no pop-up reminder will be issued.
[0094] It should be noted that this module is triggered when there is no price in the system. This module ensures the security and reliability of the system. When there is no price update, it helps users check whether there is a price push or if the price push is abnormal, so that users can make corresponding manual quotation processing according to the abnormal situation and seize market opportunities.
[0095] S404: Publishing the best price of the precious metal on the corresponding trading market platform according to the corresponding quotation demand.
[0096] The embodiment of the present application provides a method for intelligent quotation of precious metals. First, the precious metal quotation sent by the trading market platform is obtained, and the precious metal quotation contains the quotation demand corresponding to the trading market platform; then the current precious metal quotation is obtained from multiple trading market platforms; then the current precious metal quotation is calculated with the quotation demand as the target through intelligent calculation and risk management model to determine the optimal price of precious metals; finally, the optimal price of precious metals is published on the corresponding trading market platform according to the corresponding quotation demand. The present application automatically generates the optimal price of precious metals through intelligent calculation and risk management model, and publishes it according to different requirements for different trading market platforms, so as to ensure the accuracy and real-time nature of precious metal quotations and meet the different needs of institutional self-operation and agency.
[0097] In addition, the embodiments of the present application support flexible spread management through a cleaning and filtering mechanism and a powerful quotation strategy, provide users with a graphical interface, manage quotations more conveniently and quickly, improve quotation efficiency, and help users seize market opportunities and obtain bilateral transaction spread profits.
[0098] See also Figure 9 Based on the above-mentioned embodiment disclosed a precious metal intelligent quotation method, this embodiment correspondingly discloses a precious metal intelligent quotation device, which includes:
[0099] The first processing unit 91 is configured to obtain the precious metal quotation market conditions sent by the trading market platform, and the precious metal quotation market conditions include the quotation requirements corresponding to the trading market platform;
[0100] The second processing unit 92 is configured to obtain the current precious metal quotations from multiple trading market platforms;
[0101] The third processing unit 93 is configured to take the quotation requirements as the target, calculate the optimal solution for the current precious metal quotations through intelligent calculation and risk management models, and determine the optimal precious metal price;
[0102] The fourth processing unit 94 is configured to publish the optimal precious metal price on the corresponding trading market platform according to the corresponding quotation requirements.
[0103] Further, the first processing unit 91 is specifically configured to:
[0104] Receive the login request and broadcast request messages in the form of IMIX sent regularly;
[0105] Push the IMIX market condition message according to the broadcast request message, and the IMIX market condition message is for peak shaving of the queued data and the asynchronous thread to retrieve the IMIX market condition message from the message queue;
[0106] Parse the IMIX market condition message according to the IMIX message parsing rule to obtain the corresponding precious metal quotation market conditions, and send them to the trading market platform through RabbitMQ;
[0107] The trading market platform sends the precious metal quotation request to the quotation engine.
[0108] Further, the third processing unit 93 is specifically configured to:
[0109] Take the current precious metal quotations as the comparison benchmarks for the previous market condition's best bid price and best ask price, determine the minimum spread interval range according to the set minimum spread, and compare the current precious metal quotations of all trading market platforms;
[0110] If the new market condition falls within the minimum spread interval range, retain the corresponding precious metal quotation;
[0111] If the new market condition falls outside the minimum spread interval range, filter the corresponding precious metal quotation.
[0112] The precious metal intelligent quotation device includes a processor and a memory. The above first processing unit, second processing unit, third processing unit, and fourth processing unit are all stored in the memory as program units, and the processor executes the above program units stored in the memory to implement the corresponding functions.
[0113] The processor contains cores, and the cores retrieve corresponding program units from the memory. One or more cores can be set, and by adjusting the core parameters, the accuracy and real-time performance of precious metal quotation can be achieved.
[0114] An embodiment of the present application provides a storage medium, on which a program is stored, and when the program is executed by a processor, the precious metal intelligent quotation method is implemented.
[0115] An embodiment of the present application provides a processor, which is used to run a program, and when the program runs, the precious metal intelligent quotation method is executed.
[0116] An embodiment of the present application provides an electronic device, as Figure 10 shown, the electronic device 100 includes at least one processor 1001, and at least one memory 1002 and a bus 1003 connected to the processor; wherein, the processor 1001 and the memory 1002 communicate with each other through the bus 1003; the processor 1001 is used to call program instructions in the memory 1002 to execute the above-mentioned precious metal intelligent quotation method.
[0117] The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0118] The present application also provides a computer program product, which is suitable for executing a program initialized with the following method steps when executed on a data processing device:
[0119] Obtain the precious metal quotation market conditions sent by the trading market platform, and the precious metal quotation market conditions include the quotation requirements corresponding to the trading market platform;
[0120] Obtain the current precious metal quotation from multiple trading market platforms;
[0121] Taking the quotation requirements as the target, perform optimal solution calculation on the current precious metal quotation through an intelligent calculation and risk management model to determine the optimal precious metal price;
[0122] Publish the optimal precious metal price on the corresponding trading market platform according to the corresponding quotation requirements.
[0123] Further, the obtaining of the precious metal quotation market conditions sent by the trading market platform includes:
[0124] Receive the login request and broadcast request messages in the form of IMIX sent regularly;
[0125] Push the IMIX market quotation message according to the broadcast request message, where the IMIX market quotation message is for peak shaving of queued data and asynchronous threads to retrieve the IMIX market quotation message from the message queue;
[0126] Parse the IMIX market quotation message according to the IMIX message parsing rule to obtain the corresponding precious metal quotation market, and send it to the trading market platform through RabbitMQ;
[0127] The trading market platform sends the precious metal quotation request to the quotation engine.
[0128] Further, aiming at the quotation demand, perform an optimal solution calculation on the current precious metal quotation through an intelligent calculation and risk management model to determine the optimal precious metal price, including:
[0129] Use the current precious metal quotation as a comparison benchmark for the previous market's best bid price and best ask price, determine the minimum spread interval range according to the set minimum spread, and compare the current precious metal quotations of all trading market platforms;
[0130] If the new market falls within the minimum spread interval range, retain the corresponding precious metal quotation;
[0131] If the new market falls outside the minimum spread interval range, filter the corresponding precious metal quotation.
[0132] Further, aiming at the quotation demand, perform an optimal solution calculation on the current precious metal quotation through an intelligent calculation and risk management model to determine the optimal precious metal price, and also include:
[0133] Obtain the http request sent by the trading market platform, determine the current precious metal quotation according to the http request, and store it in Redis and the database;
[0134] Through the query and cleaning logic, obtain the current precious metal quotation from Redis and the database in sequence, and feedback the current precious metal quotation as the optimal precious metal price to the trading market platform.
[0135] Further, aiming at the quotation demand, perform an optimal solution calculation on the current precious metal quotation through an intelligent calculation and risk management model to determine the optimal precious metal price, and also include:
[0136] The trading market platform sends query requests to Redis and the database according to a preset polling cycle;
[0137] Compare the latest best price time with the current time. If the latest best price time is the same as the current time, determine the latest best price as the precious metal best price.
[0138] This application is described with reference to the flowchart and / or block diagram of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and combinations of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general purpose computers, special purpose computers, embedded processors, or other programmable data processing devices to produce a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices produce means for implementing the functions specified in one Figure 1 one or more flows and / or blocks Figure 1 one or more blocks for implementing the functions specified in the blocks.
[0139] In a typical configuration, the device includes one or more processors (CPUs), a memory, and a bus. The device may also include an input / output interface, a network interface, etc.
[0140] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip. The memory is an example of computer-readable media.
[0141] Computer-readable media includes both permanent and non-permanent, removable and non-removable media and can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0142] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0143] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
Claims
1. A method for intelligent quotation of precious metals, characterized in that, Including: Obtain the precious metal quotation market conditions sent by the trading market platform, where the precious metal quotation market conditions include the quotation requirements corresponding to the trading market platform; Obtain the current precious metal quotations from multiple trading market platforms; Taking the quotation requirements as the target, perform optimal solution calculation on the current precious metal quotations through an intelligent calculation and risk management model to determine the optimal precious metal price; Publish the optimal precious metal price on the corresponding trading market platform according to the corresponding quotation requirements; The step of taking the quotation requirements as the target, performing optimal solution calculation on the current precious metal quotations through an intelligent calculation and risk management model to determine the optimal precious metal price includes: Taking the current precious metal quotations as the comparison benchmark for the previous market optimal bid price and the market optimal ask price, determining the minimum spread interval range according to the set minimum spread, and comparing the current precious metal quotations of all trading market platforms; If the new market conditions fall within the minimum spread interval range, retain the corresponding precious metal quotations; If the new market conditions fall outside the minimum spread interval range, filter the corresponding precious metal quotations; The step of taking the quotation requirements as the target, performing optimal solution calculation on the current precious metal quotations through an intelligent calculation and risk management model to determine the optimal precious metal price further includes: Obtain the http request sent by the trading market platform, determine the current precious metal quotations according to the http request, and store them in Redis and the database; Through the query and cleaning logic, obtain the current precious metal quotations from Redis and the database in sequence, and feedback the current precious metal quotations as the optimal precious metal price to the trading market platform; The trading market platform sends query requests to Redis and the database according to a preset polling cycle; Compare the latest optimal price time with the current time. If the latest optimal price time is the same as the current time, determine the latest optimal price as the optimal precious metal price.
2. The method according to claim 1, characterized in that, The step of obtaining the precious metal quotation market conditions sent by the trading market platform includes: Receive the login request and broadcast request message in the form of IMIX sent in real time; Push the IMIX market condition message according to the broadcast request message. The IMIX market condition message is for peak shaving of the data entering the queue and an asynchronous thread to take out the IMIX market condition message from the message queue; Parse the IMIX market condition message according to the IMIX message parsing rule to obtain the corresponding precious metal quotation market conditions, and transmit them to the trading market platform through RabbitMQ; The trading market platform sends the precious metal quotation market conditions to the quotation engine.
3. A precious metal intelligent quotation device, characterized in that, Including: The first processing unit is used to obtain the precious metal quotation market conditions sent by the trading market platform, where the precious metal quotation market conditions include the quotation requirements corresponding to the trading market platform; The second processing unit is used to obtain the current precious metal quotations from multiple trading market platforms; The third processing unit is used to take the quotation requirements as the target, perform optimal solution calculation on the current precious metal quotations through an intelligent calculation and risk management model to determine the optimal precious metal price; A fourth processing unit for publishing the optimal price of the precious metal on the corresponding trading market platform according to the corresponding quotation requirement; The third processing unit is specifically configured to: Take the current precious metal quotation as a comparison benchmark for the previous market best bid price and the market best ask price, determine the minimum spread range according to the set minimum spread, and compare the current precious metal quotations of all trading market platforms; If the new market price falls within the minimum spread range, retain the corresponding precious metal quotation; If the new market price falls outside the minimum spread range, filter the corresponding precious metal quotation; The third processing unit is further configured to: Obtain the http request sent by the trading market platform, determine the current precious metal quotation according to the http request, and store it in Redis and the database; Through query and cleaning logic, obtain the current precious metal quotation from Redis and the database in sequence, and feedback the current precious metal quotation as the optimal price of the precious metal to the trading market platform; The trading market platform sends a query request to Redis and the database according to a preset polling cycle; Compare the latest best price time with the current time. If the latest best price time is the same as the current time, determine the latest best price as the optimal price of the precious metal.
4. The device according to claim 3, wherein, The first processing unit is specifically configured to: Receive the login request and broadcast request message in the form of IMIX sent regularly; Push the IMIX market message according to the broadcast request message. The IMIX market message is for peak shaving of in-queue data and an asynchronous thread to retrieve the IMIX market message from the message queue; Parse the IMIX market message according to the IMIX message parsing rule to obtain the corresponding precious metal quotation market, and transmit it to the trading market platform through RabbitMQ; The trading market platform sends the precious metal quotation request to the quotation engine.
5. A storage medium, characterized in that, The storage medium includes a stored program, wherein when the program runs, it controls the device where the storage medium is located to execute the precious metal intelligent quotation method according to any one of claims 1 to 2.
6. An electronic device, characterized in that, The electronic device includes at least one processor, at least one memory connected to the processor, and a bus; wherein, the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the precious metal intelligent quotation method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Commodity price data prediction method and device based on multi-model fusion, and medium
CN115730980A
Transaction price returning method and device based on point difference
CN117436925A