Stock watchlist methods, apparatuses, systems, devices, and media
By acquiring stock market data and determining the set of conditional orders, and utilizing the Kafka message transmission system, the problem of low performance in existing stock monitoring systems has been solved, achieving efficient stock monitoring under complex market conditions.
Patent Information
- Application Number
- CN202011509688.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-18
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2040-12-18
AI Technical Summary
Existing stock monitoring systems are inadequate for processing stock market data under complex market conditions, resulting in poor performance.
By acquiring stock market data, a set of conditional orders is determined, and based on the stock market data, it is determined whether a target conditional order exists. The execution device is then triggered to perform the corresponding trigger operation, and the Kafka message transmission system is used to improve data transmission efficiency.
It enables stock market monitoring under complex market conditions, thus improving the performance of the stock monitoring system.
Smart Images

Figure CN114648410B_ABST
Abstract
Description
Technical Field
[0001] This application generally relates to the field of financial data processing, and specifically to a stock monitoring method, apparatus, system, device, and medium. Background Technology
[0002] With the development of computer technology, the trading of financial products such as stocks, securities, and futures in the financial industry is gradually becoming more intelligent.
[0003] In order to keep abreast of changes in the financial industry, it is necessary to monitor stock market information. A stock monitoring system based on computer technology can store user-set market trigger conditions and execute the corresponding trigger operation when the market information meets the trigger conditions.
[0004] With the diversification of market information, users need to obtain comprehensive and multi-dimensional information about financial products. However, current stock monitoring systems can usually only monitor stock market data corresponding to simple market trigger conditions, resulting in poor performance. Summary of the Invention
[0005] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a stock monitoring method, apparatus, system, device and medium that can improve the performance of stock market data monitoring.
[0006] Firstly, this application provides a stock monitoring method, including:
[0007] Obtain stock market data;
[0008] Determine the set of conditional orders corresponding to the stock market data. The set of conditional orders includes at least one conditional order of the same type. Each conditional order includes at least one market data trigger condition and a trigger operation corresponding to the at least one market data trigger condition.
[0009] Determine whether there is at least one target conditional order in the conditional order set based on stock market data;
[0010] If present, trigger the execution device to perform the trigger operation corresponding to each target condition sheet;
[0011] Secondly, this application provides a stock monitoring system, including:
[0012] The acquisition module is configured to acquire stock market data.
[0013] The determination module is configured to determine a set of conditional orders corresponding to stock market data. The set of conditional orders includes at least one conditional order of the same type. Each conditional order includes at least one market data trigger condition and a trigger operation corresponding to the at least one market data trigger condition.
[0014] The determination module is also configured to determine whether there is at least one target conditional order in the conditional order set based on stock market data;
[0015] The trigger module is configured to, if present, trigger the execution device to perform the trigger operation corresponding to each target condition sheet;
[0016] Thirdly, this application provides a stock monitoring system, including:
[0017] Data source devices are used to collect stock market information and send it to stock monitoring devices.
[0018] A stock monitoring device is used to receive stock market data; determine the set of conditional orders corresponding to the stock market data; determine whether there is at least one target conditional order in the set of conditional orders based on the stock market data; if so, trigger the execution device to execute the trigger operation corresponding to each target conditional order. The set of conditional orders includes at least one conditional order of the same type, and each conditional order includes at least one market trigger condition and a trigger operation corresponding to the at least one market trigger condition.
[0019] The execution device is used to execute the trigger operation corresponding to the target conditional sheet and send the execution result of the trigger operation to the stock monitoring device.
[0020] Fourthly, this application provides a computer device, which includes:
[0021] processor;
[0022] Memory used to store the processor's executable instructions;
[0023] In this method, the processor is configured to execute the first aspect of the method;
[0024] Fifthly, this application provides a computer-readable storage medium having a computer program stored thereon.
[0025] When a computer program is executed by a processor, it implements the method described in the first aspect.
[0026] The technical solutions provided by the embodiments of this application may include the following beneficial effects:
[0027] The stock monitoring method, apparatus, system, device, and medium provided in this application can acquire stock market data; determine a set of conditional orders corresponding to the stock market data; determine whether at least one target conditional order exists in the set of conditional orders based on the stock market data; and if so, trigger an execution device to perform a trigger operation corresponding to each target conditional order. This can meet the needs of stock market monitoring under complex market triggering conditions and improve the performance of the stock monitoring system. Attached Figure Description
[0028] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0029] Figure 1 This is a schematic diagram of the structure of a stock monitoring system provided in an embodiment of this application;
[0030] Figure 2 A schematic flowchart illustrating a stock monitoring method provided in this application embodiment;
[0031] Figure 3 This is a schematic diagram of the structure of a stock monitoring device provided in an embodiment of this application;
[0032] Figure 4 A schematic diagram of another stock monitoring device provided in this application embodiment;
[0033] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0034] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0035] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0036] Figure 1 This is a schematic diagram of the structure of a stock monitoring system provided in an embodiment of this application. Figure 1 As shown, the stock monitoring system includes: a data source device 110, at least one stock monitoring device 120, at least one execution device 130, and at least one user terminal 140. The data source device 110 is connected to the stock monitoring device 120, and the stock monitoring device 120 is connected to the execution device 130. The connection between any two devices can be a wired network connection or a wireless network connection.
[0037] In such Figure 1 In the stock monitoring system shown, the data source device 110 is used to collect stock market information and send the stock market information to the stock monitoring device 120.
[0038] The stock monitoring device 120 is used to receive stock market data; determine the set of conditional orders corresponding to the stock market data; determine whether there is at least one target conditional order in the set of conditional orders based on the stock market data; if there is, store the at least one target conditional order, and trigger the execution device to execute the trigger operation corresponding to each target conditional order.
[0039] The execution device 130 is used to execute the trigger operation corresponding to the target conditional sheet, send the execution result of the trigger operation to the stock monitoring device 120, and send the execution result to the corresponding user terminal 140.
[0040] It should be noted that, in this embodiment of the application, a large amount of stock market data can be generated per unit of time in the stock trading market. To improve the processing efficiency of stock market data, the data source device and the stock monitoring device can implement data transmission based on the Kafka message transmission system. The data source device can act as a producer in the Kafka message transmission system, and the stock monitoring device can act as a consumer. At least one stock monitoring device can form a consumer group, where the stock monitoring devices in the consumer group are used to pull stock market information stored in a partition under a message topic. Each message topic corresponds to storing one type of stock market information, which can be stock price information, stock profile information, stock trading volume information, etc. The stock profile information can be stock dividend information, stock split information, or financial news information about the company corresponding to the stock.
[0041] The data source device 110, the stock monitoring device 120, and the execution device 130 can be electronic devices with data processing capabilities, such as servers, server clusters, or computers.
[0042] This application provides a stock monitoring method, which is applied to, for example, stock market monitoring. Figure 1 The stock monitoring device 120 shown includes, for example... Figure 2 As shown, the method includes:
[0043] Step 201: Obtain stock market data.
[0044] In this step, the data source device acting as the producer in the Kafka messaging system obtains stock market data. This stock market information can be stored in the Kafka messaging system server and can trigger the stock monitoring device acting as the consumer to obtain the stock market data.
[0045] Step 202: Determine the set of conditional orders corresponding to the stock market data.
[0046] In this embodiment of the application, the conditional order set includes at least one conditional order of the same type. Each conditional order includes at least one market data trigger condition and a trigger operation corresponding to the at least one market data trigger condition. For example, the conditional order type can be a price reduction sell conditional order. Then, the conditional orders corresponding to this price increase sell conditional order could be: a 5% price reduction sell order corresponding to user account A, and a 10% price reduction sell order corresponding to user account B.
[0047] It is understood that, in this embodiment, the conditional order set and the corresponding conditional order are determined based on the user's stock monitoring settings. This process can be as follows: the user terminal responds to the user's stock monitoring settings, obtains at least one market data trigger condition and its corresponding trigger operation set by the user, generates a stock monitoring message setting request, and sends it to the stock monitoring device. Upon receiving the stock monitoring message setting request from the user terminal, the stock monitoring device obtains at least one market data trigger condition and the corresponding trigger operation after satisfying the at least one market data trigger condition. It then determines whether the at least one market data trigger condition and its corresponding trigger operation are valid. If so, it generates a conditional order, establishes a matching relationship between the conditional order, the user terminal's terminal identifier, and the user account. Based on the data type of the stock market data corresponding to at least one market data trigger condition in the conditional order, it determines this data type as the conditional order type for storing the matching relationship, and stores the matching relationship in the database of the corresponding conditional order type, thus obtaining the conditional order set. This allows for comprehensive monitoring of stock market data based on at least one market data trigger set set by the user, improving the user experience.
[0048] In this step, the process of determining the conditional order set corresponding to the stock market data may be as follows: determine the conditional order type of at least one conditional order set; determine the data type of the stock market data; determine whether there is a conditional order type corresponding to the data type among the at least one conditional order types; if so, determine that the conditional order set associated with the conditional order type corresponding to the data type is the conditional order set corresponding to the stock market data.
[0049] The process of determining the conditional order type of at least one conditional order set may be as follows: obtain at least one market data trigger condition corresponding to any conditional order from at least one pre-stored conditional order set, determine the data type of the stock market data corresponding to the at least one market data trigger condition, and determine the data type as the conditional order type of the conditional order set.
[0050] Optionally, in the embodiments of this application, to further improve the efficiency of determining the conditional order set corresponding to stock market data, during the process of generating the conditional order set, after receiving a stock monitoring message setting request sent by the user terminal, the stock identifier set by the user can be obtained, and a conditional order set corresponding to the same stock identifier can be generated. It is understood that the conditional orders in this conditional order set corresponding to the same stock identifier are all of the same type regarding the same stock identifier.
[0051] It should be noted that, in this embodiment, the conditional order set can be a market-triggered conditional order set based on stock market data. For example, any conditional order in this set could be a notification message sent after the stock price reaches an inflection point. Alternatively, the conditional order set can be a time-triggered conditional order set based on time. For example, any conditional order in this set could be a message sent about stock trading volume at 3 PM daily. Therefore, in this step, for market-triggered conditional order sets, step 202 can be executed directly after obtaining the stock market data. For time-triggered conditional order sets, after obtaining the stock market data, the market data can be stored in the market database, and step 202 can be executed when the current time is the trigger time corresponding to the time-triggered conditional order set.
[0052] For example, assuming the stock market data is the market price of stock A after its price increase, and the stock monitoring system stores three sets of trigger-type conditional orders: conditional order set W1, conditional order set W2, and conditional order set W3, the process of determining the conditional order set corresponding to the market price of stock A after its price increase can be as follows: determine a conditional order in conditional order set W1 to send an alert message after obtaining trading volume data; determine a conditional order in conditional order set W2 to sell 100 shares after obtaining a 5% price increase in stock A; determine a conditional order in conditional order set W3 to send the current stock price message at 13:00 every day; determine that the conditional order set type of conditional order set W1 is a trading volume alert conditional order, the conditional order set type of conditional order set W2 is a price change trading conditional order, and the conditional order set type of conditional order set W3 is a price change alert conditional order. Since the data type of the market price of stock A after its price increase is price change data, the conditional order set corresponding to the stock market data of the market price of stock A after its price increase can be determined to be conditional order set W2.
[0053] Step 203: Determine whether there is at least one target conditional order in the conditional order set based on stock market data.
[0054] In this step, the process of determining whether there is at least one target conditional order in the conditional order set based on stock market data can be as follows: obtain at least one market trigger condition corresponding to each conditional order in the conditional order set; determine whether the stock market data satisfies at least one market trigger condition corresponding to each conditional order; if so, determine the conditional order as the target conditional order.
[0055] For example, if the stock market data is the market price of stock A after a price increase, determine the set of price change alert condition orders corresponding to this stock market data. This set of price change alert condition orders includes the following condition orders: the condition order corresponding to device identifier M1 has a market trigger condition of stock A price increase of 3%, the condition order corresponding to device identifier M1 has a market trigger condition of stock A price decrease of 5%, and the condition order corresponding to device identifier M2 has a market trigger condition of stock B price increase of 6%. Assuming that the stock market data shows a 5% increase in the price of stock A, then the condition order corresponding to device identifier M1 is determined as the target condition order.
[0056] Step 204: If it exists, trigger the execution device to perform the trigger operation corresponding to each target condition sheet.
[0057] In this step, the process by which the triggering execution device executes the trigger operation corresponding to each target conditional order can be as follows: updating each target conditional order from its initial state to a condition matching success state; assigning the same processing batch identifier to each target conditional order in the condition matching success state, generating a matching relationship between the target conditional orders in the condition matching success state and the processing batch identifier; and the triggering execution device executing the trigger operation corresponding to each target conditional order based on the matching relationship. It is understood that in this embodiment, the stock monitoring system is built on a Kafka message transmission system. After the matching relationship between the target conditional orders in the condition matching success state and the processing batch identifier is generated, the triggering execution device can be directly triggered to execute the trigger operation corresponding to each target conditional order.
[0058] It should be noted that, in this embodiment of the application, the stock monitoring system typically includes multiple execution devices. To prevent at least one target conditional order from being executed multiple times based on the same batch of stock market data, in this step, the process by which the triggering execution device executes the trigger operation corresponding to each target conditional order based on the matching relationship can be as follows: After the execution device determines that the matching relationship has been generated, it determines, based on the processing batch identifier in the matching relationship, whether the trigger operation in each target conditional order corresponding to the processing batch identifier has been executed; if executed, it determines that the trigger operation in each target conditional order corresponding to the processing batch identifier will not be executed; if not executed, it determines whether each target conditional order is in a condition matching success state; if so, it executes the trigger operation corresponding to the target conditional order; otherwise, it determines that the target conditional order is a conditional order in a non-condition matching success state, and does not execute the trigger operation corresponding to the target conditional order.
[0059] The process of determining whether the triggering operation in each target conditional sheet corresponding to the processing batch identifier has been executed can be as follows: parsing the matching relationship to obtain at least one target conditional sheet, as well as the conditional sheet status information and processing batch identifier corresponding to each target conditional sheet, and determining whether the processing batch identifier is an executed processing batch identifier; if so, determining that the triggering operation in each target conditional sheet corresponding to the processing batch identifier has been executed.
[0060] Understandably, after the execution device determines the trigger operation in each target conditional sheet corresponding to the batch identifier, it can mark the batch identifier as an executed batch identifier and synchronize the executed batch identifier to other execution devices to prevent the trigger operation in each target conditional sheet corresponding to the executed batch identifier from being executed repeatedly.
[0061] Optionally, in this embodiment of the application, after the execution device executes the trigger operation corresponding to each target conditional order, the method further includes: the stock monitoring device receiving the execution result of the trigger operation corresponding to each target conditional order returned by the execution device; when the execution result is execution failure, resetting the target conditional order from the matching success state to the initial state; when the execution result is execution success, updating the target conditional order from the matching success state to the execution success state, so as to facilitate the statistics of the execution results of the trigger operation corresponding to the conditional order.
[0062] In summary, this application provides a stock monitoring method that can acquire stock market data; determine a set of conditional orders corresponding to the stock market data; determine whether at least one target conditional order exists in the set of conditional orders based on the stock market data; and if so, trigger an execution device to perform a trigger operation corresponding to each target conditional order. This method can meet the needs of stock market monitoring under complex market triggering conditions, improving the performance of the stock monitoring system.
[0063] This application provides a stock monitoring device, such as... Figure 3 As shown, the device 30 includes:
[0064] Module 301 is configured to acquire stock market data.
[0065] The determination module 302 is configured to determine a set of conditional orders corresponding to stock market data. The set of conditional orders includes at least one conditional order of the same type. Each conditional order includes at least one market data trigger condition and a trigger operation corresponding to the at least one market data trigger condition.
[0066] The determination module 302 is also configured to determine whether there is at least one target conditional order in the conditional order set based on stock market data;
[0067] Trigger module 303 is configured to, if present, trigger execution device to perform trigger operation corresponding to each target condition sheet.
[0068] Optionally, module 302 is configured as follows:
[0069] Determine the conditional form type of at least one conditional form set;
[0070] Determine the data type of the stock quote data;
[0071] Determine whether at least one conditional form type exists that corresponds to the data type;
[0072] If it exists, determine the set of conditional orders associated with the conditional order type corresponding to the data type as the set of conditional orders corresponding to the stock market data.
[0073] Optionally, module 302 is configured as follows:
[0074] Retrieve at least one market data trigger condition corresponding to each condition order in the condition order set;
[0075] Determine whether the stock quote data meets at least one quote trigger condition corresponding to each conditional order;
[0076] If satisfied, the conditional sheet is determined to be the target conditional sheet.
[0077] Optionally, trigger module 303 is configured as follows:
[0078] Update each target conditional sheet from its initial state to a condition matching success state;
[0079] Assign the same processing batch identifier to each target condition sheet that has successfully matched the condition, and generate a matching relationship between the target condition sheets that have successfully matched the condition and the processing batch identifiers.
[0080] The triggering device executes the triggering operation corresponding to each target conditional sheet based on the matching relationship.
[0081] Optionally, trigger module 303 is configured as follows:
[0082] After the execution device determines that the matching relationship is generated, it determines whether the trigger operation in each target condition sheet corresponding to the processing batch identifier has been executed based on the processing batch identifier in the matching relationship.
[0083] If not executed, the execution device will determine that each target condition sheet is in a successfully matched state and then execute the trigger operation corresponding to the target condition sheet.
[0084] Optional, such as Figure 4 As shown, the device 30 also includes an update module 304, configured to:
[0085] Receive the execution results of the trigger operation corresponding to each target condition sheet returned by the execution device;
[0086] When the execution result is failure, the target condition sheet will be reset from the successful matching status to the initial status;
[0087] When the execution result is successful, the target condition sheet will be updated from a successful match status to a successful execution status.
[0088] In summary, this application provides a stock monitoring device that can acquire stock market data; determine a set of conditional orders corresponding to the stock market data; determine whether at least one target conditional order exists in the set of conditional orders based on the stock market data; and if so, trigger an execution device to perform a trigger operation corresponding to each target conditional order. This can meet the needs of stock market monitoring under complex market triggering conditions, improving the performance of the stock monitoring system.
[0089] Figure 5 This embodiment illustrates a computer system including a central processing unit (CPU) 401, which can perform various appropriate actions and processes based on a program stored in a read-only memory (ROM) 402 or a program loaded from a storage portion into a random access memory (RAM) 403. The RAM 403 also stores various programs and data required for system operation. The CPU 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0090] The following components are connected to I / O interface 405: an input section 406 including a keyboard, mouse, etc.; an output section including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive is also connected to I / O interface 405 as needed. A removable medium 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 410 as needed so that computer programs read from it can be installed into storage section 408 as needed.
[0091] Specifically, according to embodiments of this application, the above... Figure 2The described process can be implemented as a computer software program. For example, various embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU) 401, it performs the functions defined in the system of this application.
[0092] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods, apparatus, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0094] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself. The described units or modules can also be located in a processor; for example, a processor can be described as including an acquisition module, a determination module, and a triggering module. The names of these units or modules do not necessarily limit the specific unit or module itself; for example, the acquisition module can also be described as an "acquisition module for acquiring stock market data".
[0095] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to implement the stock monitoring method described in the above embodiments.
[0096] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A stock watch method, characterized by, The method comprises: acquiring stock market data; determining a set of conditional orders corresponding to the stock market data, the set of conditional orders comprising at least one conditional order of the same type, the conditional order comprising at least one market trigger condition and a trigger operation corresponding to the at least one market trigger condition; the at least one market trigger condition and the trigger operation corresponding to the at least one market trigger condition after the at least one market trigger condition is met are both legal, and the conditional order is generated; the set of conditional orders comprises a set of market trigger type conditional orders triggered based on stock market data and a set of time trigger type conditional orders triggered based on time, the set of market trigger type conditional orders comprising a trading volume reminder conditional order, a rising and falling transaction type conditional order, and a fixed time stock price reminder conditional order; determining whether there is at least one target conditional order in the set of conditional orders based on the stock market data; if there is, triggering an execution device to execute the trigger operation corresponding to each target conditional order; wherein the determination of the set of conditional orders corresponding to the stock market data comprises: determining the type of at least one conditional order in the set of conditional orders; determining the data type of the stock market data; determining whether there is a conditional order type corresponding to the data type in at least one conditional order type; if there is, determining that the set of conditional orders associated with the conditional order type corresponding to the data type is the set of conditional orders corresponding to the stock market data.
2. The method of claim 1, wherein, The determination of whether there is at least one target conditional order in the set of conditional orders based on the stock market data comprises: acquiring at least one market trigger condition corresponding to each conditional order in the set of conditional orders; determining whether the stock market data meets at least one market trigger condition corresponding to each conditional order; if it does, determining that the conditional order is a target conditional order.
3. The method of claim 1, wherein, The trigger execution device executes the trigger operation corresponding to each target conditional order, comprising: updating each target conditional order from an initial state to a conditional match success state; assigning the same processing batch identifier to each target conditional order in the conditional match success state, generating a match relationship between the target conditional order in the match success state and the processing batch identifier; triggering the execution device to execute the trigger operation corresponding to each target conditional order based on the match relationship.
4. The method of claim 3, wherein, The trigger execution device executes the trigger operation corresponding to each target conditional order based on the match relationship, comprising: after the execution device determines that the match relationship is generated, it determines whether the trigger operation in each target conditional order corresponding to the processing batch identifier has been executed based on the processing batch identifier in the match relationship; if not, after the execution device determines that each target conditional order is in the conditional match success state, it executes the trigger operation corresponding to the target conditional order.
5. The method according to any of claims 1 to 4, characterized in that, After the trigger execution device executes the trigger operation corresponding to each target conditional order, the method further comprises: receiving the execution result of the trigger operation corresponding to each target conditional order returned by the execution device; resetting the target conditional order from a matching success state to an initial state when the execution result is an execution failure; updating the target conditional order from a matching success state to an execution success state when the execution result is an execution success.
6. A stock watch device characterized by The method comprises: an acquisition module configured to acquire stock market data; a determination module configured to determine a conditional order set corresponding to the stock market data, the conditional order set comprising at least one conditional order of the same type, the conditional order comprising at least one market trigger condition and a trigger operation corresponding to the at least one market trigger condition; the conditional order being generated when the at least one market trigger condition and the trigger operation corresponding to the at least one market trigger condition after the at least one market trigger condition is satisfied are both legal; the conditional order set comprising a market trigger type conditional order set triggered based on the stock market data and a time trigger type conditional order set triggered based on time, the market trigger type conditional order set comprising a trading volume reminder conditional order, a rising and falling transaction type conditional order, and a fixed-time stock price reminder conditional order; the determination module is further configured to determine, based on the stock market data, whether there is at least one target conditional order in the conditional order set; a trigger module configured to trigger an execution device to execute the trigger operation corresponding to each target conditional order if there is at least one target conditional order; wherein the determination of the conditional order set corresponding to the stock market data comprises: determining a conditional order type of at least one conditional order set; determining a data type of the stock market data; determining whether there is a conditional order type corresponding to the data type in at least one conditional order type; if there is, determining that the conditional order set associated with the conditional order type corresponding to the data type is the conditional order set corresponding to the stock market data.
7. A stock watch system characterized by, The method comprises: a data source device configured to collect stock market data and send the stock market data to a stock watch device; a stock watch device configured to receive the stock market data; determine a conditional order set corresponding to the stock market data; determine, based on the stock market data, whether there is at least one target conditional order in the conditional order set; if there is, trigger an execution device to execute a trigger operation corresponding to each target conditional order, the conditional order set comprising at least one conditional order of the same type, the conditional order comprising at least one market trigger condition and a trigger operation corresponding to the at least one market trigger condition; the conditional order being generated when the at least one market trigger condition and the trigger operation corresponding to the at least one market trigger condition after the at least one market trigger condition is satisfied are both legal; the conditional order set comprising a market trigger type conditional order set triggered based on the stock market data and a time trigger type conditional order set triggered based on time, the market trigger type conditional order set comprising a trading volume reminder conditional order, a rising and falling transaction type conditional order, and a fixed-time stock price reminder conditional order; an execution device configured to execute the trigger operation corresponding to the target conditional order and send an execution result of the trigger operation to the stock watch device; wherein the determination of the conditional order set corresponding to the stock market data comprises: determining a conditional order type of at least one conditional order set; determining a data type of the stock market data; determining whether there is a conditional order type corresponding to the data type in at least one conditional order type; if there is, determining that the conditional order set associated with the conditional order type corresponding to the data type is the conditional order set corresponding to the stock market data. determining a data type of the stock market data; judging whether there is a condition sheet type corresponding to the data type in at least one of the condition sheet types; if there is, determining that the condition sheet set associated with the condition sheet type corresponding to the data type is the condition sheet set corresponding to the stock market data.
8. A computer device, comprising: The computer device comprises: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method of any one of claims 1-5. 9.A computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any one of claims 1-5.
Citation Information
Patent Citations
Automatic stock trading method and system
CN111539824A