Object splitting processing method, device and storage medium
By using the combination of policy configuration library and policy components in object splitting processing, we build and run splitting policy instances, solving the problem of time-consuming and costly object splitting processing in the existing technology, and achieving higher flexibility and reusability.
Patent Information
- Application Number
- CN202411604407.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-11-12
AI Technical Summary
In the prior art, the object splitting process takes a long time, is costly, and is slow in response. The internal logic of the algorithm is invisible, and the reusability and readability are poor.
By obtaining the object to be split and the split policy identifier specified by the user, find a matching target policy configuration file from the preset policy configuration library, build a split policy instance, and run the instance to generate multiple sub-objects.
It achieves higher flexibility and reusability, reduces development difficulty and complexity, and improves the response speed and readability of object splitting.
Smart Images

Figure CN119127173B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an object splitting processing method, device and storage medium. Background Art
[0002] In some business scenarios, some business objects need to be split into multiple sub-objects to meet specific business needs. For example, in the field of financial transactions, a transaction order needs to be split to improve transaction efficiency and quality.
[0003] In the prior art, it is necessary to develop a software system dedicated to a specific transaction scenario in order to realize the business functions in the transaction scenario.
[0004] However, this method has the problems of long process time, high cost, slow response speed, and the internal logic of the algorithm is invisible, so the reusability and readability are also poor. Summary of the invention
[0005] The purpose of this application is to provide an object splitting processing method, device and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problems in the prior art of long process time, high cost, slow response speed, invisible internal logic of the algorithm, poor reusability and readability.
[0006] To achieve the above objectives, the technical solutions adopted in this application are as follows:
[0007] In a first aspect, the present application provides an object splitting processing method, the method comprising:
[0008] Acquire the object to be split and a splitting strategy identifier for the object to be split indicated by the user;
[0009] According to the splitting strategy identifier, a target strategy configuration file matching the splitting strategy identifier is searched from a preset strategy configuration library; the strategy configuration library includes a plurality of strategy configuration files, each of which corresponds to a splitting strategy, and each of which includes: a plurality of strategy components, a processing order between the strategy components, and control parameters and message dependencies of the strategy components;
[0010] According to the target policy configuration file, a splitting policy instance is constructed, wherein the splitting policy instance includes: component instances corresponding to each policy component in the target policy configuration file and a processing order between each component instance;
[0011] The splitting strategy instance is run to run each component instance based on the processing order between each component instance and in turn according to the parameter information of each component instance to obtain a plurality of sub-objects corresponding to the object to be split.
[0012] In an optional implementation manner, constructing a splitting strategy instance according to the target strategy configuration file includes:
[0013] According to each policy component in the target policy configuration file and the control parameters and message dependencies of each policy component, component instances corresponding to each policy component are constructed respectively;
[0014] The splitting strategy instance is constructed according to the processing order of each strategy component and the component instance corresponding to each strategy component.
[0015] In an optional implementation, the target policy configuration file includes: multiple event policy components, event scheduling components, and multiple processing components, and the split policy instance includes: multiple event policy component instances, event scheduling component instances, and multiple processing component instances; each of the event policy component instances corresponds to a trigger event;
[0016] The running of the splitting strategy instance, based on the processing order between the component instances and running each component instance in turn according to the parameter information of each component instance, to obtain a plurality of sub-objects corresponding to the object to be split, includes:
[0017] Running the split strategy instance, each of the event strategy component instances monitors the corresponding trigger event respectively, and sends the corresponding event information to the event scheduling component instance when the corresponding trigger event is triggered;
[0018] The event scheduling component instance pushes the event information to at least one of the processing component instances based on the event information sent by each of the event strategy component instances, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split.
[0019] In an optional implementation, the multiple event strategy component instances include: a sub-object receiver instance; the sub-object receiver instance is used to monitor a transaction completion event of a split sub-object, generate split sub-object information, and send the split sub-object information to the event scheduling component instance, wherein the split sub-object is obtained after being split by at least one processing component instance among the multiple processing component instances in a round before the current round;
[0020] The event scheduling component instance pushes the event information to at least one of the processing component instances according to the event information sent by each of the event strategy component instances, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split, including:
[0021] The event scheduling component instance pushes the split sub-object information to the at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information to obtain the split sub-object of the current round corresponding to the object to be split.
[0022] In an optional implementation, the multiple event strategy component instances further include: a business association receiver instance; the business association receiver instance is used to receive business association data, generate business association information and send the business association information to the event scheduling component instance;
[0023] The event scheduling component instance pushes the split sub-object information to the at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information to obtain the split sub-object of the current round corresponding to the object to be split, including:
[0024] The event scheduling component instance pushes the split sub-object information and the business-related information to the at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information and the business-related information to obtain the split sub-object of the current round corresponding to the object to be split.
[0025] In an optional embodiment, the plurality of processing component instances include: a logic engine instance, a quantity calculator instance, a price calculator instance, and a controller instance;
[0026] The event scheduling component instance pushes the event information to at least one of the processing component instances according to the event information sent by each of the event strategy component instances, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split, including:
[0027] The event scheduling component instance pushes the event information to the logic engine instance based on the event information sent by each event strategy component instance, and the logic engine instance triggers the quantity calculator instance, the price calculator instance and the controller instance to perform splitting processing based on the event information to obtain the split sub-objects of the current round corresponding to the object to be split.
[0028] In an optional implementation manner, the logic engine instance triggers the quantity calculator instance, the price calculator instance, and the controller instance to perform splitting processing according to the event information to obtain the split sub-objects of the current round corresponding to the object to be split, including:
[0029] The logic engine instance generates at least one first input parameter and at least one second input parameter according to the event information;
[0030] The logic engine instance calls the quantity calculator instance based on the at least one first input parameter, and calls the price calculator instance based on the at least one second input parameter;
[0031] The quantity calculator instance and the price calculator instance respectively send processing results to the controller instance, and the controller instance generates the split sub-objects of the current round.
[0032] In an optional implementation manner, the target policy configuration file further includes: a sub-object transmitter; the split policy instance further includes: a sub-object transmitter instance;
[0033] The method further comprises:
[0034] The sub-object sender instance sends the sub-object of the current round to the transaction processing system.
[0035] In a second aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of an object splitting processing method as described in any one of the first aspects.
[0036] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of an object splitting processing method as described in any one of the first aspects are executed.
[0037] In a fourth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code is executed by a computing device, the computing device performs the steps of an object splitting processing method as described in any one of the first aspects.
[0038] The beneficial effects of the present application are as follows: the splitting strategy is stored in the policy configuration library in the form of a policy component. After the user specifies the splitting strategy, the policy component in the policy configuration library can be assembled to quickly obtain a policy instance. Compared with the existing method of developing a complete set of transaction processes for each transaction scenario, the component assembly of the present application has higher flexibility. There are the same basic functions in many splitting strategies. In the method of the present application, the same policy component can be used to implement these same functions, thereby achieving the reusability of the policy component. When a new function needs to be added, the developer only needs to develop the policy component corresponding to the new function, which improves readability and scalability. The splitting process is automatically performed by triggering the policy instance through an event, which makes the triggering logic of object splitting clearer and reduces the complexity of the splitting.
[0039] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application is shown;
[0042] Figure 2 A flowchart of an object splitting processing method provided by an embodiment of the present application is shown;
[0043] Figure 3 A flowchart of an example of constructing a splitting strategy provided by an embodiment of the present application is shown;
[0044] Figure 4 A flowchart of object splitting provided by an embodiment of the present application is shown;
[0045] Figure 5 A flowchart of a logic engine instance calling a price calculator instance and a quantity calculator instance provided by an embodiment of the present application is shown;
[0046] Figure 6 A schematic diagram of a process of performing order splitting in an order splitting processing system provided in an embodiment of the present application is shown;
[0047] Figure 7 A schematic diagram of the structure of an object splitting processing system provided in an embodiment of the present application is shown;
[0048] Figure 8 A schematic structural diagram of an electronic device 80 provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0049] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0050] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0051] In some business scenarios, some business objects need to be split into multiple sub-objects. For example, in the financial field, it is necessary to split transaction orders into multiple batches of orders for transaction. In the industrial manufacturing field, it is necessary to split the equipment orders to be manufactured according to the current manufacturing node and the current raw material cost, and split the equipment orders into multiple batches of sub-orders, each of which is used to indicate the quantity and price of parts to be manufactured this time. In the prior art, for a specific transaction scenario, a software system for the transaction scenario is generally developed to realize the corresponding business functions. For example, a special financial transaction software is developed to automatically split financial orders based on a preset splitting strategy, and a special industrial manufacturing management system is developed to automatically split equipment orders based on a preset splitting strategy.
[0052] Taking the financial transaction field as an example, automatic order splitting refers to splitting a large order into multiple small orders for trading based on pre-set trading strategies and regulations. In the prior art, in order to achieve automatic order splitting, professional traders, demand analysts, software engineers and other personnel are generally required to work together to develop a set of algorithm programs for the current trading scenario through the software project development process to achieve automatic order splitting and trading in the current trading scenario.
[0053] However, this method requires a lot of time for software project development, which is costly and time-consuming. In addition, the developed automatic order splitting device or system is presented to users as a whole. Users cannot perceive the internal logic of the algorithm during use, which has the problem of poor readability. Moreover, if the splitting strategy used in the transaction scenario changes or is updated, the entire device or system needs to be updated, and the reusability of the internal algorithm is also poor.
[0054] Based on this, the present application proposes an object splitting processing method, which can be applied to the above-mentioned financial transaction field or industrial manufacturing splitting field. By modeling the business scenario, a set of assembleable policy components is abstracted. For different business strategies, the corresponding policy instances can be obtained by combining and constructing the policy components, so that the policy components have good reusability, and developers only need to write basic components and assemble policies, which reduces the difficulty and complexity of development.
[0055] To facilitate description of the technical solution of the present application, the following embodiments of the present application are described by taking the application in the field of financial transactions as an example. However, it should be understood that this is not a limitation to the present application.
[0056] The method of the present application can be applied to Figure 1 In the order splitting processing system shown, refer to Figure 1 , is a schematic diagram of an application scenario of an order splitting processing system given in the present application. The order splitting processing system can be connected to the transaction processing system in communication. The order splitting processing system can receive or subscribe to real-time business-related data, and based on the received real-time business-related data and the order transaction completion information returned by the transaction processing system, after receiving the order to be split issued by the user, split the order to be split to obtain multiple sub-orders, and send the split sub-orders to the transaction processing system. After the transaction processing system completes the transaction of the sub-order, it returns the transaction completion information to the order splitting processing system until the transaction of the order to be split is completed.
[0057] It should be understood that the order splitting processing system can split the order to be split in multiple rounds, and adjust the quantity, price and other information of the sub-orders based on the current real-time business-related data and the completion status of the sub-orders during the splitting process. Taking the stock trading scenario as an example, assuming that a quantity of N stock A needs to be sold in batches, during this process, the order splitting processing system can split the order to be split, first generate a sub-order, and the sub-order can indicate the sale of a quantity of n stock A at a price of m. After the sub-order is completed, the system can continue to split the order based on the transaction feedback of the sub-order and the current business-related data of stock A until the sale of a quantity of N stock A is completed.
[0058] Next, the object splitting processing method of this application is described. Figure 2 is a flowchart of an object splitting processing method provided in the present application. The execution subject of the method may be an electronic device that deploys an object splitting processing system, and the object splitting processing system may be Figure 1 The order splitting processing system shown. Figure 2 , the method comprising:
[0059] S201: Obtain an object to be split and a splitting strategy identifier for the object to be split indicated by a user.
[0060] The object to be split may be an order to be split, and the order to be split may be a transaction order in the field of financial transactions. Taking the field of financial transactions as an example, the object to be split includes the transaction time requirement of the order, the transaction quantity requirement of the order, and the transaction price requirement of the order. For example, a user may place a transaction order so that the order splitting processing system can buy or sell a certain amount of products at a transaction price within a certain price range within a fixed time period.
[0061] The split strategy identifier may indicate the split strategy used by the user to split the object to be split. The split strategy may be: TWAP strategy (Time Weighted Average Price), VWAP strategy (Volume Weighted Average Price), VP strategy (Volume Participation), price strategy, end-of-day strategy, Ice-berg strategy, IS strategy (Implementation Shortfall), etc.
[0062] In a possible implementation, a user can Figure 1 The transaction processing system shown sends the order to be split to the order splitting processing system and specifies the splitting strategy used when splitting the order to be split, so that the order splitting processing system can trade the specified quantity of products within the time period indicated by the order to be split based on the splitting strategy.
[0063] S202. According to the splitting strategy identifier, search for a target policy configuration file that matches the splitting strategy identifier from a preset policy configuration library; the policy configuration library includes multiple policy configuration files, each policy configuration file corresponds to a splitting strategy, and each policy configuration file includes: multiple policy components, a processing order between each policy component, and control parameters and message dependencies of each policy component.
[0064] Optionally, a policy configuration library may pre-configure policy configuration files corresponding to multiple split policies, each policy configuration file includes a split policy identifier, and the policy configuration file includes: policy components of the split policy, the processing order of the policy components, and control parameters and message dependencies of each policy component. Exemplarily, the format of the policy configuration file may be an XML structured format.
[0065] Among them, the strategy component can be a functional component used to execute the process node in the split strategy, used to complete the process in the split strategy, such as a component for receiving data, a component for calculating prices, a component for calculating quantities, a component for sending sub-orders, etc. The processing order of the strategy components can be the triggering order of the processing flow between the strategy components when processing based on the split strategy. The control parameters of the strategy components can be the configuration parameters of the strategy components, such as the activation state of the strategy components, the adjustable parameters of the strategy components, etc.
[0066] Message dependencies can characterize the triggering relationship between component messages and describe the input parameters and output parameters of the policy component. For example, message 1 and message 2 can be used as input parameters to trigger the activation of component B, and the output parameter message 3 of component B can be used as an input parameter to trigger the activation of component C, etc.
[0067] It is worth noting that the strategy components required for each split strategy, the processing order between the strategy components, and the control parameters and message dependencies of the strategy components can be pre-configured. Different split strategies can be obtained by modifying and combining the strategy components. For example, the main difference between the TWAP strategy and the VWAP strategy is the number of split orders. Therefore, the control parameters and message dependencies of the price calculation strategy components can be configured separately, and other strategy components can be reused to achieve two different split strategies.
[0068] In the embodiment of the present application, developers can pre-develop multiple basic strategy components based on the functions required in the transaction scenario, and each strategy component is used to implement a process node or function in the transaction process, such as a strategy component for receiving data, a strategy component for calculating prices, or a strategy component for calculating quantities. When a new split strategy needs to be added, the new split strategy can be generated by configuring and combining the basic strategy components.
[0069] In the first implementation, the policy components corresponding to the same splitting policy can be stored as a policy configuration file in the policy configuration library. After receiving the splitting policy identifier, the target policy configuration file corresponding to the splitting policy identifier in the policy configuration library can be directly determined based on the splitting policy identifier. The target configuration file includes all the policy components required for the splitting policy, and describes the processing order between the policy components, the control parameters of the policy components, and the message dependency.
[0070] In the second implementation, each policy component can be used as a basic component in the policy configuration library and stored as a policy configuration file. In this case, the policy configuration file includes the split policy identifier, policy components, the processing order of the policy components, and the control parameters and message dependencies of the policy components. In this case, the processing order of the policy components can describe the previous policy component and the next policy component in the processing flow indicated by the split policy.
[0071] In the second implementation method, after receiving the policy split identifier, multiple policy configuration files that match the split policy identifier can be determined from the policy configuration library based on the split policy identifier, and a list of policy components corresponding to the split policy can be obtained. Then, based on the processing order of the policy components described in the policy configuration file and the control parameters and message dependencies of the policy components, the policy components can be configured to obtain the split strategy.
[0072] S203: Construct a splitting policy instance according to the target policy configuration file, wherein the splitting policy instance includes: component instances corresponding to each policy component in the target policy configuration file and a processing sequence between each component instance.
[0073] Optionally, the splitting policy instance may be a policy instance for executing the splitting policy. The policy components in the target policy configuration file are basic functional components. After configuring and instantiating the policy components based on the control parameters in the target policy configuration file, component instances corresponding to each policy component may be obtained. By combining the component instances according to the processing order and the message dependency, the splitting policy instance may be obtained.
[0074] The processing order between the component instances may be the same as the processing order between the policy components in the target policy configuration file.
[0075] After the splitting strategy instance is initialized according to the target strategy configuration file in this step, the order splitting processing system can split the order to be split in multiple rounds based on the splitting strategy instance to obtain at least one sub-object of the object to be split.
[0076] S204: Run the splitting strategy instance to run each component instance based on the processing order between the component instances and in turn according to the parameter information of each component instance to obtain multiple sub-objects corresponding to the object to be split.
[0077] Optionally, the order splitting processing system may receive events from a third-party system, such as updates to real-time price data, feedback information on sub-order completion, etc., and trigger the running of the splitting strategy instance through the events.
[0078] After the splitting strategy instance is triggered, each component instance in the splitting strategy instance may be triggered in sequence according to the processing order, and run according to the parameter information of the component instance to split the object to be split.
[0079] Optionally, the parameter information of the component instance includes control parameters of the component instance, and input parameters and output parameters of the component instance indicated by the message dependency relationship of the component instance.
[0080] When the object to be split is an order, the multiple sub-objects corresponding to the object to be split may be sub-orders obtained by splitting the object to be split based on the splitting strategy.
[0081] For example, Figure 1 The order splitting processing system in the system can split the order to be split into multiple rounds. After the event triggers the running of the splitting strategy instance, the splitting strategy instance can split the order to be processed, obtain at least one sub-order of the current round, and send the sub-order to Figure 1 The transaction processing system shown in the figure, after the sub-order transaction is completed, feeds back the transaction completion status of the sub-order as an event to the splitting strategy instance. When the order to be split is completely executed or the transaction end time is reached, the split transaction processing of the order to be split is completed.
[0082] In the present application, an object to be split and a splitting strategy identifier for the object to be split indicated by a user are obtained, and according to the splitting strategy identifier, a target policy configuration file matching the splitting strategy identifier is searched from a preset policy configuration library; the policy configuration library includes multiple policy configuration files, each policy configuration file corresponds to a splitting strategy, and each policy configuration file includes: multiple policy components, a processing order between each policy component, and control parameters and message dependencies of each policy component; according to the target policy configuration file, a splitting strategy instance is constructed, and the splitting strategy instance includes: component instances corresponding to each policy component in the target policy configuration file and a processing order between each component instance; the splitting strategy instance is run to run each component instance based on the processing order between each component instance and in sequence according to the parameter information of each component instance, so as to obtain multiple sub-objects corresponding to the object to be split.
[0083] Among them, the splitting strategy is stored in the policy configuration library in the form of a policy component. After the user specifies the splitting strategy, the policy components in the policy configuration library can be assembled to quickly obtain a policy instance. Compared with the existing method of developing a complete set of transaction processes for each transaction scenario, the component assembly of this application has higher flexibility. There are the same basic functions in many splitting strategies. In the method of this application, these same functions can be implemented using the same basic policy components. New splitting strategies can be implemented by reconfiguring and combining the basic policy components, which realizes the reusability of policy components. When new functions need to be added, developers only need to develop policy components corresponding to the new functions, which improves readability and scalability. Object splitting is automatically performed through event-triggered policy instances, making the triggering logic of object splitting clearer and reducing the complexity of splitting.
[0084] The following is a further explanation of the above-mentioned construction of a split strategy instance based on the target strategy configuration file. Figure 3 As shown, the above step S203 includes:
[0085] S301. Construct component instances corresponding to the policy components according to the policy components in the target policy configuration file and the control parameters and message dependencies of the policy components.
[0086] It should be noted that the policy component may be an unconfigured basic functional component. After configuring the policy component based on control parameters and message dependencies, the component instance used by the splitting policy can be obtained.
[0087] The control parameters can be used to describe the enabled state of the policy component. The message dependency can be used to describe the input parameters and output parameters of the policy component, and describe the dependency between the input parameters, output parameters and other policy components.
[0088] In an embodiment of the present application, the control parameters of the policy component can be set to the control parameters indicated in the target policy configuration file, and the input parameters, output parameters and dependencies of the policy component with other components can be configured based on the message dependencies in the target policy configuration file to obtain component instances corresponding to each policy component.
[0089] S302: Construct a splitting strategy instance according to the processing order of each strategy component and the component instance corresponding to each strategy component.
[0090] After obtaining the component instances corresponding to the policy components, the component instances corresponding to the policy components may be combined according to the processing order of the policy components to obtain the split policy instance.
[0091] Optionally, the target policy configuration file includes: multiple event policy components, event scheduling components and multiple processing components, and the split policy instance includes: multiple event policy component instances, event scheduling component instances and multiple processing component instances; each event policy component instance corresponds to a trigger event.
[0092] By configuring the event strategy component, event scheduling component and processing component in the target configuration file based on control parameters and message dependencies respectively, an event strategy component instance, an event scheduling component instance and a processing component instance can be obtained.
[0093] The above-mentioned running splitting strategy instance is based on the processing order between each component instance and runs each component instance in turn according to the parameter information of each component instance to obtain a process of obtaining multiple sub-objects corresponding to the object to be split, such as Figure 4 As shown, including:
[0094] S401, running the split strategy instance, each event strategy component instance monitors the corresponding trigger event respectively, and sends the corresponding event information to the event scheduling component instance when the corresponding trigger event is triggered.
[0095] The event strategy component instance can be used to receive trigger events, and each trigger event is monitored by an event strategy component instance. The trigger event can be an event that triggers the execution of the split strategy instance, including: updating of real-time business related data, triggering of scheduled tasks, updating of feedback information of completed sub-objects, etc. The feedback information of the completed sub-object can be the object return information of the completed sub-object.
[0096] As an example, when real-time business-related data is updated, real-time business-related data can be received through a business-related receiver instance. A scheduled task is received through a scheduled trigger instance, and the scheduled task is triggered to execute when the preset task start time is reached. Feedback information of completed sub-objects is received through a sub-object receiver instance.
[0097] Optionally, the event information may be updated real-time business-related data, task information of a currently triggered scheduled task, order return information of a completed sub-order, etc.
[0098] S402. The event scheduling component instance pushes event information to at least one processing component instance according to the event information sent by each event strategy component instance, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split.
[0099] The event scheduling component instance can schedule the processing component based on event information, and push the event information to at least one processing component instance, so that the processing component instance can calculate the price and / or quantity of the sub-object based on the event information, and split the object to be split to obtain sub-objects.
[0100] The processing component instance can calculate the object information of the sub-object based on the triggering event, including calculating the transaction price, transaction quantity, etc. of the sub-object, and generate the split sub-object of the current round based on the calculation result.
[0101] Furthermore, the multiple event strategy component instances include: a sub-object receiver instance; the sub-object receiver instance is used to monitor the transaction completion event of the split sub-object, generate the split sub-object information and send the split sub-object information to the event scheduling component instance, wherein the split sub-object is obtained after splitting processing by at least one processing component instance among the multiple processing component instances in the previous round of the current round.
[0102] The split sub-object may be a split sub-order. Figure 1 The order splitting processing system sends the split sub-objects to the transaction processing system. After the split sub-objects are completed, the transaction processing system can feed back the completion status of the split sub-objects as a transaction completion event to the sub-object receiver instance in the order splitting processing system.
[0103] Optionally, the event strategy component includes a sub-object receiver, and the sub-object receiver instance can be obtained by configuring the sub-object receiver based on control parameters and message dependencies.
[0104] The sub-object receiver instance is used to receive the completion status of the split sub-object sent by the transaction processing system. The transaction processing system can send the completed split sub-object as a transaction completion event to the sub-object receiver instance. After receiving the transaction completion event of the sub-object, the sub-object receiver instance can extract the return information of the sub-object from the transaction completion event as the split sub-object information.
[0105] The process in which the event scheduling component instance pushes event information to at least one processing component instance according to the event information sent by each event strategy component instance, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split includes:
[0106] The event scheduling component instance pushes the split sub-object information to at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information to obtain the split sub-object of the current round corresponding to the object to be split.
[0107] The event scheduling component instance can push the split sub-object information to the processing component instance, and the processing component instance calculates the transaction price and transaction quantity of the sub-object in the current round according to the split sub-object information, and obtains the split sub-objects of the object to be split in the current round based on the calculated transaction price and transaction quantity.
[0108] Optionally, the multiple event strategy component instances also include: a business association receiver instance; the business association receiver instance is used to receive business association data, generate business association information and send the business association information to the event scheduling component instance.
[0109] The event policy component includes a business-related receiver. By configuring the business-related receiver based on the control parameters in the target policy configuration file and the message dependency, a business-related receiver instance can be obtained.
[0110] The business-related receiver instance can subscribe to business-related data from a third-party database platform, or receive business-related data pushed by a third-party database platform. After receiving the business-related data, the business-related receiver instance can use the business-related data as business-related information and send the business-related information to the event scheduling component instance.
[0111] The business association information may include updated business association data, or may include updated business association data and historical business association data. It should be understood that business association data refers to business association data of products related to the object to be split. Taking stock trading as an example, the business association receiver instance may receive real-time business association data of stocks related to the object to be split, and send the real-time business association data as business association information to the event scheduling component instance.
[0112] The above process in which the event dispatching component instance pushes the split sub-object information to at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information to obtain the split sub-object of the current round corresponding to the object to be split includes:
[0113] The event scheduling component instance pushes the split sub-object information and business-related information to at least one processing component instance, and the corresponding processing component instance performs splitting processing based on the split sub-object information and business-related information to obtain the split sub-object of the current round corresponding to the object to be split.
[0114] The processing component instance can calculate the transaction price and transaction quantity based on the split sub-object information and business-related information, and use the calculated transaction price and transaction quantity as the transaction price and transaction quantity of the split sub-object of the current round corresponding to the object to be split.
[0115] The business association information can represent the real-time business association data of the products related to the object to be split. It should be noted that when determining the transaction price, it is necessary to comprehensively calculate the cost, real-time business association data and the urgency of the object to be split to determine the current transaction price.
[0116] As a possible implementation, the split sub-object information can also represent the difference between the current completion degree of the object to be split and the expected completion, so the urgency of the object to be split can be determined based on the split sub-object information. It should be understood that the lower the completion degree of the object represented by the split sub-object information is than the expected completion, the higher the urgency of the object to be split. At this time, the price calculator can calculate a more aggressive transaction price based on the current urgency, thereby improving the completion degree of the object to be split.
[0117] Optionally, the multiple processing component instances include: a logic engine instance, a quantity calculator instance, a price calculator instance, and a controller instance.
[0118] The processing components include a logic engine, a quantity calculator, a price calculator and a controller. The logic engine instance, the quantity calculator instance, the price calculator instance and the controller instance are respectively obtained by configuring the logic engine, the quantity calculator, the price calculator and the controller based on control parameters and message dependency relationships.
[0119] The process in which the event scheduling component instance pushes event information to at least one processing component instance according to the event information sent by each event strategy component instance, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split includes:
[0120] The event scheduling component instance pushes event information to the logic engine instance based on the event information sent by each event strategy component instance, and the logic engine instance triggers the quantity calculator instance, price calculator instance and controller instance to perform splitting processing based on the event information to obtain the split sub-objects of the current round corresponding to the object to be split.
[0121] The event scheduling component instance can push event information to the logic engine instance, and the logic engine instance is used to trigger the quantity calculator instance, the price calculator instance and the controller instance for splitting processing according to the event information.
[0122] Exemplarily, the quantity calculator instance calculates the transaction quantity of the sub-object based on the event information, the price calculator instance calculates the transaction price of the sub-object based on the event information, and the controller instance generates the sub-object according to the calculated transaction quantity and transaction price to obtain the split sub-object of the current round corresponding to the object to be split.
[0123] In the field of industrial manufacturing, the quantity calculator instance calculates the quantity of various types of parts in the equipment to be manufactured during this splitting process based on event information, and the price calculator instance calculates the cost price of various types of parts in the equipment to be manufactured during this splitting process based on event information. The controller instance generates sub-objects based on the calculated number of parts, cost price of parts, and types of parts, and obtains the split sub-objects of the current round corresponding to the object to be split.
[0124] As a possible implementation, after receiving event information, the event scheduling component instance can schedule the corresponding processing component based on the event information, for example, after receiving the event information, send the event information as an input parameter to the price calculator instance and the quantity calculator instance.
[0125] The above process is that the logic engine instance triggers the quantity calculator instance, the price calculator instance and the controller instance to perform splitting processing according to the event information to obtain the split sub-objects of the current round corresponding to the object to be split, such as Figure 5 As shown, including:
[0126] S501: A logic engine instance generates at least one first input parameter and at least one second input parameter according to event information.
[0127] The first input parameter may be an input parameter of a quantity calculator instance, and the second input parameter may be an input parameter of a price calculator instance.
[0128] As a possible implementation, the event information may include real-time business-related data and feedback information of the sub-object completion. The logic engine instance may also include a processing rule of the splitting strategy specified by the user, and the logic engine instance may extract the first input parameter and the second input parameter from the event information based on the processing rule of the splitting strategy. The processing rules may include the transaction quantity requirement, revenue requirement, time requirement, etc. for each split order.
[0129] Taking the TWAP strategy as an example, the logic engine instance can distribute the objects to be split into different time periods within the specified time based on the time specified by the user, and predetermine the expected progress that should be completed in each time period. The logic engine instance can extract the completion progress of the objects to be split from the event information, and determine the number of transactions in each time period based on the expected progress and the completion progress.
[0130] The logic engine instance can calculate the completion progress of the object to be split based on the feedback information of the sub-object completion, and use the completion progress of the object to be split and the real-time business-related data as the second input parameter of the price calculator instance.
[0131] S502: The logic engine instance calls a quantity calculator instance based on at least one first input parameter, and calls a price calculator instance based on at least one second input parameter.
[0132] Continuing with the TWAP strategy as an example, the logic engine instance can call the quantity calculator instance based on the first input parameter, so that the quantity calculator instance calculates based on the following formula to obtain the transaction quantity △Rate*TotalQty of the sub-order in the current time period.
[0133] △Rate=ExpectRate-ActualSendRate
[0134] ExpectRate=(CurrentTime-StartTime) / (EndTime-StartTime)
[0135] ActualSendRate=sendOutQty / totalQty
[0136] Among them, TotalQty represents the total number of orders to be split, △Rate represents the proportion of this sub-order to the total number, ExpectRate represents the expected progress, ActualSendRate represents the actual completion progress, CurrentTime represents the current time, StartTime represents the time when the order starts trading, EndTime represents the preset time when the order transaction ends, and sendOutQty represents the number of split orders.
[0137] It is worth noting that the quantity calculator example above is calculated based on the actual completion progress. In actual applications, the minimum transaction quantity can also be preset to ensure that sub-orders with quantities that are too small will not be split.
[0138] As an example, the price calculator instance can calculate the price based on the expected order completion progress to obtain the transaction price of the sub-order. The expected order completion progress can be obtained by the following formula.
[0139] Urgency = Function(ExpectRate,ActualSendRate)
[0140] Among them, ExpectRate indicates the expected progress of order splitting, and ActualSendRate indicates the actual completion progress of order splitting. The lower the expected completion progress, the more urgent the order is. At this time, the price calculator can choose a more aggressive transaction price to speed up the completion progress of order splitting.
[0141] S503: The quantity calculator instance and the price calculator instance send the processing results to the controller instance respectively, and the controller instance generates the split sub-objects of the current round.
[0142] The quantity calculator instance can send the transaction quantity to the controller instance, and the price calculator instance can send the transaction price to the controller instance. After receiving the transaction quantity and transaction price, the controller instance can generate a sub-object based on the transaction quantity and transaction price, perform security verification on the sub-object, and use the sub-object that passes the security verification as the split sub-object of the current round, and send the split sub-object to the transaction processing system.
[0143] Among them, the controller instance can verify the sub-object based on the number of transactions in the market, the current number of transaction entrustments and the transaction price in the market. For example, when the number of transactions in the market is too large, the number of entrustments is too frequent, and the transaction price and transaction quantity appear continuously, the controller instance can refuse to generate sub-objects. At this time, the split sub-objects of the current round will not be generated.
[0144] Optionally, the target policy configuration file also includes: a sub-object sender; and the split policy instance also includes: a sub-object sender instance.
[0145] The sub-object sender is configured based on the control parameters in the target policy configuration file and the message dependency relationship to obtain a sub-object sender instance.
[0146] After the controller instance obtains the split sub-object, the method of the present application further includes:
[0147] The sub-object sender instance sends the sub-object of the current round to the transaction processing system.
[0148] The sub-object sender instance can send the sub-object of the current round to the transaction processing system, and the transaction processing system can complete the transaction of the sub-object through the exchange and return the transaction completion status of the sub-object to the order splitting processing system.
[0149] Figure 6 This is a schematic diagram of the architecture of an order splitting processing system given in this application. After the user places an order to be split and specifies a splitting strategy, the order splitting processing system can load the corresponding strategy components from the strategy configuration library based on the splitting strategy specified by the user, and obtain the strategy components by configuring and assembling them. Figure 6 Policy example shown.
[0150] Reference Figure 6, the strategy instance includes: sub-object receiver instance, timing trigger instance, business association receiver instance, event scheduler instance, logic engine instance, quantity calculator instance, price calculator instance, controller instance and sub-object transmitter instance.
[0151] The sub-object receiver instance can receive the sub-order completion status returned by the transaction processing system, the business-related receiver instance can receive real-time business-related data, and the timing trigger instance can receive the user-preset timing tasks and manage the time period of the split order task.
[0152] After the event triggers the sub-object receiver instance, business-related receiver instance or timer trigger instance, the event scheduler instance can trigger the logic engine instance to split the process based on the event information of the triggering event. The logic engine instance can schedule the quantity calculator instance to calculate the transaction quantity based on the event information, schedule the price calculator instance to calculate the transaction price, and generate a sub-order based on the transaction quantity and transaction price through the controller instance, and send the sub-order to the transaction processing system through the sub-object sender instance.
[0153] It should be understood that after the sub-order is completed, the transaction processing system can send the transaction completion information of the sub-order to the strategy instance in the split processing system as a trigger event of the sub-object receiver instance in the strategy instance, and continue to process the transaction based on Figure 6 The architecture shown generates the sub-orders of the current round. When the transaction of the order to be split is completed or the preset transaction time is reached, the order splitting task can be considered completed.
[0154] Based on the same inventive concept, an object splitting processing system corresponding to the object splitting processing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the system in the embodiment of the present application is similar to the above-mentioned object splitting processing method in the embodiment of the present application, the implementation of the system can refer to the implementation of the method, and the repeated parts will not be repeated.
[0155] Figure 7 A schematic diagram of the structure of an object splitting processing system provided in an embodiment of the present application is shown. Figure 7 The system includes an acquisition module 701, a search module 702, a construction module 703 and a splitting module 704.
[0156] An acquisition module 701 is used to acquire an object to be split and a splitting strategy identifier for the object to be split indicated by a user;
[0157] The search module 702 is used to search for a target policy configuration file that matches the splitting policy identifier from a preset policy configuration library according to the splitting policy identifier; the policy configuration library includes multiple policy configuration files, each policy configuration file corresponds to a splitting policy, and each policy configuration file includes: multiple policy components, the processing order between the policy components, and the control parameters and message dependencies of the policy components;
[0158] A construction module 703 is used to construct a splitting strategy instance according to the target strategy configuration file, wherein the splitting strategy instance includes: component instances corresponding to each strategy component in the target strategy configuration file and a processing order between each component instance;
[0159] The splitting module 704 is used to run the splitting strategy instance to run each component instance based on the processing order between the component instances and in turn according to the parameter information of each component instance to obtain multiple sub-objects corresponding to the object to be split.
[0160] In an optional implementation manner, the construction module 703 is specifically used to:
[0161] According to the policy components in the target policy configuration file and the control parameters and message dependencies of each policy component, component instances corresponding to each policy component are constructed respectively;
[0162] A split strategy instance is constructed according to the processing order of each strategy component and the component instance corresponding to each strategy component.
[0163] In an optional implementation, the target policy configuration file includes: multiple event policy components, event scheduling components, and multiple processing components, and the split policy instance includes: multiple event policy component instances, event scheduling component instances, and multiple processing component instances; each event policy component instance corresponds to a trigger event;
[0164] The splitting module 704 is specifically used for:
[0165] Run the split strategy instance, and each event strategy component instance monitors the corresponding trigger event respectively, and sends the corresponding event information to the event scheduling component instance when the corresponding trigger event is triggered;
[0166] The event scheduling component instance pushes event information to at least one processing component instance based on the event information sent by each event strategy component instance, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split.
[0167] In an optional implementation, the multiple event strategy component instances include: a sub-object receiver instance; the sub-object receiver instance is used to monitor the transaction completion event of the split sub-object, generate split sub-object information and send the split sub-object information to the event scheduling component instance, wherein the split sub-object is obtained after the splitting process is performed by at least one processing component instance among the multiple processing component instances in the previous round of the current round;
[0168] The splitting module 704 is specifically used for:
[0169] The event scheduling component instance pushes the split sub-object information to at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information to obtain the split sub-object of the current round corresponding to the object to be split.
[0170] In an optional implementation, the multiple event strategy component instances further include: a business association receiver instance; the business association receiver instance is used to receive business association data, generate business association information and send the business association information to the event scheduling component instance;
[0171] The splitting module 704 is specifically used for:
[0172] The event scheduling component instance pushes the split sub-object information and business-related information to at least one processing component instance, and the corresponding processing component instance performs splitting processing based on the split sub-object information and business-related information to obtain the split sub-object of the current round corresponding to the object to be split.
[0173] In an optional embodiment, the plurality of processing component instances include: a logic engine instance, a quantity calculator instance, a price calculator instance, and a controller instance;
[0174] The splitting module 704 is specifically used for:
[0175] The event scheduling component instance pushes event information to the logic engine instance based on the event information sent by each event strategy component instance, and the logic engine instance triggers the quantity calculator instance, price calculator instance and controller instance to perform splitting processing based on the event information to obtain the split sub-objects of the current round corresponding to the object to be split.
[0176] In an optional implementation manner, the splitting module 704 is specifically configured to:
[0177] The logic engine instance generates at least one first input parameter and at least one second input parameter according to the event information;
[0178] Calling, by the logic engine instance, the quantity calculator instance based on at least one first input parameter, and calling the price calculator instance based on at least one second input parameter;
[0179] The quantity calculator instance and the price calculator instance respectively send the processing results to the controller instance, and the controller instance generates the split sub-objects of the current round.
[0180] In an optional implementation manner, the target policy configuration file further includes: a sub-object transmitter; the split policy instance further includes: a sub-object transmitter instance;
[0181] The system also includes a sending module, which is specifically used to:
[0182] The sub-object sender instance sends the sub-object of the current round to the transaction processing system.
[0183] In the embodiment of the present application, the splitting strategy is stored in the policy configuration library in the form of a policy component. After the user specifies the splitting strategy, the policy component in the policy configuration library can be assembled to quickly obtain a policy instance. Compared with the existing method of developing a complete set of transaction processes for each transaction scenario, the component assembly of the present application has higher flexibility. There are the same basic functions in many splitting strategies. In the method of the present application, the same policy component can be used to implement these same functions, which realizes the reusability of the policy component. When new functions need to be added, developers only need to develop the policy components corresponding to the new functions, which improves readability and scalability. Object splitting is automatically performed through event-triggered policy instances, which makes the triggering logic of object splitting clearer and reduces the complexity of object splitting.
[0184] Figure 8 A structural schematic diagram of an electronic device 80 provided in an embodiment of the present application is shown, comprising: a processor 801, a storage medium 802 and a bus 803, wherein the storage medium 802 stores machine-readable instructions executable by the processor 801, and when the electronic device runs the order splitting processing method as in the embodiment, the processor 801 communicates with the storage medium 802 via the bus 803, and the processor 801 executes the machine-readable instructions, and the processor 801 executes the preamble of the method item to execute the steps of the above-mentioned object splitting processing method.
[0185] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program is executed when a processor is running, and the processor executes the steps of the above-mentioned object splitting processing method.
[0186] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.
[0187] An embodiment of the present application also provides a computer program product, which includes computer program code. When the computer program code is executed by a computing device, the computing device executes the steps of the above-mentioned object splitting processing method.
[0188] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0189] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0190] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0191] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0192] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0193] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for object splitting, characterized in that: include: Acquire an object to be split and a splitting strategy identifier for the object to be split indicated by a user, wherein the object to be split is a transaction order to be split; According to the splitting strategy identifier, searching a preset strategy configuration library for a target strategy configuration file that matches the splitting strategy identifier; The policy configuration library includes a plurality of policy configuration files, each of which corresponds to a splitting policy, and each of which includes: a plurality of policy components, a processing order between the policy components, and control parameters and message dependencies of the policy components; According to the target policy configuration file, a splitting policy instance is constructed, wherein the splitting policy instance includes: component instances corresponding to each policy component in the target policy configuration file and a processing order between each component instance; The splitting strategy instance is run to run each component instance based on the processing order between each component instance and in turn according to the parameter information of each component instance to obtain a plurality of sub-objects corresponding to the object to be split.
2. The method according to claim 1, characterized in that The step of constructing a splitting strategy instance according to the target strategy configuration file includes: According to each policy component in the target policy configuration file and the control parameters and message dependencies of each policy component, component instances corresponding to each policy component are constructed respectively; The splitting strategy instance is constructed according to the processing order of each strategy component and the component instance corresponding to each strategy component.
3. The method according to claim 1, characterized in that The target strategy configuration file includes: multiple event strategy components, event scheduling components and multiple processing components, and the split strategy instance includes: multiple event strategy component instances, event scheduling component instances and multiple processing component instances; each of the event strategy component instances corresponds to a trigger event; The running of the splitting strategy instance, based on the processing order between the component instances and running each component instance in turn according to the parameter information of each component instance, to obtain a plurality of sub-objects corresponding to the object to be split, includes: Running the split strategy instance, each of the event strategy component instances monitors the corresponding trigger event respectively, and sends the corresponding event information to the event scheduling component instance when the corresponding trigger event is triggered; The event scheduling component instance pushes the event information to at least one of the processing component instances based on the event information sent by each of the event strategy component instances, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split.
4. The method according to claim 3, characterized in that The multiple event strategy component instances include: a sub-object receiver instance; the sub-object receiver instance is used to monitor the transaction completion event of the split sub-object, generate split sub-object information and send the split sub-object information to the event scheduling component instance, wherein the split sub-object is obtained after being split by at least one processing component instance among the multiple processing component instances in the previous round of the current round; The event scheduling component instance pushes the event information to at least one of the processing component instances according to the event information sent by each of the event strategy component instances, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split, including: The event scheduling component instance pushes the split sub-object information to the at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information to obtain the split sub-object of the current round corresponding to the object to be split.
5. The method according to claim 4, characterized in that The multiple event strategy component instances also include: a business association receiver instance; the business association receiver instance is used to receive business association data, generate business association information and send the business association information to the event scheduling component instance; The event scheduling component instance pushes the split sub-object information to the at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information to obtain the split sub-object of the current round corresponding to the object to be split, including: The event scheduling component instance pushes the split sub-object information and the business-related information to the at least one processing component instance, and the corresponding processing component instance performs splitting processing according to the split sub-object information and the business-related information to obtain the split sub-object of the current round corresponding to the object to be split.
6. The method according to claim 3, characterized in that The plurality of processing component instances include: a logic engine instance, a quantity calculator instance, a price calculator instance, and a controller instance; The event scheduling component instance pushes the event information to at least one of the processing component instances according to the event information sent by each of the event strategy component instances, and the corresponding processing component instance performs splitting processing to obtain the split sub-objects of the current round corresponding to the object to be split, including: The event scheduling component instance pushes the event information to the logic engine instance based on the event information sent by each event strategy component instance, and the logic engine instance triggers the quantity calculator instance, the price calculator instance and the controller instance to perform splitting processing based on the event information to obtain the split sub-objects of the current round corresponding to the object to be split.
7. The method according to claim 6, characterized in that The logic engine instance triggers the quantity calculator instance, the price calculator instance, and the controller instance to perform splitting processing according to the event information to obtain the split sub-objects of the current round corresponding to the object to be split, including: The logic engine instance generates at least one first input parameter and at least one second input parameter according to the event information; The logic engine instance calls the quantity calculator instance based on the at least one first input parameter, and calls the price calculator instance based on the at least one second input parameter; The quantity calculator instance and the price calculator instance respectively send processing results to the controller instance, and the controller instance generates the split sub-objects of the current round.
8. The method according to any one of claims 3 to 7, characterized in that: The target policy configuration file also includes: a sub-object transmitter; the split policy instance also includes: a sub-object transmitter instance; The method further comprises: The sub-object sender instance sends the sub-object of the current round to the transaction processing system.
9. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the object splitting processing method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the object splitting processing method according to any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Transaction execution method and device
CN115599469A
Federal learning-based transaction order splitting method and system
CN116777630A