Market simulation method, device and equipment and storage medium
By determining the market to be simulated based on the selected elements and simulation based on the simulation rules and history or manual simulation, the unstable test environment caused by different data sources of different market providers is solved, and a unified simulation and stable test environment of market data is achieved.
Patent Information
- Application Number
- CN202510311141.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2025-05-02
AI Technical Summary
In the existing technology, the market data provided by different market providers have different sources, which leads to unstable testing of the test environment and is difficult to conduct market testing.
Provide a market simulation method, which obtains the corresponding simulated market by determining the market to be simulated based on the currently selected elements, and simulates the simulated market based on the simulation rules and historical markets or manual simulated markets to obtain the corresponding simulated market.
It realizes a unified simulation of the corresponding market data of each market provider, stabilizes the testing environment, and simplifies the market testing process.
Smart Images

Figure CN119919235A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of artificial intelligence technology, and in particular to a market simulation method, device, equipment and storage medium. Background Art
[0002] When conducting market testing, you need to access a test environment consisting of market information. Market information is generally provided in real time by market providers, such as Reuters, Deutsche Bank, UBS, and the Foreign Exchange Trading Center.
[0003] In the prior art, the market data provided by different market providers come from different sources, for example, delayed data based on real market conditions, historical market data, and simulated market data.
[0004] However, the market data from different sources differ greatly, which leads to an unstable testing environment and makes it difficult to conduct market testing. Summary of the invention
[0005] The present invention provides a market simulation method, device, equipment and storage medium to realize unified simulation of market data corresponding to each market provider.
[0006] In a first aspect, an embodiment of the present invention provides a market simulation method, comprising:
[0007] Determine the market conditions to be simulated based on the currently selected element;
[0008] After determining the historical market conditions or manually simulated market conditions corresponding to the market conditions to be simulated, the market conditions to be simulated are simulated based on simulation rules and the historical market conditions or the manually simulated market conditions to obtain corresponding simulated market conditions.
[0009] The technical solution of the embodiment of the present invention provides a market simulation method, including: determining the market to be simulated according to the currently selected element; after determining the historical market or manual simulation market corresponding to the market to be simulated, simulating the market to be simulated based on the simulation rules and the historical market or the manual simulation market to obtain the corresponding simulated market. In the above technical solution, after the user selects the element, the market to be simulated can be determined according to the element currently selected by the user, so as to realize the automatic determination of the required simulated market, and then the historical market or manual simulation market corresponding to the element can be determined, and the market to be simulated corresponding to the element can be simulated based on the historical market or manual simulation market corresponding to the element to obtain the simulated market corresponding to the element, so as to realize the simulation of the market corresponding to the currently selected element, and then realize the unified simulation of the market corresponding to each element.
[0010] Furthermore, the market conditions to be simulated are determined according to the currently selected element, including:
[0011] Determining element content according to the currently selected element, wherein the element content includes a quote type, and the quote type is spot, forward, commodity futures, or foreign exchange options;
[0012] The market conditions to be simulated are determined according to the element content.
[0013] Further, determining the market conditions to be simulated according to the element content includes:
[0014] When the quotation type in the element content is spot, the simulated market includes the buying price, the selling price and the market update time;
[0015] When the quotation type in the element content is forward, the simulated market conditions include the buying price, the selling price and the market update time;
[0016] When the quotation type in the element content is commodity futures, the simulated market conditions include the upper limit price, the lower limit price, the upper limit price update time, the historical closing price, the buying price, the selling price, the settlement price and the settlement price update time;
[0017] When the quotation type in the element content is foreign exchange option, the simulated market conditions include a call buy price, a call sell price, a put buy price, a put sell price, an exercise price and a market update time.
[0018] Furthermore, the element content also includes a data source. Accordingly, determining the historical market conditions corresponding to the market conditions to be simulated includes:
[0019] The historical market conditions corresponding to the market conditions to be simulated are determined according to the data source in the element content.
[0020] Further, determining the manual simulated market conditions corresponding to the market conditions to be simulated includes:
[0021] In response to the user triggering the manual simulation control in the preset interface, an input box for the market to be simulated is displayed based on the preset interface;
[0022] The information input by the user based on the input box is determined as the manual simulation market information.
[0023] Furthermore, the simulation rule includes a time interval. Accordingly, the market to be simulated is simulated based on the simulation rule and the historical market or the manual simulated market to obtain a corresponding simulated market, including:
[0024] In response to a user triggering an automatic simulation control in the preset interface, displaying a simulation rule determination page based on the preset interface;
[0025] The historical market conditions or the manually simulated market conditions are simulated based on the time interval determined by the user on the simulation rule determination page to obtain the simulated market conditions.
[0026] In a second aspect, an embodiment of the present invention further provides a market simulation device, comprising:
[0027] The determination module is used to determine the market conditions to be simulated based on the currently selected element;
[0028] A first display module, configured to display an input box of the to-be-simulated market conditions based on the preset interface in response to a user triggering a manual simulation control in the preset interface;
[0029] A second display module is used to display a simulation rule determination page based on the preset interface in response to a user triggering an automatic simulation control in the preset interface after determining that the input box receives manual simulation content;
[0030] The simulation module is used to simulate the market conditions to be simulated according to the simulation rules determined by the user on the simulation rule determination page and the manual simulation content to obtain corresponding simulated market conditions.
[0031] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0032] at least one processor; and a memory communicatively coupled to the at least one processor;
[0033] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the market simulation method as described in any one of the first aspects.
[0034] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute a market simulation method as described in any one of the first aspects.
[0035] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the market simulation method provided in the first aspect.
[0036] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the market simulation device, or may be packaged separately from the processor of the market simulation device, and this application does not limit this.
[0037] The description of the second, third, fourth and fifth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third, fourth and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0038] In this application, the name of the above market simulation device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.
[0039] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A flow chart of a market simulation method provided by an embodiment of the present invention;
[0042] Figure 2 A flowchart of another market simulation method provided by an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of a front-end page provided by an embodiment of the present invention;
[0044] Figure 4 Another schematic diagram of a front-end page provided by an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of a simulation rule determination page in a front-end page provided in an embodiment of the present invention;
[0046] Figure 6 A schematic diagram of the structure of a market simulation device provided by an embodiment of the present invention;
[0047] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0049] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0050] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0051] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0052] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.
[0053] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0054] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0055] Figure 1Flow chart of a market simulation method provided by an embodiment of the present invention. This embodiment is applicable to the situation where it is necessary to uniformly generate simulated market conditions corresponding to each market provider. The method can be executed by a market simulation device, such as Figure 1 As shown, the specific steps include:
[0056] Step 110: Determine the market conditions to be simulated according to the currently selected element.
[0057] The test environment required for market testing requires market data corresponding to different market providers. This solution can determine the market data corresponding to each market provider through simulated market conditions. Therefore, the market providers here include Reuters, Deutsche Bank, UBS, and the Foreign Exchange Trading Center. Elements correspond to market providers one by one, and the element content of an element can include a quote type, which can be spot, forward, commodity futures, or foreign exchange options.
[0058] The front-end page provided by this application includes an element display interface, which can display each element, and specifically can display the element content of each element.
[0059] Specifically, after the user clicks an element based on the element display interface, it can be determined that the element clicked by the user is the currently selected element. At this time, the element content of the element can be determined, that is, the quotation type of the element can be determined. Since different quotation types correspond to different market conditions, after determining the quotation type of the currently selected element, the market condition corresponding to the element can be determined according to the quotation type of the currently selected element, and then the market condition corresponding to the element can be determined as the market condition to be simulated.
[0060] In the embodiment of the present invention, after the user selects an element, the market conditions to be simulated are determined according to the currently selected element, thereby automatically determining the required simulated market conditions.
[0061] Step 120: After determining the historical market conditions or manually simulated market conditions corresponding to the market conditions to be simulated, simulate the market conditions to be simulated based on simulation rules and the historical market conditions or the manually simulated market conditions to obtain corresponding simulated market conditions.
[0062] The element content of the element also includes a data source, the historical market can be understood as the market data corresponding to the data source included in the element content, the manual simulation market can be understood as the market data composed of the data input by the user with reference to the element content, and the simulation rule can be understood as the change rule for the historical market or the manual simulation market, for example, the restriction on the fluctuation. Both the historical market and the manual simulation market include at least one item, so the simulation rule can include the restriction on the fluctuation of one item in each of the redundant historical market and the manual simulation market.
[0063] On the one hand, the historical market conditions of the market conditions to be simulated can be determined. Specifically, the data source in the element content of the currently selected element can be determined first, and then the market data corresponding to the data source can be determined as the historical market conditions.
[0064] On the other hand, the manual simulated market conditions to be simulated can be determined. Specifically, the information input by the user in the input box in the preset interface of the front-end page can be determined as the manual simulated market conditions.
[0065] Specifically, after determining the historical market conditions or manually simulated market conditions corresponding to the market conditions to be simulated, market data simulation can be performed based on simulation rules and historical market conditions, that is, the market conditions to be simulated can be simulated to obtain simulated market conditions corresponding to the market conditions to be simulated. Specifically, data simulation can be performed on each item in the historical market conditions, and it can be ensured that the simulated data obtained by the data simulation meets the restrictions on the fluctuations of the historical market conditions.
[0066] It is also possible to simulate market data based on simulation rules and manual simulation market conditions, that is, to simulate the market conditions to be simulated and obtain simulated market conditions corresponding to the market conditions to be simulated. Specifically, data simulation can be performed on each item in the manual simulation market conditions, and ensure that the simulated data obtained by the data simulation meets the restrictions on the fluctuation of the manual simulation market conditions.
[0067] In an embodiment of the present invention, the market conditions to be simulated corresponding to the element are simulated based on the historical market conditions or manually simulated market conditions corresponding to the element to obtain the simulated market conditions corresponding to the element, thereby realizing the simulation of the market conditions corresponding to the currently selected element, and further realizing the unified simulation of the market conditions corresponding to each element.
[0068] The market simulation method provided by the embodiment of the present invention includes: determining the market to be simulated according to the currently selected element; after determining the historical market or manual simulation market corresponding to the market to be simulated, simulating the market to be simulated based on the simulation rules and the historical market or the manual simulation market to obtain the corresponding simulated market. In the above technical scheme, after the user selects the element, the market to be simulated can be determined according to the element currently selected by the user, so as to realize the automatic determination of the required simulated market, and then the historical market or manual simulation market corresponding to the element can be determined, and the market to be simulated corresponding to the element can be simulated based on the historical market or manual simulation market corresponding to the element to obtain the simulated market corresponding to the element, so as to realize the simulation of the market corresponding to the currently selected element, and then realize the unified simulation of the market corresponding to each element.
[0069] Figure 2 This is a flow chart of another market simulation method provided by an embodiment of the present invention. This embodiment is specific based on the above embodiment. Figure 2 As shown, in this embodiment, the method may further include:
[0070] Step 210: Determine the element content according to the currently selected element.
[0071] The element content includes the quotation type, which is spot, forward, commodity futures or foreign exchange options.
[0072] Figure 3 A schematic diagram of a front-end page provided by an embodiment of the present invention, such as Figure 3 As shown in the figure, the right side box is the element display interface. Each line in the element display interface is an element. The user can select a line to determine the element. The element content of the element includes the element identifier ( Figure 3 ELEM-ID), element name ( Figure 3 ELEM-NAME), data source ( Figure 3 SRC-ID), Quote Type ( Figure 3 QTYPE-ID), currency pair ( Figure 3 CUR-VAL) and the Reuters Instrument Code (RIC) of the data source ( Figure 3 PARAM).
[0073] Specifically, after the user clicks a row of elements based on the element display interface, it can be determined that the row of elements clicked by the user is the currently selected element. At this time, the element content of the element can be determined, that is, the element identifier, element name, data source, quotation type, currency pair and RIC code of the element can be determined.
[0074] In the embodiment of the present invention, after determining the element currently selected by the user, determining the element content of the currently selected element is implemented.
[0075] Step 220: Determine the market conditions to be simulated according to the element content.
[0076] In one implementation, step 220 may specifically include:
[0077] When the quotation type in the element content is spot, the simulated market conditions include the buying price, the selling price and the market update time; when the quotation type in the element content is forward, the simulated market conditions include the buying price, the selling price and the market update time; when the quotation type in the element content is commodity futures, the simulated market conditions include the upper limit price, the lower limit price, the upper limit and lower limit market update time, the historical closing price, the buying price, the selling price, the settlement price and the settlement price update time; when the quotation type in the element content is foreign exchange option, the simulated market conditions include the call buying price, the call selling price, the put buying price, the put selling price, the exercise price and the market update time.
[0078] Among them, different quotation types correspond to different market conditions. When the quotation type is spot, the market conditions may include the buying price, selling price and market update time; when the quotation type is forward, the market conditions may include the buying price, selling price and market update time; when the quotation type is commodity futures, the market conditions may include the upper limit price, lower limit price, upper limit and lower limit market update time, historical closing price, buying price, selling price, settlement price and settlement price update time; when the quotation type is foreign exchange option, the market conditions may include call buy price, call sell price, put buy price, put sell price, exercise price and market update time.
[0079] Specifically, after determining the element content of the currently selected element, the market conditions corresponding to the element can be determined according to the quotation type in the element content. Specifically, when the quotation type in the element content is spot, it can be determined that the market conditions include the buying price, the selling price and the market update time; when the quotation type in the element content is forward, it can be determined that the market conditions include the buying price, the selling price and the market update time; when the quotation type in the element content is commodity futures, it can be determined that the market conditions include the upper limit price, the lower limit price, the upper limit and lower limit market update time, the historical closing price, the buying price, the selling price, the settlement price and the settlement price update time; when the quotation type in the element content is foreign exchange option, it can be determined that the market conditions include the call buying price, the call selling price, the put buying price, the put selling price, the exercise price and the market update time.
[0080] Furthermore, the market conditions corresponding to the element may be determined as the market conditions to be simulated.
[0081] In the embodiment of the present invention, the market conditions to be simulated are determined according to the quotation type in the element content of the currently selected element, thereby realizing automatic determination of the required simulated market conditions.
[0082] Step 230: Determine the historical market conditions or manually simulated market conditions corresponding to the market conditions to be simulated.
[0083] In one implementation, the element content also includes a data source. Accordingly, determining the historical market conditions corresponding to the market conditions to be simulated includes:
[0084] The historical market conditions corresponding to the market conditions to be simulated are determined according to the data source in the element content.
[0085] Specifically, firstly, the data source in the element content can be determined, then historical market data can be obtained based on the data source, and then the historical market data can be filtered based on time, and the elapsed market data within a preset period before the current moment can be determined as historical market data.
[0086] In one implementation, determining the manual simulated market conditions corresponding to the to-be-simulated market conditions includes:
[0087] In response to the user triggering the manual simulation control in the preset interface, an input box for the market conditions to be simulated is displayed based on the preset interface; and information input by the user based on the input box is determined as the manual simulation market conditions.
[0088] Figure 4 Another schematic diagram of a front-end page provided by an embodiment of the present invention, such as Figure 4 As shown, the left side is the preset interface, which includes manual simulation controls ( Figure 4 Manual quotation simulation in single data source) and automatic simulation control ( Figure 4 (simulate automatic quotes from the data source).
[0089] The preset interface also includes a quotation type selection control, a data source selection control, and an element selection control. The user can select the quotation type through the quotation type selection control, select the data source through the data source selection control, and select the control through the element selection control.
[0090] Specifically, after the user clicks the manual simulation control in the preset interface, in response to the user triggering the manual simulation control in the preset interface, the preset interface can display the quotation type selection control, the data source selection control and the element selection control and the input box of the market to be simulated. After the user selects the quotation type based on the quotation type selection control, selects the data source based on the data source selection control, selects the element based on the element selection control or selects the element by clicking the corresponding row element of the element display interface, the market to be simulated can be determined, and then the input cells included in the input box can be determined according to the simulation items included in the market to be simulated. For example, when the simulation items included in the market to be simulated are the buying price, the selling price, and the market update time, the input box includes the input cell corresponding to the buying price ( Figure 4 The input box corresponding to BID in the above example), the input box corresponding to the selling price ( Figure 4 The input box corresponding to ASK in the table) and the input box corresponding to the market update time ( Figure 4 The input cell corresponding to UpdateTime in .
[0091] Furthermore, the user can refer to the element content of the element and input information in each input box with the simulation item corresponding to each input box. Of course, after receiving the input information entered by the user into each input box, the information entered by the user based on each input box in the input box can be determined as a manual simulation market.
[0092] In the embodiment of the present invention, the historical market conditions corresponding to the market conditions to be simulated are determined according to the data source of the element, or the manual simulated market conditions corresponding to the market conditions to be simulated are determined according to the input information of the user.
[0093] Step 240: simulate the market conditions to be simulated based on the simulation rules and the historical market conditions or the manually simulated market conditions to obtain corresponding simulated market conditions.
[0094] In one implementation, the simulation rule includes a time interval. Accordingly, step 240 may specifically include:
[0095] In response to the user triggering the automatic simulation control in the preset interface, a simulation rule determination page is displayed based on the preset interface; data simulation is performed on the historical market conditions or the manual simulation market conditions based on the time interval determined by the user on the simulation rule determination page to obtain the simulated market conditions.
[0096] Specifically, after the user clicks on the automatic simulation control in the preset interface, in response to the user triggering the automatic simulation control in the preset interface, the preset interface can display the quotation type selection control, the data source selection control, the element selection control and the simulation rule determination page. The simulation rule determination page includes a sending interval input box, a whether to simulate price changes selection control, a start simulation control and a stop simulation control.
[0097] Figure 5 A schematic diagram of a simulation rule determination page in a front-end page provided in an embodiment of the present invention, such as Figure 5 As shown, after the user clicks the automatic simulation control in the preset interface, the page replacement can be determined based on the simulation rules. Figure 4 The input box for the market to be simulated.
[0098] Furthermore, after the user selects "yes" in the "whether to simulate price change" control and inputs a time interval based on the sending interval input box, data simulation is performed on the historical market or the manually simulated market based on the time interval to obtain a simulated market.
[0099] In actual applications, the simulation rule determination page also includes a change range input control. After the user enters the change range based on the change range input control, the simulation range of each simulation item in the historical market or manual simulation market can be determined according to the change range, and data simulation can be performed on each simulation item within the corresponding simulation range to obtain the simulation content corresponding to each simulation item, and then the simulation content corresponding to all simulation items can be determined as the simulated market.
[0100] The variation range may be a percentage value, for example, 10%. At this time, by randomly increasing or decreasing the value of each simulation item in the historical market or manual simulation market by 10%, the simulation content corresponding to each simulation item can be obtained.
[0101] In the embodiment of the present invention, historical market conditions or manually simulated market conditions are simulated based on simulation rules to obtain simulated market conditions of the currently selected element, thereby realizing simulation of market conditions corresponding to the currently selected element, and further realizing unified simulation of market conditions corresponding to each element.
[0102] The market simulation method provided by the embodiment of the present invention includes: determining the element content according to the currently selected element; determining the market to be simulated according to the element content; determining the historical market or manual simulation market corresponding to the market to be simulated; simulating the market to be simulated based on the simulation rules and the historical market or the manual simulation market to obtain the corresponding simulated market. In the above technical scheme, after the user selects the element, the element content of the element currently selected by the user can be determined, and the market to be simulated can be determined according to the quotation type in the element content, so as to realize the automatic determination of the required simulated market. Next, the historical market corresponding to the market to be simulated can be determined according to the data source in the element content, or the manual simulation market corresponding to the market to be simulated can be determined according to the user's input information, so as to realize the determination of the historical market or manual simulation market corresponding to the element, and then the historical market or manual simulation market corresponding to the element can be simulated based on the simulation rules to obtain the simulated market corresponding to the element, so as to realize the simulation of the market corresponding to the currently selected element, and then realize the unified simulation of the market corresponding to each element.
[0103] In addition, it supports market simulation based on manual simulation or historical market conditions, which can simulate various market conditions more accurately, conveniently and efficiently, and improve work efficiency.
[0104] Figure 6 This is a schematic diagram of the structure of a market simulation device provided by an embodiment of the present invention, which can be applied to situations where it is necessary to uniformly generate simulated market conditions corresponding to each market provider. The device can be implemented by software and / or hardware and is generally integrated in an electronic device, such as a computer device.
[0105] like Figure 6 As shown, the device comprises:
[0106] A determination module 610 is used to determine the market conditions to be simulated according to the currently selected element;
[0107] The simulation module 620 is used to determine the historical market conditions or manual simulated market conditions corresponding to the market conditions to be simulated, and then simulate the market conditions to be simulated based on simulation rules and the historical market conditions or the manual simulated market conditions to obtain the corresponding simulated market conditions.
[0108] The market simulation device provided in this embodiment determines the market to be simulated according to the currently selected element; after determining the historical market or manual simulation market corresponding to the market to be simulated, the market to be simulated is simulated based on the simulation rules and the historical market or manual simulation market to obtain the corresponding simulated market. In the above technical solution, after the user selects an element, the market to be simulated can be determined according to the element currently selected by the user, so as to realize the automatic determination of the required simulated market, and then the historical market or manual simulation market corresponding to the element can be determined, and the market to be simulated corresponding to the element can be simulated based on the historical market or manual simulation market corresponding to the element to obtain the simulated market corresponding to the element, so as to realize the simulation of the market corresponding to the currently selected element, and then realize the unified simulation of the market corresponding to each element.
[0109] Based on the above embodiment, the determination module 610 is specifically used for:
[0110] The element content is determined according to the currently selected element, wherein the element content includes a quotation type, and the quotation type is spot, forward, commodity futures or foreign exchange options; and the market conditions to be simulated are determined according to the element content.
[0111] In one implementation, determining the market conditions to be simulated according to the element content includes:
[0112] When the quotation type in the element content is spot, the simulated market conditions include the buying price, the selling price and the market update time; when the quotation type in the element content is forward, the simulated market conditions include the buying price, the selling price and the market update time; when the quotation type in the element content is commodity futures, the simulated market conditions include the upper limit price, the lower limit price, the upper limit and lower limit market update time, the historical closing price, the buying price, the selling price, the settlement price and the settlement price update time; when the quotation type in the element content is foreign exchange option, the simulated market conditions include the call buying price, the call selling price, the put buying price, the put selling price, the exercise price and the market update time.
[0113] Based on the above embodiment, the element content includes a data source, and the simulation rule includes a time interval. Accordingly, the simulation module 620 is specifically configured to:
[0114] Determine the historical market conditions corresponding to the market conditions to be simulated according to the data source in the element content; or, in response to the user triggering the manual simulation control in the preset interface, display an input box for the market conditions to be simulated based on the preset interface; determine the information input by the user based on the input box as the manual simulation market conditions;
[0115] In response to the user triggering the automatic simulation control in the preset interface, a simulation rule determination page is displayed based on the preset interface; data simulation is performed on the historical market conditions or the manual simulation market conditions based on the time interval determined by the user on the simulation rule determination page to obtain the simulated market conditions.
[0116] The market simulation device provided in the embodiment of the present invention can execute the market simulation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the market simulation method.
[0117] It is worth noting that in the embodiment of the above-mentioned market simulation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0118] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 7 A block diagram of an exemplary electronic device 7 suitable for use in implementing embodiments of the present invention is shown. Figure 7 The electronic device 7 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0119] like Figure 7 As shown, the electronic device 7 is in the form of a general-purpose computing electronic device. The components of the electronic device 7 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0120] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0121] The electronic device 7 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 7, including volatile and non-volatile media, removable and non-removable media.
[0122] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 7 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0123] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0124] The electronic device 7 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the electronic device 7, and / or any device that enables the electronic device 7 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 7 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. Figure 7 As shown, the network adapter 20 communicates with other modules of the electronic device 7 via the bus 18. It should be understood that although Figure 7 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 7, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0125] The processing unit 16 executes various functional applications and page displays by running the programs stored in the system memory 28, for example, implementing the market simulation method provided by the embodiment of the present invention, which includes:
[0126] Determine the market conditions to be simulated based on the currently selected element;
[0127] After determining the historical market conditions or manually simulated market conditions corresponding to the market conditions to be simulated, the market conditions to be simulated are simulated based on simulation rules and the historical market conditions or the manually simulated market conditions to obtain corresponding simulated market conditions.
[0128] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the market simulation method provided by any embodiment of the present invention.
[0129] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a market simulation method provided by an embodiment of the present invention is implemented, for example, and the method includes:
[0130] Determine the market conditions to be simulated based on the currently selected element;
[0131] After determining the historical market conditions or manually simulated market conditions corresponding to the market conditions to be simulated, the market conditions to be simulated are simulated based on simulation rules and the historical market conditions or the manually simulated market conditions to obtain corresponding simulated market conditions.
[0132] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0133] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0134] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0135] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0136] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0137] In addition, the acquisition, storage, use, and processing of data in the technical solution of the present invention are in compliance with the relevant provisions of national laws and regulations.
[0138] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A market simulation method, characterized in that: include: Determine the market conditions to be simulated based on the currently selected element; After determining the historical market conditions or manually simulated market conditions corresponding to the market conditions to be simulated, the market conditions to be simulated are simulated based on simulation rules and the historical market conditions or the manually simulated market conditions to obtain corresponding simulated market conditions.
2. The market simulation method according to claim 1, characterized in that: Determine the market conditions to be simulated based on the currently selected element, including: Determining element content according to the currently selected element, wherein the element content includes a quote type, and the quote type is spot, forward, commodity futures, or foreign exchange options; The market conditions to be simulated are determined according to the element content.
3. The market simulation method according to claim 2, characterized in that: Determining the market conditions to be simulated according to the element content includes: When the quotation type in the element content is spot, the simulated market includes the buying price, the selling price and the market update time; When the quotation type in the element content is forward, the simulated market conditions include the buying price, the selling price and the market update time; When the quotation type in the element content is commodity futures, the simulated market conditions include the upper limit price, the lower limit price, the upper limit price update time, the historical closing price, the buying price, the selling price, the settlement price and the settlement price update time; When the quotation type in the element content is foreign exchange option, the simulated market conditions include a call buy price, a call sell price, a put buy price, a put sell price, an exercise price and a market update time.
4. The market simulation method according to claim 2, characterized in that: The element content includes a data source. Accordingly, determining the historical market conditions corresponding to the market conditions to be simulated includes: The historical market conditions corresponding to the market conditions to be simulated are determined according to the data source in the element content.
5. The market simulation method according to claim 4, characterized in that: Determining the manual simulated market conditions corresponding to the market conditions to be simulated includes: In response to the user triggering the manual simulation control in the preset interface, an input box for the market to be simulated is displayed based on the preset interface; The information input by the user based on the input box is determined as the manual simulation market information.
6. The market simulation method according to claim 5, characterized in that: The simulation rule includes a time interval. Accordingly, the market to be simulated is simulated based on the simulation rule and the historical market or the manual simulated market to obtain a corresponding simulated market, including: In response to a user triggering an automatic simulation control in the preset interface, displaying a simulation rule determination page based on the preset interface; The historical market conditions or the manually simulated market conditions are simulated based on the time interval determined by the user on the simulation rule determination page to obtain the simulated market conditions.
7. A market simulation device, characterized in that: include: The determination module is used to determine the market conditions to be simulated based on the currently selected element; The simulation module is used to determine the historical market conditions or manual simulated market conditions corresponding to the market conditions to be simulated, and then simulate the market conditions to be simulated based on simulation rules and the historical market conditions or the manual simulated market conditions to obtain the corresponding simulated market conditions.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the market simulation method as described in any one of claims 1-6.
9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the market simulation method as described in any one of claims 1 to 6 when executed by a computer processor.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the market simulation method according to any one of claims 1 to 6.