Financial transaction method and system, electronic equipment and storage medium
By deploying the transactions of different trading centers on an independent server, the separation management of capital and transaction data is realized, and the lack of capital management and transaction performance has been solved, and transaction efficiency and security are improved.
Patent Information
- Application Number
- CN202411359623.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-21
AI Technical Summary
When handling the same user's fund management and trading needs on different exchanges, the existing futures counter system lacks flexibility and cannot independently manage funds on different exchanges, resulting in increased trading performance bottlenecks and delays, affecting users' trading returns.
By deploying transactions from different trading centers on an independent server, the use of the server and the trading center to achieve separation management of capital and transaction data, users can conduct financial transactions according to the distribution ratio.
The speed and efficiency of quantitative transactions have been greatly improved, the risk of funds is reduced, the security of user funds is ensured, and the comprehensive needs of users' flexible allocation of funds, pre -frozen risk control management and high -performance transactions.
Smart Images

Figure CN119338586A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of financial technology, and in particular to a financial transaction method, system, electronic device and storage medium. Background Art
[0002] The present invention belongs to the field of financial technology, and is particularly applicable to futures over-the-counter trading systems used by major futures companies or self-operated members. With the complexity of the futures market and the diversification of user needs, the existing system faces many challenges when dealing with the fund management and trading needs of the same user in different exchanges.
[0003] The current over-the-counter system in the futures market mainly relies on a single machine for trading, and all exchange accounts share the same total capital pool. This architecture can meet basic needs in the early stages of the market, but with the rapid development of the futures market and the surge in trading volume, users have increasingly higher requirements for trading, especially in a low-latency, high-performance trading environment, and the limitations of the existing system have become increasingly apparent.
[0004] The existing counter system lacks flexible fund management functions and cannot independently allocate and manage funds (initialization or deposits and withdrawals) for accounts in different exchanges.
[0005] With the widespread application of high-frequency trading and quantitative trading strategies, users have higher and higher requirements for trading performance. The existing counter system architecture usually relies on a single machine for trading, which leads to bottlenecks in trading performance and increased latency. This limitation may directly affect users' trading returns in a highly competitive market environment.
[0006] Therefore, the existing counter system cannot meet users' comprehensive needs for flexible fund allocation, pre-freeze risk control management and high-performance trading, and a new technical solution is urgently needed to meet these challenges. Summary of the invention
[0007] The technical problem to be solved by the present disclosure is to overcome the defect of low efficiency of financial transactions in the prior art and to provide a financial transaction method, system, electronic device and storage medium.
[0008] The present invention solves the above technical problems through the following technical solutions:
[0009] The present disclosure discloses a financial transaction method, the financial transaction method comprising:
[0010] Receive user instructions;
[0011] According to the user instruction, trigger the corresponding server to obtain the matching transaction center data from the database to conduct financial transactions;
[0012] The server corresponds to the transaction center one by one.
[0013] Preferably, the step of triggering the corresponding server to obtain the data of the matching transaction center from the database to perform financial transactions includes:
[0014] According to the user instruction, obtain the IP address of the corresponding server;
[0015] According to the IP address, obtain the corresponding transaction center code from the database;
[0016] According to the transaction center code, the business data of the transaction center is obtained to conduct financial transactions.
[0017] Preferably, the step of obtaining the business data of the transaction center for financial transactions includes:
[0018] Obtaining business data of the transaction center;
[0019] Based on the business data, users conduct financial transactions on funds in different trading centers according to the allocation ratio.
[0020] Preferably, the step of obtaining the business data of the transaction center for financial transactions includes:
[0021] Obtaining business data of the transaction center;
[0022] Based on the business data, the user conducts financial transactions with the funds of the corresponding trading center and the funds of the virtual trading center according to the allocation ratio.
[0023] The present disclosure also discloses a financial transaction system, the financial transaction system comprising:
[0024] A receiving module, used for receiving user instructions;
[0025] A transaction module, used to trigger the corresponding server to obtain the data of the matching transaction center from the database to conduct financial transactions according to the user instructions;
[0026] The server corresponds to the transaction center one by one.
[0027] Preferably, the transaction module includes:
[0028] A first acquisition unit, configured to acquire an IP address of a corresponding server according to the user instruction;
[0029] A second acquisition unit is used to acquire a corresponding transaction center code from a database according to the IP address;
[0030] The first transaction unit is used to obtain the business data of the transaction center according to the transaction center code to perform financial transactions.
[0031] Preferably, the transaction module includes:
[0032] A third acquisition unit, used to acquire the business data of the transaction center;
[0033] The second transaction unit is used to perform financial transactions on funds of different transaction centers according to the allocation ratio of the user based on the business data.
[0034] Preferably, the transaction module includes:
[0035] A fourth acquisition unit, used to acquire business data of the transaction center;
[0036] The third transaction unit is used to enable the user to conduct financial transactions on the funds of the corresponding transaction center and the funds of the virtual transaction center according to the allocation ratio based on the business data.
[0037] The present disclosure also discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and used to run on the processor, and the processor implements the above-mentioned financial transaction method when executing the computer program.
[0038] The present disclosure also discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the aforementioned financial transaction method are implemented.
[0039] The positive and progressive effects of this disclosure are:
[0040] This disclosure avoids the performance bottleneck caused by resource competition in a single system by deploying transactions in different trading centers on independent servers, greatly improving the speed and efficiency of quantitative trading. In addition, the funds and transaction data are managed separately according to the trading center, reducing the capital risk caused by the mixed use of funds from different exchanges. Independent capital account and seat management also prevents excessive use of funds and ensures the security of user funds. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flow chart of a financial transaction method according to Embodiment 1 of the present disclosure;
[0042] Figure 2 This is a schematic diagram of the financial transaction system framework of Embodiment 1 of the present disclosure;
[0043] Figure 3 This is a schematic diagram of an application scenario of multiple transaction centers in Embodiment 1 of the present disclosure;
[0044] Figure 4 This is a first flow chart of step S102 of embodiment 1 of the present disclosure;
[0045] Figure 5 This is a second flow chart of step S102 of embodiment 1 of the present disclosure;
[0046] Figure 6 This is a third flow chart of step S102 of embodiment 1 of the present disclosure;
[0047] Figure 7 This is a module diagram of a financial transaction system according to Embodiment 2 of the present disclosure;
[0048] Figure 8 This is a schematic diagram of a transaction module according to Embodiment 2 of the present disclosure;
[0049] Fig. 9 This is a schematic diagram of the structure of an electronic device according to Embodiment 3 of the present disclosure. DETAILED DESCRIPTION
[0050] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.
[0051] Example 1
[0052] like Figure 1 As shown, a financial transaction method, the financial transaction method comprising:
[0053] Step S101, receiving a user instruction;
[0054] Step S102: According to the user instruction, trigger the corresponding server to obtain the data of the matching transaction center from the database to perform financial transactions; wherein the server corresponds to the transaction center one by one.
[0055] In this solution, the database can bind and store the business data of multiple trading centers and provide these data to the corresponding trading system. This part ensures that the business data of each trading center can be managed independently, avoids data confusion, and provides reliable data support for subsequent transaction processing. During the user operation process, the database content can be modified through the operation background management page.
[0056] In this solution, all trading centers use the same database and design forms according to business rules. For example, add trading center fields to the account system table and seat table, and add IP address tables corresponding to different trading centers. By adding and adjusting business tables related to trading centers in the database, it is possible to support the allocation and management of funds, that is, allocation by amount or by proportion. Optimize the design based on business functions and relevance, such as: adding an association table of trading center codes and IP addresses, and a fund allocation table; adding a trading center code field to the investor table, exchange member table, exchange seat table, deposit and withdrawal table, fund table, and position table.
[0057] When importing user funds, the fund allocation ratio of the user corresponding to different trading centers will be automatically matched and inserted into the user's fund table; when importing user positions, the trading center corresponding to the transaction code will also be matched and inserted into the user's position table.
[0058] In a specific embodiment, a quantitative user wants to deploy different exchange transactions on different machines to optimize the performance of quantitative transactions. This deployment can minimize transaction delays, improve transaction speed and reliability, and better adapt to the rapidly changing market environment. In this case, the user operates the unified backend management page to configure and manage the capital allocation and other parameters of the trading center. In this embodiment, Figure 2 As shown in the figure, the same management page is used to uniformly manage different trading centers, providing a centralized operation interface so that users can manage and configure multiple trading centers on the same page, greatly simplifying the management process of multiple trading centers and improving the convenience and efficiency of operations. According to user instructions, the IP address of each server is obtained, and according to the IP address of each server, the corresponding trading center code is obtained from the database. According to the trading center code, the business data of the trading center is obtained; based on the business data, the user conducts financial transactions on the trading center. ... Figure 3 It is an application scenario for multiple trading centers.
[0059] This solution realizes the independent configuration of multiple trading centers, meets the needs of quantitative users to deploy different exchange transactions on different machines, effectively improves the performance of quantitative trading, reduces financial transaction delays, and ensures the speed and reliability of financial transaction operations in a rapidly changing market environment.
[0060] like Figure 4 As shown, in one practicable manner, step S102 includes:
[0061] Step S10211: Obtain the IP address of the corresponding server according to the user instruction;
[0062] Step S10212: Obtain the corresponding transaction center code from the database according to the IP address;
[0063] Step S10213: According to the transaction center code, obtain the business data of the transaction center to conduct financial transactions. The transaction center uses the IP address to identify uniqueness and ensure that the IP address is not repeated.
[0064] In this solution, each server can automatically obtain the initialization data of the corresponding trading center according to its corresponding IP address, thereby making the data initialization process of each trading center more automated and making financial transactions more flexible and efficient.
[0065] like Figure 5 As shown, in an practicable manner, the step of obtaining the business data of the transaction center for financial transactions includes:
[0066] Step S10221, obtaining the business data of the transaction center;
[0067] Step S10222: Based on the business data, the user conducts financial transactions on funds of different trading centers according to the allocation ratio.
[0068] In a specific embodiment, a user has opened accounts at the Shanghai Futures Exchange (SHFE) and the China Financial Futures Exchange (CFFE), and hopes to flexibly control the amount of funds used in each exchange to achieve more sophisticated fund management and risk control. The user needs to allocate funds between different exchanges and ensure that the trading operations of each exchange do not interfere with each other. In this case, the user operates the unified backend management page to configure and manage the fund allocation and other parameters of the trading center. Among them, the allocation ratio or amount is set according to different trading centers. For example, if the user has a total of 1 million yuan in funds, and sets trading center A (CFFE) to 60% and trading center B (SHFE) to 40%, then trading center A can get 600,000 yuan in funds and trading center B can get 400,000 yuan in funds). According to the user's instructions, the IP addresses of the two servers are obtained, and the corresponding trading center codes are obtained from the database according to the IP addresses of the servers. According to the trading center code, the business data of the trading center is obtained; based on the business data, the user conducts financial transactions with the funds of trading center A according to 600,000 yuan, and trading center B conducts financial transactions with 400,000 yuan.
[0069] This embodiment realizes the needs of users to conduct independent transactions between different exchanges according to a customized fund allocation ratio, thereby ensuring the independence of fund use in each trading center and improving the flexibility of user fund management and the security of transaction operations during financial transactions.
[0070] like Figure 6 As shown, in an practicable manner, the step of obtaining the business data of the transaction center for financial transactions includes:
[0071] Step S10231, obtaining the business data of the transaction center;
[0072] Step S10232: Based on the business data, the user conducts financial transactions with the funds of the corresponding trading center and the funds of the virtual trading center according to the allocation ratio.
[0073] In a specific embodiment, a user has high requirements for risk control and hopes to freeze a portion of funds every day to limit trading use. For example, the user has a total fund of 1 million yuan in the Shanghai Futures Exchange, but requires that only 800,000 yuan can be used every day, and the remaining 200,000 yuan of funds are frozen for risk control management. In this case, the user operates the unified backend management page to configure and manage the fund allocation and other parameters of the trading center. On this page, the user first sets the trading center information of the Shanghai Futures Exchange, and then adds a virtual trading center information, such as trading center code: 9999, trading center name: virtual trading center, trading center IP address: 192.168.1.1. After the trading center is successfully set up, go to the "Operation and Maintenance Management-Exchange Member Management" page, set the member's seat information for the Shanghai Futures Exchange, and bind the seat information to the corresponding trading center, then set a virtual seat and bind it to the above virtual trading center (9999). In the "Account Management-Fund Account Management" page, add the user's fund account. Bind the Shanghai Futures Exchange's trading code to the corresponding member seat and trading center. Add a virtual trading code and bind it to the above virtual seat. After the fund account is set up, allocate funds to the above fund account in the "Account Management-Fund Account Management" page. Set the allocation ratio or amount according to different trading centers (for example, if the user has a total of 1 million yuan in funds, set trading center A (SHFE) to 80% and virtual trading center B to 20%, then trading center A can obtain 800,000 yuan in funds and indirectly freeze 200,000 yuan in funds). According to user instructions, obtain the IP address of the server, and obtain the corresponding trading center code from the database based on the IP address of the server. According to the trading center code, obtain the business data of the trading center; based on the business data, the user conducts financial transactions with the funds of the corresponding trading center according to 800,000 yuan, and the funds of the virtual trading center according to 200,000 yuan.
[0074] This solution meets the risk control needs of users to freeze part of their funds every day, which not only improves the flexibility of fund management, but also effectively reduces the financial risk of the trading center and ensures the safety of users' transactions in the Shanghai Futures Exchange.
[0075] Example 2
[0076] like Figure 7 As shown, a financial transaction system, the financial transaction system comprises:
[0077] Receiving module 1, used for receiving user instructions;
[0078] Transaction module 2, used to trigger the corresponding server to obtain the data of the matching transaction center from the database to conduct financial transactions according to the user instructions;
[0079] The server corresponds to the transaction center one by one.
[0080] This solution realizes the independent configuration of multiple trading centers, meets the needs of quantitative users to deploy different exchange transactions on different machines, effectively improves the performance of quantitative trading, reduces financial transaction delays, and ensures the speed and reliability of financial transaction operations in a rapidly changing market environment.
[0081] like Figure 8 As shown, in an practicable manner, the transaction module 1 includes:
[0082] The first acquisition unit 11 is used to acquire the IP address of the corresponding server according to the user instruction;
[0083] A second acquisition unit 12 is used to acquire a corresponding transaction center code from a database according to the IP address;
[0084] The first transaction unit 13 is used to obtain the business data of the transaction center according to the transaction center code to perform financial transactions.
[0085] In this solution, each server can automatically obtain the initialization data of the corresponding trading center according to its corresponding IP address, thereby making the data initialization process of each trading center more automated and making financial transactions more flexible and efficient.
[0086] like Figure 8 As shown, in an practicable manner, the transaction module 1 includes:
[0087] A third acquisition unit 14 is used to acquire the business data of the transaction center;
[0088] The second transaction unit 15 is used for the user to conduct financial transactions on funds of different transaction centers according to the allocation ratio based on the business data.
[0089] This embodiment realizes the needs of users to conduct independent transactions between different exchanges according to a customized fund allocation ratio, thereby ensuring the independence of fund use in each trading center and improving the flexibility of user fund management and the security of transaction operations during financial transactions.
[0090] like Figure 8 As shown, in an practicable manner, the transaction module 1 includes:
[0091] The fourth acquisition unit 16 is used to acquire the business data of the transaction center;
[0092] The third transaction unit 17 is used for, based on the business data, the user to conduct financial transactions with the funds of the corresponding transaction center and the funds of the virtual transaction center according to the allocation ratio.
[0093] This solution meets the risk control needs of users to freeze part of their funds every day, which not only improves the flexibility of fund management, but also effectively reduces the financial risk of the trading center and ensures the safety of users' transactions in the Shanghai Futures Exchange.
[0094] Example 3
[0095] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present disclosure. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the financial transaction method provided in Embodiment 1 when executing the program. Fig. 9 The electronic device 50 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0096] like Fig. 9 As shown, the electronic device 50 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 50 may include, but are not limited to: at least one processor 51, at least one memory 52, and a bus 53 connecting different system components (including the memory 52 and the processor 51).
[0097] The bus 53 includes a data bus, an address bus, and a control bus.
[0098] The memory 52 may include a volatile memory, such as a random access memory (RAM) 521 and / or a cache memory 522 , and may further include a read-only memory (ROM) 523 .
[0099] The memory 52 may also include a program / utility 525 having a set (at least one) of program modules 524, such program modules 524 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0100] The processor 51 executes various functional applications and data processing by running the computer programs stored in the memory 52, such as the financial transaction method provided in the first embodiment of the present disclosure.
[0101] The electronic device 50 may also communicate with one or more external devices 54 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 55. Furthermore, the model-generated device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 56. As shown, the network adapter 56 communicates with other modules of the model-generated device 50 via a bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the model-generated device 50, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems, etc.
[0102] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0103] Example 4
[0104] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a data interaction method is implemented.
[0105] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0106] In a possible implementation manner, the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the data interaction method.
[0107] Among them, the program code for executing the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0108] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.
Claims
1. A financial transaction method, characterized in that: The financial transaction method comprises: Receive user instructions; According to the user instruction, trigger the corresponding server to obtain the matching transaction center data from the database to conduct financial transactions; The server corresponds to the transaction center one by one.
2. The financial transaction method according to claim 1, characterized in that: The step of triggering the corresponding server to obtain the matching transaction center data from the database to perform financial transactions includes: According to the user instruction, obtain the IP address of the corresponding server; According to the IP address, obtain the corresponding transaction center code from the database; According to the transaction center code, the business data of the transaction center is obtained to conduct financial transactions.
3. The financial transaction method according to claim 2, characterized in that: The step of obtaining the business data of the transaction center to conduct financial transactions includes: Obtaining business data of the transaction center; Based on the business data, users conduct financial transactions on funds in different trading centers according to the allocation ratio.
4. The financial transaction method according to claim 2, characterized in that: The step of obtaining the business data of the transaction center to conduct financial transactions includes: Obtaining business data of the transaction center; Based on the business data, the user conducts financial transactions with the funds of the corresponding trading center and the funds of the virtual trading center according to the allocation ratio.
5. A financial transaction system, characterized in that: The financial transaction system comprises: A receiving module, used for receiving user instructions; A transaction module, used to trigger the corresponding server to obtain the data of the matching transaction center from the database to conduct financial transactions according to the user instructions; The server corresponds to the transaction center one by one.
6. The financial transaction system according to claim 5, characterized in that: The transaction module includes: A first acquisition unit, configured to acquire an IP address of a corresponding server according to the user instruction; A second acquisition unit is used to acquire a corresponding transaction center code from a database according to the IP address; The first transaction unit is used to obtain the business data of the transaction center according to the transaction center code to perform financial transactions.
7. The financial transaction system according to claim 5, characterized in that: The transaction module includes: A third acquisition unit, used to acquire the business data of the transaction center; The second transaction unit is used to perform financial transactions on funds of different transaction centers according to the allocation ratio of the user based on the business data.
8. The financial transaction system according to claim 5, characterized in that: The transaction module includes: A fourth acquisition unit, used to acquire business data of the transaction center; The third transaction unit is used to enable the user to conduct financial transactions on the funds of the corresponding transaction center and the funds of the virtual transaction center according to the allocation ratio based on the business data.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the financial transaction method according to any one of claims 1 to 4 is 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 financial transaction method according to any one of claims 1 to 4 are implemented.