Asset calculation method and system, electronic equipment and storage medium
By obtaining and processing the asset data of transaction accounts and transaction fund accounts, and combining real-time transaction data and asset change flows for calculation, it is solved in the existing technology that it is difficult to meet the needs of high-net-worth customers for real-time asset data calculation and viewing, and realizes efficient and accurate calculation and viewing of asset indicators.
Patent Information
- Application Number
- CN202510280664.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-11
- Publication Date
- 2025-04-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology is difficult to meet the calculation and viewing needs of high-net-worth customers for real-time asset data, and cannot support both daytime real-time calculation and day-end calculation, resulting in inaccurate calculation and viewing of asset indicators.
By obtaining the target user's trading account and the associated trading fund account yesterday's end-of-day assets, combining real-time transaction data and asset change flows, calling the asset indicator calculation function to calculate the initial, real-time and final values of the asset indicator, and using full market data to update the asset indicators.
Realize real-time calculation and viewing of asset indicators, meet the needs of real-time and day-end calculations during the day, improve the accuracy and timeliness of asset calculations, reflect asset changes in real time, and provide investors with accurate asset value updates.
Smart Images

Figure CN119809835A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of asset calculation technology, and more specifically, to an asset calculation method, system, electronic device and storage medium. Background Art
[0002] In the digital cultural and museum asset trading platform, in order to meet the daily operations of different trading businesses, different order and matching engines are usually built for digital cultural and museum assets, cultural audio-visual copyrights, cultural data assets, cultural and museum content IP income rights and other businesses. Therefore, when investors want to view the total assets and income indicators in their personal accounts, they can only rely on the asset summary statistics at the end of the day, which is difficult to meet the needs of high-net-worth customers for real-time asset data and viewing, that is, it is difficult to support both real-time calculations during the day and end-of-day calculations, that is, it is impossible to fully and accurately realize the calculation and viewing of asset indicators of related businesses. Among them, end-of-day calculation refers to the registration and settlement documents received from institutions such as China Securities Depository and Clearing Corporation and the exchange through the unified clearing platform of securities companies, combined with the customer's daytime transaction serial number to match orders to complete the customer's end-of-day asset accounting.
[0003] Therefore, how to provide an asset calculation method to meet customers' needs for calculating and viewing real-time asset data is a problem that urgently needs to be solved in this application. Summary of the invention
[0004] In view of this, the present application provides an asset calculation method, system, electronic device and storage medium to meet customers' needs for calculation and viewing of real-time asset data, that is, to support both real-time calculation and viewing during the day and end-of-day calculation and viewing, so as to comprehensively and accurately calculate and view the asset indicators of sight-related businesses.
[0005] The first aspect of the present application provides an asset calculation method, which is applied to an asset calculation system, and the method includes:
[0006] Acquire at least one transaction account related to the target user, and synchronize the account assets at the end of yesterday's day of the transaction fund account associated with each of the transaction accounts;
[0007] Calculate the first index value of each asset index under each of the trading capital accounts according to the account assets of each of the trading capital accounts at the end of yesterday's day;
[0008] Acquire the real-time transaction data and asset change flow corresponding to the transaction fund account, and pre-process the real-time transaction data and the asset change flow to obtain target real-time transaction data and target asset change flow;
[0009] Calling the first asset index calculation function corresponding to the transaction fund account to perform corresponding calculations according to the target real-time transaction data and the target asset change flow, obtaining the second index value of each asset index under the transaction fund account, and determining the third index value of each asset index according to the first index value and the second index value of each asset index;
[0010] If the transaction fund account has corresponding full market data, the full market data is used to update the third indicator value of each asset indicator to obtain the final indicator value of the asset indicator.
[0011] Optionally, the method further includes:
[0012] Determining whether each of the transaction funds accounts has at least one associated asset portfolio;
[0013] If the transaction fund account is associated with at least one asset portfolio, for each asset portfolio, yesterday's transaction data corresponding to the asset portfolio is obtained; wherein the yesterday's transaction data includes a plurality of yesterday's transactions;
[0014] Obtain at least one yesterday's transaction data corresponding to each of the yesterday's transactions, and generate yesterday's settlement flow of each of the yesterday's transactions according to each of the yesterday's transactions and their yesterday's transaction data;
[0015] Calculating the fourth index value of each asset index under the asset portfolio according to yesterday's delivery records of each of the yesterday's transactions and the target yesterday's end-of-day account assets of the trading fund account; wherein the multiple asset indexes of the asset portfolio are the same as the multiple asset indexes under the trading fund account associated with the asset portfolio;
[0016] Aggregating the fourth index values of the asset indexes of the respective asset combinations to obtain the fifth index value of each asset index under the transaction fund account;
[0017] If the first indicator value of each asset indicator under the trading capital account is equal to the fifth indicator value of each asset indicator, it is determined that the asset indicator verification of the trading capital account has passed, and the step of obtaining the real-time transaction data and asset change flow corresponding to the trading capital account is executed.
[0018] Optionally, obtaining at least one transaction account related to the target user and synchronizing yesterday's end-of-day account assets of the transaction fund accounts associated with each of the transaction accounts include:
[0019] Obtaining an identity identifier of a target user, and obtaining at least one transaction account corresponding to the target user through the identity identifier, wherein each transaction account has an associated transaction fund account;
[0020] The account assets at the end of yesterday's day of each of the trading funds accounts are synchronized from the memory database.
[0021] Optionally, the calling of the first asset index calculation function corresponding to the transaction fund account to perform corresponding calculations according to the target real-time transaction data and the target asset change flow to obtain a second index value of each asset index under the transaction fund account includes:
[0022] Assigning a corresponding first event number to the target real-time transaction data and the target asset change flow according to the transaction business corresponding to the transaction fund account;
[0023] Determine the first event component that matches the first event number, and call the corresponding first asset indicator calculation function through the processing service corresponding to the first event component to perform calculations based on the target real-time transaction data and the target asset change flow, to obtain the second indicator value of each asset indicator under the transaction fund account.
[0024] Optionally, the calculating the first index value of each asset index under the trading fund account according to the account assets at the end of yesterday's day of the trading fund account includes:
[0025] For each of the trading fund accounts, pre-process the account assets of the trading fund account at the end of yesterday's day to obtain the target account assets of the trading fund account at the end of yesterday's day;
[0026] Assigning a corresponding second event number to the target account assets at the end of yesterday's day according to the transaction business corresponding to the transaction fund account;
[0027] Determine the second event component that matches the second event number of the target yesterday's day-end account assets, and call the corresponding second asset index calculation function through the processing service corresponding to the second event component to calculate according to the target yesterday's day-end account assets, to obtain the first index value of each asset index under the trading capital account.
[0028] Optionally, the method further includes:
[0029] For each of the trading capital accounts, if the trading capital account still has a corresponding income indicator, query multiple asset indicators related to the income indicator from various asset indicators under the trading capital account;
[0030] Calculating the index value of the income index according to the final index values of multiple asset indexes related to the income index;
[0031] If the transaction fund account has full market data, the indicator value of the profit indicator is updated using the full market data.
[0032] Optionally, the method further includes:
[0033] For each of the trading fund accounts, obtaining real-time asset data of the trading fund account, and obtaining investment designation data and real-time transaction data related to the real-time transaction data of the trading fund account;
[0034] Generate a corresponding real-time indicator table according to various asset indicators and income indicators under the trading fund account;
[0035] Output the real-time transaction data, asset change flow, real-time asset data, investment designation data, real-time transaction data and real-time indicator table of the transaction fund account.
[0036] A second aspect of the present application provides an asset calculation system, the system comprising:
[0037] A synchronization unit, used to obtain at least one transaction account related to the target user, and synchronize the account assets at the end of yesterday's day of the transaction fund account associated with each of the transaction accounts;
[0038] A first calculation unit, used for calculating a first index value of each asset index under each of the trading capital accounts according to the account assets at the end of yesterday's day of each of the trading capital accounts;
[0039] A first preprocessing unit is used to obtain the real-time transaction data and asset change flow corresponding to the transaction fund account, and preprocess the real-time transaction data and the asset change flow to obtain target real-time transaction data and target asset change flow;
[0040] A second calculation unit is used to call the first asset index calculation function corresponding to the transaction fund account to perform corresponding calculations according to the target real-time transaction data and the target asset change flow, obtain the second index value of each asset index under the transaction fund account, and determine the third index value of each asset index according to the first index value and the second index value of each asset index;
[0041] The first updating unit is used to update the third indicator value of each of the asset indicators using the corresponding full market data if there is corresponding full market data for the transaction fund account, so as to obtain the final indicator value of the asset indicator.
[0042] The third aspect of the present application provides an electronic device, comprising: a processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; and the memory is used to store a program, wherein the program is used to implement an asset calculation method as provided in the first aspect of the present application.
[0043] The fourth aspect of the present application provides a storage medium, in which computer executable instructions are stored, and the computer executable instructions are used to execute an asset calculation method provided in the first aspect of the present application.
[0044] The present application provides an asset calculation method, system, electronic device and storage medium, which obtains at least one transaction account related to a target user and synchronizes the account assets of the transaction fund account associated with each transaction account at the end of yesterday's day; calculates the first indicator value of each asset indicator under each transaction fund account according to the account assets of each transaction fund account at the end of yesterday's day; obtains the real-time transaction data and asset change flow corresponding to the transaction fund account, and pre-processes the real-time transaction data and asset change flow to obtain the target real-time transaction data and target asset change flow; calls the first asset indicator calculation function corresponding to the transaction fund account according to the target real-time transaction data and target asset change flow The change flow of the underlying assets is calculated accordingly to obtain the second indicator value of each asset indicator under the trading capital account, and the third indicator value of each asset indicator is determined based on the first indicator value and the second indicator value of each asset indicator; if the trading capital account has corresponding full market data, the third indicator value of each asset indicator is updated using the full market data to obtain the final indicator value of the asset indicator, thereby solving the problem of difficulty in meeting the needs of high-net-worth customers for calculation and viewing of real-time asset data, that is, it is difficult to support both real-time calculation and viewing during the day and end-of-day calculation and viewing, that is, it is impossible to fully and accurately realize the calculation and viewing of asset indicators of related businesses. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0046] Figure 1 A flowchart of an asset calculation method provided in an embodiment of the present application;
[0047] Figure 2 An architecture diagram of an asset calculation system provided in an embodiment of the present application;
[0048] Figure 3 An example diagram of an account system provided in an embodiment of the present application;
[0049] Figure 4 An example diagram of another asset calculation system provided in an embodiment of the present application;
[0050] Figure 5 An example diagram of a method for generating a real-time indicator table and outputting real-time transaction data of a transaction fund account, asset change flow, real-time asset data, investment designation data, real-time transaction data and a real-time indicator table provided in an embodiment of the present application;
[0051] Figure 6 A schematic diagram of the structure of an asset calculation system provided in an embodiment of the present application;
[0052] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0055] From the above background technology, it can be seen that it is difficult to meet the needs of high-net-worth customers for calculating and viewing real-time asset data and income indicators through asset summary statistics at the end of the day.
[0056] In the prior art, daily asset summary statistics can be performed, that is, the customer assets of each order system can be summarized through relevant background systems such as big data, and various asset index calculations can be completed. However, the efficiency of data cleaning and recalculation based on the big data platform is low, and it is also impossible to support both real-time calculations during the day and end-of-day calculations, that is, it is impossible to fully and accurately realize the calculation and viewing of asset indicators of related businesses.
[0057] Therefore, the embodiments of the present application provide an asset calculation method, system, electronic device and storage medium, which obtains at least one transaction account related to the target user, and synchronizes the yesterday's end-of-day account assets of the transaction funds account associated with each transaction account; calculates the first indicator value of each asset indicator under each transaction funds account according to the yesterday's end-of-day account assets of each transaction funds account; obtains the real-time transaction data and asset change flow corresponding to the transaction funds account, and pre-processes the real-time transaction data and asset change flow to obtain the target real-time transaction data and target asset change flow; calls the first asset indicator calculation function corresponding to the transaction funds account to perform corresponding calculations according to the target real-time transaction data and target asset change flow to obtain the second indicator value of each asset indicator under the transaction funds account, and determines the third indicator value of each asset indicator according to the first indicator value and the second indicator value of each asset indicator; if the transaction funds There is a corresponding full amount of market data for the gold account. The full amount of market data is used to update the third indicator value of each asset indicator to obtain the final indicator value of the asset indicator. It can not only meet the customer's calculation and viewing needs for timing asset data and income indicators, that is, it supports real-time calculation and viewing during the day and supports end-of-day calculation and viewing, thereby improving the accuracy and timeliness of asset calculation, and can reflect the change in time in real time, provide investors with real-time asset value updates, support more accurate investment strategies, and solve the current problems of weak IT construction capabilities and weak data processing capabilities of exchanges; and the technical solution provided in this application, by combining the customer's real-time transaction data and asset change flow to calculate the indicator value of the asset indicator, can help investors identify potential risks in a timely manner, so as to conduct subsequent risk assessments and timely collect corresponding risk control measures, thereby reducing potential losses, and at the same time can greatly improve user experience, satisfaction and loyalty.
[0058] See also Figure 1 , shows a flow chart of an asset calculation method provided in an embodiment of the present application, the asset calculation method is applied to an asset calculation system, such as Figure 2 As shown, the asset computing system includes a data access service layer, a memory database, a data standardization service layer, an indicator computing service layer, and an event middleware; wherein the memory database includes a source layer, a standard layer, and an indicator layer, and the event middleware and the data access server layer can be connected through a standard application programming interface (Application Programming Interface, API);
[0059] S101: Acquire at least one transaction account related to the target user, and synchronize yesterday's end-of-day account assets of the transaction fund account associated with each transaction account.
[0060] In the specific process of executing step S101, when it is desired to perform corresponding asset calculation for the target user, the asset calculation system can obtain at least one transaction account associated with the target user, and synchronize yesterday's end-of-day account assets of the transaction fund account associated with each transaction account from the memory database through the data access server.
[0061] Optionally, a data access service layer is used to obtain at least one transaction account related to the target user and synchronize yesterday's day-end account assets of the transaction capital account associated with each transaction account, specifically for: obtaining the identity of the target user, and obtaining at least one transaction account corresponding to the target user through the identity, wherein each transaction account has an associated transaction capital account; and synchronizing yesterday's day-end account assets of each transaction capital account from the in-memory database through the data access service layer.
[0062] In an embodiment of the present application, for each user in the transaction center, the transaction business handled by the user in the transaction center can be obtained, and a corresponding personal-level account is generated for each transaction business at the personal level, that is, a transaction account corresponding to each transaction business is generated; at the same time, business accounts corresponding to different transaction businesses are generated at the business level, that is, a transaction fund account associated with each transaction account is generated; for each transaction fund account, if there is a combination-level account in the corresponding transaction business, at least one fund combination for the transaction fund account associated with the transaction account corresponding to the transaction business can also be generated at the combination level, so as to generate a unified account system for each user based on the identity of each user, the transaction fund account associated with each transaction account and at least one fund associated with it.
[0063] When you want to calculate the corresponding assets for the target user, you can obtain the identity of the target user through the data access service layer, so that you can traverse the account system corresponding to the target user through the identity of the user, query at least one transaction account related to the target user from the account system of the target account, and determine the corresponding transaction fund account based on each transaction account, and finally synchronize the account assets of each transaction fund account at the end of yesterday from the memory database.
[0064] It should be noted that if Figure 3As shown, the transaction business involved in the transaction center can be digital cultural and museum assets, cultural and museum derivative property rights, cultural and art works, cultural and museum content income rights, etc. Assuming that the transaction business handled by the user in the transaction center is digital assets, digital collections, copyrights, income, etc., then at the personal level, a digital asset transaction account, a digital collection transaction account, a copyright transaction account, and an income rights transaction account can be generated for the user; at the business level, a digital asset transaction fund account associated with the digital asset transaction account is generated, a digital collection transaction fund account corresponding to the digital collection transaction account is generated, a copyright transaction fund account corresponding to the copyright transaction account is generated, and an income rights transaction fund account corresponding to the income rights transaction account is generated. Since there are combination-level accounts in the digital asset business, asset portfolio 1 and asset portfolio 2 corresponding to the digital asset transaction fund account can also be generated at the combination level; finally, the user's account system is generated based on the user's identity, each transaction account at the personal level, each transaction fund account at the business level, and each asset portfolio at the combination level.
[0065] S102: Calculate the first indicator value of each asset indicator under each trading capital account according to the account assets of each trading capital account at the end of yesterday's day.
[0066] In the specific execution process of step S102, after synchronizing to yesterday's day-end account assets corresponding to each trading capital account, for each trading capital account, yesterday's day-end account assets of the trading capital account can be pre-processed to obtain the corresponding target yesterday's day-end account assets, and the second asset indicator calculation function corresponding to the trading capital account is called to perform corresponding calculations based on the target yesterday's day-end account assets to obtain the first indicator value of each asset indicator under the trading capital account, thereby completing the initialization indicator of the trading capital account.
[0067] It should be noted that the asset indicators under the trading capital account are pre-set, and the asset indicators under the trading capital account can be the total assets of the trading capital account, other assets settled during the day, equity data, etc.
[0068] Optionally, for each trading capital account, the process of calculating the index value of each asset index under the trading capital account based on the yesterday's day-end account assets of the trading capital account can be specifically as follows: for each trading capital account, pre-processing the yesterday's day-end account assets of the trading capital account through the data standardization server layer to obtain the target yesterday's day-end account assets of the trading capital account; assigning a corresponding second event number to the target yesterday's day-end account assets according to the trading business corresponding to the trading capital account; determining the second event component that matches the second event number of the target yesterday's day-end account assets from the event middleware, and calling the corresponding second asset index calculation function through the processing service corresponding to the second event component to perform calculation based on the target yesterday's day-end account assets to obtain the first index value of each asset index under the trading capital account.
[0069] In the embodiments of the present application, Figure 4 As shown, multiple event components can be set in advance in the event middleware of the asset computing system, and a corresponding event number can be assigned to each event component. At the same time, a processing service corresponding to each event component can be set in the event processor of the asset computing system, and an asset index calculation function corresponding to each processing service can be set in the function library of the index calculation service layer of the asset computing system. Figure 4 It can be seen that the pre-set event components can be standard communication protocols, event observable components, Stream event calculation components, event storage components, rule schedulers, event governance components, etc.; processing services can be data release processing services, daily change processing services, capital flow processing services, asset transaction processing services, market change processing services, daily initialization processing services, etc.; asset indicator calculation functions can be expense calculation functions, asset calculation functions, position calculation functions, position calculation functions, cash flow calculation functions, cost calculation functions, acid dependence calculation functions, indicator calculation functions, etc.; the data annotation service layer has functions such as data dump, data cleaning, and data standardization; the memory database includes a source layer, a standard layer, and an indicator layer; the data access service layer has functions such as real-time collection and batch collection, which are not limited in this embodiment of the present application.
[0070] In some embodiments, the correspondence between each transaction business and the corresponding event number can be pre-set so that the data of yesterday's end-of-day account assets of the transaction fund account can be cleaned through the data standardization layer. After the corresponding target yesterday's end-of-day account assets are obtained, the corresponding second event number can be assigned to the target yesterday's end-of-day account assets according to the transaction business corresponding to the transaction fund account based on the correspondence between the transaction business and the event number, so as to determine the second event component matching the second event number from the event middleware, and finally call the second asset indicator calculation function corresponding to the processing service corresponding to the second event component to perform calculations based on the target yesterday's end-of-day account assets to obtain the first indicator value of each asset indicator under the transaction fund account.
[0071] In the actual application process, the target yesterday's end-of-day account assets can be published as a time to the event stream queue, and the message middleware will distribute it to the corresponding node in the computing node cluster according to the defined routing rules; when the cluster finds the corresponding event in the subscribed topic, it will distribute the task according to the current node load, so that the node that receives the task can determine the second event number corresponding to the event and the second event component corresponding to the second event number, so as to distribute the event to the corresponding second asset indicator calculation function through the processing service corresponding to the second event component in the event processor; the event listener is responsible for monitoring the status of the event, so as to call the corresponding second asset indicator calculation data according to the monitored status to calculate the first indicator value of each asset indicator under the trading fund account according to the event.
[0072] As an implementation method of an embodiment of the present application, an event listener monitors the status of an event. When the status of the event is detected to be a preset status, the second asset indicator calculation function corresponding to the event is called to calculate the first indicator value of each asset indicator under the trading fund account according to the time. The corresponding preset status can be set according to the actual application, which is not limited in this embodiment of the present application.
[0073] The above is only a preferred method provided by an embodiment of the present application for an event listener to call the second asset indicator calculation function according to the status of an event; the specific method for the event listener to call the second asset indicator calculation function according to the status of an event can be configured according to actual applications and is not limited in this embodiment of the present application.
[0074] Furthermore, in an embodiment of the present application, after obtaining the index value of each asset index under each trading fund account, each asset index under the trading fund account can be further verified, so as to determine that the asset index verification of the trading fund account passes and execute step S103.
[0075] Optionally, the process of verifying each asset indicator under the trading capital account may specifically be as follows: for each trading capital account, determine whether there is at least one asset portfolio associated with the trading capital account; for each asset portfolio, obtain yesterday's trading data corresponding to the asset portfolio; wherein yesterday's trading data includes multiple yesterday's transactions; obtain at least one yesterday's transaction data corresponding to each yesterday's transaction, and generate yesterday's settlement flow of each yesterday's transaction based on each yesterday's transaction and its yesterday's transaction data; calculate the fourth indicator value of each asset indicator under the asset portfolio based on yesterday's settlement flow of each yesterday's transaction and yesterday's end-of-day account assets of the trading capital account; wherein, the asset portfolio The multiple asset indicators of the combined asset portfolio are the same as the multiple asset indicators under the trading capital account associated with the asset portfolio; the fourth indicator values of the asset indicators of each asset portfolio are summarized to obtain the fifth indicator value of each asset indicator under the trading capital account; if the first indicator value of each asset indicator under the trading capital account is equal to the fifth indicator value of each asset indicator, it is determined that the asset indicator verification of the trading capital account has passed, and step S103 is executed; if the first indicator value of any asset indicator under the trading capital account is not equal to the fifth indicator value of its asset indicator, it is determined that the asset indicator verification of the trading capital account has not passed, the corresponding prompt information is output, and the process returns to step S101.
[0076] In the actual application process, after obtaining the yesterday's settlement flow of each yesterday's transaction corresponding to each asset portfolio, the event number corresponding to the transaction business corresponding to the transaction fund account related to the asset portfolio can be determined, so as to determine the second event component matching the second event number from the event middleware, and finally call the second asset index calculation function corresponding to the processing service corresponding to the second event component to calculate according to the yesterday's settlement flow of each yesterday's transaction corresponding to the asset portfolio and the target yesterday's end-of-day account assets of the transaction fund account, and obtain the fourth index value of each asset index under the asset portfolio. Among them, the target yesterday's end-of-day account assets of the transaction fund account are obtained by pre-processing the yesterday's end-of-day account assets of the transaction fund account.
[0077] S103: Acquire the real-time transaction data and asset change flow corresponding to the transaction fund account, and pre-process the real-time transaction data and asset change flow to obtain target real-time transaction data and target asset change flow.
[0078] In the specific process of executing step S103, for each transaction fund account, the data access service layer can call the Change Data Capture (CDC) service to collect the real-time transaction data of the transaction fund account from the target database, and provide an interface for real-time synchronization through other change data such as account changes, or monitor the asset change flow of the transaction fund account through the target database; the data standardization service layer performs data cleaning on the acquired real-time transaction data and asset change flow to obtain the target real-time transaction data and target asset change flow of the transaction fund account; wherein, CDC is a real-time data synchronization technology.
[0079] S104: Call the first asset indicator calculation function corresponding to the trading capital account to perform corresponding calculations based on the target real-time trading data and the target asset change flow to obtain the second indicator value of each asset indicator under the trading capital account, and determine the third indicator value of each asset indicator based on the first indicator value and the second indicator value of each asset indicator.
[0080] In the process of specifically executing step S104, for each trading capital account, after obtaining the target real-time trading data and target asset change flow corresponding to each trading capital account, the first asset indicator calculation function corresponding to the trading capital account can be called to perform corresponding calculations based on the target real-time trading data and the target asset change flow to obtain the second indicator value of each asset indicator under the trading capital account, and the first indicator value and the second indicator value of each asset indicator under the trading capital account are added to obtain the third indicator value of each asset indicator.
[0081] Optionally, the process of calling the first asset indicator calculation function corresponding to the trading capital account to perform corresponding calculations based on the target real-time trading data and the target asset change flow to obtain the second indicator value of each asset indicator under the trading capital account can be specifically as follows: assigning a corresponding first event number to the target real-time trading data and the target asset change flow based on the trading business corresponding to the trading capital account; determining the first event component that matches the first event number from the event middleware, and calling the corresponding first asset indicator calculation function through the processing service corresponding to the first event component to perform calculations based on the target real-time trading data and the target asset change flow to obtain the second indicator value of each asset indicator under the trading capital account.
[0082] In an embodiment of the present application, based on the correspondence between the transaction business and the event number, the target real-time transaction data and the target asset change flow can be assigned a corresponding first event number according to the transaction business corresponding to the transaction fund account, so as to determine the first event component matching the first event number from the event middleware, and finally call the first asset indicator calculation function corresponding to the processing service corresponding to the first event component to perform calculations based on the target real-time transaction data and the target asset change flow to obtain the second indicator value of each asset indicator under the transaction fund account, and finally add the first indicator value and the second indicator value of each asset indicator under the transaction fund account to obtain the third indicator value of each asset indicator.
[0083] In actual application, the indicator calculation service layer in the asset calculation system adopts a two-layer calculation structure, and the data of this layer is calculated by an extremely fast calculation engine built based on C++. Using the characteristics of the C++ language, the target real-time transaction data, target asset change flow, investment data instructions during the investment process, real-time cost exchange and other data are calculated one by one. The calculation engine can adopt a multi-node distributed design, build nodes according to different transaction fund account dimensions, and the engine node can be equipped with a memory database. The memory database is partitioned to form multiple partition calculation channels, and then the target real-time transaction data, target asset change flow, investment instruction data, and real-time cost exchange of the transaction fund account in the node are distributed to the channel corresponding to each transaction fund account to achieve high concurrency between channels. The second layer is the statistical calculation engine, which calculates the data of the personal layer and the income-related indicator data affected by the market. It is built using JAVA microservices to meet the needs of rapid expansion and indicator iteration.
[0084] Considering the requirements of orderliness, after data cleaning, the computing tasks are passed to the complex event middleware, which guarantees the timing and distribution of computing tasks. The middleware includes a standard communication protocol, a stream event computing component, an event storage component, an observable component, and a rule scheduler. Specifically, the target real-time transaction data and target asset change flow obtained after data cleaning are transmitted to the first event component corresponding to the first event number corresponding to the transaction fund account.
[0085] The event that affects the asset change is published as an event to the event stream queue, that is, the target real-time transaction data and the target asset change flow are published as an event to the event stream queue, and the message middleware is assigned to the corresponding node in the computing node cluster according to the defined routing rules; when the cluster finds the corresponding event in the subscribed topic, it will assign tasks according to the current node load, so that the node that receives the task can determine the first event number corresponding to the event and the first event component corresponding to the first event number, so as to assign the event to the corresponding first asset indicator calculation function through the processing service corresponding to the first event component in the event processor; the event listener is responsible for monitoring the status of the event, so as to call the corresponding first asset indicator calculation data according to the monitored status and calculate the second indicator value of each asset indicator under the trading fund account according to the event. The specific implementation is (taking Kafka as an example) that all computing node clusters can be agreed to throw all abnormal events into a dead letter topic, and then the listener is responsible for subscribing to the topic and performing corresponding alarm processing.
[0086] As an implementation method of an embodiment of the present application, the event listener monitors the status of the event. When the status of the event is detected to be a preset state, the first asset indicator calculation function corresponding to the event is called to calculate the second indicator value of each asset indicator under the trading fund account according to the time.
[0087] The above is only a preferred method provided by an embodiment of the present application for an event listener to call the first asset indicator calculation function according to the status of an event; the specific method for the event listener to call the first asset indicator calculation function according to the status of an event can be configured according to actual applications and is not limited in this embodiment of the present application.
[0088] It should be noted that the asset computing system includes a computing node cluster, wherein the computing node cluster includes multiple nodes; assuming that the asset computing system currently has transaction accounts corresponding to one hundred users, and there are a total of 10 nodes in the system, accounts 1-10 are assigned to node 1 (that is, node 1 needs to load all information of accounts 1-10 during initialization), accounts 11-20 are assigned to node 2, and so on, accounts 91-100 are assigned to node 10, so that during the asset calculation process, the corresponding node is matched according to the account information, and the corresponding computing task is completed by the node, wherein each node has the ability to handle all types of computing events.
[0089] In some embodiments, for each trading capital account, if there is at least one corresponding asset portfolio for the trading capital account, before calculating the second indicator value of each asset indicator of the trading capital account, the finest granularity calculation can be prioritized, that is, the sixth indicator value of each asset indicator under each asset portfolio can be prioritized; specifically, the real-time trading data and asset change flow related to the asset portfolio can be determined from the real-time flow data and asset change flow of the trading capital account, so as to perform corresponding data cleaning on the real-time trading data and asset change flow related to the asset portfolio, and obtain the target real-time trading data and target asset change flow of the asset portfolio, so as to call the first asset indicator calculation function corresponding to the trading capital account to perform corresponding calculations according to the target real-time trading data and target asset change flow of the asset portfolio, and obtain the sixth indicator value of each asset indicator under the asset portfolio. Among them, calling the first asset indicator calculation function corresponding to the trading capital account to perform corresponding calculations according to the target real-time trading data of the asset portfolio and the target asset change flow to obtain the sixth indicator value of each asset indicator under the asset portfolio is the same as calling the first asset indicator calculation function corresponding to the trading capital account to perform corresponding calculations according to the target real-time trading data and the target asset change flow to obtain the second indicator value of each asset indicator under the trading capital account. Please refer to the corresponding part in the above content, and the embodiment of this application will not be repeated here.
[0090] Furthermore, in an embodiment of the present application, for each trading capital account, if the trading capital account also has a corresponding income indicator, multiple asset indicators related to the income indicator are queried from the various asset indicators under the trading capital account; based on the final indicator values of the multiple asset indicators related to the income indicator, the indicator value of the income indicator is calculated.
[0091] S105: Determine whether there is corresponding full market data for the trading capital account; if there is corresponding full market data for the trading capital account, execute step S106; if there is no corresponding full market data for the trading capital account, execute step S107.
[0092] In the specific process of executing step S105, for each trading capital account, after obtaining the indicator value of each asset indicator under each trading capital account, it is possible to further determine the trading business to which the trading account corresponding to the trading asset account belongs, and judge whether there is full market data for the trading business at present; if so, it is determined that the corresponding full market data exists for the trading capital account, and step S106 is executed; if not, it is determined that the corresponding full market data does not exist for the trading capital account, and step S107 is executed.
[0093] It should be noted that the full amount of market data refers to the dynamic changes in prices, trading volumes and other relevant indicator data of various investment products (digital cultural and museum assets, cultural audio-visual copyrights, cultural data assets, cultural and museum content IP income rights, etc.) involved in this application, which is not limited to this embodiment of the present application.
[0094] S106: Use the full amount of market data to update the third indicator value of each asset indicator to obtain the final indicator value of the asset indicator.
[0095] In the specific process of executing step S106, when it is determined that there is corresponding full market data for the trading capital account, the statistical calculation engine in the indicator calculation service layer can be used to calculate the sixth indicator value of each asset indicator based on the full market data of the trading capital account, and finally the sixth indicator value of each asset indicator is added to the third indicator value to obtain the final indicator value of each asset indicator.
[0096] Furthermore, in the embodiments of the present application, for each trading capital account, it can be further determined whether there is a profit indicator under the trading capital account; if the trading capital account still has a corresponding profit indicator, multiple asset indicators related to the profit indicator are queried from the various asset indicators under the trading capital account; the indicator value of the profit indicator is calculated based on the final indicator values of the multiple asset indicators related to the profit indicator; and when the trading capital account has full market data, the indicator value of the profit indicator is updated using the full market data.
[0097] It should be noted that the multiple asset indicators related to the income indicator may include a cumulative income asset indicator and an average weighted asset indicator. The multiple asset indicators related to the income indicator can be set according to actual applications, and this embodiment of the present application does not limit this.
[0098] As an implementation method of the embodiment of the present application, the cumulative income (final indicator value) of the cumulative income asset indicator can be divided by the final indicator value (average weighted cost) of the average weighted cost asset indicator to obtain the indicator value of the income indicator.
[0099] It should be noted that the cumulative income of the cumulative income asset indicator is the total profit and loss after the initial position is established, among which, the indicator value of the daily profit and loss asset indicator (the daily profit and loss) is calculated as follows: the latest net assets - the net assets at the beginning of the period - the amount transferred in on the day + the amount transferred out on the day = the total profit and loss; among which, the latest net assets = the number of positions held * the latest price, (the latest net assets - the net assets at the beginning of the period) is the first indicator value of the cumulative income asset indicator calculated based on the account assets at the end of the day of the corresponding trading capital account yesterday; (- the amount transferred in on the day + the amount transferred out on the day) is the second indicator value of the cumulative income asset indicator calculated based on the target real-time trading data of the corresponding trading capital account and the target asset change flow.
[0100] Specifically, when the full amount of market data exists in the trading capital account, the indicator value of the profit indicator is updated according to the full amount of market data of the trading capital account using the statistical calculation engine in the indicator calculation service layer; when the full amount of market data does not exist in the trading capital account, the indicator value of the profit indicator is not updated.
[0101] Furthermore, in an embodiment of the present application, for each trading fund account, real-time asset data of the trading fund account is obtained, as well as investment designated data and real-time transaction data related to the real-time trading data of the trading fund account; a corresponding real-time indicator table is generated based on each asset indicator and income indicator under the trading fund account; and the real-time trading data, asset change flow, real-time asset data, investment designated data, real-time transaction data and real-time indicator table of the trading fund account are output.
[0102] Specifically, the method of generating a real-time indicator table and outputting real-time transaction data of a transaction fund account, asset change flow, real-time asset data, investment designated data, real-time transaction data and a real-time indicator table is as follows: Figure 5 As shown:
[0103] A1: Obtain real-time transaction data and asset change flow of the transaction fund account through CDC or interface;
[0104] A2: Use real-time transaction data and asset change flow to calculate the index value of each asset index under the trading capital account and the index of the income index under the trading capital account;
[0105] A3: Output the real-time transaction data, asset change flow, real-time asset data, investment designated data, real-time transaction data and real-time indicator table of the transaction fund account corresponding to the transaction fund account;
[0106] A4: Use the market plug-in to access the full market data corresponding to the trading fund account;
[0107] A5: Use the full market data to update the third indicator value of each asset indicator under the trading fund account and the indicator value of the income indicator under the trading fund account.
[0108] S107: Using the third indicator value of each asset indicator under the transaction fund account as the final indicator value of each asset indicator.
[0109] In the specific process of executing step S107, when it is determined that there is no corresponding full market data for the trading capital account, the third indicator value of each asset indicator under the trading capital account can be directly used as the final indicator value of each asset indicator.
[0110] The present application provides an asset calculation method, system, electronic device and storage medium, which obtains at least one transaction account related to a target user and synchronizes yesterday's end-of-day account assets of a transaction fund account associated with each transaction account; for each transaction fund account, calculates a first indicator value of each asset indicator under the transaction fund account according to yesterday's end-of-day account assets of the transaction fund account; obtains real-time transaction data and asset change flow corresponding to the transaction fund account, and pre-processes the real-time transaction data and asset change flow to obtain target real-time transaction data and target asset change flow; calls the first asset indicator calculation function corresponding to the transaction fund account to perform corresponding calculations based on the target real-time transaction data and target asset change flow to obtain a second indicator value of each asset indicator under the transaction fund account, and determines a third indicator value of each asset indicator based on the first indicator value and the second indicator value of each asset indicator; if the transaction There is a corresponding full amount of market data in the capital account. The full amount of market data is used to update the third indicator value of each asset indicator to obtain the final indicator value of the asset indicator. This can not only meet the customer's calculation and viewing needs for timing asset data and income indicators, that is, it supports real-time calculation and viewing during the day and supports end-of-day calculation and viewing, thereby improving the accuracy and timeliness of asset calculation, and can reflect changes in time in real time, provide investors with real-time asset value updates, support more accurate investment strategies, and solve the current problems of weak IT construction capabilities and weak data processing capabilities of exchanges; and the technical solution provided in this application, by combining the customer's real-time transaction data and asset change flow to calculate the indicator value of the asset indicator, can help investors identify potential risks in a timely manner, so as to conduct subsequent risk assessments and timely collect corresponding risk control measures, thereby reducing potential losses, and at the same time can greatly improve user experience, satisfaction and loyalty.
[0111] Based on the asset calculation method provided in the above embodiment of the present application, the embodiment of the present application also provides an asset calculation system, such as Figure 6 As shown, the asset calculation system includes:
[0112] The synchronization unit 61 is used to obtain at least one transaction account related to the target user, and synchronize the account assets at the end of yesterday's day of the transaction fund account associated with each transaction account;
[0113] A first calculation unit 62, used to calculate a first index value of each asset index under each trading capital account according to the account assets of each trading capital account at the end of the previous day;
[0114] The first preprocessing unit 63 is used to obtain the real-time transaction data and asset change flow corresponding to the transaction fund account, and preprocess the real-time transaction data and asset change flow to obtain target real-time transaction data and target asset change flow;
[0115] The second calculation unit 64 is used to call the first asset index calculation function corresponding to the trading capital account to perform corresponding calculations according to the target real-time trading data and the target asset change flow, obtain the second index value of each asset index under the trading capital account, and determine the third index value of each asset index according to the first index value and the second index value of each asset index;
[0116] The first updating unit 65 is used to update the third indicator value of each asset indicator by using the full amount of market data if there is corresponding full amount of market data for the transaction fund account, so as to obtain the final indicator value of the asset indicator.
[0117] The specific principles and execution processes of each unit in the asset calculation system disclosed in the above embodiment of the present application are the same as the asset calculation method disclosed in the above embodiment of the present application. Please refer to the corresponding parts of the asset calculation method disclosed in the above embodiment of the present application, and no further details will be given here.
[0118] The present application provides an asset calculation method, system, electronic device and storage medium, which obtains at least one transaction account related to a target user and synchronizes yesterday's end-of-day account assets of a transaction fund account associated with each transaction account; for each transaction fund account, calculates a first indicator value of each asset indicator under the transaction fund account according to yesterday's end-of-day account assets of the transaction fund account; obtains real-time transaction data and asset change flow corresponding to the transaction fund account, and pre-processes the real-time transaction data and asset change flow to obtain target real-time transaction data and target asset change flow; calls the first asset indicator calculation function corresponding to the transaction fund account to perform corresponding calculations based on the target real-time transaction data and target asset change flow to obtain a second indicator value of each asset indicator under the transaction fund account, and determines a third indicator value of each asset indicator based on the first indicator value and the second indicator value of each asset indicator; if the transaction There is a corresponding full amount of market data in the capital account. The full amount of market data is used to update the third indicator value of each asset indicator to obtain the final indicator value of the asset indicator. This can not only meet the customer's calculation and viewing needs for timing asset data and income indicators, that is, it supports real-time calculation and viewing during the day and supports end-of-day calculation and viewing, thereby improving the accuracy and timeliness of asset calculation, and can reflect changes in time in real time, provide investors with real-time asset value updates, support more accurate investment strategies, and solve the current problems of weak IT construction capabilities and weak data processing capabilities of exchanges; and the technical solution provided in this application, by combining the customer's real-time transaction data and asset change flow to calculate the indicator value of the asset indicator, can help investors identify potential risks in a timely manner, so as to conduct subsequent risk assessments and timely collect corresponding risk control measures, thereby reducing potential losses, and at the same time can greatly improve user experience, satisfaction and loyalty.
[0119] Optionally, the asset calculation system provided in the embodiment of the present application further includes:
[0120] A first judgment unit is used to judge whether each transaction fund account has at least one associated asset portfolio;
[0121] A first acquisition unit is configured to acquire yesterday's transaction data corresponding to each asset combination if the transaction fund account is associated with at least one asset combination; wherein yesterday's transaction data includes a plurality of yesterday's transactions;
[0122] The second acquisition unit is used to acquire at least one yesterday's transaction data corresponding to each yesterday's transaction, and generate yesterday's settlement flow of each yesterday's transaction according to each yesterday's transaction and its yesterday's transaction data;
[0123] The third calculation unit is used to calculate the fourth index value of each asset index under the asset portfolio according to the yesterday's delivery flow of each yesterday's transaction and the target yesterday's end-of-day account assets of the trading fund account; wherein the multiple asset indexes of the asset portfolio are the same as the multiple asset indexes under the trading fund account associated with the asset portfolio;
[0124] A summarizing unit, used to summarize the fourth index value of the asset index of each asset portfolio to obtain the fifth index value of each asset index under the transaction fund account;
[0125] The first determination unit is used to determine that the asset indicator verification of the trading capital account has passed if the first indicator value of each asset indicator under the trading capital account is equal to the fifth indicator value of each asset indicator, and execute the first preprocessing unit.
[0126] Optional, synchronization unit, including:
[0127] Obtain at least one trading account related to the target user, and synchronize the account assets of the trading fund account associated with each trading account at the end of yesterday, including:
[0128] A third acquisition unit is used to acquire an identity identifier of a target user, and acquire at least one transaction account corresponding to the target user through the identity identifier, wherein each transaction account has an associated transaction fund account;
[0129] The synchronization subunit is used to synchronize the account assets of each trading fund account at the end of the previous day from the memory database.
[0130] Optionally, the second computing unit includes:
[0131] A first assigning unit is used to assign a corresponding first event number to the target real-time transaction data and the target asset change flow according to the transaction business corresponding to the transaction fund account;
[0132] The fourth calculation unit is used to determine the first event component that matches the first event number, and call the corresponding first asset indicator calculation function through the processing service corresponding to the first event component to perform calculations based on the target real-time transaction data and the target asset change flow to obtain the second indicator value of each asset indicator under the transaction fund account.
[0133] Optionally, the first computing unit includes:
[0134] The second processing unit is used to pre-process the account assets of the trading fund account at the end of yesterday for each trading fund account, so as to obtain the target account assets of the trading fund account at the end of yesterday;
[0135] The second assigning unit is used to assign the corresponding second event number to the target yesterday's end-of-day account assets according to the transaction business corresponding to the transaction fund account;
[0136] The fifth calculation unit is used to determine the second event component that matches the second event number of the target yesterday's day-end account assets, and call the corresponding second asset indicator calculation function through the processing service corresponding to the second event component to calculate according to the target yesterday's day-end account assets, to obtain the first indicator value of each asset indicator under the trading capital account.
[0137] Optionally, the asset calculation system provided in the embodiment of the present application further includes:
[0138] A query unit, for querying, for each trading capital account, a plurality of asset indicators related to the income indicator from various asset indicators under the trading capital account if the trading capital account still has a corresponding income indicator;
[0139] a sixth calculation unit, configured to calculate an index value of the income index according to the final index values of a plurality of asset indexes related to the income index;
[0140] The second updating unit is used to update the indicator value of the profit indicator by using the full amount of market data if there is full amount of market data in the trading fund account.
[0141] Optionally, the asset calculation system provided in the embodiment of the present application further includes:
[0142] A fourth acquisition unit is used to acquire, for each trading fund account, real-time asset data of the trading fund account, and investment designated data and real-time transaction data related to the real-time transaction data of the trading fund account;
[0143] The indicator table generating unit is used to generate a corresponding real-time indicator table according to various asset indicators and income indicators under the trading fund account;
[0144] The output unit is used to output the real-time transaction data of the transaction fund account, asset change flow, real-time asset data, investment designation data, real-time transaction data and real-time indicator table.
[0145] The present application also provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, any of the above-mentioned asset calculation method embodiments can be implemented.
[0146] The present application also provides an electronic device, such as Figure 7 As shown, the device includes a processor 701 and a memory 702; a program is stored in the memory; the processor calls the program in the memory to execute any of the above-mentioned asset calculation method embodiments.
[0147] The processor in this article can be a CPU of a terminal, or an MCU integrated in the terminal, or a combination of a CPU and an MCU. Moreover, the processor includes a kernel, which calls a corresponding program from a memory, and one or more kernels can be set.
[0148] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0149] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0150] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0151] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
[0152] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for calculating assets, characterized in that: Applied to an asset calculation system, the method comprises: Acquire at least one transaction account related to the target user, and synchronize the account assets at the end of yesterday's day of the transaction fund account associated with each of the transaction accounts; Calculate the first index value of each asset index under each of the trading capital accounts according to the account assets of each of the trading capital accounts at the end of yesterday's day; Acquire the real-time transaction data and asset change flow corresponding to the transaction fund account, and pre-process the real-time transaction data and the asset change flow to obtain target real-time transaction data and target asset change flow; Calling the first asset index calculation function corresponding to the transaction fund account to perform corresponding calculations according to the target real-time transaction data and the target asset change flow, obtaining the second index value of each asset index under the transaction fund account, and determining the third index value of each asset index according to the first index value and the second index value of each asset index; If the transaction fund account has corresponding full market data, the full market data is used to update the third indicator value of each asset indicator to obtain the final indicator value of the asset indicator.
2. The method according to claim 1, characterized in that: The method further comprises: Determining whether each of the transaction funds accounts has at least one associated asset portfolio; If the transaction fund account is associated with at least one asset portfolio, for each asset portfolio, yesterday's transaction data corresponding to the asset portfolio is obtained; wherein the yesterday's transaction data includes a plurality of yesterday's transactions; Obtain at least one yesterday's transaction data corresponding to each of the yesterday's transactions, and generate yesterday's settlement flow of each of the yesterday's transactions according to each of the yesterday's transactions and their yesterday's transaction data; Calculating the fourth index value of each asset index under the asset portfolio according to yesterday's delivery records of each of the yesterday's transactions and yesterday's end-of-day account assets of the trading fund account; wherein the multiple asset indexes of the asset portfolio are the same as the multiple asset indexes under the trading fund account associated with the asset portfolio; Aggregating the fourth index values of the asset indexes of the respective asset combinations to obtain the fifth index value of each asset index under the transaction fund account; If the first indicator value of each asset indicator under the trading capital account is equal to the fifth indicator value of each asset indicator, it is determined that the asset indicator verification of the trading capital account has passed, and the step of obtaining the real-time transaction data and asset change flow corresponding to the trading capital account is executed.
3. The method according to claim 1, characterized in that The obtaining of at least one transaction account related to the target user and synchronizing yesterday's end-of-day account assets of the transaction fund accounts associated with each of the transaction accounts include: Obtaining an identity identifier of a target user, and obtaining at least one transaction account corresponding to the target user through the identity identifier, wherein each transaction account has an associated transaction fund account; The account assets at the end of yesterday's day of each of the trading funds accounts are synchronized from the memory database.
4. The method according to claim 1, characterized in that The calling of the first asset index calculation function corresponding to the transaction fund account performs corresponding calculations according to the target real-time transaction data and the target asset change flow to obtain a second index value of each asset index under the transaction fund account, including: Assigning a corresponding first event number to the target real-time transaction data and the target asset change flow according to the transaction business corresponding to the transaction fund account; Determine the first event component that matches the first event number, and call the corresponding first asset indicator calculation function through the processing service corresponding to the first event component to perform calculations based on the target real-time transaction data and the target asset change flow, to obtain the second indicator value of each asset indicator under the transaction fund account.
5. The method according to claim 1, characterized in that The calculating the first index value of each asset index under the trading fund account according to the account assets at the end of yesterday's day of the trading fund account includes: For each of the trading fund accounts, pre-process the account assets of the trading fund account at the end of yesterday's day to obtain the target account assets of the trading fund account at the end of yesterday's day; Assigning a corresponding second event number to the target account assets at the end of yesterday's day according to the transaction business corresponding to the transaction fund account; Determine the second event component that matches the second event number of the target yesterday's day-end account assets, and call the corresponding second asset index calculation function through the processing service corresponding to the second event component to perform calculations based on the target yesterday's day-end account assets to obtain the first index value of each asset index under the trading capital account.
6. The method according to claim 1, characterized in that The method further comprises: For each of the trading capital accounts, if the trading capital account still has a corresponding income indicator, query multiple asset indicators related to the income indicator from various asset indicators under the trading capital account; Calculating the index value of the income index according to the final index values of multiple asset indexes related to the income index; If the transaction fund account has full market data, the indicator value of the profit indicator is updated using the full market data.
7. The method according to claim 1, characterized in that The method further comprises: For each of the trading fund accounts, obtaining real-time asset data of the trading fund account, and obtaining investment designation data and real-time transaction data related to the real-time transaction data of the trading fund account; Generate a corresponding real-time indicator table according to various asset indicators and income indicators under the trading fund account; Output the real-time transaction data, asset change flow, real-time asset data, investment designation data, real-time transaction data and real-time indicator table of the transaction fund account.
8. An asset calculation system, characterized in that: The system comprises: A synchronization unit, used to obtain at least one transaction account related to the target user, and synchronize the account assets at the end of yesterday's day of the transaction fund account associated with each of the transaction accounts; A first calculation unit, used for calculating a first index value of each asset index under each of the trading capital accounts according to the account assets at the end of yesterday's day of each of the trading capital accounts; A first preprocessing unit is used to obtain the real-time transaction data and asset change flow corresponding to the transaction fund account, and preprocess the real-time transaction data and the asset change flow to obtain target real-time transaction data and target asset change flow; A second calculation unit is used to call the first asset index calculation function corresponding to the transaction fund account to perform corresponding calculations according to the target real-time transaction data and the target asset change flow, obtain the second index value of each asset index under the transaction fund account, and determine the third index value of each asset index according to the first index value and the second index value of each asset index; The first updating unit is used to update the third indicator value of each asset indicator by using the corresponding full market data if there is corresponding full market data for the transaction fund account, so as to obtain the final indicator value of the asset indicator.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; The memory is used to store a program, and the program is used to implement an asset calculation method as described in any one of claims 1-7.
10. A storage medium, characterized in that: The storage medium stores computer executable instructions, and the computer executable instructions are used to execute an asset calculation method as described in any one of claims 1-7.
Citation Information
Patent Citations
Implementation method and system for real-time computing service
CN106681781A
Method and device for determining liquidity indexes of business assets
CN108804166A
Data processing method, device and equipment
CN115018601A
Data processing method and device, equipment and storage medium
CN115630076A