CN116501610A - Method, device, equipment and medium for testing market transaction system - Google Patents

Method, device, equipment and medium for testing market transaction system Download PDF

Info

Publication number
CN116501610A
CN116501610A CN202310290213.1A CN202310290213A CN116501610A CN 116501610 A CN116501610 A CN 116501610A CN 202310290213 A CN202310290213 A CN 202310290213A CN 116501610 A CN116501610 A CN 116501610A
Authority
CN
China
Prior art keywords
market
transaction system
test
account
deposit
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
CN202310290213.1A
Other languages
Chinese (zh)
Other versions
CN116501610B (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.)
Shenzhen Huarui Distributed Technology Co ltd
Original Assignee
Shenzhen Huarui Distributed Technology 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 Shenzhen Huarui Distributed Technology Co ltd filed Critical Shenzhen Huarui Distributed Technology Co ltd
Priority to CN202310290213.1A priority Critical patent/CN116501610B/en
Publication of CN116501610A publication Critical patent/CN116501610A/en
Application granted granted Critical
Publication of CN116501610B publication Critical patent/CN116501610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of testing, and provides a method, a device, equipment and a medium for testing a market-making transaction system, which can pertinently issue orders to the market-making transaction system through interfaces according to different authority identifiers, compare the calculation result of each order with an expected result by interfaces by the market-making transaction system, generate a test report, and automatically test the market-making transaction system to judge the correctness of business logic and calculation logic of the market-making transaction system.

Description

Method, device, equipment and medium for testing market transaction system
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a method, an apparatus, a device, and a medium for testing a market transaction system.
Background
The market clearing adds the common and standby concepts on the basis of spot centralized bidding and option brokerage, increases quotation related business, removes commission related fee concept due to certain differentiation of centralized guarantee calculation, mainly takes market makers as service subjects, and brings business clearing flow into verification. The covered service not only comprises the aspects of option centralized bidding service delegation, option running service delegation, option parallel option delegation service, option combination policy guarantee money service delegation, option locking unlocking service delegation, option common and option exchange delegation function, contract holding bin, contract account fund, option combination policy guarantee money holding bin, achievement summarization, running right forecast profit and loss, merging running right forecast profit and loss, customer guarantee money risk monitoring information, option five-gear quotation, option combination policy guarantee money holding bin and the like, but also comprises quotation (unilateral, option multi-leg delegation, target stock exchange occupation and the like, and all the services have independent clearing flow, tool automatic analysis, check clearing and field data and other logic.
For the market-making transaction system, whether the transaction control of the clearing market-making business accords with the specification of the exchange and keeps consistent with the centralized transaction system is a basic premise of online of the market-making transaction system. Business transaction control once in error, can have serious consequences for the loss of control of the ticket.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, device and medium for testing a market-making transaction system that is capable of automated testing of the market-making transaction system.
A method of testing a market-making transaction system, the method of testing a market-making transaction system comprising:
responding to a test instruction of a market-making transaction system, and determining at least one account according to the test instruction of the market-making transaction system;
acquiring authority identification of each account in the at least one account;
placing orders to the market-making transaction system through at least one configuration interface according to the authority identification of each account;
acquiring a calculation result of each configuration interface for the issued orders, and acquiring an expected result of each issued order;
and carrying out interface-by-interface comparison test on each calculation result and each corresponding expected result, and generating a test report.
According to a preferred embodiment of the invention, the market-making trading system is oriented towards securities companies and provides the securities companies with a clearing market-making trading function.
According to a preferred embodiment of the invention, different accounts with different rights are included in the market transaction system, and each account is configured with different preamble conditions to perform the transaction.
According to a preferred embodiment of the present invention, the determining at least one account according to the test instructions of the market-making transaction system comprises:
analyzing the test instruction to obtain information carried by the test instruction;
and acquiring data with account identification from the information carried by the test instruction to obtain the at least one account.
According to a preferred embodiment of the invention, the calculation result comprises one or a combination of more of the following:
the method comprises the steps of order state migration results, asset change amounts before and after orders, transaction freezing and thawing calculation results, order authority, fund amount, warehouse holding amount, risk monitoring results, wind control anti-knock results, wind control black-and-white lists and clearing data.
According to a preferred embodiment of the present invention, the risk monitoring result includes a customer deposit monitoring result; the interface-by-interface comparison test of each calculation result and each corresponding expected result comprises the following steps:
reading a field associated with the customer deposit monitoring result from each configuration interface;
acquiring the generated deposit amount and the generated deposit variation from the read field;
acquiring expected deposit amount and expected deposit variation from corresponding expected results;
comparing the generated deposit amount with the expected deposit amount, and comparing the generated deposit variation with the expected deposit variation;
when the generated deposit amount is the same as the expected deposit amount, determining that the customer deposit monitoring result includes a guarantee Jin Zue;
and when the generated guarantee deposit variation is the same as the expected guarantee deposit variation, determining that the client guarantee deposit monitoring result comprises a guarantee deposit variation normal.
According to a preferred embodiment of the invention, after generating the test report, the method further comprises:
determining a target display terminal and a target user according to the test instruction;
and displaying the test report on the target display terminal, and sending the test report to the target user.
A test device of a market-making transaction system, the test device of the market-making transaction system comprising:
a determining unit, configured to determine at least one account according to a test instruction of a market-making transaction system in response to the test instruction of the market-making transaction system;
the acquisition unit is used for acquiring the authority identification of each account in the at least one account;
the issuing unit is used for issuing orders to the market-making transaction system through at least one configuration interface according to the authority identification of each account;
the acquisition unit is further used for acquiring a calculation result of each configuration interface for the issued orders and an expected result of each issued order;
and the test unit is used for carrying out interface-by-interface comparison test on each calculation result and each corresponding expected result and generating a test report.
A computer device, the computer device comprising:
a memory storing at least one instruction; and
And the processor executes the instructions stored in the memory to realize the test method of the market-making transaction system.
A computer readable storage medium having stored therein at least one instruction for execution by a processor in a computer device to implement a method of testing the market making transaction system.
According to the technical scheme, orders can be placed to the market-making transaction system in a targeted mode through the interfaces according to different authority identifiers, the calculation result and the expected result of each order of the market-making transaction system are subjected to interface-by-interface comparison test, and a test report is generated, so that the market-making transaction system is subjected to automatic test, and the correctness of the business logic and the calculation logic of the market-making transaction system is judged.
Drawings
FIG. 1 is a flow chart of a testing method of the market making transaction system according to a preferred embodiment of the present invention.
FIG. 2 is a functional block diagram of a testing device of the market transaction system according to a preferred embodiment of the present invention.
FIG. 3 is a schematic diagram of a computer device for implementing a testing method of the market-making transaction system according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart showing a testing method of the market making transaction system according to a preferred embodiment of the present invention. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs.
The method for testing the market transaction system is applied to one or more computer devices, wherein the computer device is a device capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and the hardware of the computer device comprises, but is not limited to, a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, an ASIC), a programmable gate array (Field-Programmable Gate Array, an FPGA), a digital processor (Digital Signal Processor, a DSP), an embedded device and the like.
The computer device may be any electronic product that can interact with a user in a human-computer manner, such as a personal computer, tablet computer, smart phone, personal digital assistant (Personal Digital Assistant, PDA), game console, interactive internet protocol television (Internet Protocol Television, IPTV), smart wearable device, etc.
The computer device may also include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network server, a server group composed of a plurality of network servers, or a Cloud based Cloud Computing (Cloud Computing) composed of a large number of hosts or network servers.
The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Artificial intelligence infrastructure technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and other directions.
The network in which the computer device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
S10, responding to a test instruction of the market-making transaction system, and determining at least one account according to the test instruction of the market-making transaction system.
In this embodiment, the test instruction may be triggered by an associated worker, or may be configured to be triggered at a fixed time, which is not limited by the present invention.
For example: the tester can trigger the test instruction according to the actual test requirement, and can also be configured to trigger once in a designated time every month.
In this embodiment, the test instruction may also be triggered automatically when a new system is detected to be online, or when new service logic is detected.
In this embodiment, the market-making trading system is oriented to securities companies and provides a clearing market-making trading function for the securities companies.
In this embodiment, different accounts with different rights are included in the market transaction system, and each account is configured with different preamble conditions to perform the transaction.
In this embodiment, the determining at least one account according to the test instruction of the market-making transaction system includes:
analyzing the test instruction to obtain information carried by the test instruction;
and acquiring data with account identification from the information carried by the test instruction to obtain the at least one account.
The account identifier may be configured in a customized manner, such as a nameID.
S11, acquiring the authority identification of each account in the at least one account.
In this embodiment, the permission identifier may also be configured in a customized manner, for example: the rights identification may be a Permission ID.
In this embodiment, each account has an unused rights identification, and different rights identifications correspond to different system rights, such as rights to view system data, and the like.
S12, according to the authority identification of each account, placing orders to the market-making transaction system through at least one configuration interface.
For example: the prepositive data can be generated according to the authority identification of each account, the corresponding test case is obtained, and an order is issued to the market-making transaction system through the test case.
The test cases can be maintained in an Excel table form, and one row corresponds to one test case scene and is written in a contracted form.
S13, obtaining a calculation result of each configuration interface for the issued orders and obtaining an expected result of each issued order.
The calculation result of each configuration interface for the issued order refers to the calculation result of the market-making transaction system for each order.
Wherein, the expected result of each placed order refers to the result which is obtained after the predetermined order is calculated by the market transaction system.
Specifically, the calculation result includes one or more of the following combinations:
the method comprises the steps of order state migration results, asset change amounts before and after orders, transaction freezing and thawing calculation results, order authority, fund amount, warehouse holding amount, risk monitoring results, wind control anti-knock results, wind control black-and-white lists and clearing data.
And S14, carrying out interface-by-interface comparison test on each calculation result and each corresponding expected result, and generating a test report.
In this embodiment, the test report may include a field logic check or a calculation check of each interface response and a clearing lower field result comparison peer.
In this embodiment, the risk monitoring result includes a customer guard monitoring result; the interface-by-interface comparison test of each calculation result and each corresponding expected result comprises the following steps:
reading a field associated with the customer deposit monitoring result from each configuration interface;
acquiring the generated deposit amount and the generated deposit variation from the read field;
acquiring expected deposit amount and expected deposit variation from corresponding expected results;
comparing the generated deposit amount with the expected deposit amount, and comparing the generated deposit variation with the expected deposit variation;
when the generated deposit amount is the same as the expected deposit amount, determining that the customer deposit monitoring result includes a guarantee Jin Zue;
and when the generated guarantee deposit variation is the same as the expected guarantee deposit variation, determining that the client guarantee deposit monitoring result comprises a guarantee deposit variation normal.
The client deposit monitoring refers to whether the deposit amount required by the client to hold each contract is full or not and the deposit change condition is calculated by the certificate company according to the latest price of the contract and the latest standard of the contract.
Specifically, in the guarantee monitoring, a certain option contract identification standard held by the client is judged as follows: the clients hold the contract obligation bin of the same option and the rest obligation bin after the right bin is hedged, and the latest price of the client guarantee according to the highest contract agreement (if no price is achieved in the same day, the yesterday settlement price is taken), and the guarantee is calculated according to the client guarantee price template set by the securities corporation.
For example: real-time risk value = [ dealer level common obligation bin real-time guarantee (after hedging) +grouping calculation real-time guarantee + dealer level common obligation bin delegate not-in-hand occupy real-time address-keeping gold ]/business sum (after deducting line rights to be paid and the like frozen funds).
Wherein the blocked funds are blocked by the right of line or the date of delivery, and the customer is blocked by the right of line or the assigned payable or payable.
The real-time deposit (after hedging) of the dealer level and the real-time deposit occupied by the dealings of the dealer level are entrusted, and the deposit collected is different according to the difference of deposit template calculation modes set for different clients by the dealer.
The embodiment realizes the coupon algorithm verification of all entrusted services according to the service logic, can find logic errors in the bottom code through the test process, and performs correctness checking on different normal and abnormal service entrusted scenes, comparison checking of clearing lower-field data and the like.
The accuracy of the market-making clearing related data logic can be indirectly judged if the market-making clearing variable quantity is consistent. And by comparing the data such as the order result, the accuracy of the market making transaction system in terms of authority and service control can be ensured, and a decision basis for the flow passing of service clearing test and the like is provided for the online of the market making clearing transaction system.
In this embodiment, after generating the test report, the method further includes:
determining a target display terminal and a target user according to the test instruction;
and displaying the test report on the target display terminal, and sending the test report to the target user.
Specifically, the test instruction can be analyzed to obtain corresponding fields, and the corresponding fields are used as the target display terminal and the target user, so that the test result can be timely reminded to be checked.
According to the technical scheme, orders can be placed to the market-making transaction system in a targeted mode through the interfaces according to different authority identifiers, the calculation result and the expected result of each order of the market-making transaction system are subjected to interface-by-interface comparison test, and a test report is generated, so that the market-making transaction system is subjected to automatic test, and the correctness of the business logic and the calculation logic of the market-making transaction system is judged.
FIG. 2 is a functional block diagram of a testing device of the market transaction system according to a preferred embodiment of the present invention. The test device 11 of the market-making transaction system comprises a determining unit 110, an acquiring unit 111, a issuing unit 112 and a test unit 113. The module/unit referred to in the present invention refers to a series of computer program segments, which are stored in a memory, capable of being executed by a processor and of performing a fixed function. In the present embodiment, the functions of the respective modules/units will be described in detail in the following embodiments.
The determining unit 110 is configured to determine at least one account according to a test instruction of the market-making transaction system in response to the test instruction of the market-making transaction system.
In this embodiment, the test instruction may be triggered by an associated worker, or may be configured to be triggered at a fixed time, which is not limited by the present invention.
For example: the tester can trigger the test instruction according to the actual test requirement, and can also be configured to trigger once in a designated time every month.
In this embodiment, the test instruction may also be triggered automatically when a new system is detected to be online, or when new service logic is detected.
In this embodiment, the market-making trading system is oriented to securities companies and provides a clearing market-making trading function for the securities companies.
In this embodiment, different accounts with different rights are included in the market transaction system, and each account is configured with different preamble conditions to perform the transaction.
In this embodiment, the determining unit 110 determining at least one account according to the test instruction of the market-making transaction system includes:
analyzing the test instruction to obtain information carried by the test instruction;
and acquiring data with account identification from the information carried by the test instruction to obtain the at least one account.
The account identifier may be configured in a customized manner, such as a nameID.
The obtaining unit 111 is configured to obtain a permission identifier of each account in the at least one account.
In this embodiment, the permission identifier may also be configured in a customized manner, for example: the rights identification may be a Permission ID.
In this embodiment, each account has an unused rights identification, and different rights identifications correspond to different system rights, such as rights to view system data, and the like.
The issuing unit 112 is configured to issue an order to the market-making transaction system through at least one configuration interface according to the authority identifier of each account.
For example: the prepositive data can be generated according to the authority identification of each account, the corresponding test case is obtained, and an order is issued to the market-making transaction system through the test case.
The test cases can be maintained in an Excel table form, and one row corresponds to one test case scene and is written in a contracted form.
The obtaining unit 111 is further configured to obtain a calculation result of each configuration interface for the placed order, and obtain an expected result of each placed order.
The calculation result of each configuration interface for the issued order refers to the calculation result of the market-making transaction system for each order.
Wherein, the expected result of each placed order refers to the result which is obtained after the predetermined order is calculated by the market transaction system.
Specifically, the calculation result includes one or more of the following combinations:
the method comprises the steps of order state migration results, asset change amounts before and after orders, transaction freezing and thawing calculation results, order authority, fund amount, warehouse holding amount, risk monitoring results, wind control anti-knock results, wind control black-and-white lists and clearing data.
The test unit 113 is configured to perform interface-by-interface comparison test on each calculation result and each corresponding expected result, and generate a test report.
In this embodiment, the test report may include a field logic check or a calculation check of each interface response and a clearing lower field result comparison peer.
In this embodiment, the risk monitoring result includes a customer guard monitoring result; the testing unit 113 performs interface-by-interface comparison testing on each calculation result and each corresponding expected result, including:
reading a field associated with the customer deposit monitoring result from each configuration interface;
acquiring the generated deposit amount and the generated deposit variation from the read field;
acquiring expected deposit amount and expected deposit variation from corresponding expected results;
comparing the generated deposit amount with the expected deposit amount, and comparing the generated deposit variation with the expected deposit variation;
when the generated deposit amount is the same as the expected deposit amount, determining that the customer deposit monitoring result includes a guarantee Jin Zue;
and when the generated guarantee deposit variation is the same as the expected guarantee deposit variation, determining that the client guarantee deposit monitoring result comprises a guarantee deposit variation normal.
The client deposit monitoring refers to whether the deposit amount required by the client to hold each contract is full or not and the deposit change condition is calculated by the certificate company according to the latest price of the contract and the latest standard of the contract.
Specifically, in the guarantee monitoring, a certain option contract identification standard held by the client is judged as follows: the clients hold the contract obligation bin of the same option and the rest obligation bin after the right bin is hedged, and the latest price of the client guarantee according to the highest contract agreement (if no price is achieved in the same day, the yesterday settlement price is taken), and the guarantee is calculated according to the client guarantee price template set by the securities corporation.
For example: real-time risk value = [ dealer level common obligation bin real-time guarantee (after hedging) +grouping calculation real-time guarantee + dealer level common obligation bin delegate not-in-hand occupy real-time address-keeping gold ]/business sum (after deducting line rights to be paid and the like frozen funds).
Wherein the blocked funds are blocked by the right of line or the date of delivery, and the customer is blocked by the right of line or the assigned payable or payable.
The real-time deposit (after hedging) of the dealer level and the real-time deposit occupied by the dealings of the dealer level are entrusted, and the deposit collected is different according to the difference of deposit template calculation modes set for different clients by the dealer.
The embodiment realizes the coupon algorithm verification of all entrusted services according to the service logic, can find logic errors in the bottom code through the test process, and performs correctness checking on different normal and abnormal service entrusted scenes, comparison checking of clearing lower-field data and the like.
The accuracy of the market-making clearing related data logic can be indirectly judged if the market-making clearing variable quantity is consistent. And by comparing the data such as the order result, the accuracy of the market making transaction system in terms of authority and service control can be ensured, and a decision basis for the flow passing of service clearing test and the like is provided for the online of the market making clearing transaction system.
In this embodiment, after generating a test report, determining a target display terminal and a target user according to the test instruction;
and displaying the test report on the target display terminal, and sending the test report to the target user.
Specifically, the test instruction can be analyzed to obtain corresponding fields, and the corresponding fields are used as the target display terminal and the target user, so that the test result can be timely reminded to be checked.
According to the technical scheme, orders can be placed to the market-making transaction system in a targeted mode through the interfaces according to different authority identifiers, the calculation result and the expected result of each order of the market-making transaction system are subjected to interface-by-interface comparison test, and a test report is generated, so that the market-making transaction system is subjected to automatic test, and the correctness of the business logic and the calculation logic of the market-making transaction system is judged.
FIG. 3 is a schematic diagram of a computer device for implementing a test method of the market transaction system according to a preferred embodiment of the present invention.
The computer device 1 may comprise a memory 12, a processor 13 and a bus, and may further comprise a computer program stored in the memory 12 and executable on the processor 13, for example a test program of a market transaction system.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation of the computer device 1, the computer device 1 may be a bus type structure, a star type structure, the computer device 1 may further comprise more or less other hardware or software than illustrated, or a different arrangement of components, for example, the computer device 1 may further comprise an input-output device, a network access device, etc.
It should be noted that the computer device 1 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.
The memory 12 includes at least one type of readable storage medium including flash memory, a removable hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 12 may in some embodiments be an internal storage unit of the computer device 1, such as a removable hard disk of the computer device 1. The memory 12 may in other embodiments also be an external storage device of the computer device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device 1. Further, the memory 12 may also include both an internal storage unit and an external storage device of the computer device 1. The memory 12 may be used not only for storing application software installed on the computer device 1 and various types of data, such as code of a test program of a market-making transaction system, etc., but also for temporarily storing data that has been output or is to be output.
The processor 13 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, a combination of various control chips, and the like. The processor 13 is a Control Unit of the computer device 1, connects the individual components of the whole computer device 1 with various interfaces and lines, executes various functions of the computer device 1 and processes data by running or executing programs or modules stored in the memory 12 (e.g. executing test programs of market making transaction systems, etc.), and calls data stored in the memory 12.
The processor 13 executes the operating system of the computer device 1 and various types of applications installed. The processor 13 executes the application program to implement the steps of the test method embodiment of the respective market transaction system described above, such as the steps shown in fig. 1.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing the specified functions, which instruction segments describe the execution of the computer program in the computer device 1. For example, the computer program may be divided into a determining unit 110, an acquiring unit 111, a issuing unit 112, a testing unit 113.
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 test method of the market making transaction system according to the various embodiments of the invention.
The modules/units integrated in the computer device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on this understanding, the present invention may also be implemented by a computer program for instructing a relevant hardware device to implement all or part of the procedures of the above-mentioned embodiment method, where the computer program may be stored in a computer readable storage medium and the computer program may be executed by a processor to implement the steps of each of the above-mentioned method embodiments.
Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory, or the like.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
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), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) 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.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one straight line is shown in fig. 3, but not only one bus or one type of bus. The bus is arranged to enable a connection communication between the memory 12 and at least one processor 13 or the like.
Although not shown, the computer device 1 may further comprise a power source (such as a battery) for powering the various components, preferably the power source may be logically connected to the at least one processor 13 via a power management means, whereby the functions of charge management, discharge management, and power consumption management are achieved 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 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described in detail herein.
Further, the computer device 1 may also comprise a network interface, optionally comprising a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the computer device 1 and other computer devices.
The computer device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the computer device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
Fig. 3 shows only a computer device 1 with components 12-13, it being understood by those skilled in the art that the structure shown in fig. 3 is not limiting of the computer device 1 and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
In connection with fig. 1, the memory 12 in the computer device 1 stores a plurality of instructions to implement a method of testing a market transaction system, the processor 13 being executable to implement:
responding to a test instruction of a market-making transaction system, and determining at least one account according to the test instruction of the market-making transaction system;
acquiring authority identification of each account in the at least one account;
placing orders to the market-making transaction system through at least one configuration interface according to the authority identification of each account;
acquiring a calculation result of each configuration interface for the issued orders, and acquiring an expected result of each issued order;
and carrying out interface-by-interface comparison test on each calculation result and each corresponding expected result, and generating a test report.
Specifically, the specific implementation method of the above instructions by the processor 13 may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
The data in this case were obtained legally.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods 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 invention is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
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 signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. The units or means stated in the invention may also be implemented by one unit or means, either by 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 (10)

1. The method for testing the market-making transaction system is characterized by comprising the following steps of:
responding to a test instruction of a market-making transaction system, and determining at least one account according to the test instruction of the market-making transaction system;
acquiring authority identification of each account in the at least one account;
placing orders to the market-making transaction system through at least one configuration interface according to the authority identification of each account;
acquiring a calculation result of each configuration interface for the issued orders, and acquiring an expected result of each issued order;
and carrying out interface-by-interface comparison test on each calculation result and each corresponding expected result, and generating a test report.
2. The method of claim 1, wherein the market-making trading system is oriented to a stock company and provides a clearing market-making trading function for the stock company.
3. The method of claim 1, wherein the market transaction system includes different accounts with different rights, and each account is configured with different preamble conditions to perform transactions.
4. The method of claim 1, wherein determining at least one account based on the test instructions of the market transaction system comprises:
analyzing the test instruction to obtain information carried by the test instruction;
and acquiring data with account identification from the information carried by the test instruction to obtain the at least one account.
5. The method of claim 1, wherein the calculation result comprises one or more of the following combinations:
the method comprises the steps of order state migration results, asset change amounts before and after orders, transaction freezing and thawing calculation results, order authority, fund amount, warehouse holding amount, risk monitoring results, wind control anti-knock results, wind control black-and-white lists and clearing data.
6. The method of claim 5, wherein the risk monitoring results include customer bond monitoring results; the interface-by-interface comparison test of each calculation result and each corresponding expected result comprises the following steps:
reading a field associated with the customer deposit monitoring result from each configuration interface;
acquiring the generated deposit amount and the generated deposit variation from the read field;
acquiring expected deposit amount and expected deposit variation from corresponding expected results;
comparing the generated deposit amount with the expected deposit amount, and comparing the generated deposit variation with the expected deposit variation;
when the generated deposit amount is the same as the expected deposit amount, determining that the customer deposit monitoring result includes a guarantee Jin Zue;
and when the generated guarantee deposit variation is the same as the expected guarantee deposit variation, determining that the client guarantee deposit monitoring result comprises a guarantee deposit variation normal.
7. The method of testing a market transaction system according to claim 1, wherein after generating the test report, the method further comprises:
determining a target display terminal and a target user according to the test instruction;
and displaying the test report on the target display terminal, and sending the test report to the target user.
8. A device for testing a market-making transaction system, the device comprising:
a determining unit, configured to determine at least one account according to a test instruction of a market-making transaction system in response to the test instruction of the market-making transaction system;
the acquisition unit is used for acquiring the authority identification of each account in the at least one account;
the issuing unit is used for issuing orders to the market-making transaction system through at least one configuration interface according to the authority identification of each account;
the acquisition unit is further used for acquiring a calculation result of each configuration interface for the issued orders and an expected result of each issued order;
and the test unit is used for carrying out interface-by-interface comparison test on each calculation result and each corresponding expected result and generating a test report.
9. A computer device, the computer device comprising:
a memory storing at least one instruction; and
A processor executing instructions stored in the memory to implement a method of testing a market transaction system according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized by: the computer readable storage medium having stored therein at least one instruction for execution by a processor in a computer device to implement a method of testing a market transaction system according to any one of claims 1 to 7.
CN202310290213.1A 2023-03-13 2023-03-13 Method, device, equipment and medium for testing market transaction system Active CN116501610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310290213.1A CN116501610B (en) 2023-03-13 2023-03-13 Method, device, equipment and medium for testing market transaction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310290213.1A CN116501610B (en) 2023-03-13 2023-03-13 Method, device, equipment and medium for testing market transaction system

Publications (2)

Publication Number Publication Date
CN116501610A true CN116501610A (en) 2023-07-28
CN116501610B CN116501610B (en) 2024-03-01

Family

ID=87322151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310290213.1A Active CN116501610B (en) 2023-03-13 2023-03-13 Method, device, equipment and medium for testing market transaction system

Country Status (1)

Country Link
CN (1) CN116501610B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116701233A (en) * 2023-08-02 2023-09-05 深圳华锐分布式技术股份有限公司 Transaction system testing method, equipment and medium based on high concurrency report simulation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989255A (en) * 2009-08-05 2011-03-23 中国银联股份有限公司 System and method for automatically generating authentication test report of online authentication test
US20110246540A1 (en) * 2010-03-31 2011-10-06 Saleforce.com, inc. Method and system for automatically updating a software QA Test repository
US8930257B1 (en) * 2007-10-17 2015-01-06 MarketFactory, Inc. System and method for user defined markets for electronic trading
CN109636603A (en) * 2018-12-06 2019-04-16 大连飞创信息技术有限公司 Security mock trading platform based on the configuration of message strategy
CN111309594A (en) * 2020-01-17 2020-06-19 腾讯科技(深圳)有限公司 System testing method, device, equipment and storage medium
CN112463599A (en) * 2020-11-18 2021-03-09 平安消费金融有限公司 Automatic testing method and device, computer equipment and storage medium
CN112579453A (en) * 2020-12-22 2021-03-30 平安银行股份有限公司 Task testing method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8930257B1 (en) * 2007-10-17 2015-01-06 MarketFactory, Inc. System and method for user defined markets for electronic trading
CN101989255A (en) * 2009-08-05 2011-03-23 中国银联股份有限公司 System and method for automatically generating authentication test report of online authentication test
US20110246540A1 (en) * 2010-03-31 2011-10-06 Saleforce.com, inc. Method and system for automatically updating a software QA Test repository
CN109636603A (en) * 2018-12-06 2019-04-16 大连飞创信息技术有限公司 Security mock trading platform based on the configuration of message strategy
CN111309594A (en) * 2020-01-17 2020-06-19 腾讯科技(深圳)有限公司 System testing method, device, equipment and storage medium
CN112463599A (en) * 2020-11-18 2021-03-09 平安消费金融有限公司 Automatic testing method and device, computer equipment and storage medium
CN112579453A (en) * 2020-12-22 2021-03-30 平安银行股份有限公司 Task testing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
殷明等: "证券公司算法交易系统建设概述", 中国金融电脑, no. 04, 7 April 2013 (2013-04-07) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116701233A (en) * 2023-08-02 2023-09-05 深圳华锐分布式技术股份有限公司 Transaction system testing method, equipment and medium based on high concurrency report simulation
CN116701233B (en) * 2023-08-02 2024-02-06 深圳华锐分布式技术股份有限公司 Transaction system testing method, equipment and medium based on high concurrency report simulation

Also Published As

Publication number Publication date
CN116501610B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN111754110A (en) Method, device, equipment and medium for evaluating operation index based on artificial intelligence
CN110163413A (en) Enterprise supervision and method for early warning, device, computer equipment and readable storage medium storing program for executing
CN115936886B (en) Failure detection method, device, equipment and medium for heterogeneous securities trading system
CN116501610B (en) Method, device, equipment and medium for testing market transaction system
CN117193975A (en) Task scheduling method, device, equipment and storage medium
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN113240351A (en) Business data consistency checking method and device, electronic equipment and medium
CN112598513A (en) Method and device for identifying shareholder risk transaction behavior
CN116843481A (en) Knowledge graph analysis method, device, equipment and storage medium
CN111242779B (en) Financial data characteristic selection and prediction method, device, equipment and storage medium
CN112085611A (en) Asynchronous data verification method and device, electronic equipment and storage medium
CN116823437A (en) Access method, device, equipment and medium based on configured wind control strategy
CN116976896A (en) Transaction order restoration method, device, computer equipment and storage medium
CN116823141A (en) Payment data processing method, device, equipment and medium
CN114372892A (en) Payment data monitoring method, device, equipment and medium
CN112258027B (en) KPI (Key performance indicator) optimization method, device, equipment and medium
CN113657546B (en) Information classification method, device, electronic equipment and readable storage medium
CN114399397A (en) Renewal tracking method, device, equipment and medium
CN115222549A (en) Risk assessment processing method and device, computer equipment and storage medium
CN116483689B (en) Method, device, equipment and medium for testing option brokerage quick trading system
CN114880369A (en) Risk credit granting method and system based on weak data technology
CN116541309B (en) Test method, device, equipment and medium based on transaction system conversion
CN112634045B (en) Data processing method, device, electronic equipment and storage medium
CN116225971B (en) Transaction interface compatibility detection method, device, equipment and medium
CN116010290A (en) Transaction system testing method, device, equipment and medium

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