CN112634047A - 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
CN112634047A
CN112634047A CN202011614948.8A CN202011614948A CN112634047A CN 112634047 A CN112634047 A CN 112634047A CN 202011614948 A CN202011614948 A CN 202011614948A CN 112634047 A CN112634047 A CN 112634047A
Authority
CN
China
Prior art keywords
transaction
information
simulator
interest rate
gateway
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.)
Granted
Application number
CN202011614948.8A
Other languages
Chinese (zh)
Other versions
CN112634047B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a foreign exchange transaction simulation test method, a device, computer equipment and a storage medium, comprising 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 obtain first behavior information of a plurality of simulated exchanges and converting the first behavior information into internally identifiable second behavior information; the transaction simulator gateway reads the transaction interest rate interchange product information to verify the second behavior information, and sends the second behavior information to the transaction simulator after the verification is passed; and triggering the transaction simulator to perform transaction simulation according to the second behavior information, and sending state information generated by the transaction simulation to the transaction simulator gateway. The invention can carry out simulation test of foreign exchange transaction at any time and any place, and can simulate matching scenes of transactions among a plurality of transaction institutions. In addition, the invention also relates to the technical field of block chains, and the transaction interest rate interchange product information can be stored in the block chain nodes.

Description

Foreign exchange transaction simulation test method and device, computer equipment and storage medium
Technical Field
The invention relates to the field of transaction system performance testing, in particular to a foreign exchange transaction simulation testing method, a foreign exchange transaction simulation testing device, computer equipment and a storage medium.
Background
The simulation test of the foreign exchange trade on the market needs to be uniformly docked to a test platform of a foreign exchange trade center to perform simulation trade and development test of the interest exchange market, however, the use of the test platform of the foreign exchange trade center causes a plurality of limitations on the simulation test of the foreign exchange trade, for example, related tests can be performed only in a fixed and open time of the foreign exchange trade center. In addition, in consideration of the load problem, the number of simulation test connections that can be provided by the test platform of the foreign exchange trading center is also relatively limited, and thus matching scenarios of trading among a plurality of trading institutions cannot be simulated.
Therefore, there is a need to provide a simulation test method for 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 and testing a foreign exchange transaction, which can perform a foreign exchange transaction simulation test anytime and anywhere by building a foreign exchange transaction simulation test platform and can simulate a matching scenario of transactions among a plurality of transaction institutions.
The first aspect of the present invention provides a foreign exchange transaction simulation test method, which includes:
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 obtain first behavior information of a plurality of simulated exchanges, and performing state conversion on the first behavior information to obtain a plurality of second behavior information which can be internally recognized;
reading the 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 verification is passed;
and triggering the transaction simulator to perform transaction simulation according to the plurality of second behavior information, and sending state information generated by transaction simulation to the transaction simulator gateway.
According to an alternative embodiment of the present invention, said invoking the 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 comprises:
acquiring a trade interest rate interchange product information list in an inter-bank market information exchange protocol format pushed by a foreign exchange trading center;
analyzing the trade interest rate interchange product information list in the inter-bank market information exchange protocol format into a trade interest rate interchange product information list in a Java format, and sending the trade interest rate interchange product information list to the trade simulator;
and reading the 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 the memory.
According to an alternative embodiment of the present invention, the invoking the transaction simulator gateway to obtain first behavior information of a plurality of simulated exchanges, and performing state conversion on the first behavior information to obtain a plurality of internally recognizable second behavior information includes:
monitoring an inter-bank market information exchange protocol message sent by the analog 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 incidence relation table of the inter-bank market information exchange protocol message protocol data field and the meaning;
determining an internal message field corresponding to the meaning according to a preset incidence relation table of the meaning and the internal message field;
and encapsulating the internal message field to obtain internally identifiable second behavior information.
According to an optional embodiment of the present invention, the fx transaction simulation test method further comprises:
receiving the transaction quotations pushed by the foreign exchange transaction center through an interaction module and sending the transaction quotations to the transaction simulator gateway;
distributing the transaction market to the plurality of simulated exchanges through the transaction simulator gateway.
According to an optional embodiment of the present invention, the fx transaction simulation test method further comprises:
configuring an institution identification of a trading institution of the foreign exchange trading center for each interaction module;
when the interactive module is detected to simulate login, login information is submitted 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 second behavior information and sending status information generated by transaction simulation to the transaction simulator gateway includes:
when first login information serving as an interactive module of a buyer and second login information serving as an interactive module of 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 through 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;
and sending seller state information generated by the simulated transaction and buyer state information generated by the simulated transaction to the transaction simulator gateway, sending the seller state information generated by the simulated transaction to an interaction module used as a buyer through the transaction simulator gateway, and sending the buyer state information generated by the simulated transaction to the interaction module used as the seller.
According to an optional embodiment of the present invention, the fx transaction simulation test method further comprises:
when the first order information is judged not to be the optimal market of the order information in the buyer order queue and/or the second order information is judged not to be the optimal market of the order information in the seller order queue, the simulated transaction is not executed and the information of failure of the order transaction is generated;
and converting the information of the order transaction failure into error information by the transaction simulator gateway according to an inter-bank market information exchange protocol, and feeding the error information back to the interactive module serving as the buyer and the interactive module serving as the seller.
A second aspect of the present invention provides a foreign exchange transaction simulation test apparatus, including:
the generating module is used for calling the 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 a 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 obtain a plurality of second behavior information which can be internally recognized;
the verification module is used for reading the 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 verification is passed;
and the simulation module is used for triggering the transaction simulator to perform transaction simulation according to the plurality of second behavior information and sending state information generated by transaction simulation to the transaction simulator gateway.
A third aspect of the invention provides a computer apparatus comprising a processor for implementing the method of fx transaction simulation testing 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 fx transaction simulation testing method.
In summary, according to the method, the device, the computer equipment and the storage medium for simulating and testing the foreign exchange transaction, a set of foreign exchange transaction simulation test platform is built, the transaction product reference data generator is developed to generate the 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 the memory, so that the limitation that the simulation test of the foreign exchange transaction can be only carried out within the fixed open time of the foreign exchange transaction center is eliminated, the simulation and the test of the foreign exchange transaction can be carried out anytime and anywhere, and the test efficiency of simulating the foreign exchange transaction is improved; the transaction simulator gateway is developed to obtain the behavior information of a plurality of simulated exchanges, so that the simulation of a transaction mechanism and a communication mechanism of a foreign exchange transaction center is realized, the transaction simulator is developed to simulate the foreign exchange transaction, the matching scene of transactions between a plurality of transaction mechanisms is simulated, the efficiency of developing the foreign exchange transaction system is improved, and the performance of developing the foreign exchange transaction system is improved by simulating the transactions of the foreign exchange transaction.
Drawings
Fig. 1 is a flowchart of a simulation test method for foreign exchange transaction according to an embodiment of the present invention.
Fig. 2 is a structural diagram of a foreign exchange transaction simulation test apparatus 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 objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
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 in the description of the invention herein 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 simulation test method for foreign exchange transaction according to an embodiment of the present invention. The foreign exchange transaction simulation test method specifically comprises the following steps, and the sequence of the steps in the flow chart can be changed and some steps can be omitted according to different requirements.
And S1, calling the 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 foreign exchange transaction simulation test platform is pre-installed in the computer equipment and 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, wherein the transaction interest rate interchange product information is a metadata source of the transaction simulator during transaction simulation.
The trade interest rate interchange product information for trading is generated through the trade product reference data generator of the foreign exchange trade simulation test platform, dependence on the real trade interest rate interchange product information of the foreign exchange trade center can be eliminated, and trade simulation tests can be carried out at any time and any place.
In an alternative embodiment, said invoking the transaction product reference data generator to generate transaction interest rate interchange product information and sending said transaction interest rate interchange product information to the transaction simulator for loading may comprise:
acquiring a trade interest rate interchange product information list in an inter-bank market information exchange protocol format pushed by a foreign exchange trading center;
analyzing the trade interest rate interchange product information list in the inter-bank market information exchange protocol format into a trade interest rate interchange product information list in a Java format, and sending the trade interest rate interchange product information list to the trade simulator;
and reading the 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 the memory.
In the optional embodiment, the foreign eXchange transaction simulation test platform communicates with a foreign eXchange transaction center, the foreign eXchange transaction center is a transaction platform in a real production environment and 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 eXchange Protocol (IMIX) format. The inter-bank market information exchange protocol is used for the transmission of financial information of the inter-bank home currency market and the foreign exchange market, and comprises the following steps: message header + message body + message trailer. The inter-bank market information exchange protocol provides service layer information and strong Session layer information covering the business layer information before, during and after the transaction of the domestic inter-bank market, and provides a convenient channel for the 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 exchange protocol is analyzed into a transaction interest rate interchange product information list in the format of Java and sent to the transaction simulator for loading, so that the subsequent transaction simulator can conveniently use the transaction interest rate interchange product information to perform transaction simulation.
S2, calling the transaction simulator gateway to obtain the first behavior information of a plurality of simulated exchanges, and carrying out state conversion on the first behavior information to obtain a plurality of second behavior information which can be internally recognized.
The transaction simulator gateway serves as a conversion module, and a map is cached in advance and used 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 the foreign exchange transaction between real exchanges.
In an optional embodiment, the invoking the transaction simulator gateway to obtain first behavior information of a plurality of simulated exchanges, and performing state conversion on the first behavior information to obtain a plurality of internally recognizable second behavior information includes:
monitoring an inter-bank market information exchange protocol message sent by the analog exchange through an inter-bank market information exchange protocol, and analyzing first line 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 incidence relation table of the inter-bank market information exchange protocol message protocol data field and the meaning;
determining an internal message field corresponding to the meaning according to a preset incidence relation table of the meaning and the internal message field;
and encapsulating the internal message field to obtain internally identifiable second behavior information.
In this optional embodiment, two association tables are stored in advance in the computer device, one is an association table between the data field and the meaning of the inter-bank market information exchange protocol message, and the other is an association table between the meaning and the internal message field. The transaction simulator gateway supports simultaneous access of a plurality of simulated exchanges, the connection of 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 market information exchange protocol messages between the external banks, which are sent by the simulated exchange, into internally identifiable messages, and the market information exchange protocol messages between the external banks correspond to the internally identifiable messages one by one.
By simultaneously accessing a plurality of simulated exchanges, matching scenes of transactions between a plurality of transaction institutions can be simulated.
And S3, the transaction interest rate interchange product information is read through the transaction simulator gateway to verify the second behavior information, and the second behavior information is sent to the transaction simulator after the verification is passed.
And the transaction simulator gateway reads the transaction interest rate interchange product information, takes the transaction interest rate interchange product information as reference information, and performs security and validity verification on the second behavior information.
The second behavior information may include the total amount of the order, how many batches to divide, the amount to put each time, and the like. For example, assuming that the second action information corresponds to an instruction of 16/4/4/3.656%, the meaning is set to 16M in total for a payout amount, four payout amounts are made in each time, each payout amount is 4M, and if the fixed trading interest rate market price is less than 3.656%, the payout operation is stopped. The trading simulator gateway obtains the target trading interest rate market price in the trading interest rate interchange product information, judges whether the target trading interest rate market price is greater than 3.656%, and if the target trading interest rate market price is greater than 3.656%, the second behavior information is safe and effective, and the listing operation is executed. If the target trade interest rate market price is below 3.656%, indicating that the second behavioral information is unsafe and invalid, execution of the playbill operation is stopped.
And S4, triggering the transaction simulator to perform transaction simulation according to the second behavior information, and sending state information generated by transaction simulation to the transaction simulator gateway.
After the second behavior information passes the safety and validity verification, the transaction simulator can be triggered to perform simulated transaction, after the simulated transaction is executed, the state information of the order is generated, and then the transaction simulator gateway performs unified storage and authority management on the generated state information.
In the embodiment, 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 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 on the foreign exchange transaction can be only carried out within a fixed open time of the foreign exchange transaction center is eliminated, the simulation and test on the foreign exchange transaction can be carried out at any time and any place, and the test efficiency of simulating the foreign exchange transaction is improved; the transaction simulator gateway is developed to obtain the behavior information of a plurality of simulated exchanges, so that the simulation of a transaction mechanism and a communication mechanism of a foreign exchange transaction center is realized, the transaction simulator is developed to simulate the foreign exchange transaction, the matching scene of transactions between a plurality of transaction mechanisms is simulated, the efficiency of developing the foreign exchange transaction system is improved, and the performance of developing the foreign exchange transaction system is improved by simulating the transactions of the foreign exchange transaction.
In an optional embodiment, the fx transaction simulation test method further includes:
receiving the transaction quotations pushed by the foreign exchange transaction center through an interaction module and sending the transaction quotations to the transaction simulator gateway;
distributing the transaction market to the plurality of simulated exchanges through the transaction simulator gateway.
In this alternative embodiment, a Line Handler (LH) is an interaction module for interfacing the transaction simulation test platform with the foreign exchange transaction center, and may be understood as an outermost part of the transaction simulation test platform, and the transaction simulator gateway is respectively connected to one or more LH modules and the simulation exchange.
The transaction quotations of the foreign exchange transaction center are distributed to a simulated exchange in real time through a transaction simulator gateway, and the transaction quotations are displayed by the simulated exchange, so that a tester can generate first behavior information through the simulated exchange according to the transaction quotations. Therefore, the transaction situation of the foreign exchange transaction center can be simulated more truly, and the test success rate is higher.
In an optional embodiment, the fx transaction simulation test method further includes:
configuring an institution identification of a trading institution of the foreign exchange trading center for each LH module;
when the LH module is detected to simulate login, login information is submitted 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 subsequently be used to direct forwarding of transaction information by the transaction simulator gateway and the simulated exchange, LH module.
LH corresponds to the session of the client, and the transaction simulator gateway corresponds to the session of the server, which is equivalent to the session of a plurality of clients accessing the same server.
In an optional embodiment, the step S4 (triggering the transaction simulator to perform transaction simulation according to the second behavior information, and sending the state information generated by the transaction simulation to the transaction simulator gateway) specifically includes:
when first login information of an LH module as a buyer and second login information of the LH module 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 through 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;
and sending seller state information generated by the simulated transaction and buyer state information generated by the simulated transaction to the transaction simulator gateway, sending the seller state information generated by the simulated transaction to an LH module as a buyer through the transaction simulator gateway, and sending the buyer state information generated by the simulated transaction to the LH module as the seller.
In this alternative embodiment, the priority rule may be a time priority rule or a price priority rule.
For example, suppose that the exchange a corresponds to the first LH module, the exchange B corresponds to the second LH module, and after the first LH module and the second LH module successfully log in the foreign exchange transaction simulation test platform, the transaction simulator receives the order information of the first LH module and the second LH module at the same time, and the transaction simulator scans the result on the purchase order queue, and it is assumed that the two order information are the optimal market conditions in the corresponding directions, respectively, so that the transaction simulator performs transaction (volume is the same) on the two orders, and sends the state information of the order transaction to the two organizations again.
In the optional embodiment, the transaction simulator scans the order information in the order queues of the buyer and the seller and simulates the transaction when the order information of the buyer and the seller is determined to be the optimal market, so that the matched transaction in a real foreign exchange transaction scene is realized, and the process of simulation test of the foreign exchange transaction is realized.
In an optional embodiment, the fx transaction simulation test method further includes:
when the first order information is determined not to be the optimal market of the order information in the buyer order queue and/or the second order information is determined not to be the optimal market of the order information in the seller order queue, not executing simulated transaction and generating information of failure of order transaction;
and converting the information of the order transaction failure 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 as the buyer and the LH module as the seller.
In this optional embodiment, if the first order information is not the optimal market of the order information in the buyer order queue and/or the second order information is not the optimal market of the order information in the seller order queue, it indicates that the order matching transaction cannot be performed and the order submission fails.
And converting the information of the order transaction failure into error information by the transaction simulator gateway according to the interbank market information exchange protocol and feeding the error information back to the LH modules of the buyer and the seller, thereby further realizing the transaction process of the foreign exchange transaction simulation test.
In conclusion, the foreign exchange transaction simulation test platform is built, can be used for internal test and development, and can be used for randomly modifying the opening and closing market time of the foreign exchange transaction, the state of the simulated exchange, the matching mechanism, the transaction interest rate interchange product and the like in the foreign exchange transaction simulation test platform, so that various foreign exchange transaction processes of the foreign exchange transaction center are completely simulated. The simulation test and development of the foreign exchange transaction in the real environment are performed through the foreign exchange transaction simulation test platform, and the efficiency of function development of the foreign exchange transaction system is improved. According to the embodiment, the process of foreign exchange transaction simulation testing from the nonexistence is realized, the usability of the program is enhanced by converting the transaction interest rate interchange product information in the format of the inter-bank market information exchange protocol, adaptation can be performed by modifying the logic of the transaction simulator gateway during subsequent protocol modification, the state of the transaction mechanism is cached and connected, a plurality of transaction mechanisms are supported to be accessed to perform transaction simultaneously, and the flexibility of the transaction simulator is improved; a transaction product reference data generator is added to generate static data, required product information can be loaded at any time and any place according to requirements, and subsequent code iteration is facilitated to develop a simulated transaction program of other services.
It is emphasized that, in order 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 block chain.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Fig. 2 is a structural diagram of a foreign exchange transaction simulation test apparatus according to a second embodiment of the present invention.
In some embodiments, the foreign exchange transaction simulation testing device 20 may include a plurality of functional modules composed of program code segments. The program code of the various program segments of the fx transaction simulation testing apparatus 20 may be stored in a memory of a computer device and executed by at least one processor to perform (see fig. 1 for details) the function of fx transaction simulation testing.
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: the system comprises 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 herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The generating module 201 is configured to invoke the transaction product reference data generator to generate transaction interest rate interchange product information, and send the transaction interest rate interchange product information to the transaction simulator for loading.
The foreign exchange transaction simulation test platform is pre-installed in the computer equipment and 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, wherein the transaction interest rate interchange product information is a metadata source of the transaction simulator during transaction simulation.
The trade interest rate interchange product information for trading is generated through the trade product reference data generator of the foreign exchange trade simulation test platform, dependence on the real trade interest rate interchange product information of the foreign exchange trade center can be eliminated, and trade simulation tests can be carried out at any time and any place.
In an alternative embodiment, the step of invoking the transaction product reference data generator by the generation module 201 to generate the transaction interest rate interchange product information and sending the transaction interest rate interchange product information to the transaction simulator for loading may include:
acquiring a trade interest rate interchange product information list in an inter-bank market information exchange protocol format pushed by a foreign exchange trading center;
analyzing the trade interest rate interchange product information list in the inter-bank market information exchange protocol format into a trade interest rate interchange product information list in a Java format, and sending the trade interest rate interchange product information list to the trade simulator;
and reading the 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 the memory.
In the optional embodiment, the foreign eXchange transaction simulation test platform communicates with a foreign eXchange transaction center, the foreign eXchange transaction center is a transaction platform in a real production environment and 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 eXchange Protocol (IMIX) format. The inter-bank market information exchange protocol is used for the transmission of financial information of the inter-bank home currency market and the foreign exchange market, and comprises the following steps: message header + message body + message trailer. The inter-bank market information exchange protocol provides service layer information and strong Session layer information covering the business layer information before, during and after the transaction of the domestic inter-bank market, and provides a convenient channel for the 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 exchange protocol is analyzed into a transaction interest rate interchange product information list in the format of Java and sent to the transaction simulator for loading, so that the subsequent transaction simulator can conveniently use the transaction interest rate interchange product information to perform 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 a plurality of second behavior information that is internally recognizable.
The transaction simulator gateway serves as a conversion module, and a map is cached in advance and used 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 the foreign exchange transaction between real exchanges.
In an optional embodiment, the step of invoking the transaction simulator gateway by the conversion module 202 to obtain first behavior information of a plurality of simulated exchanges, and performing state conversion on the first behavior information to obtain a plurality of internally recognizable second behavior information includes:
monitoring an inter-bank market information exchange protocol message sent by the analog exchange through an inter-bank market information exchange protocol, and analyzing first line 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 incidence relation table of the inter-bank market information exchange protocol message protocol data field and the meaning;
determining an internal message field corresponding to the meaning according to a preset incidence relation table of the meaning and the internal message field;
and encapsulating the internal message field to obtain internally identifiable second behavior information.
In this optional embodiment, two association tables are stored in advance in the computer device, one is an association table between the data field and the meaning of the inter-bank market information exchange protocol message, and the other is an association table between the meaning and the internal message field. The transaction simulator gateway supports simultaneous access of a plurality of simulated exchanges, the connection of 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 market information exchange protocol messages between the external banks, which are sent by the simulated exchange, into internally identifiable messages, and the market information exchange protocol messages between the external banks correspond to the internally identifiable messages one by one.
By simultaneously accessing a plurality of simulated exchanges, matching scenes of transactions between a plurality of transaction institutions 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, takes the transaction interest rate interchange product information as reference information, and performs security and validity verification on the second behavior information.
The second behavior information may include the total amount of the order, how many batches to divide, the amount to put each time, and the like. For example, assuming that the second action information corresponds to an instruction of 16/4/4/3.656%, the meaning is set to 16M in total for a payout amount, four payout amounts are made in each time, each payout amount is 4M, and if the fixed trading interest rate market price is less than 3.656%, the payout operation is stopped. The trading simulator gateway obtains the target trading interest rate market price in the trading interest rate interchange product information, judges whether the target trading interest rate market price is greater than 3.656%, and if the target trading interest rate market price is greater than 3.656%, the second behavior information is safe and effective, and the listing operation is executed. If the target trade interest rate market price is below 3.656%, indicating that the second behavioral information is unsafe and invalid, execution of the playbill operation is stopped.
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 state information generated by transaction simulation to the transaction simulator gateway.
After the second behavior information passes the safety and validity verification, the transaction simulator can be triggered to perform simulated transaction, after the simulated transaction is executed, the state information of the order is generated, and then the transaction simulator gateway performs unified storage and authority management on the generated state information.
In the embodiment, 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 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 on the foreign exchange transaction can be only carried out within a fixed open time of the foreign exchange transaction center is eliminated, the simulation and test on the foreign exchange transaction can be carried out at any time and any place, and the test efficiency of simulating the foreign exchange transaction is improved; the transaction simulator gateway is developed to obtain the behavior information of a plurality of simulated exchanges, so that the simulation of a transaction mechanism and a communication mechanism of a foreign exchange transaction center is realized, the transaction simulator is developed to simulate the foreign exchange transaction, the matching scene of transactions between a plurality of transaction mechanisms is simulated, the efficiency of developing the foreign exchange transaction system is improved, and the performance of developing the foreign exchange transaction system is improved by simulating the transactions of the foreign exchange transaction.
The distribution module 205 is configured to receive, through an interaction module, a transaction quotation pushed by the foreign exchange transaction center and send the transaction quotation to the transaction simulator gateway; distributing the transaction market to the plurality of simulated exchanges through the transaction simulator gateway.
In this alternative embodiment, a Line Handler (LH) is an interaction module for interfacing the transaction simulation test platform with the foreign exchange transaction center, and may be understood as an outermost part of the transaction simulation test platform, and the transaction simulator gateway is respectively connected to one or more LH modules and the simulation exchange.
The transaction quotations of the foreign exchange transaction center are distributed to a simulated exchange in real time through a transaction simulator gateway, and the transaction quotations are displayed by the simulated exchange, so that a tester can generate first behavior information through the simulated exchange according to the transaction quotations. Therefore, the transaction situation of the foreign exchange transaction center can be simulated more truly, and the test success rate is higher.
The login module 206 is configured to configure an institution identifier of a trading institution of the fx trading center for each LH module; when the LH module is detected to simulate login, login information is submitted 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 subsequently be used to direct forwarding of transaction information by the transaction simulator gateway and the simulated exchange, LH module.
LH corresponds to the session of the client, and the transaction simulator gateway corresponds to the session of the server, which is equivalent to the session of a plurality of clients accessing the same server.
In an optional embodiment, the triggering, by the simulation module 204, the transaction simulator to perform transaction simulation according to the second behavior information, and sending state information generated by the transaction simulation to the transaction simulator gateway includes:
when first login information of an LH module as a buyer and second login information of the LH module 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 through 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 an LH module as a buyer through the transaction simulator gateway, and sending the buyer state information generated by simulated transaction to the LH module as a seller;
when the first order information is determined not to be the optimal market of the order information in the buyer order queue and/or the second order information is determined not to be the optimal market of the order information in the seller order queue, not executing simulated transaction and generating information of failure of order transaction; and converting the information of the order transaction failure 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 as the buyer and the LH module as the seller.
In this alternative embodiment, the priority rule may be a time priority rule or a price priority rule.
For example, suppose that the exchange a corresponds to the first LH module, the exchange B corresponds to the second LH module, and after the first LH module and the second LH module successfully log in the foreign exchange transaction simulation test platform, the transaction simulator receives the order information of the first LH module and the second LH module at the same time, and the transaction simulator scans the result on the purchase order queue, and it is assumed that the two order information are the optimal market conditions in the corresponding directions, respectively, so that the transaction simulator performs transaction (volume is the same) on the two orders, and sends the state information of the order transaction to the two organizations again.
In the optional embodiment, the transaction simulator scans the order information in the order queues of the buyer and the seller and simulates the transaction when the order information of the buyer and the seller is determined to be the optimal market, so that the matched transaction in a real foreign exchange transaction scene is realized, and the process of simulation test of the foreign exchange transaction is realized.
In this optional embodiment, if the first order information is not the optimal market of the order information in the buyer order queue and/or the second order information is not the optimal market of the order information in the seller order queue, it indicates that the order matching transaction cannot be performed and the order submission fails.
And converting the information of the order transaction failure into error information by the transaction simulator gateway according to the interbank market information exchange protocol and feeding the error information back to the LH modules of the buyer and the seller, thereby further realizing the transaction process of the foreign exchange transaction simulation test.
In conclusion, the foreign exchange transaction simulation test platform is built, can be used for internal test and development, and can be used for randomly modifying the opening and closing market time of the foreign exchange transaction, the state of the simulated exchange, the matching mechanism, the transaction interest rate interchange product and the like in the foreign exchange transaction simulation test platform, so that various foreign exchange transaction processes of the foreign exchange transaction center are completely simulated. The simulation test and development of the foreign exchange transaction in the real environment are performed through the foreign exchange transaction simulation test platform, and the efficiency of function development of the foreign exchange transaction system is improved. According to the embodiment, the process of foreign exchange transaction simulation testing from the nonexistence is realized, the usability of the program is enhanced by converting the transaction interest rate interchange product information in the format of the inter-bank market information exchange protocol, adaptation can be performed by modifying the logic of the transaction simulator gateway during subsequent protocol modification, the state of the transaction mechanism is cached and connected, a plurality of transaction mechanisms are supported to be accessed to perform transaction simultaneously, and the flexibility of the transaction simulator is improved; a transaction product reference data generator is added to generate static data, required product information can be loaded at any time and any place according to requirements, and subsequent code iteration is facilitated to develop a simulated transaction program of other services.
It is emphasized that, in order 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 block chain.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service 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 does not constitute a limitation of the embodiments of the present invention, and may be a bus-type configuration or a star-type configuration, and that the computer device 3 may include more or less hardware or software than those 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 instructions set or stored in advance, and the hardware thereof 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 capable of interacting with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, etc.
It should be noted that the computer device 3 is only an example, and other electronic products that are currently available or may come into existence in the future, such as electronic products that can be adapted to the present invention, should also be included in the scope of the present invention, and are included herein by reference.
In some embodiments, program code is stored in the memory 31 and the at least one processor 32 may call the program code stored in the memory 31 to perform related functions. For example, the respective modules described in the above embodiments are program codes 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 a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM)), an optical Read-Only disk (CD-ROM) or other optical disk Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of 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 various components of the entire computer device 3 by using various interfaces and lines, and executes various functions and processes data of the computer device 3 by running or executing programs or modules stored in the memory 31 and calling 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 a portion of the steps of the fx transaction simulation testing method described in embodiments of the invention. The at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips.
In some embodiments, the at least one communication bus 33 is arranged to enable connection communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the computer device 3 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The computer device 3 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a computer device, or a network device) or a processor (processor) to execute the parts of the foreign exchange transaction simulation test method according to the embodiments of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
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 attributes 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 is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the specification may also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A foreign exchange transaction simulation test method is characterized by comprising 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 obtain first behavior information of a plurality of simulated exchanges, and performing state conversion on the first behavior information to obtain a plurality of second behavior information which can be internally recognized;
reading the 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 verification is passed;
and triggering the transaction simulator to perform transaction simulation according to the plurality of second behavior information, and sending state information generated by transaction simulation to the transaction simulator gateway.
2. The fx transaction simulation test method according to claim 1, wherein the invoking of the 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 comprises:
acquiring a trade interest rate interchange product information list in an inter-bank market information exchange protocol format pushed by a foreign exchange trading center;
analyzing the trade interest rate interchange product information list in the inter-bank market information exchange protocol format into a trade interest rate interchange product information list in a Java format, and sending the trade interest rate interchange product information list to the trade simulator;
and reading the 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 the memory.
3. The foreign exchange transaction simulation test method of claim 2, wherein the invoking transaction simulator gateway obtaining first behavior information of a plurality of simulated exchanges and performing state conversion on the first behavior information to obtain a plurality of second behavior information that can be internally recognized comprises:
monitoring an inter-bank market information exchange protocol message sent by the analog 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 incidence relation table of the inter-bank market information exchange protocol message protocol data field and the meaning;
determining an internal message field corresponding to the meaning according to a preset incidence relation table of the meaning and the internal message field;
and encapsulating the internal message field to obtain internally identifiable second behavior information.
4. The fx transaction simulation test method according to claim 3, wherein the fx transaction simulation test method further comprises:
receiving the transaction quotations pushed by the foreign exchange transaction center through an interaction module and sending the transaction quotations to the transaction simulator gateway;
distributing the transaction market to the plurality of simulated exchanges through the transaction simulator gateway.
5. The fx transaction simulation test method according to claim 4, wherein the fx transaction simulation test method further comprises:
configuring an institution identification of a trading institution of the foreign exchange trading center for each interaction module;
when the interactive module is detected to simulate login, login information is submitted 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.
6. The fx transaction simulation testing method according to claim 5, wherein the triggering the transaction simulator to perform transaction simulation according to the plurality of second behavior information, and sending status information generated by transaction simulation to the transaction simulator gateway comprises:
when first login information serving as an interactive module of a buyer and second login information serving as an interactive module of 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 through 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;
and sending seller state information generated by the simulated transaction and buyer state information generated by the simulated transaction to the transaction simulator gateway, sending the seller state information generated by the simulated transaction to an interaction module used as a buyer through the transaction simulator gateway, and sending the buyer state information generated by the simulated transaction to the interaction module used as the seller.
7. The fx transaction simulation test method according to claim 6, wherein the fx transaction simulation test method further comprises:
when the first order information is judged not to be the optimal market of the order information in the buyer order queue and/or the second order information is judged not to be the optimal market of the order information in the seller order queue, the simulated transaction is not executed and the information of failure of the order transaction is generated;
and converting the information of the order transaction failure into error information by the transaction simulator gateway according to an inter-bank market information exchange protocol, and feeding the error information back to the interactive module serving as the buyer and the interactive module serving as the seller.
8. A foreign exchange transaction simulation test device, characterized in that the foreign exchange transaction simulation test device comprises:
the generating module is used for calling the 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 a 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 obtain a plurality of second behavior information which can be internally recognized;
the verification module is used for reading the 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 verification is passed;
and the simulation module is used for triggering the transaction simulator to perform transaction simulation according to the plurality of second behavior information and sending state information generated by transaction simulation to the transaction simulator gateway.
9. A computer device comprising a processor for implementing the fx transaction simulation test method according to any of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a fx transaction simulation test method according to any one of claims 1 to 7.
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 true CN112634047A (en) 2021-04-09
CN112634047B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139870A (en) * 2021-04-30 2021-07-20 东吴在线(上海)金融信息服务有限公司 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
CN114051027A (en) * 2021-11-09 2022-02-15 中国联合网络通信集团有限公司 Acquisition method of test instrument, protocol conversion node and instrument demand node
CN115964307A (en) * 2023-03-16 2023-04-14 深圳华锐分布式技术股份有限公司 Transaction data automatic testing method, device, equipment and medium

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
TATSUMURA K 等: "A currency arbitrage machine based on the simulated bifurcation algorithm for ultrafast detection of optimal opportunity", 2020 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS (ISCAS). IEEE, 28 September 2020 (2020-09-28), pages 1 - 5 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139870A (en) * 2021-04-30 2021-07-20 东吴在线(上海)金融信息服务有限公司 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
CN113485902B (en) * 2021-07-08 2024-05-28 中国建设银行股份有限公司 Method, device, equipment and computer readable medium for testing service platform
CN114051027A (en) * 2021-11-09 2022-02-15 中国联合网络通信集团有限公司 Acquisition method of test instrument, protocol conversion node and instrument demand node
CN114051027B (en) * 2021-11-09 2023-04-18 中国联合网络通信集团有限公司 Acquisition method of test instrument, protocol conversion node and instrument demand node
CN115964307A (en) * 2023-03-16 2023-04-14 深圳华锐分布式技术股份有限公司 Transaction data automatic testing method, device, equipment and medium
CN115964307B (en) * 2023-03-16 2023-06-16 深圳华锐分布式技术股份有限公司 Automatic test method, device, equipment and medium for transaction data

Also Published As

Publication number Publication date
CN112634047B (en) 2024-04-26

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
CN111414172B (en) Automatic deployment and release system and method for application software
US10268837B2 (en) Validation of containers
CN109377216B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN112073269B (en) Block chain network testing method, device, server and storage medium
US10884896B2 (en) Validation of containers
CN110471834B (en) Credit card simulation test method under multi-transaction channel and related equipment
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN109345392B (en) Method and system for issuing programming question, issuing solution code and checking solution code
CN109189396A (en) intelligent contract engine module, operation method and storage medium
CN107729246A (en) For the auxiliary test methods of intended application, device, equipment and storage medium
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
CN112035350B (en) Test method and device for block chain system and computer equipment
CN113238929A (en) Code testing method and device based on Mock data, electronic equipment and storage medium
CN113765942A (en) Cloud computing power distribution method, user terminal, cloud computing power platform and system
CN112561690B (en) Method, system, equipment and storage medium for testing credit card staged service interface
CN114218587A (en) Multi-application unified authority management system
US20230267430A1 (en) Data processing method and device, and computer-readable storage medium
CN112115060A (en) Audio test method and system based on terminal
CN112069078B (en) ESA interface pressure test method, ESA interface pressure test device, ESA interface pressure test equipment and storage medium
CN111897728B (en) Interface debugging method and related equipment
CN111865726B (en) Service message testing method, device, computer system and storage medium
CN114020414A (en) Symbiotic method and device of Android system and bottom layer Linux, electronic equipment and storage medium
CN111598544A (en) Method and apparatus for processing information

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