A method for cross-border joint processing of financial transaction orders
By employing adaptive order information collection algorithms and dynamic configurations in cross-border joint order bus technology, the operational risks and risk control issues of domestic and foreign financial transaction systems have been resolved, enabling cross-system and cross-border financial transaction processing and supporting global integrated investment transactions.
Patent Information
- Application Number
- CN202110068487.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-19
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2041-01-19
AI Technical Summary
Existing technologies in domestic and international financial transaction systems suffer from significant operational risks, inability to achieve joint risk control, and incomplete data, leading to difficulties in portfolio management.
The technology uses an adaptive order information collection algorithm in cross-border joint order bus to receive financial transaction order instructions from overseas systems, and uses dynamic configuration to convert message formats to match those of domestic systems. The transaction is then completed in the domestic system and a transaction report is returned, thus realizing cross-border and cross-system financial transaction processing.
It enables cross-system and cross-border financial transaction order processing, reduces operational risks, saves additional expenses, supports global integrated investment transactions, provides cross-border joint risk control solutions, and meets the business needs of QDII funds and Hong Kong Stock Connect.
Smart Images

Figure CN112785375B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer information processing, and particularly relates to a method for cross-border joint processing of financial transaction orders. BACKGROUND
[0002] In recent years, with the opening of the Shanghai-Hong Kong Stock Connect and the Shanghai-London Stock Connect mechanism, overseas financial investment business has become more prosperous. In order to realize the QDII (Qualified Domestic Institutional Investor) fund investment in Hong Kong stocks and other businesses, the existing technology mainly uses two sets of investment transaction systems, namely, the domestic system (such as the Hang Seng system) and the overseas system (the Bloomberg system), to separately perform investment, risk control, transaction, and clearing operations for Hong Kong stock and non-Hong Kong stock businesses. However, this approach has certain problems, for example:
[0003] 1. Business personnel operation problem. Business personnel need to complete business operations on two completely different systems, which greatly increases the risk of business operation;
[0004] 2. Unable to achieve joint risk control. Because risk control can only be completed on two sets of investment transaction systems, joint risk control cannot be achieved;
[0005] 3. Incomplete data problem. Portfolio holdings are scattered in two systems, and a unified portfolio holding perspective cannot be obtained, which brings great challenges to portfolio management. SUMMARY
[0006] The embodiments of the present application provide a method, device and related components for cross-border joint processing of financial transaction orders, aiming to provide a financial transaction order processing method supporting cross-border and cross-system.
[0007] In a first aspect, the embodiments of the present application provide a method for cross-border joint processing of financial transaction orders, comprising:
[0008] receiving a financial transaction order instruction sent by an overseas system through an adaptive order information collection algorithm in a cross-border joint order bus technology;
[0009] performing message format conversion on the financial transaction order instruction by using a dynamic configuration in the adaptive order information collection algorithm, so that the message format of the converted financial transaction order instruction matches the domestic system, and then sending the financial transaction order instruction to the domestic system;
[0010] When the domestic system completes the corresponding financial transaction according to the financial transaction order instruction and returns the corresponding transaction return, receiving the transaction return sent by the domestic system, and returning the transaction return to the overseas system through the cross-border joint order bus technology.
[0011] In a second aspect, an embodiment of the present application provides a device for cross-border joint processing of financial transaction orders, comprising:
[0012] a receiving unit configured to receive a financial transaction order instruction sent by an overseas system via an adaptive order information collection algorithm in a cross-border joint order bus technology;
[0013] a first conversion unit configured to perform message format conversion on the financial transaction order instruction via dynamic configuration in the adaptive order information collection algorithm, so that the message format of the converted financial transaction order instruction matches an inland system, and then send the financial transaction order instruction to the inland system;
[0014] a returning unit configured to receive a transaction return sent by the inland system when the inland system completes a corresponding financial transaction according to the financial transaction order instruction and returns the corresponding transaction return, and return the transaction return to the overseas system via the adaptive order information collection algorithm.
[0015] In a third aspect, an embodiment of the present application provides a computer device, characterized by a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for cross-border joint processing of financial transaction orders according to the first aspect when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, characterized by storing a computer program, wherein the computer program is executable on a processor to implement the method for cross-border joint processing of financial transaction orders according to the first aspect.
[0017] An embodiment of the present application provides a method, device and related components for cross-border joint processing of financial transaction orders, which comprises: receiving a financial transaction order instruction sent by an overseas system via an adaptive order information collection algorithm in a cross-border joint order bus technology; performing message format conversion on the financial transaction order instruction via dynamic configuration in the adaptive order information collection algorithm, so that the message format of the converted financial transaction order instruction matches an inland system, and then sending the financial transaction order instruction to the inland system; receiving a transaction return sent by the inland system when the inland system completes a corresponding financial transaction according to the financial transaction order instruction and returns the corresponding transaction return, and returning the transaction return to the overseas system via the cross-border joint order bus technology. An embodiment of the present application performs message format conversion on the financial transaction order instruction sent by the overseas system based on the Fix protocol, so as to make up for the difference between the overseas system and the inland system, thereby achieving the effect of cross-border processing of financial transaction orders. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings described in the following are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0019] Figure 1 A flowchart of a method for cross-border joint processing of financial transaction orders provided by the embodiments of the present application;
[0020] Figure 2 An example schematic diagram of a method for cross-border joint processing of financial transaction orders provided by the embodiments of the present application;
[0021] Figure 3 A schematic block diagram of an apparatus for cross-border joint processing of financial transaction orders provided by the embodiments of the present application. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort belong to the protection scope of the present application.
[0023] It should be understood that when used in the specification and the appended claims, the terms "comprise" and "include" indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0024] It should also be understood that the terms used in the present application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the present application specification and the appended claims, unless otherwise clearly indicated by the context, the singular forms "a", "an" and "the" are intended to include the plural forms.
[0025] It should be further understood that the term "and / or" used in the present application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0026] The following will be seen Figure 1 , Figure 1A flowchart of a method for cross-border joint processing of financial transaction orders according to an embodiment of the present application is shown in FIG. 1, which includes steps S101-S103.
[0027] S101, receiving a financial transaction order instruction sent by an overseas system through an adaptive order information collection algorithm in a cross-border joint order bus technology;
[0028] S102, performing message format conversion on the financial transaction order instruction using a dynamic configuration in the adaptive order information collection algorithm, so that the message format of the converted financial transaction order instruction matches that of a domestic system, and then sending the financial transaction order instruction to the domestic system;
[0029] S103, when the domestic system completes a corresponding financial transaction according to the financial transaction order instruction and returns a corresponding deal return, receiving the deal return sent by the domestic system, and returning the deal return to the overseas system through the cross-border joint order bus technology.
[0030] In this embodiment, the cross-border financial order is processed through the cross-border joint order bus technology based on the Fix protocol. First, the financial transaction order instruction sent by the overseas system is received through the adaptive order information collection algorithm in the cross-border joint order bus technology. Since there may be differences between the overseas system and the domestic system, the financial transaction order is converted in message format using the dynamic configuration in the adaptive order information collection algorithm, and then the financial transaction order instruction after the message format conversion is sent to the domestic system. The domestic system executes the corresponding financial transaction according to the financial transaction order instruction sent by the cross-border joint order bus technology, and returns the corresponding deal return after completing the corresponding financial transaction. The cross-border joint order bus technology receives the deal return and returns it to the overseas system through the cross-border joint order bus technology.
[0031] The method for cross-border joint processing of financial transaction orders provided by the embodiment can process financial transaction orders across systems and across borders, and the communication format (i.e., the message format) adopts the financial transaction Fix protocol, so that the transaction orders can be cross-border and cross-system in real time, safely and consistently, without the need to develop a special asset management interface system, thereby reducing the operational risk and saving additional expenses. It should be noted that the cross-border joint order bus technology described in the embodiment introduces real-time cross-border calculation parameter sets, cross-system user identification coding sets, cross-system portfolio account conversion codes, cross-system security identification coding sets, cross-system risk control decision opinion coding sets, and the like, and assembles the above cross-border order element sets according to a preset standard. At the same time, the financial transaction order instructions described in the embodiment can refer to order information (such as a direction of entrustment, a business type, and the like) of a domestic or overseas system, risk control decision information (such as risk control prohibition, risk control warning, risk control prompt, and the like), and user and account information (such as an account type, and the like), and the like. That is, when the message format of the financial transaction order is converted by using the dynamic configuration in the adaptive order information collection algorithm, the format of different types of information is dynamically converted into a format suitable for the cross-border joint order bus technology.
[0032] In addition, the method for cross-border joint processing of financial transaction orders provided by the embodiment effectively combines the respective advantages of the overseas system and the domestic system based on the investment transaction demand of the QDII fund Hong Kong Stock Connect business, proposes and implements a system solution for global integrated investment transactions, not only meets the investment needs of QDII, A shares (i.e., renminbi ordinary shares), and Hong Kong Stock Connect (i.e., Hong Kong Stock Connect under the Shanghai-Hong Kong Stock Connect), but also supports future investment businesses such as the Shanghai-London Stock Connect, thereby providing effective support for the company to carry out global investment businesses and becoming an important tool for domestic investors to carry out global investment. Moreover, since risk control is the criterion for investment business development, the cross-border and cross-market risk control problems involved in the QDII fund investment in Hong Kong Stock Connect have been hindering the development of related businesses. The method for cross-border joint processing of financial orders provided by the embodiment adopts a system cascade mode, and connects two-level risk control modules of the overseas system and the domestic system, thereby solving the fair trade, intraday reverse, and related party risk control problems of listed companies issuing A shares and H shares (also referred to as state-owned shares, i.e., stocks of Chinese enterprises registered in mainland China and listed in Hong Kong), and effectively avoiding business risks. At the same time, as A shares gradually become internationalized, the demand of overseas investors for A shares is increasingly strong, but the problem of insufficient investment tools and channels has gradually emerged. The method for cross-border joint processing of financial orders provided by the embodiment provides a new selection scheme for overseas investors to invest in A shares, and also enables overseas investors to obtain investment advisory services and transaction support services by placing orders to a fund company.
[0033] For example, the fund manager (asset management user) issues investment instructions through the overseas investment management system, and the cross-border asset instruction data is transferred to the order matching module of the domestic investment management system through the cross-border joint order bus technology at the time of transaction, and then the transaction return information returns to the overseas investment management system along the original path. The transaction execution of the cross-border instruction remains unchanged, thereby realizing the order circulation of the double-end system, and at the same time, the cross-border joint risk control is realized through the risk control modules of the two-end systems. In addition, the cross-border joint order bus technology is used to receive financial transaction order instructions sent by the overseas system. For example, in the process of receiving financial transaction order instructions, the order access device dynamically generated by the adaptive order generation technology communicates with the Bloomberg system, that is, the order access device dynamically generated by the adaptive order generation technology acts as the accepter (receiver), and the Bloomberg system acts as the initiator (initiator), and the connection is initiated by the Bloomberg system.
[0034] In an embodiment, the step 101 comprises:
[0035] The message format of the received financial transaction order instruction is converted into the message format of the Fix protocol by using the Quickfix technology.
[0036] In this embodiment, after receiving the financial transaction order instruction, in order to match the message format of the financial transaction order instruction with the message format of the cross-border joint order bus technology, the message format of the financial transaction order instruction is converted into the message format of the Fix protocol by using the Quickfix technology, that is, the message format of the financial transaction order instruction is converted into the Fix C++Object by using the Quickfix technology.
[0037] In an embodiment, the cross-border joint processing method of the financial transaction order further comprises:
[0038] The financial transaction order instruction is processed into a circular logic array by using a hash algorithm;
[0039] The lock-free atomic communication bus is assembled according to the circular logic array;
[0040] The logical pointers for the entry and exit of each circular logic array are set by using the CAS technology, and the access address for each space corresponding to each circular logic array is set;
[0041] The financial transaction order instruction after message format conversion is stored in the lock-free message queue.
[0042] In this embodiment, the physical linear memory space corresponding to the financial transaction order instruction is mapped to a logical ring logical array through hash operation, and a lock-free atomic communication bus is assembled according to the ring logical array. Meanwhile, the CAS (compare and swap) technology is used to set logical pointers for the entry and exit of each ring logical array, and access addresses are set for each space corresponding to each ring logical array, so as to solve the competition problem between financial transaction order instructions, improve the performance of cross-border joint order bus technology, and reduce resource consumption. CAS is a CPU concurrent primitive, which can judge whether the value of a certain memory position is the expected value, and update it to a new value if it is. The address of the financial transaction order instruction on the cross-border joint order bus is encoded. Compared with the conventional locking mode, the CAS operation consumes less resources and has a high performance advantage, and is very suitable for application in large-scale financial transaction order processing.
[0043] In addition, the embodiment realizes high concurrency of message processing under the premise of ensuring consistency through the design of memory-level ring logical array. Specifically, an array of 1024 continuous addresses is applied in the system memory, the array is formed into a ring through Hash operation on the address, the results of the transaction orders (i.e. the addresses to be written according to Hash operation) successively generated by the initiator are written in the corresponding positions in the ring in advance, and the arriving transaction orders can be independently written according to the processing progress of the threads they are online. Through the advance application of positions and the advance calculation of numbers, the massive order synchronization, rapid and orderly "check-in" of the bus is realized by "exchanging time for space", avoiding the huge overhead caused by frequent locking in the conventional queuing. In addition to the ring logical array, there are pointers indicating the head and tail of the queue, providing a high-concurrency and high-reliability producer order entry interface and a consumer order consumption interface. The embodiment can also meet the access of multiple initiator nodes and the generation of orders at the same time, and the access of multiple accepter nodes and the processing of orders at the same time, effectively realizing the rapid multiplication of business.
[0044] In an embodiment, assembling the lock-free atomic communication bus according to the ring logical array comprises:
[0045] Obtaining the number of bytes in the lock-free message queue, and determining whether the number of bytes reaches a preset number of bytes;
[0046] If the number of bytes in the lock-free message queue does not reach the preset number of bytes, the lock-free message queue is byte padded.
[0047] In this embodiment, the memory padding and cache alignment technology can greatly improve the cache efficiency and hit rate of the financial transaction order instruction, that is, the ring logic array is supplemented by the cache alignment technology. It can be understood that when the ring logic array is supplemented, the space in the ring logic array is actually supplemented, rather than directly supplementing the ring logic array. In addition, it should be noted that before the step of setting a logical pointer for the entry and exit of each ring logic array and setting an access address for each space corresponding to each ring logic array by using the CAS technology, byte padding is performed, that is, the ring logic array is supplemented by the cache alignment technology, and then the CAS technology is used to set a logical pointer for the entry and exit of each ring logic array.
[0048] In a specific application scenario, the memory padding and cache alignment technology can support processing 100 million messages per second. The cache memory, that is, the cache memory, reads the financial transaction order instruction from the cache memory much faster than from the memory. The cache memory caches data by row, and a cache line is generally 64 bytes. If the message length of the lock-free message queue is not enough for 64 bytes, other data will also enter the cache line at the same time, which will cause the cache line to be invalid, and thus the financial transaction order instruction needs to be read from the memory again, which will cause the performance of the cross-border joint order bus technology to decrease. Therefore, in order to ensure that each financial transaction order instruction in the lock-free message queue can occupy a cache line and avoid interference from other financial transaction order instructions, the lock-free message queue that is less than 64 bytes is padded to align with the cache line size.
[0049] In an embodiment, the step 102 comprises:
[0050] The storage address of the ring logic array is encrypted to obtain a first sub-key;
[0051] According to the message data of the financial transaction order instruction, the information space is divided and the memory is padded;
[0052] A triple data encryption algorithm is used as a base encryptor to encrypt the financial transaction order instruction by using a first sub-key mapped in sequence;
[0053] The encrypted financial transaction order instruction is decoded and deconstructed by using the protobuf coding technology, so that the message format of the financial transaction order instruction is compatible with the message format of the domestic system.
[0054] In this embodiment, a high-concurrency bus encryption algorithm is designed based on the CTR symmetric encryption idea. Specifically, the counter parameter of the CTR symmetric encryption is replaced by the storage address of the financial transaction order instruction processing as a ring logic array, a series of first-level sub-keys are directly encrypted by the storage address step by step, then the order message data is divided according to the design structure (regular encryption algorithm according to fixed length division) and filled in memory, and then a triple data encryption algorithm (Triple DES) is used as a base encryptor, and each part is encrypted by the first-level sub-key mapped in sequence instead of XOR operation. The reuse of the Hash virtual address in this embodiment realizes the adaptive order information collection algorithm and the credential connection of the lock-free atomic communication bus. Both the receiving and transmitting ends can efficiently encrypt and decrypt according to the limited virtual address information, and the intercepted person cannot obtain the order information, which perfectly realizes the order communication security. In addition, in the message division encryption process, the plaintext, ciphertext and key of the front and rear parts are not dependent on any calculation, which perfectly supports high-performance parallel computing and guarantees the order throughput rate of the bus. Further, the encrypted financial transaction order instruction is decoded and data is deconstructed by using the protobuf coding technology, so that the message format of the financial transaction order instruction is compatible with the message format of the domestic system, so that the domestic system can receive the financial transaction order instruction without obstacles.
[0055] In an embodiment, before the step 102, the step 102 comprises:
[0056] The field validity check and the business validity check are performed on the financial transaction order instruction.
[0057] When the fields in the financial transaction order instruction are valid and the business is valid, the message format conversion step is entered.
[0058] In the embodiment, before the dynamic configuration in the adaptive order information collection algorithm converts the message format of the financial transaction order instruction, the received financial transaction order instruction is checked, such as checking the field validity and business validity in the financial transaction order instruction, and only when the field in the financial transaction order instruction is valid and the business is also valid, the dynamic configuration in the adaptive order information collection algorithm converts the message format of the financial transaction order instruction. That is, if the field of the financial transaction order instruction is invalid, or the business is invalid, or the field and the business are invalid, the financial transaction order instruction is not converted in message format, so the financial transaction order instruction cannot be processed continuously. For example, the validity of the direction field in a financial transaction order instruction is checked. Specifically, for a stock buying and selling financial transaction order instruction, it is checked whether the direction field in the stock buying and selling financial transaction order instruction is buy or sell. If the direction field is buy or sell, the message format conversion step is entered. If the direction field is other values, it is determined that the direction field is invalid, so the stock buying and selling financial transaction order instruction is not processed continuously. The embodiment automatically checks the financial transaction order instruction of the cross-border joint order bus throughput, judges the data validity and business validity of the order elements of the domestic and foreign systems according to the dynamically configured multiple system order standards, identifies the abnormal order instruction in advance, and triggers asynchronous alarm.
[0059] In an embodiment, after the step 102, the method comprises:
[0060] The financial transaction order instruction is converted into a binary stream through serialization technology and saved to the SQLite database.
[0061] In the embodiment, for each financial transaction order instruction received through the cross-border joint order bus technology, the SQLite technology is used to save it, so as to ensure the high availability of the cross-border joint order bus technology. Of course, the message format of the saved financial transaction order instruction has been converted into the internal message format through the dynamic configuration in the adaptive order information collection algorithm. When the cross-border joint order bus technology abnormally, the financial transaction order instruction saved through the SQLite database can be used for quick recovery, so as to ensure the stability of the cross-border joint order bus technology. In a specific application scenario, the cross-border joint order bus technology can complete the financial transaction order instruction recovery process within 10 ms.
[0062] In a specific embodiment, as Figure 2As shown, the initiator (for example, an overseas system) initiates an order transaction instruction, and based on the built-in risk control in the order transaction, receives the order transaction instruction through an adaptive order information collection algorithm in the cross-border joint order bus technology, and stores the order transaction instruction into a lock-free atomic communication bus. The lock-free atomic communication bus performs information alignment and information compression on the order transaction instruction to make the order transaction instruction adaptive to other systems, and sends the order transaction instruction to the receiver (for example, an inland system) through the cross-border joint order bus technology, and performs built-in risk control and entrusts submission by the receiver. When receiving a transaction return sent by the receiver, the transaction return is stored in the lock-free atomic communication bus, and the transaction return is fed back to the initiator.
[0063] Figure 3 A schematic block diagram of a financial transaction order cross-border joint processing device 300 provided by an embodiment of the present application is shown in the figure. The device 300 includes:
[0064] A receiving unit 301 is configured to receive a financial transaction order instruction sent by an overseas system through an adaptive order information collection algorithm in a cross-border joint order bus technology.
[0065] A first conversion unit 302 is configured to perform message format conversion on the financial transaction order instruction by using a dynamic configuration in the adaptive order information collection algorithm, so that the message format of the converted financial transaction order instruction matches that of an inland system, and then sends the financial transaction order instruction to the inland system.
[0066] A returning unit 303 is configured to receive a transaction return sent by the inland system when the inland system completes a corresponding financial transaction according to the financial transaction order instruction and returns the corresponding transaction return, and returns the transaction return to the overseas system through the cross-border joint order bus technology.
[0067] In an embodiment, the receiving unit 301 includes:
[0068] A second conversion unit is configured to convert the message format of the received financial transaction order instruction into the message format of the Fix protocol by using the Quickfix technology.
[0069] In an embodiment, the financial transaction order cross-border joint processing device 300 further includes:
[0070] A hash calculation unit is configured to process the financial transaction order instruction into a ring logic array by using a hash algorithm.
[0071] An assembly unit is configured to assemble a lock-free atomic communication bus according to the ring logic array.
[0072] A pointer setting unit is configured to set logical pointers for the entry and exit of each ring-shaped logical array by using the CAS technology, and set access addresses for each space corresponding to each ring-shaped logical array.
[0073] An instruction storage unit is configured to store the financial transaction order instruction converted in the message format in the lock-free atomic communication bus.
[0074] In an embodiment, the assembling unit comprises:
[0075] A byte judgment unit is configured to obtain the number of bytes in the lock-free message queue in the lock-free atomic communication bus, and judge whether the number of bytes reaches a preset number of bytes.
[0076] A byte filling unit is configured to fill bytes in the lock-free message queue if the number of bytes in the lock-free message queue does not reach the preset number of bytes.
[0077] In an embodiment, the first conversion unit 302 comprises:
[0078] A first encryption unit is configured to encrypt the storage address of the ring-shaped logical array to obtain a first child key.
[0079] A splitting unit is configured to split the financial transaction order instruction according to the message data by information space, and perform memory padding.
[0080] A second encryption unit is configured to use a triple data encryption algorithm as a base encryptor, and encrypt the financial transaction order instruction by using the first child key mapped in sequence.
[0081] A decryption unit is configured to decode and destructure the encrypted financial transaction order instruction by using the protobuf encoding technology, so that the message format of the financial transaction order instruction is compatible with the message format of the domestic system.
[0082] In an embodiment, the first conversion unit 302 comprises:
[0083] A checking unit is configured to perform field validity checking and business validity checking on the financial transaction order instruction.
[0084] A conversion unit is configured to convert the financial transaction order instruction into the message format when the field in the financial transaction order instruction is valid and the business is valid.
[0085] In an embodiment, the first conversion unit 302 comprises:
[0086] An instruction storage unit is configured to convert the financial transaction order instruction into a binary stream by using the serialization technology, and save the binary stream to the SQLite database.
[0087] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part are described by referring to the description of the embodiments of the method part.
[0088] The embodiments of the present application also provide a computer readable storage medium, which has a computer program stored thereon, and the computer program can implement the steps provided by the above embodiments when executed. The storage medium can include U disk, mobile hard disk, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk and various storage medium that can store program codes.
[0089] The embodiments of the present application also provide a computer device, which can include a memory and a processor, and the memory has a computer program stored therein, and the processor can implement the steps provided by the above embodiments when calling the computer program in the memory. Of course, the computer device can also include various network interfaces, power supplies and other components.
[0090] The embodiments in the description are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the system disclosed by the embodiments, since it corresponds to the method disclosed by the embodiments, the description is relatively simple, and the related parts can be referred to the method part. It should be pointed out that, for those skilled in the art, without departing from the principles of the present application, some improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
[0091] It should also be noted that in the present specification, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
Claims
1. A method for cross-border joint processing of financial transaction orders, characterized in that, The application comprises the following steps: receiving a financial transaction order instruction sent by an overseas system through an adaptive order information collection algorithm in a cross-border joint order bus technology; converting the message format of the financial transaction order instruction by using a dynamic configuration in the adaptive order information collection algorithm, so that the message format of the converted financial transaction order instruction matches that of an inland system, and then sending the financial transaction order instruction to the inland system; when the corresponding financial transaction is completed by the inland system according to the financial transaction order instruction and a corresponding transaction return is returned, receiving the transaction return sent by the inland system and returning the transaction return to the overseas system through the cross-border joint order bus technology; the application further comprises the following steps: processing the financial transaction order instruction into a circular logic array by using a hash algorithm; assembling a lock-free atomic communication bus according to the circular logic array; setting a logical pointer for an entry and an exit on each circular logic array and setting an access address for each space corresponding to each circular logic array by using a CAS technology; storing the financial transaction order instruction after message format conversion in the lock-free atomic communication bus; the step of converting the message format of the financial transaction order instruction by using a dynamic configuration in the adaptive order information collection algorithm, so that the message format of the converted financial transaction order instruction matches that of an inland system, and then sending the financial transaction order instruction to the inland system, comprises the following steps: encrypting the storage address of the circular logic array to obtain a first sub-key; dividing the message data of the financial transaction order instruction according to information spaces and performing memory padding; encrypting the financial transaction order instruction by using a three-way data encryption algorithm as a base encryptor and through a first sub-key mapped in sequence; decoding and data deconstructing the encrypted financial transaction order instruction by using a protobuf coding technology, so that the message format of the financial transaction order instruction is compatible with that of the inland system.
2. The method for cross-border joint processing of financial transaction orders according to claim 1, characterized in that, the step of receiving a financial transaction order instruction sent by an overseas system through an adaptive order information collection algorithm in a cross-border joint order bus technology, comprises the following step: converting the message format of the received financial transaction order instruction into that of a Fix protocol by using a Quickfix technology.
3. The method for cross-border joint processing of financial transaction orders according to claim 1, characterized in that, the step of assembling a lock-free atomic communication bus according to the circular logic array, comprises the following steps: obtaining the number of bytes in each lock-free message queue in the lock-free atomic communication bus and determining whether the number of bytes reaches a preset number of bytes; if the number of bytes in the lock-free message queue does not reach the preset number of bytes, performing byte padding on the lock-free message queue.
4. The method for cross-border joint processing of financial transaction orders according to claim 1, characterized in that, before the step of converting the message format of the financial transaction order instruction by using a dynamic configuration in the adaptive order information collection algorithm, the application comprises the following steps: performing field validity checking and business validity checking on the financial transaction order instruction; when the fields in the financial transaction order instruction are valid and the business is valid, proceeding to the step of message format conversion.
5. The method for cross-border joint processing of financial transaction orders according to claim 1, characterized in that, after the step of converting the message format of the financial transaction order instruction by using a dynamic configuration in the adaptive order information collection algorithm, the application comprises the following steps: The financial transaction order instruction is converted into a binary stream through serialization technology and saved to a SQLite database.
6. An apparatus for cross-border joint processing of financial transaction orders, characterized in that, The method comprises the following steps: receiving a financial transaction order instruction sent by an overseas system through an adaptive order information collection algorithm in a cross-border joint order bus technology; a first conversion unit is configured to perform message format conversion on the financial transaction order instruction according to a dynamic configuration in the adaptive order information collection algorithm, so that the message format of the converted financial transaction order instruction matches that of a domestic system, and then sends the financial transaction order instruction to the domestic system; a returning unit is configured to receive a transaction return sent by the domestic system when the domestic system completes a corresponding financial transaction according to the financial transaction order instruction and returns the corresponding transaction return, and returns the transaction return to the overseas system through the cross-border joint order bus technology; The method further comprises the following steps: a hash calculation unit is configured to process the financial transaction order instruction into a ring logic array by using a hash algorithm; an assembly unit is configured to assemble a lock-free atomic communication bus according to the ring logic array; a pointer setting unit is configured to set a logical pointer for an entry and an exit on each ring logic array and set an access address for each space corresponding to each ring logic array by using a CAS technology; an instruction storage unit is configured to store the financial transaction order instruction after message format conversion in the lock-free atomic communication bus; The first conversion unit comprises: a first encryption unit is configured to perform encryption processing on the storage address of the ring logic array to obtain a first sub-key; a splitting unit is configured to split the financial transaction order instruction according to message data of a message according to information space and perform memory padding; a second encryption unit is configured to use a triple data encryption algorithm as a base encryptor to encrypt the financial transaction order instruction by using a first sub-key mapped in sequence; a decryption unit is configured to decode and destructure the encrypted financial transaction order instruction by using a protobuf coding technology, so that the message format of the financial transaction order instruction is compatible with that of the domestic system.
7. A computer device, comprising: The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method for cross-border joint processing of a financial transaction order according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method for cross-border joint processing of a financial transaction order according to any one of claims 1 to 5.
Citation Information
Patent Citations
Data exchange device, system and method
CN1913492A