CN-121998758-A - Fund transaction simulation method, device, equipment and storage medium
Abstract
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for simulating a fund transaction, and particularly discloses creating a simulated fund account and a fund commission for the simulated fund account, starting up a transaction calculation for the fund commission at a timing on the next transaction day of creating the fund commission, wherein the transaction calculation is to acquire fund market data corresponding to a fund type, the transaction calculation is performed on the fund market data according to a preset transaction rule corresponding to the fund type, a transaction parameter is generated, the parameter verification is performed on the transaction parameter, the fund commission corresponding to the transaction parameter is marked as a state to be recalculated under the condition that the verification finds out that the transaction parameter is abnormal, recalculation processing is performed on the fund commission marked as the state to be recalculated, asset information of the simulated fund account is updated according to the transaction parameter verified by the parameter, and the updated asset information is output as a simulation transaction result.
Inventors
- WU XIAOJING
- CHEN CHEN
- YUAN JIALI
- ZENG XIANTAO
- LIU ZHI
Assignees
- 人保信息科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251222
Claims (10)
- 1. A method of simulating a fund transaction, comprising: Creating a simulated funds account and a fund commission for the simulated funds account, wherein the fund commission comprises a fund type of a target fund commissioned for a transaction, the fund type comprising an on-site fund and an off-site fund; The method comprises the steps of establishing a next transaction day of the fund commission, starting the transaction calculation aiming at the fund commission at fixed time, wherein the transaction calculation is to acquire fund market data corresponding to the fund type, perform transaction calculation on the fund market data according to a preset transaction rule corresponding to the fund type, generate transaction parameters, and perform parameter verification on the transaction parameters, and mark the fund commission corresponding to the transaction parameters as a state to be recalculated when the transaction parameters are found to be abnormal by verification; Executing recalculation processing on the fund commission marked as the state to be recalculated, wherein the recalculation processing is to reacquire the fund market data and execute the bargaining calculation at a timing again until the bargaining parameters pass the parameter verification; And updating the asset information of the simulated funds account according to the transaction parameters checked by the parameters, and outputting the updated asset information as a simulated transaction result.
- 2. The method of claim 1, wherein the performing a transaction calculation on the fund market data according to a preset transaction rule corresponding to the fund type comprises: Under the condition that the fund type is an in-field fund, acquiring price data of the target fund on a trading day from the market file, calculating to obtain a trading average price by adopting a preset trading volume weighting average price rule, and determining a trading amount according to the trading average price and a consignment share, wherein the trading volume weighting average price rule is that the price of each minute of the fund in a preset time period and the corresponding trading volume are subjected to weighted average calculation to obtain an average price capable of reflecting real trading cost in the preset time period, and the consignment share is the unit number of the target fund which is set when the fund is created and is subjected to planned trading; And under the condition that the fund type is off-site fund, acquiring the net value of the target fund on the trading day as a trading price, and determining the trading amount according to the net value of the fund and the entrusted share.
- 3. The method of claim 1, wherein the deal parameters include at least one of a deal average, a deal amount, a deal share; the step of verifying the parameters of the deal parameters comprises the following steps: Checking whether a quotation file for matching the foundation is valid in the foundation market data under the condition that the foundation type is the foundation in the field, and determining that a parameter checking result is abnormal under the condition that the checking result is negative; And checking whether the net value of the funds purchased and redeemed for the off-site funds in the market data of the funds is valid or not under the condition that the type of the funds is the off-site funds, and determining that the parameter checking result is abnormal when the checking result is negative.
- 4. A method according to claim 3, wherein said parameter checking of said deal parameters comprises: And under the condition that the parameter verification result is that the diagonalization parameter is normal, rationality verification is carried out on the diagonalization parameter, and under the condition that the rationality verification is not passed, the parameter verification result is determined to be that the diagonalization parameter is abnormal, wherein the rationality verification comprises the steps of verifying whether the diagonalization amount is a nonnegative number, verifying whether the diagonalization average price is in a preset reasonable price interval, verifying whether the logic relationship between the diagonalization share and the consignment share meets a preset rule, and the consignment share is the unit number of a target fund which is set when the fund consignment is created and is subjected to planned transaction.
- 5. The method of claim 1, wherein the performing recalculation processing on the foundation commission marked as the to-be-recalculated state comprises: The method comprises the steps of obtaining a holding flow water meter and an asset flow water meter, wherein the holding flow water meter is used for recording at least one of the fund codes, holding shares, cost and market values of various funds in the simulated fund account on a daily basis; and taking the original consignment date of the fund consignment as a reference, acquiring historical snapshot data of the original consignment date in the warehouse-holding flow water meter and the asset flow water meter, and re-executing the consignment calculation based on the historical snapshot data, wherein the original consignment date is a preset date for consignment calculation of the fund.
- 6. The method of claim 1, wherein after the updating the asset information of the simulated funds account according to the transaction parameters verified by the parameters and outputting the updated asset information as a simulated transaction result, the method further comprises: receiving a warehouse adjustment date designated by a user; based on the asset information of the simulated funds account, respectively calculating a first net trend of keeping the original holding before the warehouse-setting date and a second net trend generated based on the newly-completed fund commission after the warehouse-setting date; And outputting a comparison result of the first absolute trend and the second absolute trend.
- 7. A funds transaction simulator, comprising: The system comprises a creation module, a calculation module and a calculation module, wherein the creation module is used for creating a simulated fund account and a fund commission for the simulated fund account, wherein the fund commission comprises a fund type of a target fund commissioned for transaction, and the fund type comprises an on-site fund and an off-site fund; The system comprises a calculation module, a calculation module and a settlement module, wherein the calculation module is used for starting the transaction calculation aiming at the fund commission at regular time when the next transaction day of the fund commission is created, the transaction calculation is used for acquiring the fund market data corresponding to the fund type, performing the transaction calculation on the fund market data according to a preset transaction rule corresponding to the fund type, generating a transaction parameter, and performing parameter verification on the transaction parameter, and marking the fund commission corresponding to the transaction parameter as a state to be recalculated when the transaction parameter is found abnormal by verification; The recalculation module is used for executing recalculation processing on the foundation commission marked as the state to be recalculated, wherein the recalculation processing is to acquire the foundation market data again and execute the bargaining calculation at a fixed time until the bargaining parameters pass the parameter verification; And the updating module is used for updating the asset information of the simulated fund account according to the transaction parameters verified by the parameters and outputting the updated asset information as a simulated transaction result.
- 8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the method according to any one of claims 1 to 6 when executed by the processor.
- 9. A computer readable storage medium for storing computer executable instructions which when executed by a processor implement the steps of the method of any one of the preceding claims 1 to 6.
- 10. A computer program product, characterized in that it comprises a computer program which, when executed by a processor, implements the steps of the method according to any of the preceding claims 1 to 6.
Description
Fund transaction simulation method, device, equipment and storage medium Technical Field The present invention relates to the field of computer simulation technologies, and in particular, to a method, an apparatus, a device, and a storage medium for simulating a fund transaction. Background A funds simulation transaction generally refers to the operation of performing a funds transaction in accordance with the actual market data and transaction rules in a funds transaction simulation system. The existing fund simulation trading system mainly aims at a C-end user to realize basic trading functions, such as accessing market data and setting trading rules to complete simulation operations of fund buying and selling, or building an account system to manage funds, display holding and calculate accumulated benefits. However, the C-terminal-oriented design has the technical limitations that firstly, transaction commissions generated by a system are processed once, data cannot be traced back and recalculated after the transaction is completed, so that the accuracy of the data is difficult to check, and secondly, the system functions are disjointed from professional requirements of researchers, multidimensional index quantification cannot be carried out on commission execution processes, and effective index assessment is lacking. Disclosure of Invention The invention mainly aims to provide a fund transaction simulation method, a device, equipment and a storage medium, which aim to solve the problems that the data accuracy is difficult to check, the transaction backtracking and recalculation capability is lost and the performance indexes of researchers cannot be effectively quantified due to the single C-end-oriented design and analysis dimension of the conventional fund transaction simulation system. In a first aspect, an embodiment of the present disclosure provides a method for simulating a fund transaction, including: Creating a simulated funds account and a fund commission for the simulated funds account, wherein the fund commission comprises a fund type of a target fund commissioned for a transaction, the fund type comprising an on-site fund and an off-site fund; The method comprises the steps of establishing a next transaction day of the fund commission, starting the transaction calculation aiming at the fund commission at fixed time, wherein the transaction calculation is to acquire fund market data corresponding to the fund type, perform transaction calculation on the fund market data according to a preset transaction rule corresponding to the fund type, generate transaction parameters, and perform parameter verification on the transaction parameters, and mark the fund commission corresponding to the transaction parameters as a state to be recalculated when the transaction parameters are found to be abnormal by verification; Executing recalculation processing on the fund commission marked as the state to be recalculated, wherein the recalculation processing is to reacquire the fund market data and execute the bargaining calculation at a timing again until the bargaining parameters pass the parameter verification; And updating the asset information of the simulated funds account according to the transaction parameters checked by the parameters, and outputting the updated asset information as a simulated transaction result. In a second aspect, embodiments of the present disclosure provide a fund transaction simulation apparatus, comprising: The system comprises a creation module, a calculation module and a calculation module, wherein the creation module is used for creating a simulated fund account and a fund commission for the simulated fund account, wherein the fund commission comprises a fund type of a target fund commissioned for transaction, and the fund type comprises an on-site fund and an off-site fund; The system comprises a calculation module, a calculation module and a settlement module, wherein the calculation module is used for starting the transaction calculation aiming at the fund commission at regular time when the next transaction day of the fund commission is created, the transaction calculation is used for acquiring the fund market data corresponding to the fund type, performing the transaction calculation on the fund market data according to a preset transaction rule corresponding to the fund type, generating a transaction parameter, and performing parameter verification on the transaction parameter, and marking the fund commission corresponding to the transaction parameter as a state to be recalculated when the transaction parameter is found abnormal by verification; The recalculation module is used for executing recalculation processing on the foundation commission marked as the state to be recalculated, wherein the recalculation processing is to acquire the foundation market data again and execute the bargaining calculation at a fixed time until the bargaining parameters pass the paramet