Asset data processing method and system, electronic equipment and storage medium

Through the collaborative work of the first server and the second server, the problem of inaccurate asset data synchronization in the multi-market 24-hour trading system is solved, asset data processing at any time and multi-market 24-hour uninterrupted transaction clearing are realized, which improves the user experience. experience.

CN118735676APending Publication Date: 2024-10-01HUNAN FUMI INFORMATION TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202310331641.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology cannot support the synchronization of asset data in a multi-market 24-hour trading system, resulting in poor user experience and the inability to achieve daily liquidation of assets at any time.

Method used

The first server and the second server work together to receive user operation requests, obtain and process bill information, determine the ending balance at the liquidation moment, and calculate the opening balance of the next liquidation cycle based on this, supporting asset data processing and multi-processing at any time. The market has 24-hour non-stop trading and clearing.

Benefits of technology

It achieves accurate synchronization and clearing of asset data, supports 24-hour trading in multiple markets, and ensures accurate processing of asset data after the end of the trading day, even if the transaction is in progress.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735676A_ABST
    Figure CN118735676A_ABST
Patent Text Reader

Abstract

The invention discloses an asset data processing method and system, electronic equipment and a storage medium. The method is executed by a first server and comprises the steps of receiving at least one operation request sent by a user terminal at any moment of a current clearing period; corresponding operation is completed in response to each operation request, bill information corresponding to each successful operation is obtained, and the bill information at least comprises an operation moment, an operation amount and an operation type; any clearing moment in the current clearing period sent by the second server and the end-of-period balance corresponding to the clearing moment are received; and determining the initial balance of the next clearing period based on the bill information corresponding to all successful operations in the current clearing period, the clearing moment and the final balance corresponding to the clearing moment. The method supports liquidation at any time, can accurately synchronize the end-of-period assets to the first server, completes the calculation of the end-of-period balance of the next liquidation period, and supports 24-hour uninterrupted transaction and liquidation of multiple markets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an asset data processing method, system, electronic device and storage medium. Background Art

[0002] The brokerage system consists of two parts: the trading system and the clearing system. The trading system needs to report all transactions and deposits and withdrawals of users to the clearing system. After the daily cut, the clearing system will clear the user's assets for the day, and then transmit the asset data at the end of the day to the trading system. The trading system will use the assets at the end of the day of the clearing system as the assets at the beginning of the second trading day. For traditional brokerages in a single market, they only trade for a few hours a day, and the funds will not change after the market closes. For example, if the clearing system clears the cash of account A at the end of the day to be 1,000 yuan, then after synchronization to the trading system, the trading system will update the cash amount of account A with 1,000 yuan.

[0003] For a multi-market 24-hour brokerage system, assets are changing all the time, and changes may be initiated from the trading system or the clearing system. The existing end-of-day asset synchronization method cannot support multi-market 24-hour trading, and the user experience is poor. In addition, the clearing system generally performs daily cuts on users' assets at 0:00 on natural days, and cannot perform daily cuts and clearing of users' assets at any time. Summary of the invention

[0004] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide an asset data processing method, system, electronic device and storage medium.

[0005] In a first aspect, an embodiment of the present application provides an asset data processing method, which is executed by a first server and includes:

[0006] At any time in the current clearing cycle, receiving at least one operation request sent by a user terminal;

[0007] In response to each of the operation requests, a corresponding operation is completed. If the operation is successful, the billing information corresponding to each successful operation is obtained, and the billing information at least includes the operation time, the operation amount and the operation type;

[0008] Receiving any settlement time in the current settlement cycle and the ending balance corresponding to the settlement time sent by the second server; wherein the ending balance corresponding to the settlement time is determined by settlement according to the billing information corresponding to each successful operation;

[0009] The beginning balance of the next settlement cycle is determined based on the billing information corresponding to all successful operations in the current settlement cycle, the settlement time, and the ending balance corresponding to the settlement time.

[0010] In a second aspect, an asset data processing method is provided, the method being executed by a second server, the method comprising:

[0011] At any time during the current settlement cycle, obtain the billing information corresponding to each successful operation, wherein the billing information includes at least the operation time, operation amount and operation type corresponding to the successful operation;

[0012] Determining a second asset value of the user account according to bill information corresponding to each successful operation;

[0013] A settlement time is randomly selected in the current settlement cycle, and the ending balance corresponding to the settlement time is determined according to the bill information corresponding to all successful operations and the corresponding second asset value;

[0014] The settlement time in the current settlement cycle and the ending balance corresponding to the settlement time are sent to the first server.

[0015] In a third aspect, an asset data processing system is provided, comprising: a user terminal, a first server and a second server; wherein:

[0016] The user terminal is used to send at least one operation request to the first server at any time in the current settlement cycle;

[0017] a first server, configured to receive at least one operation request sent by the user terminal, complete a corresponding operation in response to each operation request, and if the operation is successful, obtain billing information corresponding to each successful operation, wherein the billing information includes at least an operation time, an operation amount, and an operation type;

[0018] The second server is used to send to the first server any settlement time in the current settlement cycle and the ending balance corresponding to the settlement time; wherein the ending balance corresponding to the settlement time is determined by settlement according to the bill information corresponding to each successful operation;

[0019] The first server is further used to determine the beginning balance of the next settlement cycle based on the billing information corresponding to all successful operations in the current settlement cycle, the settlement time, and the ending balance corresponding to the settlement time.

[0020] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the asset data processing method provided in any embodiment of the present application are implemented.

[0021] In a fifth aspect, an embodiment of the present application 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 the asset data processing method provided in any embodiment of the present application are implemented.

[0022] The asset data processing method, system, electronic device and storage medium provided in the embodiment of the present application are executed by the first server in the asset data processing method, support liquidation at any time, and determine the end-of-period balance corresponding to the liquidation time, and can accurately synchronize the end-of-period assets to the first server to complete the accurate calculation of the beginning balance of the next liquidation cycle. The asset data processing method of the present application not only supports the transaction liquidation of a single market, but also supports 24-hour uninterrupted trading and liquidation of multiple categories and multiple markets. After the end of the trading day, the clearing system completes the end-of-day asset liquidation of the day, and the end-of-day asset data is synchronized to the trading system. Even if the transaction is in progress, the trading system can handle it correctly. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0024] Figure 1 An exemplary flow chart of the asset data processing method provided in the embodiment of the present application;

[0025] Figure 2 A schematic diagram of a first type of information interaction between a user terminal, a first server and a second server provided in an embodiment of the present application;

[0026] Figure 3 A schematic diagram of a second information interaction between a user terminal, a first server and a second server provided in an embodiment of the present application;

[0027] Figure 4 An exemplary flow chart of a method for determining the beginning balance of the next settlement cycle provided in an embodiment of the present application;

[0028] Figure 5 An exemplary structural diagram of an asset data processing system provided in an embodiment of the present application;

[0029] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0032] The definitions of technical terms involved in the embodiments of this application are as follows:

[0033] Clearing cycle: refers to a trading cycle of the market. For example, for a 24-hour trading market, a trading cycle can be from 0:00 on the current day to 0:00 on the next day, or from 10:00 on the current day to 10:00 on the next day. For another example, for single market transactions, a trading cycle can be from 9:00 to 15:00.

[0034] The beginning balance of the current liquidation cycle is the actual assets of the user account from the end of the previous liquidation cycle to the beginning of the current liquidation cycle. For example, the beginning assets of the current liquidation cycle may be the beginning assets of the day.

[0035] The ending balance of the current liquidation cycle is the actual assets of the user's account after the current liquidation cycle closes. For example, the ending balance of the current liquidation cycle is the ending balance of the day.

[0036] The opening balance of the next settlement cycle: includes the ending balance of the current settlement cycle and the sum of the fund flow from the end of the current settlement cycle to the beginning of the next settlement cycle. For example, the opening balance of the next settlement cycle is the beginning balance of the next day, and the beginning balance of the next day = the ending balance of the current day + the sum of fund flow.

[0037] For a multi-market 24-hour brokerage system, assets are changing all the time, and changes may be initiated from the trading system or the clearing system. If the clearing system performs clearing at 23:00 based on transactions before 23:00, the clearing result is that the cash in account A is 1,000 yuan, and account A has a transaction of 500 yuan at 23:15 on the trading system side (such as a buy order amount of 500 yuan). When synchronizing the end-of-day assets after the clearing is completed at 23:30, the trading system updates the cash balance of account A with 1,000 yuan as the beginning balance of the next day. At this time, the beginning balance of the next day is incorrect, because account A has already bought 500 yuan during the clearing period. The final beginning balance of the next day is no longer 1,000, but the difference between the balance obtained by the clearing system and the buy order amount is used as the beginning balance of the next day, that is, 1,000-500=500 yuan, and 500 yuan is used as the beginning balance of the next day. Therefore, the existing asset data synchronization is not accurate.

[0038] To solve the problem of inaccurate asset data synchronization, one of the existing solutions is to prohibit all user fund activities and trading behaviors in a time period to ensure that there will be no changes in user assets during the clearing period, but it cannot support multi-market trading 24 hours a day, and the user experience is not good enough. Another solution is to use the trading system to record the time when each transaction occurs, and at 0:00 daily cut, the trading system will add the end-of-day balance of the clearing system to the transaction fund flow that occurs after 0:00, which is equal to the beginning-of-day balance of the trading system the next day; however, daily cuts can only be made at 0:00 on natural days, and daily cuts cannot be made at any time, which leads to poor user experience.

[0039] To solve the above technical problems, refer to Figure 1 The flowchart of an asset data processing method shown in the embodiment of the present application is shown in the figure. The embodiment of the present application provides an asset data processing method, which is executed by a first server and includes the following steps:

[0040] S110: receiving at least one operation request sent by a user terminal at any time in the current settlement cycle;

[0041] S120: completing the corresponding operation in response to each of the operation requests, and if the operation is successful, obtaining billing information corresponding to each successful operation, wherein the billing information includes at least the operation time, the operation amount and the operation type;

[0042] S130: receiving any settlement time in the current settlement cycle and the ending balance corresponding to the settlement time sent by the second server; wherein the ending balance corresponding to the settlement time is determined by settlement according to the bill information corresponding to each successful operation;

[0043] S140: Determine the beginning balance of the next settlement cycle based on the billing information corresponding to all successful operations in the current settlement cycle, the settlement time, and the ending balance corresponding to the settlement time.

[0044] Specifically, the first server can be a server of a trading system in a stock trading system, and the second server can be a server of a clearing system in the stock trading system. The asset data processing method provided in the embodiment of the present application can support the second server to perform clearing at any time, and determine the end-of-period balance corresponding to the clearing time, and can accurately synchronize the end-of-period assets to the first server, and complete the accurate calculation of the beginning balance of the next clearing cycle. The asset data processing method of the present application not only supports the transaction clearing of a single market, but also supports 24-hour uninterrupted trading and clearing of multiple categories and multiple markets. After the end of the trading day, the clearing system completes the end-of-day asset clearing of the day, and the end-of-day asset data is synchronized to the trading system. Even if the transaction is in progress, the trading system can handle it correctly.

[0045] In step S110, at any time in the current settlement cycle, the first server receives at least one operation request sent by the user terminal, and the operation request may be a buy order (buy stocks), a sell order (sell stocks), a deposit (deposit), a withdrawal (withdrawal) or other operation requests.

[0046] In some implementations, in step S120, in response to each of the operation requests, a corresponding operation is completed, and if the operation is successful, billing information corresponding to each successful operation is obtained, including:

[0047] If the operation request is a buy order or a sell order request, completing the corresponding operation in response to the buy order or the sell order request, and if the operation is successful, recording the bill information corresponding to the successful operation, and sending the bill information corresponding to the successful operation to the second server;

[0048] If the operation request is a request to deposit or withdraw funds, in response to the request to deposit or withdraw funds, if the operation is successful, a bookkeeping request is sent to the second server, and bill information corresponding to the successful bookkeeping operation sent by the second server is received.

[0049] Specifically, there are two ways for the first server to obtain the billing information corresponding to each successful operation. The first is to directly perform the operation according to the operation request sent by the received user terminal and generate the corresponding billing information; the second is to send a request to the second server according to the operation request sent by the received user terminal, and the second server generates the corresponding billing information, and then the second server sends the corresponding billing information to the first server.

[0050] For example, Figure 2 As shown, the first method for the first server to obtain the billing information corresponding to each successful operation is: if the operation request sent by the user terminal is a buy order or a sell order request; the first server completes the corresponding operation in response to the buy order or the sell order request, and if the operation is successful, the billing information corresponding to the successful operation is recorded, and the billing information includes the operation time (bizTime) corresponding to the successful buy order or the sell order transaction, the operation type, and the buy order amount or the sell order amount, and the billing information corresponding to the successful operation is sent to the second server. Therefore, for the same operation request sent by the user terminal, an operation record will be retained in the first server and the second server, that is, the operation time, operation amount and operation type corresponding to the same successful operation are recorded.

[0051] For example, Figure 3As shown, the second method for the first server to obtain the billing information corresponding to each successful operation is: if the operation request sent by the user terminal is a deposit or withdrawal request; the first server responds to the deposit or withdrawal request, if the deposit or withdrawal is successful, the first server sends a bookkeeping request to the second server; the second server responds to the bookkeeping request to bookkeeping, if the bookkeeping is successful, the corresponding billing information is generated, the billing information includes the operation time (bizTime) corresponding to the successful bookkeeping, the deposit amount or withdrawal amount, and the operation type, and the billing information corresponding to the successful bookkeeping operation is sent to the first server. Therefore, for the same operation request sent by the user terminal, an operation record will be retained in the first server and the second server, that is, the operation time, operation amount and operation type corresponding to the same successful operation are recorded.

[0052] It should be noted that in step S120, the first server completes the corresponding operation in response to each operation request. If the operation is unsuccessful, the corresponding billing information will not be generated, and the corresponding billing information will not be obtained from the second server.

[0053] In some embodiments, the method further comprises:

[0054] At the end time of the previous settlement cycle, determine the asset balance of the user account at the end time, receive at least one operation request sent by the user terminal at any time in the current settlement cycle, obtain the billing information corresponding to each successful operation, and update the asset balance to the first asset value based on the obtained billing information corresponding to each successful operation.

[0055] Specifically, in the embodiments of the present application, Figure 2-3 As shown, in the current clearing cycle, the first server can update the asset balance of the user account according to the bill information corresponding to each successful operation obtained. Therefore, in the current clearing cycle, the first server can generate the operation time corresponding to all successful operations, as well as the operation amount corresponding to each operation time and the user's asset balance (first asset value), and the operation type, operation time, operation amount, and asset balance (first asset value) can be recorded in the form of a fund flow sheet.

[0056] During the current settlement cycle, for the first operation request received by the first server, when the first operation request is a buy order or a request to withdraw funds, the buy amount or the withdrawal amount is subtracted from the end-of-period balance, and the difference between the two is determined as the first asset value in the user account; or, when the first operation request is a sell order or a request to deposit funds, the sell amount or the deposit amount is added to the end-of-period balance, and the sum of the two is determined as the first asset value in the user account.

[0057] For other operation requests (such as the second or third) received by the first server, when the operation request is a purchase order or a withdrawal request, the purchase amount or the withdrawal amount is subtracted from the first asset value corresponding to the previous successful operation, and the difference between the two is used as the first asset value corresponding to the current successful operation. n =S n-1 -C n , where S n Indicates the first asset value corresponding to the success of the nth operation, S n-1 Indicates the first asset value corresponding to the successful operation of the n-1th operation, C n Indicates that the nth operation is successful corresponding to the purchase amount or withdrawal amount.

[0058] When the operation request is a sell order or a deposit request, the first asset value corresponding to the previous successful operation plus the sell order amount or the deposit amount is used, and the sum of the two is used as the first asset value corresponding to the current successful operation. n =S n-1 +Q n , where S n Indicates the first asset value corresponding to the success of the nth operation, S n-1 Indicates the first asset value corresponding to the successful operation of the n-1th operation, Q n Indicates that the nth operation is successful corresponding to the sell order amount or deposit amount.

[0059] Exemplarily, the fund flow table of the first server in the current settlement cycle is shown in Table 1:

[0060] Table 1

[0061] Operation Type Operation time Operation amount First asset value Buying stocks 10:00 250 3000 Deposit Funds 10:10 1000 4000 Selling stocks 14:15 3600 7600 Withdraw funds 14:18 500 7100 Selling stocks 14:25 1200 8300 Selling stocks 15:40 3500 11800 Withdraw funds 15:50 1800 10000

[0062] In step S130, if the operation request sent by the user terminal is a buy order or a sell order request; the first server automatically records the billing information corresponding to the successful operation, and sends the billing information corresponding to the successful operation to the second server (such as Figure 2 If the operation request sent by the user terminal is a request to deposit or withdraw funds, the first server will initiate an accounting request to the second server, and the second server will generate billing information (such as Figure 3 As shown). The second server determines the second asset value corresponding to each operation time according to the bill information sent by the first server or / and the bill information generated by itself. Therefore, in the current settlement cycle, the second server can generate the operation time corresponding to all successful operations, as well as the operation amount, operation type and user's asset balance (second asset value) corresponding to each operation time. The operation type, operation time, operation amount and second asset value can be recorded in the form of a fund flow table. Exemplarily, the fund flow table of the second server in the current settlement cycle is shown in Table 2:

[0063] Table 2

[0064] Operation Type Operation time Operation amount Second asset value Buying stocks 10:00 250 5000 Deposit Funds 10:10 1000 6000 Selling stocks 14:15 3600 9600 Withdraw funds 14:18 500 9100 Selling stocks 14:25 1200 10300

[0065] The second server selects any clearing time in the fund flow table within the current clearing cycle for clearing. According to the operation time, operation amount, operation type and the fund flow table corresponding to the second asset value, the ending balance corresponding to the clearing time can be determined. The specific determination method will be described later. Therefore, the asset data method of this application can support daily cutting at any time, support 24-hour trading in multiple markets and multiple categories, and clear after daily cutting at any time, and can correctly synchronize the end-of-day assets to the downstream trading system.

[0066] In some embodiments, Figure 4 As shown, in step S140, the beginning balance of the next settlement cycle is determined based on the bill information corresponding to all successful operations in the current settlement cycle, the settlement time, and the ending balance corresponding to the settlement time, including:

[0067] Compare the latest operation time in the billing information corresponding to all successful operations in the current settlement cycle with the settlement time:

[0068] If the latest operation time is greater than the settlement time, the sum of the operation amounts in the bill information corresponding to the settlement time is counted, and the sum of the operation amounts and the ending balance corresponding to the settlement time are summed to obtain the beginning balance of the next settlement cycle;

[0069] Otherwise, the ending balance corresponding to the settlement time is used as the beginning balance of the next settlement cycle.

[0070] Specifically, in the current clearing cycle, the latest operation time in the fund flow sheet recorded by the first server is compared with the clearing time sent by the second server. If the latest operation time is greater than the clearing time, it means that the first server has an operation during the clearing of the second server, such as the first server has made a buy or sell transaction. Therefore, it is necessary to count the sum of the operation amounts greater than the corresponding clearing time in the fund flow sheet recorded by the first server, and sum the sum of the operation amounts with the ending balance corresponding to the clearing time to obtain the beginning balance of the next clearing cycle. The sum of the operation amounts is: the sum of the sell order amounts + the sum of the deposited amounts - the sum of the buy order amounts - the sum of the withdrawn amounts.

[0071] For example, as shown in Tables 1 and 2, if the clearing system performs clearing at 15:00 based on transactions before 15:00, the cash in account A is RMB 10,300 as a result of the clearing, and account A places a sell order of RMB 3,500 at 15:40 on the trading system side, and withdraws RMB 1,800 at 15:50. After the clearing is completed at 15:00, the clearing system synchronizes the end-of-day assets of RMB 10,300 to the trading system, and the trading system calculates the beginning-of-day balance of the next day as: 10,300+3,500-1,800=12,000 yuan; among which, the sum of the operation amounts corresponding to the clearing time is RMB 3,500-1,800=1,700 yuan.

[0072] If the latest operation time is equal to the settlement time, it means that during the settlement period of the second server, no operation occurred on the first server, no buy or sell transaction was made, and no deposit or withdrawal transaction was made. Therefore, the first server directly uses the ending balance synchronized by the second server as the beginning balance of the next settlement cycle.

[0073] If the latest operation time is less than the settlement time, it means that during the settlement period of the second server, an operation has occurred on the second server, such as a buy or sell transaction, or a deposit or withdrawal transaction. Therefore, the first server directly uses the ending balance synchronized by the second server as the beginning balance of the next settlement cycle.

[0074] In the asset data processing method of the present application, the first server (trading system) and the second server (clearing system) record the time when the same operation business occurs for each fund activity (deposit or withdrawal) and transaction behavior (buy order or sell order). Therefore, the operation time of the same operation business is consistent on the first server and the second server.

[0075] In the second aspect of the embodiment of the present application, Figure 2-3 As shown, a method for processing asset data is provided, the method being executed by a second server, the method comprising:

[0076] S210: At any time in the current settlement cycle, obtain billing information corresponding to each successful operation, where the billing information includes at least the operation time, operation amount, and operation type corresponding to the successful operation;

[0077] S220: Determine the second asset value of the user account according to the bill information corresponding to each successful operation;

[0078] S230: randomly selecting a settlement time in the current settlement cycle, and determining the ending balance corresponding to the settlement time according to the bill information corresponding to all successful operations and the corresponding second asset value;

[0079] S240: Send the settlement time in the current settlement cycle and the ending balance corresponding to the settlement time to the first server.

[0080] In some implementations, in step S210, the method for obtaining the billing information corresponding to each successful operation includes:

[0081] If the operation request is a buy order or a sell order, the second server receives billing information corresponding to each successful operation sent by the first server;

[0082] If the operation request is a request to deposit or withdraw funds, the second server receives the accounting request sent by the first server, records the billing information corresponding to the successful accounting operation, and sends the billing information corresponding to the successful accounting operation to the first server.

[0083] Specifically, the second server obtains the billing information corresponding to each successful operation in two ways: 1) If the operation request is a buy order or a sell order request, the first server automatically generates the billing information corresponding to each operation and sends the billing information to the second server; 2) If the operation request is a deposit or withdrawal request, the first server initiates an accounting request to the second server. If the accounting is successful, the second server automatically generates the order information corresponding to each operation. Therefore, for the same operation request sent by the user terminal, the first server and the second server will retain the same operation record, that is, the operation time and operation amount corresponding to the same successful operation.

[0084] In step S220, the second asset value of the user account is determined based on the billing information corresponding to each successful operation, wherein the second asset value is updated in accordance with the same principle as the first asset value, that is, the second asset value corresponding to the last successful operation is deducted from the buy amount or the withdrawal amount, and the difference between the two is used as the second asset value corresponding to the current successful operation; or, the second asset value corresponding to the last successful operation is added to the sell amount or the deposit amount, and the sum of the two is used as the second asset value corresponding to the current successful operation.

[0085] In some implementations, in step S230, a settlement time is arbitrarily selected within the current settlement cycle, and according to the bill information corresponding to all successful operations and the corresponding second asset value, determining the ending balance corresponding to the settlement time includes:

[0086] An operation time whose operation time is not greater than the settlement time and whose difference with the settlement time is the smallest is selected from the billing information corresponding to all successful operations, and the second asset value corresponding to the operation time is used as the ending balance corresponding to the settlement time.

[0087] Specifically, the second server arbitrarily selects a settlement time, compares the settlement time with all operation times of the current settlement cycle, selects an operation time that is closest to the settlement time and less than the settlement time from all settlement times, uses the second asset value corresponding to the operation time as the ending balance corresponding to the settlement time, and synchronously sends the operation time, settlement time, operation type and second asset value to the first server.

[0088] Exemplarily, as shown in Table 2, if a settlement time of 14:20 is arbitrarily selected for settlement, the second asset value 9100 corresponding to 14:18 is used as the ending balance corresponding to the settlement time, and the operation time 14:18 and the corresponding second asset value 9100 are sent to the first server.

[0089] It should be noted that, in the embodiment of the present application, the second server can also select any operation time from all operation times in the current settlement cycle as the settlement time, and send the selected operation time and the corresponding second asset value to the first server. Exemplarily, for example, the latest operation time from all operation times in the current settlement cycle is used as the settlement time, and the second asset value corresponding to the latest operation time is sent to the first server. As shown in Table 2, the second asset value 10300 corresponding to 14:25 is used as the ending balance corresponding to the settlement time, and the operation time 14:25 and the second asset value 10300 are sent to the first server.

[0090] When the settlement time is the latest operation time in the second server, the settlement time in the second server can be compared with the latest operation time in the first server. If the latest operation time in the first server is greater than the settlement time of the second server, the sum of the operation amounts in the billing information corresponding to the settlement time is counted, and the sum of the operation amounts and the ending balance corresponding to the settlement time are summed to obtain the beginning balance of the next settlement cycle; otherwise, the second asset value corresponding to the latest operation time of the second server is directly used as the beginning balance of the next settlement cycle.

[0091] It should be noted that although the operations of the method of the present invention are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can change the execution order.

[0092] In the third aspect of the embodiment of the present application, Figure 5 As shown, a schematic diagram of an application scenario of an asset data processing method is provided. An asset data processing system of the present application includes: a user terminal 300, a first server 400 and a second server 500; wherein,

[0093] The user terminal 300 is used to send at least one operation request to the first server 400 at any time in the current settlement cycle;

[0094] The first server 400 is configured to receive at least one operation request sent by the user terminal 300, complete a corresponding operation in response to each operation request, and obtain billing information corresponding to each successful operation if the operation is successful, wherein the billing information includes at least the operation time, the operation amount, and the operation type;

[0095] The second server 500 is used to send any settlement time in the current settlement cycle and the ending balance corresponding to the settlement time to the first server 400; wherein the ending balance corresponding to the settlement time is determined by settlement according to the billing information corresponding to each successful operation;

[0096] The first server 400 is further configured to determine the beginning balance of the next settlement cycle based on the billing information corresponding to all successful operations in the current settlement cycle, the settlement time, and the ending balance corresponding to the settlement time.

[0097] Specifically, Figure 5 As shown, the application scenario includes a user terminal 300, a first server 400, and a second server 500, and communication network connections are established between the user terminal 300 and the first server 400, and between the first server 400 and the second server 500. The user initiates an operation request to the first server 400 on the user terminal 300, such as buying and selling stocks, depositing and withdrawing funds, etc. The communication network may include various connection types, such as wired communication links, wireless communication links, or optical fiber cables, etc.

[0098] The user terminal 300 can be hardware or software. When the user terminal 300 is hardware, it can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, personal digital terminals, desktop computers, smart speakers, smart watches and other electronic devices, but not limited to this. When the user terminal 300 is software, it can be installed in the aforementioned various electronic devices. It can also be implemented as a single or multiple software or software modules. The embodiments of the present application do not impose any restrictions on the specific type of electronic device.

[0099] The first server 400 and the second server 500 can be servers that provide various services. For example, in response to the user terminal 300 providing a user operation behavior, the user operation behavior is processed to obtain a processing result, and the processing result is returned to the terminal. The first server 400 and the second server 500 can be hardware or software. The server can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. The first server 400 and the second server 500 can be composed of a single or multiple software modules, and the embodiments of the present application do not impose any restrictions on the specific types of the first server 400 and the second server 500.

[0100] It should be understood that Figure 5 The application scenarios shown are only examples. In actual applications, the asset data processing method provided in the embodiments of the present application can be applied not only to Figure 5 The application scenarios shown can also be applicable to other application scenarios, and no limitation is made herein on the application scenarios to which the asset data processing method provided in the embodiments of the present application is applicable.

[0101] In some implementations, the first server 400 is configured to:

[0102] If the operation request is a buy order or a sell order request, completing the corresponding operation in response to the buy order or the sell order request, and if the operation is successful, recording the bill information corresponding to the successful operation, and sending the bill information corresponding to the successful operation to the second server 500;

[0103] If the operation request is a request to deposit or withdraw funds, in response to the request to deposit or withdraw funds, if the operation is successful, a bookkeeping request is sent to the second server 500, and bill information corresponding to the successful bookkeeping operation sent by the second server 500 is received.

[0104] In some implementations, the first server 400 is configured to:

[0105] At the end time of the previous settlement cycle, determine the asset balance of the user account at the end time, receive at least one operation request sent by the user terminal 300 at any time in the current settlement cycle, obtain the billing information corresponding to each successful operation, and update the asset balance to the first asset value based on the obtained billing information corresponding to each successful operation.

[0106] In some implementations, the first server 400 is configured to:

[0107] Compare the latest operation time in the billing information corresponding to all successful operations in the current settlement cycle with the settlement time:

[0108] If the latest operation time is greater than the settlement time, the sum of the operation amounts in the bill information corresponding to the settlement time is counted, and the sum of the operation amounts and the ending balance corresponding to the settlement time are summed to obtain the beginning balance of the next settlement cycle;

[0109] Otherwise, the ending balance corresponding to the settlement time is used as the beginning balance of the next settlement cycle.

[0110] In some implementations, the second server 500 is configured to:

[0111] If the operation request is a buy order or a sell order, the second server 500 receives billing information corresponding to each successful operation sent by the first server 400;

[0112] If the operation request is a request to deposit or withdraw funds, the second server 500 receives the accounting request sent by the first server 400, records the billing information corresponding to the successful accounting operation, and sends the billing information corresponding to the successful accounting operation to the first server 400.

[0113] In some implementations, the second server 500 is configured to:

[0114] An operation time whose operation time is not greater than the settlement time and whose difference with the settlement time is the smallest is selected from the billing information corresponding to all successful operations, and the second asset value corresponding to the operation time is used as the ending balance corresponding to the settlement time.

[0115] Figure 6 FIG. 1 shows a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. Figure 6 As shown, as another aspect, the present application also provides an electronic device 600, including one or more central processing units (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. In the RAM 603, various programs and data required for system operation are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0116] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0117] In particular, according to the embodiments of the present disclosure, the above reference Figure 1-4 The described process may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product including a computer program tangibly contained on a machine-readable medium, the computer program including program code for executing the ticket purchase information recommendation method. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 609, and / or installed from a removable medium 611.

[0118] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a different order from the order marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] As another aspect, the present application further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the ticket purchase information recommendation method described in the present application.

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs a specified function or operation, or can be realized by a combination of dedicated hardware and computer instructions.

[0121] The units or modules involved in the embodiments described in the present application may be implemented by software or by hardware. The units or modules described may also be arranged in a processor. For example, each of the units may be a software program arranged in a computer or a mobile smart device, or may be a separately configured hardware device. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.

[0122] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.

Claims

1. A method for processing asset data, characterized in that: The method is executed by a first server, and includes: At any time in the current clearing cycle, receiving at least one operation request sent by a user terminal; In response to each of the operation requests, a corresponding operation is completed. If the operation is successful, the billing information corresponding to each successful operation is obtained, and the billing information at least includes the operation time, the operation amount and the operation type; Receiving any settlement time in the current settlement cycle and the ending balance corresponding to the settlement time sent by the second server; wherein the ending balance corresponding to the settlement time is determined by settlement according to the billing information corresponding to each successful operation; The beginning balance of the next settlement cycle is determined based on the billing information corresponding to all successful operations in the current settlement cycle, the settlement time, and the ending balance corresponding to the settlement time.

2. The asset data processing method according to claim 1, characterized in that: In response to each of the operation requests, the corresponding operation is completed. If the operation is successful, the billing information corresponding to each successful operation is obtained, including: If the operation request is a buy order or a sell order request, completing the corresponding operation in response to the buy order or the sell order request, and if the operation is successful, recording the bill information corresponding to the successful operation, and sending the bill information corresponding to the successful operation to the second server; If the operation request is a request to deposit or withdraw funds, in response to the request to deposit or withdraw funds, if the operation is successful, a bookkeeping request is sent to the second server, and bill information corresponding to the successful bookkeeping operation sent by the second server is received.

3. The asset data processing method according to claim 1, characterized in that: The method further comprises: At the end time of the previous settlement cycle, determine the asset balance of the user account at the end time, receive at least one operation request sent by the user terminal at any time in the current settlement cycle, obtain the billing information corresponding to each successful operation, and update the asset balance to the first asset value based on the obtained billing information corresponding to each successful operation.

4. The asset data processing method according to any one of claims 1 to 3, characterized in that: The beginning balance of the next settlement cycle is determined based on the billing information corresponding to all successful operations in the current settlement cycle, the settlement time, and the ending balance corresponding to the settlement time, including: Compare the latest operation time in the billing information corresponding to all successful operations in the current settlement cycle with the settlement time: If the latest operation time is greater than the settlement time, the sum of the operation amounts in the bill information corresponding to the settlement time is counted, and the sum of the operation amounts and the ending balance corresponding to the settlement time are summed to obtain the beginning balance of the next settlement cycle; Otherwise, the ending balance corresponding to the settlement time is used as the beginning balance of the next settlement cycle.

5. A method for processing asset data, characterized in that: The method is performed by the second server, and the method includes: At any time during the current settlement cycle, obtain the billing information corresponding to each successful operation, wherein the billing information includes at least the operation time, operation amount and operation type corresponding to the successful operation; Determining a second asset value of the user account according to bill information corresponding to each successful operation; A settlement time is randomly selected in the current settlement cycle, and the ending balance corresponding to the settlement time is determined according to the bill information corresponding to all successful operations and the corresponding second asset value; The settlement time in the current settlement cycle and the ending balance corresponding to the settlement time are sent to the first server.

6. The asset data processing method according to claim 5, characterized in that: The methods for obtaining the billing information corresponding to each successful operation include: If the operation request is a buy order or a sell order, the second server receives billing information corresponding to each successful operation sent by the first server; If the operation request is a request to deposit or withdraw funds, the second server receives the accounting request sent by the first server, records the billing information corresponding to the successful accounting operation, and sends the billing information corresponding to the successful accounting operation to the first server.

7. The asset data processing method according to claim 5 or 6, characterized in that: A settlement time is randomly selected in the current settlement cycle, and the ending balance corresponding to the settlement time is determined according to the bill information corresponding to all successful operations and the corresponding second asset value, including: An operation time whose operation time is not greater than the settlement time and whose difference with the settlement time is the smallest is selected from the billing information corresponding to all successful operations, and the second asset value corresponding to the operation time is used as the ending balance corresponding to the settlement time.

8. An asset data processing system, characterized in that: include: A user terminal, a first server and a second server; wherein, The user terminal is used to send at least one operation request to the first server at any time in the current settlement cycle; a first server, configured to receive at least one operation request sent by the user terminal, complete a corresponding operation in response to each operation request, and if the operation is successful, obtain billing information corresponding to each successful operation, wherein the billing information includes at least an operation time, an operation amount, and an operation type; The second server is used to send to the first server any settlement time in the current settlement cycle and the ending balance corresponding to the settlement time; wherein the ending balance corresponding to the settlement time is determined by settlement according to the bill information corresponding to each successful operation; The first server is further used to determine the beginning balance of the next settlement cycle based on the billing information corresponding to all successful operations in the current settlement cycle, the settlement time, and the ending balance corresponding to the settlement time.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the asset data processing method described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the asset data processing method described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Gold deposit credit granting method and device, electronic equipment and storage medium

    CN114445081A

  • A method, device, electronic device and storage medium for credit deposit

    CN114445081B

  • Data processing method and device, equipment and medium

    CN119558984A