CN112634047B - Foreign exchange transaction simulation test method and device, computer equipment and storage medium - Google Patents

Foreign exchange transaction simulation test method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112634047B
CN112634047B CN202011614948.8A CN202011614948A CN112634047B CN 112634047 B CN112634047 B CN 112634047B CN 202011614948 A CN202011614948 A CN 202011614948A CN 112634047 B CN112634047 B CN 112634047B
Authority
CN
China
Prior art keywords
transaction
information
simulator
gateway
order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011614948.8A
Other languages
Chinese (zh)
Other versions
CN112634047A (en
Inventor
杨兆政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202011614948.8A priority Critical patent/CN112634047B/en
Publication of CN112634047A publication Critical patent/CN112634047A/en
Application granted granted Critical
Publication of CN112634047B publication Critical patent/CN112634047B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides a foreign exchange transaction simulation test method, a device, computer equipment and a storage medium, which comprise the following steps: calling a transaction product reference data generator to generate transaction interest rate interchange product information and sending the transaction interest rate interchange product information to a transaction simulator for loading; invoking a transaction simulator gateway to acquire first behavior information of a plurality of simulated exchanges and converting the first behavior information into second behavior information which can be identified internally; reading transaction interest rate interchange product information through the transaction simulator gateway to verify the second behavior information, and sending the second behavior information to the transaction simulator after the second behavior information passes the verification; and triggering the transaction simulator to simulate the transaction according to the second behavior information, and sending the state information generated by the transaction simulation to the transaction simulator gateway. The invention can simulate the foreign exchange transaction test at any time and any place, and simulate the matching scene of transactions among a plurality of transaction institutions. In addition, the invention also relates to the technical field of blockchain, and transaction interest rate interchange product information can be stored in a blockchain node.

Description

Foreign exchange transaction simulation test method and device, computer equipment and storage medium
Technical Field
The invention relates to the field of performance test of transaction systems, in particular to a method and a device for simulating and testing foreign exchange transactions, computer equipment and a storage medium.
Background
The current simulation test of the foreign exchange transaction on the market needs to uniformly interface with the test platform of the foreign exchange transaction center to perform the simulation transaction and development test of the interest rate interchange market, however, the use of the test platform of the foreign exchange transaction center can cause various limitations on the simulation test of the foreign exchange transaction, for example, the related test can only be performed in a fixed open time of the foreign exchange transaction center. In addition, considering the problem of load, the test platform of the foreign exchange transaction center can provide a limited number of simulated test connections, so that a matching scene of transactions among a plurality of transaction institutions cannot be simulated.
Thus, there is a need for a method of simulating and testing a foreign exchange transaction.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for simulating a foreign exchange transaction, which can simulate a foreign exchange transaction by constructing a foreign exchange transaction simulation test platform at any time and any place, and simulate a matching scenario of transactions among a plurality of transaction facilities.
The first aspect of the invention provides a method for simulating and testing a foreign exchange transaction, which comprises the following steps:
Calling a transaction product reference data generator to generate transaction interest rate interchange product information, and sending the transaction interest rate interchange product information to a transaction simulator for loading;
calling a transaction simulator gateway to acquire first behavior information of a plurality of simulated exchanges, and performing state conversion on the first behavior information to acquire second behavior information which can be recognized internally;
Reading the transaction interest rate interchange product information through the transaction simulator gateway to verify the plurality of second behavior information, and sending the plurality of second behavior information to the transaction simulator after the verification is passed;
triggering the transaction simulator to simulate the transaction according to the plurality of second behavior information, and sending state information generated by the transaction simulation to the transaction simulator gateway.
According to an alternative embodiment of the present invention, the calling the trade product reference data generator to generate trade interest rate interchange product information and transmitting the trade interest rate interchange product information to the trade simulator for loading includes:
Acquiring a transaction interest rate exchange product information list in a format of an inter-bank market information exchange protocol pushed by a foreign exchange transaction center;
analyzing the transaction interest rate interchange product information list in the inter-bank market information exchange protocol format into a transaction interest rate interchange product information list in a Java format, and sending the transaction interest rate interchange product information list to the transaction simulator;
And reading transaction interest rate interchange product information in the Java format transaction interest rate interchange product information list through the transaction simulator and loading the transaction interest rate interchange product information into a memory.
According to an optional embodiment of the invention, the calling the transaction simulator gateway to obtain first behavior information of the plurality of simulated exchanges, and performing state transition on the plurality of first behavior information to obtain a plurality of second behavior information that is identifiable inside includes:
Monitoring an inter-bank market information exchange protocol message sent by the simulated exchange through an inter-bank market information exchange protocol, and analyzing first behavior information in the inter-bank market information exchange protocol message to obtain an inter-bank market information exchange protocol message protocol data field;
determining the meaning corresponding to the inter-bank market information exchange protocol message protocol data field according to a preset association relation table of the inter-bank market information exchange protocol message protocol data field and the meaning;
determining an internal message field corresponding to a preset meaning according to an association relation table of the meaning and the internal message field;
and packaging the internal message segment to obtain second behavior information which can be identified in the interior.
According to an alternative embodiment of the present invention, the foreign exchange transaction simulation test method further includes:
receiving the transaction quotation pushed by the foreign exchange transaction center through an interaction module and sending the transaction quotation to the transaction simulator gateway;
distributing the transaction facilitation to the plurality of simulated exchanges through the transaction simulator gateway.
According to an alternative embodiment of the present invention, the foreign exchange transaction simulation test method further includes:
Configuring an institution identification of a transaction institution of the foreign exchange transaction center for each interaction module;
When detecting that the interaction module simulates login, submitting login information to the transaction simulator gateway, wherein the login information carries an organization identifier;
And analyzing the mechanism identification in the login information through the transaction simulator gateway, and caching the mechanism identification in a preset map.
According to an alternative embodiment of the present invention, the triggering the transaction simulator to perform transaction simulation according to the plurality of second behavior information, and transmitting status information generated by the transaction simulation to the transaction simulator gateway includes:
when first login information serving as an interaction module of a buyer and second login information serving as an interaction module of a seller are received at the same time, acquiring first order information in the first login information and second order information in the second login information;
scanning order information in a buyer order queue and scanning order information in a seller order queue by the transaction simulator;
Judging whether the first order information is the optimal market of the order information in the buyer order queue and judging whether the second order information is the optimal market of the order information in the seller order queue;
when the first order information is determined to be the optimal market of the order information in the buyer order queue and the second order information is determined to be the optimal market of the order information in the seller order queue, performing simulated transaction on the first order information and the second order information according to a priority principle;
The method comprises the steps of sending seller state information generated by simulated transaction and buyer state information generated by simulated transaction to the transaction simulator gateway, sending the seller state information generated by the simulated transaction to an interaction module serving as a buyer through the transaction simulator gateway, and sending the buyer state information generated by the simulated transaction to the interaction module serving as the seller.
According to an alternative embodiment of the present invention, the foreign exchange transaction simulation test method further includes:
Judging that the first order information is not the optimal market of the order information in the buyer order queue, and/or judging that the second order information is not the optimal market of the order information in the seller order queue, not executing simulation transaction and generating information of failure of order transaction;
and converting the information of the failure of the order transaction into error information through the transaction simulator gateway according to an inter-bank market information exchange protocol, and feeding the error information back to the interaction module serving as the buyer and the interaction module serving as the seller.
A second aspect of the present invention provides a foreign exchange transaction simulation test device, including:
The generation module is used for calling a transaction product reference data generator to generate transaction interest rate interchange product information and sending the transaction interest rate interchange product information to the transaction simulator for loading;
The conversion module is used for calling the transaction simulator gateway to acquire first behavior information of a plurality of simulated exchanges and carrying out state conversion on the first behavior information to acquire second behavior information which can be identified internally;
The verification module is used for reading the transaction interest rate interchange product information through the transaction simulator gateway to verify the plurality of second behavior information, and sending the plurality of second behavior information to the transaction simulator after the verification is passed;
And the simulation module is used for triggering the transaction simulator to simulate the transaction according to the plurality of second behavior information and sending the state information generated by the transaction simulation to the transaction simulator gateway.
A third aspect of the invention provides a computer device comprising a processor for implementing the foreign exchange transaction simulation test method when executing a computer program stored in a memory.
A fourth aspect of the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the foreign exchange transaction simulation test method.
In summary, the method, the device, the computer equipment and the storage medium for simulating the foreign exchange transaction are characterized in that a set of foreign exchange transaction simulation test platform is built, and a transaction product reference data generator is developed to generate transaction interest rate interchange product information in the real production environment of the foreign exchange transaction center and load the transaction interest rate interchange product information into a memory, so that the limitation that the simulation test of the foreign exchange transaction can only be performed in the fixed open time of the foreign exchange transaction center is eliminated, the simulation and test of the foreign exchange transaction can be performed anytime and anywhere, and the test efficiency of simulating the foreign exchange transaction is improved; the gateway of the transaction simulator is developed to acquire behavior information of a plurality of simulated exchanges, simulation of a transaction mechanism and a communication mechanism of an external exchange center is realized, the transaction simulator is developed to simulate an external exchange transaction, a matching scene of transactions among the transaction mechanisms is simulated, the efficiency of developing an external exchange transaction system is improved, and the performance of developing the external exchange transaction system is improved through the transaction simulation of the external exchange transaction.
Drawings
Fig. 1 is a flowchart of a method for simulating and testing a foreign exchange transaction according to an embodiment of the invention.
Fig. 2 is a block diagram of a foreign exchange transaction simulation test device according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. It should be noted that, without conflict, the embodiments of the present invention and features in the embodiments may be combined with each other.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Fig. 1 is a flowchart of a method for simulating and testing a foreign exchange transaction according to an embodiment of the invention. The foreign exchange transaction simulation test method specifically comprises the following steps, the sequence of the steps in the flow chart can be changed according to different requirements, and some steps can be omitted.
S1, calling a transaction product reference data generator to generate transaction interest rate interchange product information, and sending the transaction interest rate interchange product information to a transaction simulator for loading.
A foreign exchange transaction simulation test platform is pre-installed in the computer equipment, and the foreign exchange transaction simulation test platform comprises: a transaction product reference data generator, a transaction simulator and a transaction simulator gateway.
The transaction product reference data generator generates transaction interest rate interchange product information for transaction, and sends the transaction interest rate interchange product information to the transaction simulator for loading, so that the transaction product reference data generator is a metadata source of the transaction simulator when the transaction simulator simulates the transaction.
The trade interest rate interchange product information for trade is generated through the trade product reference data generator of the foreign exchange trade simulation test platform, so that dependence on the trade interest rate interchange product information of a real foreign exchange trade center can be eliminated, and the trade simulation test can be performed at any time and any place.
In an alternative embodiment, the calling the trade product reference data generator to generate trade interest rate interchange product information and sending the trade interest rate interchange product information to the trade simulator for loading may include:
Acquiring a transaction interest rate exchange product information list in a format of an inter-bank market information exchange protocol pushed by a foreign exchange transaction center;
analyzing the transaction interest rate interchange product information list in the inter-bank market information exchange protocol format into a transaction interest rate interchange product information list in a Java format, and sending the transaction interest rate interchange product information list to the transaction simulator;
And reading transaction interest rate interchange product information in the Java format transaction interest rate interchange product information list through the transaction simulator and loading the transaction interest rate interchange product information into a memory.
In this alternative embodiment, the foreign exchange transaction simulation test platform communicates with a foreign exchange transaction center, where the foreign exchange transaction center is a transaction platform in a real production environment, records real transaction interest rate interchange product information in the production environment, and the data format of the real transaction interest rate interchange product information is an Inter-bank market information interchange protocol (Inter-bank Market Information eXchange Protocol, IMIX) format. The inter-bank market information exchange protocol is used for transmitting financial information of the inter-bank home currency market and the foreign exchange market, and is used for the inter-bank market information exchange protocol: message header + message body + message tail. The inter-bank market information exchange protocol provides business layer messages and strong Session layer messages before, during and after transactions covering domestic inter-bank market, and provides a convenient channel for interaction of financial data of the inter-bank market.
The foreign exchange transaction simulation test platform is a test platform developed by adopting JAVA language, and the transaction interest rate interchange product information list in the format of the inter-bank market information interchange protocol is analyzed into the transaction interest rate interchange product information list in the Java format and is sent to the transaction simulator for loading, so that the subsequent transaction simulator can conveniently use the transaction interest rate interchange product information for transaction simulation.
S2, calling a transaction simulator gateway to acquire first behavior information of a plurality of simulated exchanges, and performing state conversion on the first behavior information to acquire second behavior information which can be identified internally.
The transaction simulator gateway is used as a conversion module and is pre-cached with a map for storing first behavior information generated by a plurality of simulated transactions.
The simulated exchange is an integrated module in the foreign exchange transaction simulation test platform and is used for simulating foreign exchange transactions between real exchanges.
In an optional embodiment, the calling the transaction simulator gateway to obtain first behavior information of the plurality of simulated exchanges, and performing state transition on the plurality of first behavior information to obtain a plurality of second behavior information that is identifiable inside includes:
Monitoring an inter-bank market information exchange protocol message sent by the simulated exchange through an inter-bank market information exchange protocol, and analyzing first text information in the inter-bank market information exchange protocol message to obtain an inter-bank market information exchange protocol message protocol data field;
determining the meaning corresponding to the inter-bank market information exchange protocol message protocol data field according to a preset association relation table of the inter-bank market information exchange protocol message protocol data field and the meaning;
determining an internal message field corresponding to a preset meaning according to an association relation table of the meaning and the internal message field;
and packaging the internal message segment to obtain second behavior information which can be identified in the interior.
In this alternative embodiment, two association tables are pre-stored in the computer device, one is the association table of the meaning and the message protocol data field of the market information exchange protocol between banks, and the other is the association table of the meaning and the internal message field. The transaction simulator gateway supports simultaneous access of a plurality of simulated exchanges, connection between the simulated exchanges and the transaction simulator gateway is performed in the form of an inter-bank market information exchange protocol, and the inter-bank market information exchange protocol is uniformly managed by the transaction simulator gateway.
Through the two association relation tables, the transaction simulator gateway can convert the external inter-bank market information exchange protocol messages sent by the simulated exchange into internal identifiable messages, and the external inter-bank market information exchange protocol messages correspond to the internal identifiable messages one by one.
By simultaneously accessing a plurality of simulated exchanges, a matching scene of transactions between a plurality of exchanges can be simulated.
S3, reading the transaction interest rate interchange product information through the transaction simulator gateway, checking the plurality of second behavior information, and sending the plurality of second behavior information to the transaction simulator after the verification is passed.
And the transaction simulator gateway reads the transaction interest rate interchange product information and uses the transaction interest rate interchange product information as reference information to carry out security and validity verification on the second behavior information.
The second behavior information may include the total amount of orders, how many lots, the singular amount to put at a time, and so on. For example, assuming that the instruction corresponding to the second behavior information is 16/4/4/3.656%, the meaning is set to be 16M for the total amount of orders, four times of orders are paid out, 4M for each amount of orders, and if the fixed transaction interest market price is lower than 3.656%, the order-putting operation is stopped. The transaction simulator gateway obtains the target transaction interest rate market price in the transaction interest rate interchange product information, judges whether the target transaction interest rate market price is larger than 3.656 percent, and if the target transaction interest rate market price is higher than 3.656 percent, the second behavior information is safe and effective, and the bill placing operation is executed. If the target trading interest market price is less than 3.656%, indicating that the second behavior information is unsafe and invalid, stopping executing the order placing operation.
And S4, triggering the transaction simulator to conduct transaction simulation according to the second behavior information, and sending state information generated by the transaction simulation to the transaction simulator gateway.
After the second behavior information passes the security and validity check, the transaction simulator can be triggered to carry out simulation transaction, after the simulation transaction is executed, the state information of the order is generated, and then the generated state information is uniformly stored and authority managed by the transaction simulator gateway.
According to the embodiment, a set of foreign exchange transaction simulation test platform is built, a transaction product reference data generator is developed to generate transaction interest rate interchange product information in a real production environment of a foreign exchange transaction center and load the transaction interest rate interchange product information into a memory, so that the limitation that simulation test of foreign exchange transaction can only be carried out in a fixed open time of the foreign exchange transaction center is eliminated, simulation and test of foreign exchange transaction can be carried out anytime and anywhere, and the test efficiency of simulating foreign exchange transaction is improved; the gateway of the transaction simulator is developed to acquire behavior information of a plurality of simulated exchanges, simulation of a transaction mechanism and a communication mechanism of an external exchange center is realized, the transaction simulator is developed to simulate an external exchange transaction, a matching scene of transactions among the transaction mechanisms is simulated, the efficiency of developing an external exchange transaction system is improved, and the performance of developing the external exchange transaction system is improved through the transaction simulation of the external exchange transaction.
In an alternative embodiment, the method for simulating and testing the foreign exchange transaction further comprises:
receiving the transaction quotation pushed by the foreign exchange transaction center through an interaction module and sending the transaction quotation to the transaction simulator gateway;
distributing the transaction facilitation to the plurality of simulated exchanges through the transaction simulator gateway.
In this alternative embodiment, LINE HANDLER (LH) is an interactive module that interfaces the transaction simulator test platform with the foreign exchange transaction center, and may be understood as the outermost portion of the transaction simulator test platform, where the transaction simulator gateway is connected to one or more LH modules and the simulated exchange respectively.
And distributing the transaction facts of the foreign exchange transaction center to the simulated exchange through the transaction simulator gateway in real time, and displaying the transaction facts by the simulated exchange, so that the tester can generate first behavior information through the simulated exchange according to the transaction facts. Therefore, the transaction situation of the foreign exchange transaction center can be simulated more truly, and the success rate of the test is higher.
In an alternative embodiment, the method for simulating and testing the foreign exchange transaction further comprises:
configuring an institution identification of a transaction institution of the foreign exchange transaction center for each LH module;
When detecting that the LH module simulates login, submitting login information to the transaction simulator gateway, wherein the login information carries an organization identifier;
And analyzing the mechanism identification in the login information through the transaction simulator gateway, and caching the mechanism identification in a preset map.
In this alternative embodiment, the institution identification is used to uniquely identify a transaction institution of a foreign exchange transaction center, and may be used to subsequently direct the forwarding of transaction information by the transaction simulator gateway to the simulated exchange, LH module.
The LH corresponds to the session of the client, the transaction simulator gateway corresponds to the session of the server, the session is equivalent to the session of a plurality of clients accessing the same server, and the clients are simultaneously placed through the transaction simulator gateway through the design and realization based on session connection, so that the matching scene of transactions among a plurality of transaction institutions is simulated.
In an alternative embodiment, the step S4 (triggering the transaction simulator to perform transaction simulation according to the second behavior information and sending status information generated by the transaction simulation to the transaction simulator gateway) specifically includes:
When first login information of an LH module serving as a buyer and second login information of an LH module serving as a seller are received at the same time, acquiring first order information in the first login information and acquiring second order information in the second login information;
scanning order information in a buyer order queue and scanning order information in a seller order queue by the transaction simulator;
Judging whether the first order information is the optimal market of the order information in the buyer order queue and judging whether the second order information is the optimal market of the order information in the seller order queue;
when the first order information is determined to be the optimal market of the order information in the buyer order queue and the second order information is determined to be the optimal market of the order information in the seller order queue, performing simulated transaction on the first order information and the second order information according to a priority principle;
Sending seller state information generated by simulated transaction and buyer state information generated by simulated transaction to the transaction simulator gateway, sending the seller state information generated by simulated transaction to the LH module serving as a buyer through the transaction simulator gateway, and sending the buyer state information generated by simulated transaction to the LH module serving as the seller.
In this alternative embodiment, the priority principle may be a time priority principle, or a price priority principle.
For example, it is assumed that the transaction facility a corresponds to the first LH module, the transaction facility B corresponds to the second LH module, after the first LH module and the second LH module successfully log onto the foreign exchange transaction simulation test platform, the transaction simulator receives order information of the first LH module and the second LH module at the same time, the transaction simulator scans results on a purchase order queue, and it is assumed that the two order information are optimal quotations in corresponding directions respectively, so that the transaction simulator performs a transaction (with the same quantity) on the two orders, and sends state information of the transaction of the order to the two facilities again.
According to the alternative embodiment, the transaction simulator scans the order information in the order queues of the buyers and sellers and simulates the transaction when the order information of the buyers and the sellers are determined to be the optimal market, so that the matching transaction in a real foreign exchange transaction scene is realized, and the process of simulating and testing the foreign exchange transaction is realized.
In an alternative embodiment, the method for simulating and testing the foreign exchange transaction further comprises:
when the first order information is determined not to be the optimal quotation of the order information in the buyer order queue and/or the second order information is determined not to be the optimal quotation of the order information in the seller order queue, performing no simulation transaction and generating information of failure of the order transaction;
and converting the information of the failure of the order transaction into error information through the transaction simulator gateway according to an inter-bank market information exchange protocol, and feeding the error information back to the LH module serving as the buyer and the LH module serving as the seller.
In this alternative embodiment, if the first order information is not the optimal market for the order information in the buyer order queue and/or the second order information is not the optimal market for the order information in the seller order queue, it indicates that the order matching transaction cannot be performed and the order is submitted with failure.
The transaction simulator gateway converts the information of the failure of the order transaction into error information according to the market information exchange protocol between banks and feeds the error information back to LH modules of buyers and sellers, so that the transaction process of the foreign exchange transaction simulation test is further realized.
In summary, the foreign exchange transaction simulation test platform is built, which can be used for internal testing and development, and can be used for arbitrarily modifying the open and close time of foreign exchange transaction, the state of a simulation exchange, a matching mechanism, exchange products of transaction interest rates and the like in the foreign exchange transaction simulation test platform, so that various foreign exchange transaction processes of a foreign exchange transaction center are completely simulated. And the foreign exchange transaction simulation test platform is used for simulating, testing and developing the foreign exchange transaction in the real environment, so that the efficiency of function development of the foreign exchange transaction system is improved. According to the embodiment, the process of simulating and testing the foreign exchange transaction is realized from nothing to nothing, the usability of the program is enhanced by converting transaction interest rate interchange product information in a format of a market information interchange protocol between banks, the logic of a gateway of the transaction simulator can be modified for adapting in the process of subsequently modifying the protocol, the state of a connected transaction mechanism is cached, a plurality of transaction mechanisms are supported to be simultaneously connected for transaction, and the flexibility of the transaction simulator is improved; the transaction product reference data generator is added to generate static data, and required product information can be loaded at any time and any place according to requirements, so that subsequent code iteration is facilitated, and simulation transaction programs of other businesses are developed.
It is emphasized that to further ensure the privacy and security of the transaction interest rate interchange product information, the transaction interest rate interchange product information may also be stored in a node of a blockchain.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Fig. 2 is a block diagram of a foreign exchange transaction simulation test device according to a second embodiment of the present invention.
In some embodiments, the foreign exchange transaction simulation test device 20 may include a plurality of functional modules comprised of program code segments. Program code for each of the program segments in the foreign exchange transaction simulation test device 20 may be stored in a memory of a computer apparatus and executed by at least one processor to perform the functions of the foreign exchange transaction simulation test (described in detail with reference to fig. 1).
In this embodiment, the foreign exchange transaction simulation test device 20 may be divided into a plurality of functional modules according to the functions performed by the device. The functional module may include: a generation module 201, a conversion module 202, a verification module 203, a simulation module 204, a distribution module 205 and a login module 206. The module referred to in the present invention refers to a series of computer program segments capable of being executed by at least one processor and of performing a fixed function, stored in a memory. In the present embodiment, the functions of the respective modules will be described in detail in the following embodiments.
The generating module 201 is configured to invoke a transaction product reference data generator to generate transaction interest rate interchange product information, and send the transaction interest rate interchange product information to a transaction simulator for loading.
A foreign exchange transaction simulation test platform is pre-installed in the computer equipment, and the foreign exchange transaction simulation test platform comprises: a transaction product reference data generator, a transaction simulator and a transaction simulator gateway.
The transaction product reference data generator generates transaction interest rate interchange product information for transaction, and sends the transaction interest rate interchange product information to the transaction simulator for loading, so that the transaction product reference data generator is a metadata source of the transaction simulator when the transaction simulator simulates the transaction.
The trade interest rate interchange product information for trade is generated through the trade product reference data generator of the foreign exchange trade simulation test platform, so that dependence on the trade interest rate interchange product information of a real foreign exchange trade center can be eliminated, and the trade simulation test can be performed at any time and any place.
In an alternative embodiment, the generating module 201 invokes the trade product reference data generator to generate trade interest rate interchange product information, and sends the trade interest rate interchange product information to the trade simulator for loading may include:
Acquiring a transaction interest rate exchange product information list in a format of an inter-bank market information exchange protocol pushed by a foreign exchange transaction center;
analyzing the transaction interest rate interchange product information list in the inter-bank market information exchange protocol format into a transaction interest rate interchange product information list in a Java format, and sending the transaction interest rate interchange product information list to the transaction simulator;
And reading transaction interest rate interchange product information in the Java format transaction interest rate interchange product information list through the transaction simulator and loading the transaction interest rate interchange product information into a memory.
In this alternative embodiment, the foreign exchange transaction simulation test platform communicates with a foreign exchange transaction center, where the foreign exchange transaction center is a transaction platform in a real production environment, records real transaction interest rate interchange product information in the production environment, and the data format of the real transaction interest rate interchange product information is an Inter-bank market information interchange protocol (Inter-bank Market Information eXchange Protocol, IMIX) format. The inter-bank market information exchange protocol is used for transmitting financial information of the inter-bank home currency market and the foreign exchange market, and is used for the inter-bank market information exchange protocol: message header + message body + message tail. The inter-bank market information exchange protocol provides business layer messages and strong Session layer messages before, during and after transactions covering domestic inter-bank market, and provides a convenient channel for interaction of financial data of the inter-bank market.
The foreign exchange transaction simulation test platform is a test platform developed by adopting JAVA language, and the transaction interest rate interchange product information list in the format of the inter-bank market information interchange protocol is analyzed into the transaction interest rate interchange product information list in the Java format and is sent to the transaction simulator for loading, so that the subsequent transaction simulator can conveniently use the transaction interest rate interchange product information for transaction simulation.
The conversion module 202 is configured to invoke a transaction simulator gateway to obtain first behavior information of a plurality of simulated exchanges, and perform state conversion on the first behavior information to obtain second behavior information identifiable inside.
The transaction simulator gateway is used as a conversion module and is pre-cached with a map for storing first behavior information generated by a plurality of simulated transactions.
The simulated exchange is an integrated module in the foreign exchange transaction simulation test platform and is used for simulating foreign exchange transactions between real exchanges.
In an alternative embodiment, the transferring module 202 calls the transaction simulator gateway to obtain first behavior information of the plurality of simulated exchanges, and performing state transition on the plurality of first behavior information to obtain a plurality of second behavior information that is identifiable inside includes:
Monitoring an inter-bank market information exchange protocol message sent by the simulated exchange through an inter-bank market information exchange protocol, and analyzing first text information in the inter-bank market information exchange protocol message to obtain an inter-bank market information exchange protocol message protocol data field;
determining the meaning corresponding to the inter-bank market information exchange protocol message protocol data field according to a preset association relation table of the inter-bank market information exchange protocol message protocol data field and the meaning;
determining an internal message field corresponding to a preset meaning according to an association relation table of the meaning and the internal message field;
and packaging the internal message segment to obtain second behavior information which can be identified in the interior.
In this alternative embodiment, two association tables are pre-stored in the computer device, one is the association table of the meaning and the message protocol data field of the market information exchange protocol between banks, and the other is the association table of the meaning and the internal message field. The transaction simulator gateway supports simultaneous access of a plurality of simulated exchanges, connection between the simulated exchanges and the transaction simulator gateway is performed in the form of an inter-bank market information exchange protocol, and the inter-bank market information exchange protocol is uniformly managed by the transaction simulator gateway.
Through the two association relation tables, the transaction simulator gateway can convert the external inter-bank market information exchange protocol messages sent by the simulated exchange into internal identifiable messages, and the external inter-bank market information exchange protocol messages correspond to the internal identifiable messages one by one.
By simultaneously accessing a plurality of simulated exchanges, a matching scene of transactions between a plurality of exchanges can be simulated.
The verification module 203 is configured to read the transaction interest rate interchange product information through the transaction simulator gateway to verify the plurality of second behavior information, and send the plurality of second behavior information to the transaction simulator after the verification is passed.
And the transaction simulator gateway reads the transaction interest rate interchange product information and uses the transaction interest rate interchange product information as reference information to carry out security and validity verification on the second behavior information.
The second behavior information may include the total amount of orders, how many lots, the singular amount to put at a time, and so on. For example, assuming that the instruction corresponding to the second behavior information is 16/4/4/3.656%, the meaning is set to be 16M for the total amount of orders, four times of orders are paid out, 4M for each amount of orders, and if the fixed transaction interest market price is lower than 3.656%, the order-putting operation is stopped. The transaction simulator gateway obtains the target transaction interest rate market price in the transaction interest rate interchange product information, judges whether the target transaction interest rate market price is larger than 3.656 percent, and if the target transaction interest rate market price is higher than 3.656 percent, the second behavior information is safe and effective, and the bill placing operation is executed. If the target trading interest market price is less than 3.656%, indicating that the second behavior information is unsafe and invalid, stopping executing the order placing operation.
The simulation module 204 is configured to trigger the transaction simulator to perform transaction simulation according to the plurality of second behavior information, and send status information generated by the transaction simulation to the transaction simulator gateway.
After the second behavior information passes the security and validity check, the transaction simulator can be triggered to carry out simulation transaction, after the simulation transaction is executed, the state information of the order is generated, and then the generated state information is uniformly stored and authority managed by the transaction simulator gateway.
According to the embodiment, a set of foreign exchange transaction simulation test platform is built, a transaction product reference data generator is developed to generate transaction interest rate interchange product information in a real production environment of a foreign exchange transaction center and load the transaction interest rate interchange product information into a memory, so that the limitation that simulation test of foreign exchange transaction can only be carried out in a fixed open time of the foreign exchange transaction center is eliminated, simulation and test of foreign exchange transaction can be carried out anytime and anywhere, and the test efficiency of simulating foreign exchange transaction is improved; the gateway of the transaction simulator is developed to acquire behavior information of a plurality of simulated exchanges, simulation of a transaction mechanism and a communication mechanism of an external exchange center is realized, the transaction simulator is developed to simulate an external exchange transaction, a matching scene of transactions among the transaction mechanisms is simulated, the efficiency of developing an external exchange transaction system is improved, and the performance of developing the external exchange transaction system is improved through the transaction simulation of the external exchange transaction.
The distribution module 205 is configured to receive, through an interaction module, the transaction request pushed by the foreign exchange transaction center and send the transaction request to the transaction simulator gateway; distributing the transaction facilitation to the plurality of simulated exchanges through the transaction simulator gateway.
In this alternative embodiment, LINE HANDLER (LH) is an interactive module that interfaces the transaction simulator test platform with the foreign exchange transaction center, and may be understood as the outermost portion of the transaction simulator test platform, where the transaction simulator gateway is connected to one or more LH modules and the simulated exchange respectively.
And distributing the transaction facts of the foreign exchange transaction center to the simulated exchange through the transaction simulator gateway in real time, and displaying the transaction facts by the simulated exchange, so that the tester can generate first behavior information through the simulated exchange according to the transaction facts. Therefore, the transaction situation of the foreign exchange transaction center can be simulated more truly, and the success rate of the test is higher.
The login module 206 is configured to configure, for each LH module, an institution identification of a transaction institution of the foreign exchange transaction center; when detecting that the LH module simulates login, submitting login information to the transaction simulator gateway, wherein the login information carries an organization identifier; and analyzing the mechanism identification in the login information through the transaction simulator gateway, and caching the mechanism identification in a preset map.
In this alternative embodiment, the institution identification is used to uniquely identify a transaction institution of a foreign exchange transaction center, and may be used to subsequently direct the forwarding of transaction information by the transaction simulator gateway to the simulated exchange, LH module.
The LH corresponds to the session of the client, the transaction simulator gateway corresponds to the session of the server, the session is equivalent to the session of a plurality of clients accessing the same server, and the clients are simultaneously placed through the transaction simulator gateway through the design and realization based on session connection, so that the matching scene of transactions among a plurality of transaction institutions is simulated.
In an alternative embodiment, the simulating module 204 triggers the transaction simulator to perform transaction simulation according to the second behavior information, and sends status information generated by the transaction simulation to the transaction simulator gateway includes:
When first login information of an LH module serving as a buyer and second login information of an LH module serving as a seller are received at the same time, acquiring first order information in the first login information and acquiring second order information in the second login information;
scanning order information in a buyer order queue and scanning order information in a seller order queue by the transaction simulator;
Judging whether the first order information is the optimal market of the order information in the buyer order queue and judging whether the second order information is the optimal market of the order information in the seller order queue;
When the first order information is determined to be the optimal market of the order information in the buyer order queue and the second order information is determined to be the optimal market of the order information in the seller order queue, performing simulated transaction on the first order information and the second order information according to a priority principle; transmitting seller state information generated by simulated transaction and buyer state information generated by simulated transaction to the transaction simulator gateway, transmitting the seller state information generated by simulated transaction to the LH module serving as a buyer through the transaction simulator gateway, and transmitting the buyer state information generated by simulated transaction to the LH module serving as the seller;
when the first order information is determined not to be the optimal quotation of the order information in the buyer order queue and/or the second order information is determined not to be the optimal quotation of the order information in the seller order queue, performing no simulation transaction and generating information of failure of the order transaction; and converting the information of the failure of the order transaction into error information through the transaction simulator gateway according to an inter-bank market information exchange protocol, and feeding the error information back to the LH module serving as the buyer and the LH module serving as the seller.
In this alternative embodiment, the priority principle may be a time priority principle, or a price priority principle.
For example, it is assumed that the transaction facility a corresponds to the first LH module, the transaction facility B corresponds to the second LH module, after the first LH module and the second LH module successfully log onto the foreign exchange transaction simulation test platform, the transaction simulator receives order information of the first LH module and the second LH module at the same time, the transaction simulator scans results on a purchase order queue, and it is assumed that the two order information are optimal quotations in corresponding directions respectively, so that the transaction simulator performs a transaction (with the same quantity) on the two orders, and sends state information of the transaction of the order to the two facilities again.
According to the alternative embodiment, the transaction simulator scans the order information in the order queues of the buyers and sellers and simulates the transaction when the order information of the buyers and the sellers are determined to be the optimal market, so that the matching transaction in a real foreign exchange transaction scene is realized, and the process of simulating and testing the foreign exchange transaction is realized.
In this alternative embodiment, if the first order information is not the optimal market for the order information in the buyer order queue and/or the second order information is not the optimal market for the order information in the seller order queue, it indicates that the order matching transaction cannot be performed and the order is submitted with failure.
The transaction simulator gateway converts the information of the failure of the order transaction into error information according to the market information exchange protocol between banks and feeds the error information back to LH modules of buyers and sellers, so that the transaction process of the foreign exchange transaction simulation test is further realized.
In summary, the foreign exchange transaction simulation test platform is built, which can be used for internal testing and development, and can be used for arbitrarily modifying the open and close time of foreign exchange transaction, the state of a simulation exchange, a matching mechanism, exchange products of transaction interest rates and the like in the foreign exchange transaction simulation test platform, so that various foreign exchange transaction processes of a foreign exchange transaction center are completely simulated. And the foreign exchange transaction simulation test platform is used for simulating, testing and developing the foreign exchange transaction in the real environment, so that the efficiency of function development of the foreign exchange transaction system is improved. According to the embodiment, the process of simulating and testing the foreign exchange transaction is realized from nothing to nothing, the usability of the program is enhanced by converting transaction interest rate interchange product information in a format of a market information interchange protocol between banks, the logic of a gateway of the transaction simulator can be modified for adapting in the process of subsequently modifying the protocol, the state of a connected transaction mechanism is cached, a plurality of transaction mechanisms are supported to be simultaneously connected for transaction, and the flexibility of the transaction simulator is improved; the transaction product reference data generator is added to generate static data, and required product information can be loaded at any time and any place according to requirements, so that subsequent code iteration is facilitated, and simulation transaction programs of other businesses are developed.
It is emphasized that to further ensure the privacy and security of the transaction interest rate interchange product information, the transaction interest rate interchange product information may also be stored in a node of a blockchain.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. In the preferred embodiment of the present invention, the computer device 3 includes a memory 31, at least one processor 32, at least one communication bus 33, and a transceiver 34.
It will be appreciated by those skilled in the art that the configuration of the computer device shown in fig. 3 is not limiting of the embodiments of the present invention, and that either a bus-type configuration or a star-type configuration is possible, and that the computer device 3 may include more or less other hardware or software than that shown, or a different arrangement of components.
In some embodiments, the computer device 3 is a computer device capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and its hardware includes, but is not limited to, a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The computer device 3 may also include a client device, which includes, but is not limited to, any electronic product that can interact with a client by way of a keyboard, mouse, remote control, touch pad, or voice control device, such as a personal computer, tablet, smart phone, digital camera, etc.
It should be noted that the computer device 3 is only used as an example, and other electronic products that may be present in the present invention or may be present in the future are also included in the scope of the present invention by way of reference.
In some embodiments, the memory 31 has program code stored therein, and the at least one processor 32 may invoke the program code stored in the memory 31 to perform related functions. For example, each of the modules described in the above embodiments is a program code stored in the memory 31 and executed by the at least one processor 32, thereby realizing the functions of the respective modules. The Memory 31 includes Read-Only Memory (ROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable rewritable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic tape Memory, or any other medium that can be used for carrying or storing data.
In some embodiments, the at least one processor 32 is a Control Unit (Control Unit) of the computer device 3, connects the various components of the entire computer device 3 using various interfaces and lines, and performs various functions and processes of the computer device 3 by running or executing programs or modules stored in the memory 31, and invoking data stored in the memory 31. For example, the at least one processor 32, when executing program code stored in the memory, implements all or part of the steps of the method for simulating a foreign exchange transaction described in embodiments of the invention. The at least one processor 32 may be comprised of integrated circuits, such as a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functionality, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like.
In some embodiments, the at least one communication bus 33 is arranged to enable connected communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the computer device 3 may further comprise a power source (such as a battery) for powering the various components, preferably the power source is logically connected to the at least one processor 32 via a power management means, whereby the functions of managing charging, discharging, and power consumption are performed by the power management means. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The computer device 3 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described in detail herein.
The integrated units implemented in the form of software functional modules described above may be stored in a computer readable storage medium. The software functional module is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a processor (processor) to execute portions of the method for simulating a foreign exchange transaction according to various embodiments of the invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it will be obvious that the term "comprising" does not exclude other elements or that the singular does not exclude a plurality. Several of the elements or devices recited in the specification may be embodied by one and the same item of software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (6)

1. The foreign exchange transaction simulation test method is characterized by comprising the following steps of:
invoking a transaction product reference data generator to generate transaction interest rate interchange product information, and sending the transaction interest rate interchange product information to a transaction simulator for loading, wherein the transaction simulator comprises: acquiring a transaction interest rate exchange product information list in a format of an inter-bank market information exchange protocol pushed by a foreign exchange transaction center; analyzing the transaction interest rate interchange product information list in the inter-bank market information exchange protocol format into a transaction interest rate interchange product information list in a Java format, and sending the transaction interest rate interchange product information list to the transaction simulator; reading transaction interest rate interchange product information in the Java format transaction interest rate interchange product information list through the transaction simulator and loading the transaction interest rate interchange product information into a memory;
Invoking a transaction simulator gateway to acquire first behavior information of a plurality of simulated exchanges, and performing state conversion on the first behavior information to acquire second behavior information which can be recognized internally, wherein the method comprises the following steps: monitoring an inter-bank market information exchange protocol message sent by the simulated exchange through an inter-bank market information exchange protocol, and analyzing first behavior information in the inter-bank market information exchange protocol message to obtain an inter-bank market information exchange protocol message protocol data field; determining the meaning corresponding to the inter-bank market information exchange protocol message protocol data field according to a preset association relation table of the inter-bank market information exchange protocol message protocol data field and the meaning; determining an internal message field corresponding to a preset meaning according to an association relation table of the meaning and the internal message field; packaging the internal message segment to obtain second behavior information which can be identified in the interior;
Reading the transaction interest rate interchange product information through the transaction simulator gateway to verify the plurality of second behavior information, and sending the plurality of second behavior information to the transaction simulator after the verification is passed;
Triggering the transaction simulator to simulate the transaction according to the plurality of second behavior information, and sending state information generated by the transaction simulation to the transaction simulator gateway, wherein the method comprises the following steps: when first login information serving as an interaction module of a buyer and second login information serving as an interaction module of a seller are received at the same time, acquiring first order information in the first login information and second order information in the second login information; scanning order information in a buyer order queue and scanning order information in a seller order queue by the transaction simulator; judging whether the first order information is the optimal market of the order information in the buyer order queue and judging whether the second order information is the optimal market of the order information in the seller order queue; when the first order information is determined to be the optimal market of the order information in the buyer order queue and the second order information is determined to be the optimal market of the order information in the seller order queue, performing simulated transaction on the first order information and the second order information according to a priority principle; transmitting seller state information generated by simulated transaction and buyer state information generated by simulated transaction to the transaction simulator gateway, transmitting the seller state information generated by simulated transaction to an interaction module serving as a buyer through the transaction simulator gateway, and transmitting the buyer state information generated by simulated transaction to the interaction module serving as the seller; and
Judging that the first order information is not the optimal market of the order information in the buyer order queue, and/or judging that the second order information is not the optimal market of the order information in the seller order queue, not executing simulation transaction and generating information of failure of order transaction; and converting the information of the failure of the order transaction into error information through the transaction simulator gateway according to an inter-bank market information exchange protocol, and feeding the error information back to the interaction module serving as the buyer and the interaction module serving as the seller.
2. The method of claim 1, further comprising:
receiving the transaction quotation pushed by the foreign exchange transaction center through an interaction module and sending the transaction quotation to the transaction simulator gateway;
distributing the transaction facilitation to the plurality of simulated exchanges through the transaction simulator gateway.
3. The method of claim 2, further comprising:
Configuring an institution identification of a transaction institution of the foreign exchange transaction center for each interaction module;
When detecting that the interaction module simulates login, submitting login information to the transaction simulator gateway, wherein the login information carries an organization identifier;
And analyzing the mechanism identification in the login information through the transaction simulator gateway, and caching the mechanism identification in a preset map.
4. A foreign exchange transaction simulation test device, characterized in that the device comprises a module for implementing a foreign exchange transaction simulation test method according to any one of claims 1 to 3, the foreign exchange transaction simulation test device comprising:
The generation module is used for calling a transaction product reference data generator to generate transaction interest rate interchange product information and sending the transaction interest rate interchange product information to the transaction simulator for loading;
The conversion module is used for calling the transaction simulator gateway to acquire first behavior information of a plurality of simulated exchanges and carrying out state conversion on the first behavior information to acquire second behavior information which can be identified internally;
The verification module is used for reading the transaction interest rate interchange product information through the transaction simulator gateway to verify the plurality of second behavior information, and sending the plurality of second behavior information to the transaction simulator after the verification is passed;
And the simulation module is used for triggering the transaction simulator to simulate the transaction according to the plurality of second behavior information and sending the state information generated by the transaction simulation to the transaction simulator gateway.
5. A computer device comprising a processor for implementing the foreign exchange transaction simulation test method according to any one of claims 1 to 3 when executing a computer program stored in a memory.
6. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of simulating a foreign exchange transaction according to any one of claims 1 to 3.
CN202011614948.8A 2020-12-30 2020-12-30 Foreign exchange transaction simulation test method and device, computer equipment and storage medium Active CN112634047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011614948.8A CN112634047B (en) 2020-12-30 2020-12-30 Foreign exchange transaction simulation test method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011614948.8A CN112634047B (en) 2020-12-30 2020-12-30 Foreign exchange transaction simulation test method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112634047A CN112634047A (en) 2021-04-09
CN112634047B true CN112634047B (en) 2024-04-26

Family

ID=75286910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011614948.8A Active CN112634047B (en) 2020-12-30 2020-12-30 Foreign exchange transaction simulation test method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112634047B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139870B (en) * 2021-04-30 2023-01-31 东吴在线(上海)金融信息服务有限公司 Bond market acquiring and trading method, system, storage medium and computer equipment
CN113269544A (en) * 2021-05-26 2021-08-17 杭州云象网络技术有限公司 Interest rate interchange platform and interest rate interchange method based on alliance chain
CN113485902A (en) * 2021-07-08 2021-10-08 中国建设银行股份有限公司 Method, device, equipment and computer readable medium for testing service platform
CN114051027B (en) * 2021-11-09 2023-04-18 中国联合网络通信集团有限公司 Acquisition method of test instrument, protocol conversion node and instrument demand node
CN115964307B (en) * 2023-03-16 2023-06-16 深圳华锐分布式技术股份有限公司 Automatic test method, device, equipment and medium for transaction data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038655A (en) * 2007-04-25 2007-09-19 李立工 Intelligent foreign currency trade method and terminal device thereof
JP2010152801A (en) * 2008-12-26 2010-07-08 Fxcm Japan Inc Foreign exchange transaction program and foreign exchange transaction system
KR101701449B1 (en) * 2016-04-12 2017-02-03 (주)한국투자자산 System for automatical selling exchange
CN108932663A (en) * 2018-06-26 2018-12-04 中国银行股份有限公司 A kind of simulation trade matching method and device
CN109636603A (en) * 2018-12-06 2019-04-16 大连飞创信息技术有限公司 Security mock trading platform based on the configuration of message strategy
CN110473101A (en) * 2019-08-15 2019-11-19 中国银行股份有限公司 Mock trading message processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038655A (en) * 2007-04-25 2007-09-19 李立工 Intelligent foreign currency trade method and terminal device thereof
JP2010152801A (en) * 2008-12-26 2010-07-08 Fxcm Japan Inc Foreign exchange transaction program and foreign exchange transaction system
KR101701449B1 (en) * 2016-04-12 2017-02-03 (주)한국투자자산 System for automatical selling exchange
CN108932663A (en) * 2018-06-26 2018-12-04 中国银行股份有限公司 A kind of simulation trade matching method and device
CN109636603A (en) * 2018-12-06 2019-04-16 大连飞创信息技术有限公司 Security mock trading platform based on the configuration of message strategy
CN110473101A (en) * 2019-08-15 2019-11-19 中国银行股份有限公司 Mock trading message processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
A currency arbitrage machine based on the simulated bifurcation algorithm for ultrafast detection of optimal opportunity;Tatsumura K 等;2020 IEEE International Symposium on Circuits and Systems (ISCAS). IEEE;20200928;1-5 *

Also Published As

Publication number Publication date
CN112634047A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN112634047B (en) Foreign exchange transaction simulation test method and device, computer equipment and storage medium
US11416373B2 (en) Providing debug information on production containers using debug containers
CN112073269B (en) Block chain network testing method, device, server and storage medium
CN105556919B (en) Dual factor anthentication is carried out using service request bill
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
CN113704665B (en) Dynamic service release method and device, electronic equipment and storage medium
CN110347604A (en) Programming interface test method and equipment, electronic equipment and readable storage medium storing program for executing
CN112035350B (en) Test method and device for block chain system and computer equipment
CN104376452A (en) System and method for managing payment success rate on basis of international card payment channel
CN111444090B (en) Contract testing method and device in blockchain, electronic equipment and storage medium
CN113726890A (en) Block chain data service-oriented federal prediction method and system
CN110322321B (en) Block chain-based electronic bill transfer method, device, equipment and medium
CN112069078B (en) ESA interface pressure test method, ESA interface pressure test device, ESA interface pressure test equipment and storage medium
CN110532810A (en) Information processing method, device, electronic equipment and readable storage medium storing program for executing
CN110493234A (en) Certificate processing method, certificate processing unit and electronic equipment
WO2022241945A1 (en) Data processing method and device, and computer-readable storage medium
CN113592645B (en) Data verification method and device
CN114969175A (en) Method for butting insurance platform and external system and related equipment
CN110751455B (en) Method and device for processing joint service
CN113904774A (en) Block chain address authentication method and device and computer equipment
CN115242658B (en) Open system access method, device, computer equipment and storage medium
CN111127003B (en) Wallet account payment method, device and storage medium
CN114978675B (en) Access authentication method and device, electronic equipment and storage medium
CN108038750A (en) Sequence information generation method and device
CN116662208B (en) Transaction testing method, device and medium based on distributed baffle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant