CN114840569A - Method, device, equipment and medium for processing profit and loss of securities transaction - Google Patents

Method, device, equipment and medium for processing profit and loss of securities transaction Download PDF

Info

Publication number
CN114840569A
CN114840569A CN202110136356.8A CN202110136356A CN114840569A CN 114840569 A CN114840569 A CN 114840569A CN 202110136356 A CN202110136356 A CN 202110136356A CN 114840569 A CN114840569 A CN 114840569A
Authority
CN
China
Prior art keywords
profit
date
loss
query
loss calculation
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.)
Pending
Application number
CN202110136356.8A
Other languages
Chinese (zh)
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.)
Hunan Weibu Information Technology Co ltd
Original Assignee
Hunan Weibu Information 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 Hunan Weibu Information Technology Co ltd filed Critical Hunan Weibu Information Technology Co ltd
Priority to CN202110136356.8A priority Critical patent/CN114840569A/en
Publication of CN114840569A publication Critical patent/CN114840569A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • 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
    • 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/06Asset management; Financial planning or analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Databases & Information Systems (AREA)
  • Game Theory and Decision Science (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a security trade profit and loss processing method, device, equipment and medium. The method comprises the following steps: receiving a profit and loss query request; determining profit-loss calculation results corresponding to the query time based on the target daily profit-loss data table; and sending the profit-loss calculation result to the user terminal corresponding to the user identifier. The problems that the time consumption is long and the user experience is poor due to the fact that profit and loss calculation results are obtained in real time are solved.

Description

证券交易盈亏处理方法、装置、设备和介质Method, device, equipment and medium for processing profit and loss of securities transaction

技术领域technical field

本申请一般涉及数据处理领域,具体涉及一种证券交易盈亏处理方法、装置、设备和介质。The present application generally relates to the field of data processing, and specifically relates to a method, device, device and medium for processing profit and loss of securities trading.

背景技术Background technique

在证券交易过程中,每笔交易都会产生盈利或亏损,及时掌握交易过程中的每日盈亏或者某段时间内的累计盈亏是用户非常关注的内容。In the process of securities trading, each transaction will generate profit or loss, and timely grasping the daily profit and loss in the transaction process or the accumulated profit and loss within a certain period of time is a content that users are very concerned about.

在每个交易日结束后,交易系统可以对每个用户的当日盈亏进行计算,然后按日期维度进行存储;但是,由于计算用户的盈亏通常依赖非常多的业务数据、上一日的盈亏计算结果以及清算商给出的各类清算文件,若某一交易日结束后,交易系统故障或者清算文件获取延迟时,导致当日的盈亏无法计算,那么可能影响后续多个交易日的盈亏都无法计算,用户也就无法获取后续多个交易日的盈亏计算结果。After the end of each trading day, the trading system can calculate the daily profit and loss of each user, and then store it according to the date dimension; however, since the calculation of the user's profit and loss usually relies on a lot of business data and the previous day's profit and loss calculation results As well as various clearing documents provided by the liquidator, if after the end of a trading day, the trading system fails or the acquisition of clearing documents is delayed, the profit and loss of the day cannot be calculated, which may affect the calculation of the profit and loss of subsequent trading days. Users will also not be able to obtain the profit and loss calculation results for subsequent trading days.

相关技术中,为了防止出现上述情况,在每个交易日结束后,交易系统通常不计算用户的当日盈亏,在接收到用户的盈亏查询请求后,实时计算用户请求查询日期的盈亏计算结果,但是,一旦用户需要查询某一时段内的盈亏计算结果,且该时段包括的日期较多,就会出现盈亏计算量过大,耗时长的问题,用户无法及时获取盈亏计算结果,甚至出现请求超时导致的请求失败问题,影响用户的使用体验。In the related art, in order to prevent the above situation, after the end of each trading day, the trading system usually does not calculate the profit and loss of the user on the day, and after receiving the user's profit and loss query request, calculates the profit and loss calculation result of the user's request query date in real time, but , once the user needs to query the profit and loss calculation results in a certain period, and the period includes many dates, the profit and loss calculation will be too large and time-consuming, and the user will not be able to obtain the profit and loss calculation results in time, and even the request will timeout. The request fails, which affects the user experience.

发明内容SUMMARY OF THE INVENTION

鉴于现有技术中的上述缺陷或不足,期望提供一种提高盈亏计算结果确定效率的证券交易盈亏处理方法、装置、设备和介质。In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a method, apparatus, device and medium for processing profit and loss of securities trading that improve the efficiency of determining the calculation result of profit and loss.

第一方面,本申请提供了一种证券交易盈亏处理方法,包括:In the first aspect, the present application provides a method for processing profit and loss of securities trading, including:

接收盈亏查询请求,盈亏查询请求包括用户标识和查询时间;Receive a profit and loss query request, which includes the user ID and query time;

基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果,目标日盈亏数据表为与用户标识对应的日盈亏数据表;Determine the profit and loss calculation result corresponding to the query time based on the target daily profit and loss data table, and the target daily profit and loss data table is the daily profit and loss data table corresponding to the user ID;

发送盈亏计算结果至与用户标识对应的用户终端;Send the profit and loss calculation result to the user terminal corresponding to the user ID;

第二方面,本申请提供了一种证券交易盈亏处理装置,包括:In a second aspect, the present application provides a securities transaction profit and loss processing device, including:

接收模块,被配置为接收盈亏查询请求,盈亏查询请求包括用户标识和查询时间;a receiving module, configured to receive a profit and loss query request, where the profit and loss query request includes a user ID and a query time;

确定模块,被配置为基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果,目标日盈亏数据表为与用户标识对应的日盈亏数据表;The determining module is configured to determine the profit and loss calculation result corresponding to the query time based on the target daily profit and loss data table, and the target daily profit and loss data table is the daily profit and loss data table corresponding to the user ID;

发送模块,被配置为发送盈亏计算结果至与用户标识对应的用户终端;a sending module, configured to send the profit and loss calculation result to the user terminal corresponding to the user identification;

第三方面,本申请提供了一种计算机设备,计算机设备包括存储器、处理器以及存储在存储器并可在处理器上运行的计算机程序,处理器用于执行程序时实现如第一方面的方法;In a third aspect, the present application provides a computer device, the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor is configured to implement the method of the first aspect when executing the program;

第四方面,本申请提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序用于实现如第一方面的方法。In a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored, and the computer program is used to implement the method of the first aspect.

本申请的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present application may include the following beneficial effects:

本申请实施例提供的证券交易盈亏处理方法、装置、设备和介质,可以接收盈亏查询请求;基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果;发送盈亏计算结果至与用户标识对应的用户终端。可以提升对任意日期范围内或者任一日的盈亏计算结果的确定速度,提高交易系统的响应速度,提升用户的使用体验。The method, device, device and medium for processing profit and loss of securities trading provided by the embodiments of the present application can receive a profit and loss query request; determine the profit and loss calculation result corresponding to the query time based on the profit and loss data table of the target day; send the profit and loss calculation result to the corresponding user ID user terminal. It can improve the determination speed of the profit and loss calculation results in any date range or any day, improve the response speed of the trading system, and improve the user experience.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1为本申请实施例提供的一种证券交易盈亏处理系统的结构示意图;FIG. 1 is a schematic structural diagram of a system for processing profit and loss of securities trading according to an embodiment of the present application;

图2为本申请实施例提供的一种证券交易盈亏处理方法的流程示意图;2 is a schematic flowchart of a method for processing profit and loss of a securities transaction provided by an embodiment of the present application;

图3为本申请实施例提供的另一种证券交易盈亏处理方法的流程示意图;3 is a schematic flowchart of another method for processing profit and loss of securities trading provided by an embodiment of the present application;

图4为本申请实施例提供的一种证券交易盈亏处理装置的结构示意图;FIG. 4 is a schematic structural diagram of an apparatus for processing profit and loss of a securities transaction provided by an embodiment of the present application;

图5为本申请实施例提供的一种计算机设备的结构示意图。FIG. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

图1是本申请实施例提供的一种证券交易盈亏处理系统的结构示意图。如图1所示,该证券交易盈亏处理系统包括:终端设备110和用户终端120。该终端设备可以运行交易系统,用于处理每个交易日的交易事件,该终端设备110可以和该用户终端120建立有线或者无线网络连接。该终端设备110可以是具备数据处理功能的计算机、服务器或者服务器集群等,该用户终端120可以手机、计算机或者平板电脑。FIG. 1 is a schematic structural diagram of a system for processing profit and loss of a securities transaction provided by an embodiment of the present application. As shown in FIG. 1 , the securities trading profit and loss processing system includes: a terminal device 110 and a user terminal 120 . The terminal device can run a transaction system for processing transaction events on each trading day, and the terminal device 110 can establish a wired or wireless network connection with the user terminal 120 . The terminal device 110 may be a computer with a data processing function, a server or a server cluster, and the like, and the user terminal 120 may be a mobile phone, a computer or a tablet computer.

其中,该业务终端110用于在每个交易日结束后,确定每个用户当日的日盈亏计算结果,该日盈亏计算结果可以是每个用户在交易日的盈亏值和/或盈亏率,并将盈亏计算结果存储于与该用户的用户标识对应的日盈亏数据表中,该日盈亏数据表中存储了交易日期以及与交易日期对应的盈亏计算结果,该日盈亏数据表通常存储于外存数据库中,该外存数据库中存储了与每个注册用户的用户标识对应的日盈亏数据表,该外存数据库可以是Mongo数据库。The service terminal 110 is used to determine the daily profit and loss calculation result of each user after the end of each trading day, and the daily profit and loss calculation result may be the profit and loss value and/or profit and loss ratio of each user on the trading day, and Store the profit and loss calculation result in the daily profit and loss data table corresponding to the user ID of the user. The daily profit and loss data table stores the transaction date and the profit and loss calculation result corresponding to the transaction date. The daily profit and loss data table is usually stored in the external storage. In the database, the external storage database stores a daily profit and loss data table corresponding to the user ID of each registered user, and the external storage database may be a Mongo database.

需要说明的是,在本申请实施例中,对于每个用户标识,每个交易日的日盈亏计算结果的确定通常依赖于当日的依赖数据,该依赖数据包括业务数据、清算商给出的清算文件和/或与上一日的盈亏计算结果,其中业务数据可以是各品类在交易日的交易数据,该品类可以是股票、数字货币、期权以及基金等;清算文件可以是各品类在交易日的分红或者利息等。It should be noted that, in the embodiment of the present application, for each user ID, the determination of the daily profit and loss calculation result of each trading day usually depends on the dependent data of the current day, and the dependent data includes business data, clearing provided by the clearing house. Documents and/or the results of the profit and loss calculation of the previous day, in which the business data can be the transaction data of each category on the trading day, and the category can be stocks, digital currencies, options, funds, etc.; the settlement document can be the transaction data of each category on the trading day dividends or interest, etc.

由于确定每个交易日的日盈亏计算结果的过程中,会出现交易系统故障或者清算文件获取延迟的问题,因此,在本申请实施例中,每个交易日的盈亏计算结果可能并非是在当日确定并存储的,终端设备110可以在任一时刻确定获取到与某一交易日对应的依赖数据,则可以基于第一处理逻辑处理该依赖数据,得到该交易日的盈亏计算结果,并将其存储于对应用户标识的日盈亏数据表中。其中,该第一处理逻辑是获取到与交易日对应的全部依赖数据数据后,确定与交易日对应的盈亏计算结果的方法。In the process of determining the daily profit and loss calculation result of each trading day, there may be problems such as failure of the trading system or delay in obtaining clearing documents. Therefore, in this embodiment of the present application, the profit and loss calculation result of each trading day may not be the same as the current day. If determined and stored, the terminal device 110 can determine to obtain the dependent data corresponding to a certain trading day at any time, and then can process the dependent data based on the first processing logic, obtain the profit and loss calculation result of the trading day, and store it. In the daily profit and loss data table corresponding to the user ID. The first processing logic is a method of determining the profit and loss calculation result corresponding to the trading day after acquiring all the dependent data corresponding to the trading day.

在本申请实施例中,在用户需要查询盈亏计算结果时,可以在任意时刻利用用户终端120向终端设备110发送盈亏查询请求,该盈亏查询请求包括用户标识和查询时间,该终端设备110可以接收盈亏查询请求;并基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果,该目标日盈亏数据表为与用户标识对应的日盈亏数据表;并发送盈亏计算结果至与用户标识对应的用户终端120。In the embodiment of the present application, when the user needs to query the profit and loss calculation result, the user terminal 120 can be used to send a profit and loss query request to the terminal device 110 at any time. The profit and loss query request includes the user ID and the query time, and the terminal device 110 can receive Profit and loss query request; and determine the profit and loss calculation result corresponding to the query time based on the target daily profit and loss data table, the target daily profit and loss data table is the daily profit and loss data table corresponding to the user ID; and send the profit and loss calculation result to the user corresponding to the user ID Terminal 120.

本申请实施例提供一种证券交易盈亏处理方法,该方法可以应用于如图1所示的终端设备中,如图2所示,该方法包括:An embodiment of the present application provides a method for processing profit and loss of securities trading, and the method can be applied to the terminal device shown in FIG. 1 . As shown in FIG. 2 , the method includes:

步骤201、接收盈亏查询请求。Step 201: Receive a profit and loss query request.

在本步骤中,终端设备可以接收用户终端发送的盈亏查询请求,该盈亏查询请求可以包括用户标识和查询时间,该查询时间可以包括一个查询日期,表明用户想要获取与该查询日期对应交易日的盈亏计算结果;或者该查询时间可以包括至少两个连续的查询日期,表明用户想要获取与该至少两个连续的查询日期对应的一段交易日的盈亏计算结果。可以理解的是,该查询时间中的查询日期为已完成交易的日期,即用户不可以获取与未进行交易日期对应的盈亏计算结果。In this step, the terminal device may receive a profit and loss query request sent by the user terminal, the profit and loss query request may include a user ID and a query time, and the query time may include a query date, indicating that the user wants to obtain the transaction date corresponding to the query date. or the query time may include at least two consecutive query dates, indicating that the user wants to obtain the profit and loss calculation results for a period of trading days corresponding to the at least two consecutive query dates. It can be understood that the query date in the query time is the date when the transaction has been completed, that is, the user cannot obtain the profit and loss calculation result corresponding to the date when the transaction has not been performed.

步骤202、基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果。Step 202: Determine the profit and loss calculation result corresponding to the query time based on the target daily profit and loss data table.

在本申请实施例中,终端设备中可以存储使用该交易系统的每个用户标识的日盈亏数据表,目标日盈亏数据表为与盈亏查询请求中的用户标识对应的日盈亏数据表,该目标日盈亏数据表包括至少一个交易日期和与每个交易日期分别对应的日盈亏数据。In the embodiment of this application, the terminal device can store the daily profit and loss data table of each user ID that uses the trading system, and the target daily profit and loss data table is the daily profit and loss data table corresponding to the user ID in the profit and loss query request. The daily profit and loss data table includes at least one transaction date and daily profit and loss data corresponding to each transaction date.

在本步骤中,基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果的过程可以有一下两种可选的实现方式;In this step, the process of determining the profit and loss calculation result corresponding to the query time based on the target daily profit and loss data table can be implemented in the following two optional ways;

在一种可选的实现方式中,该查询时间包括一个查询日期,则该基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果的过程可以包括:判断至少一个交易日期中是否存在与查询日期一致的交易日期;若存在,确定与查询日期一致的交易日期对应的日盈亏计算结果为与查询时间对应的盈亏计算结果;若不存在,获取与目标交易日期对应的日盈亏计算结果;基于与目标交易日期对应的日盈亏计算结果确定与查询时间对应的盈亏计算结果,该目标交易日期为至少一个交易日期中的最新交易日期。In an optional implementation manner, the query time includes a query date, and the process of determining the profit and loss calculation result corresponding to the query time based on the profit and loss data table of the target day may include: judging whether there is an error related to the query in at least one transaction date The transaction date with the same date; if it exists, determine the daily profit and loss calculation result corresponding to the transaction date consistent with the query date as the profit and loss calculation result corresponding to the query time; if it does not exist, obtain the daily profit and loss calculation result corresponding to the target transaction date; The daily profit and loss calculation result corresponding to the target transaction date determines the profit and loss calculation result corresponding to the query time, and the target transaction date is the latest transaction date in the at least one transaction date.

其中,基于与目标交易日期对应的日盈亏计算结果确定与查询时间对应的盈亏计算结果,包括:基于第二处理逻辑处理与目标交易日期对应的日盈亏计算结果,得到与目标交易日期的次日对应的日盈亏计算结果;判断目标交易日期的次日是否为查询日期;若不是,将目标交易日期的次日确定为更新后的目标交易日期;重复上述操作,直至目标交易日期的次日为查询日期;若是,确定与目标交易日期的次日对应的日盈亏计算结果为与查询时间对应的盈亏计算结果。其中,该第二处理逻辑是获取到与交易日对应的上一日的盈亏计算结果后,确定与交易日对应的盈亏计算结果的方法。Wherein, determining the profit and loss calculation result corresponding to the query time based on the daily profit and loss calculation result corresponding to the target transaction date includes: processing the daily profit and loss calculation result corresponding to the target transaction date based on the second processing logic, and obtaining the next day corresponding to the target transaction date. The corresponding daily profit and loss calculation result; determine whether the next day of the target transaction date is the query date; if not, determine the next day of the target transaction date as the updated target transaction date; repeat the above operations until the next day of the target transaction date is Query date; if yes, determine the daily profit and loss calculation result corresponding to the next day of the target transaction date as the profit and loss calculation result corresponding to the query time. The second processing logic is a method of determining the profit and loss calculation result corresponding to the trading day after obtaining the profit and loss calculation result of the previous day corresponding to the trading day.

可以理解的是,在本申请实施例中,若至少一个交易日期中不存在与查询日期一致的交易日期,表示终端设备并没有获取到与该查询日期一致的交易日期对应的全部依赖数据,日盈亏数据表中也没有存储与查询日期一致的交易日期对应的日盈亏计算结果。此时,可以基于上述实施例中方法确定与查询时间对应的盈亏计算结果。It can be understood that, in the embodiment of the present application, if there is no transaction date consistent with the query date in at least one transaction date, it means that the terminal device has not obtained all the dependent data corresponding to the transaction date consistent with the query date. The profit and loss data table also does not store the daily profit and loss calculation result corresponding to the transaction date that is consistent with the query date. At this time, the profit and loss calculation result corresponding to the query time may be determined based on the method in the foregoing embodiment.

示例的,终端设备接收到某一用户终端发送的盈亏查询请求,该盈亏处理请求中的用户标识为用户A,查询时间为查询日期2020年9月3日。For example, the terminal device receives a profit and loss query request sent by a user terminal, the user ID in the profit and loss processing request is user A, and the query time is September 3, 2020.

终端设备可以获取与用户A对应的日盈亏数据表,将其确定为目标日盈亏数据表,并确定目标日盈亏数据表中的至少一个交易日期中包括2020年9月4日之前的每个交易日期,则可以确定至少一个交易日中存在与查询日期2020年9月3日一致的交易日期,可以获取与交易日期2020年9月3日对应的日盈亏计算结果t1,将日盈亏计算结果t1作为与查询时间对应的盈亏计算结果。The terminal device can obtain the daily profit and loss data table corresponding to user A, determine it as the target daily profit and loss data table, and determine that at least one transaction date in the target daily profit and loss data table includes each transaction before September 4, 2020 date, it can be determined that there is a transaction date consistent with the query date September 3, 2020 in at least one trading day, and the daily profit and loss calculation result t1 corresponding to the transaction date September 3, 2020 can be obtained, and the daily profit and loss calculation result t1 As the result of the profit and loss calculation corresponding to the query time.

或者,盈亏处理请求中查询时间为查询日期2020年9月6日,由于目标日盈亏数据表中的至少一个交易日期包括2020年9月4日之前的每个交易日期,则可以确定至少一个交易日期中不存在与查询日期2020年9月6日一致的交易日期,获取与目标交易日期2020年9月4日对应的日盈亏计算结果t2,基于第二处理逻辑处理日盈亏计算结果t2,得到与2020年9月5日对应的日盈亏计算结果t3,由于2020年9月5日并非查询日期,继续基于第二处理逻辑处理日盈亏计算结果t3,得到与2020年9月6日对应的日盈亏计算结果t4,由于2020年9月6日为查询日期,则可以将日盈亏计算结果t4确定为与查询时间对应的盈亏计算结果。Alternatively, the query time in the profit and loss processing request is the query date on September 6, 2020. Since at least one transaction date in the profit and loss data table of the target day includes every transaction date before September 4, 2020, at least one transaction can be determined. If there is no transaction date consistent with the query date September 6, 2020, obtain the daily profit and loss calculation result t2 corresponding to the target transaction date September 4, 2020, and process the daily profit and loss calculation result t2 based on the second processing logic to obtain The daily profit and loss calculation result t3 corresponding to September 5, 2020, since September 5, 2020 is not the query date, continue to process the daily profit and loss calculation result t3 based on the second processing logic, and obtain the day corresponding to September 6, 2020. The profit and loss calculation result t4, since September 6, 2020 is the query date, the daily profit and loss calculation result t4 can be determined as the profit and loss calculation result corresponding to the query time.

在另一种可选的实现方式中,该查询时间包括至少两个连续的查询日期,则该基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果,包括:判断至少一个交易日期中是否包含与所有查询日期分别一致的交易日期;若是,确定与每个查询日期一致的交易日期对应的日盈亏计算结果的和值,得到与查询时间对应的盈亏计算结果;若不是,基于预设处理规则确定与查询时间对应的盈亏计算结果。In another optional implementation manner, the query time includes at least two consecutive query dates, and determining the profit and loss calculation result corresponding to the query time based on the profit and loss data table of the target day includes: judging whether the at least one transaction date is Contains the transaction dates that are consistent with all the query dates; if so, determine the sum of the daily profit and loss calculation results corresponding to the transaction dates that are consistent with each query date, and obtain the profit and loss calculation results corresponding to the query time; if not, based on the preset processing The rule determines the profit and loss calculation result corresponding to the query time.

其中,如图3所示,基于预设处理规则确定与查询时间对应的盈亏计算结果的过程可以包括:Wherein, as shown in FIG. 3 , the process of determining the profit and loss calculation result corresponding to the query time based on the preset processing rule may include:

步骤S1、判断至少一个交易日期中是否包含与部分查询日期分别一致的交易日期。Step S1, judging whether at least one transaction date includes transaction dates that are consistent with some of the query dates.

步骤S2、若是,基于至少一个第一日盈亏计算结果以及与目标交易日期对应的日盈亏计算结果,确定与查询时间对应的盈亏计算结果。Step S2: If yes, determine the profit and loss calculation result corresponding to the query time based on at least one first-day profit and loss calculation result and the daily profit and loss calculation result corresponding to the target transaction date.

在本申请实施例中,至少一个第一日盈亏计算结果为部分查询日期中,与每个查询日期一致的交易日期对应的日盈亏计算结果,目标交易日期为至少一个交易日期中的最新交易日期。In the embodiment of the present application, at least one first-day profit and loss calculation result is a daily profit and loss calculation result corresponding to a transaction date that is consistent with each query date in some query dates, and the target transaction date is the latest transaction date in the at least one transaction date. .

在本步骤中,基于至少一个第一日盈亏计算结果以及与目标交易日期对应的日盈亏计算结果,确定与查询时间对应的盈亏计算结果的过程可以包括:In this step, based on at least one first-day profit and loss calculation result and the daily profit and loss calculation result corresponding to the target transaction date, the process of determining the profit and loss calculation result corresponding to the query time may include:

基于与目标交易日期对应的日盈亏计算结果,确定与至少一个第一查询日期分别对应的第二日盈亏计算结果;在目标日盈亏数据表中获取至少一个第一日盈亏计算结果;确定每个第一日盈亏计算结果和每个第二日盈亏计算结果的和值,得到与查询时间对应的盈亏计算结果。其中,该第一查询日期为查询时间中,与每个交易日期均不一致的查询日期。Based on the daily profit and loss calculation results corresponding to the target transaction date, determine the second-day profit and loss calculation results corresponding to at least one first query date respectively; obtain at least one first-day profit and loss calculation result in the target day's profit and loss data table; determine each The sum of the profit and loss calculation results of the first day and the profit and loss calculation results of each second day is used to obtain the profit and loss calculation results corresponding to the query time. Wherein, the first query date is a query date that is inconsistent with each transaction date in the query time.

其中,基于与目标交易日期对应的日盈亏计算结果确定与至少一个第一查询日期分别对应的第二日盈亏计算结果的过程可以包括:Wherein, the process of determining the second-day profit and loss calculation results corresponding to at least one first query date based on the daily profit and loss calculation results corresponding to the target transaction date may include:

基于第二处理逻辑处理与目标交易日期对应的日盈亏计算结果,得到与目标交易日期的次日对应的日盈亏计算结果;判断目标交易日期的次日是否为至少一个第一查询日期中的最晚查询日期;若不是,将目标交易日期的次日确定为更新后的目标交易日期;重复上述操作,直至目标交易日期的次日为至少一个第一查询日期中的最晚查询日期;若是,确定与每个目标交易日期的次日一致的第一查询日期,获取与每个第一查询日期对应的第二日盈亏计算结果。Based on the second processing logic, the daily profit and loss calculation result corresponding to the target transaction date is processed, and the daily profit and loss calculation result corresponding to the next day of the target transaction date is obtained; it is judged whether the next day of the target transaction date is the highest value of the at least one first query date. Late query date; if not, determine the day following the target transaction date as the updated target transaction date; repeat the above operations until the day following the target transaction date is the latest query date among at least one first query date; if so, Determine the first query date that is consistent with the next day of each target transaction date, and obtain the second-day profit and loss calculation result corresponding to each first query date.

可以理解的是,在本申请实施例中,获取与每个第一查询日期对应的第二日盈亏计算结果的过程可以是:确定与第一查询日期一致的目标交易日期的次日对应的日盈亏计算结果,将该与第一查询日期一致的目标交易日期的次日对应的日盈亏计算结果,确定为与第一查询日期对应的第二日盈亏计算结果。It can be understood that, in this embodiment of the present application, the process of obtaining the second-day profit and loss calculation result corresponding to each first query date may be: determining the day corresponding to the next day of the target transaction date that is consistent with the first query date. As for the profit and loss calculation result, the daily profit and loss calculation result corresponding to the next day of the target transaction date that is consistent with the first query date is determined as the second day profit and loss calculation result corresponding to the first query date.

步骤S3、若不是,基于与目标交易日期对应的日盈亏计算结果确定与查询时间对应的盈亏计算结果。Step S3: If not, determine the profit and loss calculation result corresponding to the query time based on the daily profit and loss calculation result corresponding to the target transaction date.

在本步骤中,基于与目标交易日期对应的日盈亏计算结果确定与查询时间对应的盈亏计算结果的过程可以包括:In this step, the process of determining the profit and loss calculation result corresponding to the query time based on the daily profit and loss calculation result corresponding to the target transaction date may include:

基于第二处理逻辑处理与目标交易日期对应的盈亏计算结果,得到与目标交易日期的次日对应的盈亏计算结果;判断目标交易日期的次日是否为查询时间中的最晚查询日期;若不是,将目标交易日期的次日确定为更新后的目标交易日期;重复上述操作,直至更新后的目标交易日期的次日为查询时间中的最晚查询日期;若是,确定与每个目标交易日期的次日一致的查询日期,获取与每个查询日期对应的日盈亏计算结果;确定与每个查询日期对应的日盈亏计算结果的和值,得到与查询时间对应的盈亏计算结果。Based on the second processing logic, the profit and loss calculation result corresponding to the target transaction date is processed, and the profit and loss calculation result corresponding to the next day of the target transaction date is obtained; it is judged whether the next day of the target transaction date is the latest query date in the query time; if not , determine the next day of the target transaction date as the updated target transaction date; repeat the above operations until the next day of the updated target transaction date is the latest query date in the query time; if so, determine the date with each target transaction date Obtain the daily profit and loss calculation result corresponding to each query date on the same query date on the next day of the query date; determine the sum of the daily profit and loss calculation results corresponding to each query date, and obtain the profit and loss calculation result corresponding to the query time.

可以理解的是,获取与每个查询日期对应的日盈亏计算结果的过程可以是:确定与查询日期一致的目标交易日期的次日对应的日盈亏计算结果,将该与查询日期一致的目标交易日期的次日对应的日盈亏计算结果,确定为与查询日期对应的日盈亏计算结果。It can be understood that the process of obtaining the daily profit and loss calculation result corresponding to each query date may be: determining the daily profit and loss calculation result corresponding to the next day of the target transaction date that is consistent with the query date, and the target transaction that is consistent with the query date. The daily profit and loss calculation result corresponding to the next day of the date is determined as the daily profit and loss calculation result corresponding to the query date.

示例的,终端设备接收到某一用户终端发送的盈亏查询请求,该盈亏处理请求中的用户标识为用户A,查询时间为查询日期2020年9月2日至2020年9月4日。For example, the terminal device receives a profit and loss query request sent by a user terminal, the user ID in the profit and loss processing request is user A, and the query time is from September 2, 2020 to September 4, 2020.

终端设备可以获取与用户A对应的日盈亏数据表,将其确定为目标日盈亏数据表,并确定目标日盈亏数据表中的至少一个交易日期包括2020年9月4日之前的每个交易日期,则可以确定至少一个交易日期中存在与查询日期2020年9月2日、2020年9月3日和2020年9月4日分别一致的交易日期,可以在该目标日盈亏数据表中获取与交易日期2020年9月2日、2020年9月3日和2020年9月4日分别对应的日盈亏计算结果t5、日盈亏计算结果t1以及日盈亏计算结果t2,确定日盈亏计算结果t5、日盈亏计算结果t1以及日盈亏计算结果t2的和值,得到与查询时间2020年9月2日至2020年9月4日对应的盈亏计算结果。The terminal device can obtain the daily profit and loss data table corresponding to user A, determine it as the target daily profit and loss data table, and determine that at least one transaction date in the target daily profit and loss data table includes each transaction date before September 4, 2020 , then it can be determined that at least one transaction date has transaction dates that are consistent with the query dates on September 2, 2020, September 3, 2020, and September 4, 2020, and can be obtained from the profit and loss data table of the target day. The daily profit and loss calculation results t5, the daily profit and loss calculation results t1, and the daily profit and loss calculation results t2 corresponding to the transaction dates of September 2, 2020, September 3, 2020, and September 4, 2020, respectively, determine the daily profit and loss calculation results t5, The sum of the daily profit and loss calculation result t1 and the daily profit and loss calculation result t2 is used to obtain the profit and loss calculation result corresponding to the query time from September 2, 2020 to September 4, 2020.

或者,盈亏处理请求中的查询时间为查询日期2020年9月3日至2020年9月7日,由于目标日盈亏数据表中的至少一个交易日期包括2020年9月4日之前的每个交易日期,则可以确定至少一个交易日期中包含与查询日期2020年9月3日至2020年9月4日分别一致的交易日期,并获取与目标交易日期2020年9月4日对应的日盈亏计算结果t2,基于日盈亏计算结果t2确定与第一查询日期2020年9月5、第一查询日期2020年9月6日以及第一查询日期2020年9月7日分别对应的第二日盈亏计算结果。Alternatively, the query time in the profit and loss processing request is from September 3, 2020 to September 7, 2020, since at least one transaction date in the target day profit and loss data table includes every transaction before September 4, 2020 date, it can be determined that at least one transaction date contains the same transaction date as the query date from September 3, 2020 to September 4, 2020, and obtains the daily profit and loss calculation corresponding to the target transaction date September 4, 2020 The result t2, based on the daily profit and loss calculation result t2, determines the profit and loss calculation on the second day corresponding to the first query date September 5, 2020, the first query date September 6, 2020, and the first query date September 7, 2020 respectively result.

其中,基于日盈亏计算结果t2确定与第一查询日期2020年9月5、第一查询日期2020年9月6日以及第一查询日期2020年9月7日分别对应的第二日盈亏计算结果的过程可以是:Among them, based on the daily profit and loss calculation result t2, the second day's profit and loss calculation results corresponding to the first query date September 5, 2020, the first query date September 6, 2020, and the first query date September 7, 2020 are determined respectively. The process can be:

获取与交易日期2020年9月4日对应的日盈亏计算结果t2,基于第二处理逻辑处理日盈亏计算结果t2,得到与2020年9月5日对应的日盈亏计算结果t3,由于2020年9月5日并非三个第一查询日期中的最晚查询日期,继续基于第二处理逻辑处理日盈亏计算结果t3,得到与2020年9月6日对应的日盈亏计算结果t4,由于2020年9月6日并非三个第一查询日期中的最晚查询日期,继续基于第二处理逻辑处理日盈亏计算结果t4,得到与2020年9月7日对应的日盈亏计算结果t6,由于2020年9月7日为三个第一查询日期中的最晚查询日期,则可以获取与目标交易日期的次日2020年9月5、与更新后的目标交易日期的次日2020年9月6日以及与更新后的目标交易日期的次日2020年9月7日分别对应的日盈亏计算结果t3、日盈亏计算结果t4和日盈亏计算结果t6,得到与第一查询日期2020年9月5、第一查询日期2020年9月6日以及第一查询日期2020年9月7日分别对应的第二日盈亏计算结果t3、第二日盈亏计算结果t4和第二日盈亏计算结果t6。Obtain the daily profit and loss calculation result t2 corresponding to the transaction date of September 4, 2020, process the daily profit and loss calculation result t2 based on the second processing logic, and obtain the daily profit and loss calculation result t3 corresponding to September 5, 2020. Month 5 is not the latest query date among the three first query dates. Continue to process the daily profit and loss calculation result t3 based on the second processing logic, and obtain the daily profit and loss calculation result t4 corresponding to September 6, 2020. Since September 2020 Month 6 is not the latest query date among the three first query dates, continue to process the daily profit and loss calculation result t4 based on the second processing logic, and obtain the daily profit and loss calculation result t6 corresponding to September 7, 2020. Since September 2020 If September 7th is the latest query date among the three first query dates, you can obtain September 5, 2020, the next day of the target transaction date, and September 6, 2020, the next day of the updated target transaction date, and The daily profit and loss calculation result t3, the daily profit and loss calculation result t4, and the daily profit and loss calculation result t6 corresponding to September 7, 2020, the next day after the updated target transaction date, are obtained with the first query date September 5, 2020, and the first query date. The first query date of September 6, 2020 and the first query date of September 7, 2020 correspond to the second day's profit and loss calculation result t3, the second day's profit and loss calculation result t4, and the second day's profit and loss calculation result t6.

进一步的,在目标日盈亏数据表中获取与查询日期2020年9月3日和2020年9月4日分别对应的第一日盈亏计算结果t1和第一日盈亏计算结果t2,确定第一日盈亏计算结果t1、第一日盈亏计算结果t2、第二日盈亏计算结果t3、第二日盈亏计算结果t4和第二日盈亏计算结果t6的和值,得到与查询时间2020年9月3日至2020年9月7日对应的盈亏计算结果。Further, obtain the first day's profit and loss calculation result t1 and the first day's profit and loss calculation result t2 corresponding to the query date September 3, 2020 and September 4, 2020 in the target day profit and loss data table, and determine the first day. The sum of the profit and loss calculation result t1, the first day's profit and loss calculation result t2, the second day's profit and loss calculation result t3, the second day's profit and loss calculation result t4, and the second day's profit and loss calculation result t6, is obtained and the query time September 3, 2020 The profit and loss calculation results corresponding to September 7, 2020.

又或者,盈亏处理请求中查询时间为查询日期2020年9月6日至2020年9月7日,由于目标日盈亏数据表中的至少一个交易日期包括2020年9月4日之前的每个交易日期,则可以确定至少一个交易日中不包含与每个查询日期分别一致的交易日期,则基于与目标交易日期2020年9月4日对应的日盈亏计算结果t2确定与查询时间对应的盈亏计算结果的过程可以是:Or, the query time in the profit and loss processing request is from September 6, 2020 to September 7, 2020, since at least one transaction date in the profit and loss data table of the target day includes every transaction before September 4, 2020 date, it can be determined that at least one trading day does not include a transaction date that is consistent with each query date, then the profit and loss calculation corresponding to the query time is determined based on the daily profit and loss calculation result t2 corresponding to the target transaction date September 4, 2020 The resulting process can be:

基于第二处理逻辑处理日盈亏计算结果t2,得到与2020年9月5日对应的日盈亏计算结果t3,由于2020年9月5日并非查询时间中的最晚查询日期,继续基于第二处理逻辑处理日盈亏计算结果t3,得到与2020年9月6日对应的日盈亏计算结果t4,由于2020年9月6日并非查询时间中的最晚查询日期,继续基于第二处理逻辑处理日盈亏计算结果t4,得到与2020年9月7日对应的日盈亏计算结果t6,由于2020年9月7日为查询时间中的最晚查询日期,则可以获取与目标交易日期的次日2020年9月6日以及更新后的目标交易日期的次日2020年9月7日分别对应的日盈亏计算结果t4和日盈亏计算结果t6,得到与查询日期2020年9月6日和2020年9月7日分别对应的日盈亏计算结果t4和日盈亏计算结果t6,确定日盈亏计算结果t4和日盈亏计算结果t6的和值,得到与查询时间2020年9月6日至2020年9月7日对应的盈亏计算结果。Based on the second processing logic, the daily profit and loss calculation result t2 is processed, and the daily profit and loss calculation result t3 corresponding to September 5, 2020 is obtained. Since September 5, 2020 is not the latest query date in the query time, the second processing Logically process the daily profit and loss calculation result t3, and obtain the daily profit and loss calculation result t4 corresponding to September 6, 2020. Since September 6, 2020 is not the latest query date in the query time, continue to process the daily profit and loss based on the second processing logic Calculate the result t4, and obtain the daily profit and loss calculation result t6 corresponding to September 7, 2020. Since September 7, 2020 is the latest query date in the query time, you can obtain the next day of the target transaction date. The daily profit and loss calculation result t4 and the daily profit and loss calculation result t6 corresponding to September 6, 2020 and the next day after the updated target transaction date, respectively, are obtained with the query date September 6, 2020 and September 7, 2020. The daily profit and loss calculation result t4 and the daily profit and loss calculation result t6 corresponding to the day respectively, determine the sum of the daily profit and loss calculation result t4 and the daily profit and loss calculation result t6, and obtain the corresponding query time from September 6, 2020 to September 7, 2020 Profit and loss calculation results.

步骤203、发送盈亏计算结果至与用户标识对应的用户终端。Step 203: Send the profit and loss calculation result to the user terminal corresponding to the user ID.

需要说明的是,在本申请实施例中,与目标交易日期的次日对应的日盈亏计算结果通常存储于内存数据库中,若需要基于与目标交易日期的次日对应的日盈亏计算结果确定与盈亏查询请求对应盈亏计算结果,则在将盈亏计算结果发送至用户终端后,可以清空在盈亏计算结果确定过程中,确定的每个与目标交易日期的次日对应的日盈亏计算结果,防止占用内存数据库的空间。It should be noted that, in the embodiment of the present application, the daily profit and loss calculation result corresponding to the next day of the target transaction date is usually stored in the memory database. The profit and loss query request corresponds to the profit and loss calculation result. After the profit and loss calculation result is sent to the user terminal, the daily profit and loss calculation result corresponding to the next day of the target transaction date determined in the process of determining the profit and loss calculation result can be cleared to prevent occupation. Space for the in-memory database.

综上所述,申请实施例提供的证券交易盈亏处理方法,可以接收盈亏查询请求;基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果;发送盈亏计算结果至与用户标识对应的用户终端。可以提升对任意日期范围内或者任一日的盈亏计算结果的确定速度,提高交易系统的响应速度,提升用户的使用体验。To sum up, the method for processing profit and loss of securities trading provided by the application embodiment can receive a profit and loss query request; determine the profit and loss calculation result corresponding to the query time based on the profit and loss data table of the target day; send the profit and loss calculation result to the user terminal corresponding to the user ID . It can improve the determination speed of the profit and loss calculation results in any date range or any day, improve the response speed of the trading system, and improve the user experience.

本申请实施例提供一种证券交易盈亏处理装置,如图4所示,该装置30包括:The embodiment of the present application provides an apparatus for processing profit and loss of securities trading. As shown in FIG. 4 , the apparatus 30 includes:

接收模块301,被配置为接收盈亏查询请求,盈亏查询请求包括用户标识和查询时间;The receiving module 301 is configured to receive a profit and loss query request, where the profit and loss query request includes a user ID and a query time;

确定模块302,被配置为基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果,目标日盈亏数据表为与用户标识对应的日盈亏数据表;The determining module 302 is configured to determine the profit and loss calculation result corresponding to the query time based on the target daily profit and loss data table, and the target daily profit and loss data table is the daily profit and loss data table corresponding to the user ID;

发送模块303,被配置为发送盈亏计算结果至与用户标识对应的用户终端。The sending module 303 is configured to send the profit and loss calculation result to the user terminal corresponding to the user identifier.

可选的,确定模块302,被配置为:Optionally, the determining module 302 is configured to:

判断至少一个交易日期中是否存在与查询日期一致的交易日期;Determine whether there is a transaction date consistent with the query date in at least one transaction date;

若存在,确定与查询日期一致的交易日期对应的日盈亏计算结果为与查询时间对应的盈亏计算结果;If it exists, determine the daily profit and loss calculation result corresponding to the transaction date consistent with the query date as the profit and loss calculation result corresponding to the query time;

若不存在,获取与目标交易日期对应的日盈亏计算结果,目标交易日期为至少一个交易日期中的最新交易日期;If it does not exist, obtain the daily profit and loss calculation result corresponding to the target transaction date, and the target transaction date is the latest transaction date among at least one transaction date;

基于与目标交易日期对应的日盈亏计算结果确定与查询时间对应的盈亏计算结果。The profit and loss calculation result corresponding to the query time is determined based on the daily profit and loss calculation result corresponding to the target transaction date.

可选的,确定模块302,被配置为:Optionally, the determining module 302 is configured to:

处理与目标交易日期对应的日盈亏计算结果,得到与目标交易日期的次日对应的日盈亏计算结果;Process the daily profit and loss calculation result corresponding to the target transaction date, and obtain the daily profit and loss calculation result corresponding to the next day of the target transaction date;

判断目标交易日期的次日是否为查询日期;Determine whether the next day of the target transaction date is the query date;

若不是,将目标交易日期的次日确定为更新后的目标交易日期;If not, determine the day following the target transaction date as the updated target transaction date;

重复上述操作,直至目标交易日期的次日为查询日期;Repeat the above operations until the next day of the target transaction date is the query date;

若是,确定与目标交易日期的次日对应的日盈亏计算结果为与查询时间对应的盈亏计算结果。If so, determine the daily profit and loss calculation result corresponding to the next day of the target transaction date as the profit and loss calculation result corresponding to the query time.

可选的,确定模块302,被配置为:Optionally, the determining module 302 is configured to:

判断至少一个交易日期中是否包含与所有查询日期分别一致的交易日期;Determine whether at least one transaction date includes transaction dates that are consistent with all query dates;

若是,确定与每个查询日期一致的交易日期对应的日盈亏计算结果的和值,得到与查询时间对应的盈亏计算结果;If so, determine the sum of the daily profit and loss calculation results corresponding to the transaction date that is consistent with each query date, and obtain the profit and loss calculation result corresponding to the query time;

若不是,基于预设处理规则确定与查询时间对应的盈亏计算结果。If not, determine the profit and loss calculation result corresponding to the query time based on the preset processing rule.

可选的,确定模块302,被配置为:Optionally, the determining module 302 is configured to:

判断至少一个交易日期中是否包含与部分查询日期分别一致的交易日期;Determine whether at least one transaction date includes transaction dates that are consistent with some of the query dates;

若是,基于至少一个第一日盈亏计算结果以及与目标交易日期对应的日盈亏计算结果,确定与查询时间对应的盈亏计算结果,至少一个第一日盈亏计算结果为部分查询日期中,与每个查询日期一致的交易日期对应的日盈亏计算结果,目标交易日期为至少一个交易日期中的最新交易日期;If so, determine the profit and loss calculation result corresponding to the query time based on at least one first-day profit and loss calculation result and the daily profit and loss calculation result corresponding to the target transaction date. At least one first-day profit and loss calculation result is part of the query date, and each The daily profit and loss calculation result corresponding to the transaction date with the same query date, and the target transaction date is the latest transaction date among at least one transaction date;

若不是,基于与目标交易日期对应的日盈亏计算结果确定与查询时间对应的盈亏计算结果。If not, the profit and loss calculation result corresponding to the query time is determined based on the daily profit and loss calculation result corresponding to the target transaction date.

可选的,确定模块302,被配置为:Optionally, the determining module 302 is configured to:

基于与目标交易日期对应的日盈亏计算结果,确定与至少一个第一查询日期分别对应的第二日盈亏计算结果,第一查询日期为查询时间中,与每个交易日期均不一致的查询日期;Determine, based on the daily profit and loss calculation results corresponding to the target transaction date, the second-day profit and loss calculation results corresponding to at least one first query date, where the first query date is the query date in the query time that is inconsistent with each transaction date;

在目标日盈亏数据表中获取至少一个第一日盈亏计算结果;Obtain at least one calculation result of the first day's profit and loss in the target day's profit and loss data table;

确定每个第一日盈亏计算结果和每个第二日盈亏计算结果的和值,得到与查询时间对应的盈亏计算结果。Determine the sum of the profit and loss calculation result of each first day and the profit and loss calculation result of each second day, and obtain the profit and loss calculation result corresponding to the query time.

可选的,确定模块302,被配置为:Optionally, the determining module 302 is configured to:

处理与目标交易日期对应的日盈亏计算结果,得到与目标交易日期的次日对应的日盈亏计算结果;Process the daily profit and loss calculation result corresponding to the target transaction date, and obtain the daily profit and loss calculation result corresponding to the next day of the target transaction date;

判断目标交易日期的次日是否为至少一个第一查询日期中的最晚查询日期;Determine whether the next day of the target transaction date is the latest query date in at least one first query date;

若不是,将目标交易日期的次日确定为更新后的目标交易日期;If not, determine the day following the target transaction date as the updated target transaction date;

重复上述操作,直至目标交易日期的次日为至少一个第一查询日期中的最晚查询日期;Repeat the above operations until the day following the target transaction date is the latest query date among at least one first query date;

若是,确定与每个目标交易日期的次日一致的第一查询日期,获取与每个第一查询日期对应的第二日盈亏计算结果。If so, determine the first query date that is consistent with the day after each target transaction date, and obtain the second-day profit and loss calculation result corresponding to each first query date.

可选的,确定模块302,被配置为:Optionally, the determining module 302 is configured to:

处理与目标交易日期对应的盈亏计算结果,得到与目标交易日期的次日对应的盈亏计算结果;Process the profit and loss calculation result corresponding to the target transaction date, and obtain the profit and loss calculation result corresponding to the next day of the target transaction date;

判断目标交易日期的次日是否为查询时间中的最晚查询日期;Determine whether the next day of the target transaction date is the latest query date in the query time;

若不是,将目标交易日期的次日确定为更新后的目标交易日期;If not, determine the day following the target transaction date as the updated target transaction date;

重复上述操作,直至更新后的目标交易日期的次日为查询时间中的最晚查询日期;Repeat the above operations until the day following the updated target transaction date is the latest query date in the query time;

若是,确定与每个目标交易日期的次日一致的查询日期,获取与每个查询日期对应的日盈亏计算结果;If so, determine the query date that is consistent with the next day of each target transaction date, and obtain the daily profit and loss calculation result corresponding to each query date;

确定与每个查询日期对应的日盈亏计算结果的和值,得到与查询时间对应的盈亏计算结果Determine the sum of the daily profit and loss calculation results corresponding to each query date, and obtain the profit and loss calculation result corresponding to the query time

综上所述,申请实施例提供的证券交易盈亏处理装置,可以接收盈亏查询请求;基于目标日盈亏数据表确定与查询时间对应的盈亏计算结果;发送盈亏计算结果至与用户标识对应的用户终端。可以提升对任意日期范围内或者任一日的盈亏计算结果的确定速度,提高交易系统的响应速度,提升用户的使用体验。To sum up, the securities trading profit and loss processing device provided by the application embodiment can receive a profit and loss query request; determine the profit and loss calculation result corresponding to the query time based on the profit and loss data table of the target day; send the profit and loss calculation result to the user terminal corresponding to the user ID . It can improve the determination speed of the profit and loss calculation results in any date range or any day, improve the response speed of the trading system, and improve the user experience.

图5是根据一示例性实施例示出的一种计算机设备,该计算机设备包括中央处理单元(CPU)401,其可以根据存储在只读存储器(ROM)402中的程序或者从存储部分加载到随机访问存储器(RAM)403中的程序而执行各种适当的动作和处理。在RAM403中,还存储有系统操作所需的各种程序和数据。CPU401、ROM402以及RAM403通过总线404彼此相连。输入/输出(I/O)接口405也连接至总线404。FIG. 5 shows a computer device according to an exemplary embodiment, the computer device includes a central processing unit (CPU) 401, which can be loaded into a random device according to a program stored in a read-only memory (ROM) 402 or from a storage part Various appropriate actions and processes are performed by accessing the program in the memory (RAM) 403 . In the RAM 403, various programs and data necessary for system operation are also stored. The CPU 401 , the ROM 402 , and the RAM 403 are connected to each other through a bus 404 . An input/output (I/O) interface 405 is also connected to bus 404 .

以下部件连接至I/O接口405:包括键盘、鼠标等的输入部分406;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分;包括硬盘等的存储部分408;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分409。通信部分409经由诸如因特网的网络执行通信处理。驱动器也根据需要连接至I/O接口405。可拆卸介质411,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器410上,以便于从其上读出的计算机程序根据需要被安装入存储部分408。The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; And a communication section 409 including network interface cards such as LAN cards, modems, and the like. The communication section 409 performs communication processing via a network such as the Internet. Drives are also connected to I/O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.

特别地,根据本申请的实施例,上文图2至图3描述的过程可以被实现为计算机软件程序。例如,本申请的各个实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分从网络上被下载和安装,和/或从可拆卸介质被安装。在该计算机程序被中央处理单元(CPU)401执行时,执行本申请的系统中限定的上述功能。In particular, according to embodiments of the present application, the processes described above with respect to FIGS. 2 to 3 may be implemented as computer software programs. For example, various embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion, and/or installed from a removable medium. When the computer program is executed by the central processing unit (CPU) 401, the above-described functions defined in the system of the present application are executed.

需要说明的是,本申请所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本申请各种实施例的方法、装置和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of methods, apparatus and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。所描述的单元或模块也可以设置在处理器中,例如,可以描述为:一种处理器包括接收模块、确定模块和发送模块。其中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定,例如,接收模块还可以被描述为“用于接收盈亏查询请求的接收模块”。The units involved in the embodiments of the present application may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. The described unit or module can also be provided in the processor, for example, it can be described as: a processor includes a receiving module, a determining module and a sending module. Wherein, the names of these units or modules do not constitute a limitation on the units or modules themselves, for example, the receiving module may also be described as a "receiving module for receiving profit and loss query requests".

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如上述实施例中描述的证券交易盈亏处理方法。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist alone without being assembled into the electronic device. middle. The computer-readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, enables the electronic device to implement the method for processing profit and loss of securities trading as described in the above-mentioned embodiments.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the above-mentioned technical features without departing from the inventive concept. Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (11)

1. A method for processing profit and loss of securities trading is characterized by comprising the following steps:
receiving a profit and loss query request, wherein the profit and loss query request comprises a user identifier and query time;
determining a profit-loss calculation result corresponding to the query time based on a target daily profit-loss data table, wherein the target daily profit-loss data table is a daily profit-loss data table corresponding to the user identifier;
and sending the profit-loss calculation result to the user terminal corresponding to the user identifier.
2. The method according to claim 1, wherein the query time includes a query date, the target daily profit-and-loss data table includes at least one transaction date and daily profit-and-loss data respectively corresponding to each of the transaction dates, and the determining the profit-and-loss calculation result corresponding to the query time based on the target daily profit-and-loss data table includes:
judging whether at least one transaction date has the transaction date consistent with the inquiry date;
if yes, determining a daily profit and loss calculation result corresponding to the transaction date consistent with the query date as a profit and loss calculation result corresponding to the query time;
if not, acquiring a daily profit and loss calculation result corresponding to a target transaction date, wherein the target transaction date is the latest transaction date in at least one transaction date;
and determining a profit-loss calculation result corresponding to the query time based on the daily profit-loss calculation result corresponding to the target transaction date.
3. The method of claim 2, wherein determining the profit-loss calculation corresponding to the query time based on the daily profit-loss calculation corresponding to the target transaction date comprises:
processing a daily profit and loss calculation result corresponding to the target transaction date to obtain a daily profit and loss calculation result corresponding to the next day of the target transaction date;
judging whether the next day of the target transaction date is the query date or not;
if not, determining the next day of the target trading date as the updated target trading date;
repeating the above operations until the next day of the target transaction date is the query date;
and if so, determining that the daily profit-loss calculation result corresponding to the next day of the target transaction date is the profit-loss calculation result corresponding to the query time.
4. The method according to claim 1, wherein the query time includes at least two consecutive query dates, the target daily profit-and-loss data table includes at least one transaction date and daily profit-and-loss data respectively corresponding to each transaction date, and the determining the profit-and-loss calculation result corresponding to the query time based on the target daily profit-and-loss data table includes:
judging whether at least one transaction date contains the transaction dates which are respectively consistent with all the inquiry dates;
if so, determining the sum of the daily profit and loss calculation results corresponding to the transaction dates consistent with the query dates to obtain profit and loss calculation results corresponding to the query time;
if not, determining a profit-loss calculation result corresponding to the query time based on a preset processing rule.
5. The method according to claim 4, wherein the determining the profit-loss calculation result corresponding to the query time based on the preset processing rule comprises:
judging whether at least one transaction date contains the transaction dates respectively consistent with part of the query dates;
if yes, determining profit-loss calculation results corresponding to the query time based on at least one first day profit-loss calculation result and day profit-loss calculation results corresponding to target transaction dates, wherein at least one first day profit-loss calculation result is a day profit-loss calculation result corresponding to the transaction date which is consistent with each query date in part of the query dates, and the target transaction dates are latest transaction dates in at least one transaction date;
if not, determining the profit-loss calculation result corresponding to the query time based on the daily profit-loss calculation result corresponding to the target transaction date.
6. The method of claim 5, wherein determining the profit-and-loss calculation corresponding to the query time based on at least one first daily profit-and-loss calculation and a daily profit-and-loss calculation corresponding to a target transaction date comprises:
determining second daily profit and loss calculation results respectively corresponding to at least one first inquiry date based on daily profit and loss calculation results corresponding to the target transaction dates, wherein the first inquiry date is the inquiry date which is inconsistent with each transaction date in the inquiry time;
obtaining at least one first daily profit and loss calculation result in the target daily profit and loss data table;
and determining the sum of each first daily profit-loss calculation result and each second daily profit-loss calculation result to obtain the profit-loss calculation result corresponding to the query time.
7. The method of claim 6, wherein determining second daily profit-loss calculations corresponding to at least one first query date, respectively, based on daily profit-loss calculations corresponding to the target transaction date comprises:
processing the daily profit and loss calculation result corresponding to the target trading date to obtain a daily profit and loss calculation result corresponding to the next day of the target trading date;
judging whether the next day of the target transaction date is the latest query date in at least one first query date;
if not, determining the next day of the target trading date as the updated target trading date;
repeating the above operations until the next day of the target transaction date is the latest query date in at least one first query date;
if yes, determining the first query date consistent with the next day of each target transaction date, and acquiring second day profit and loss calculation results corresponding to each first query date.
8. The method of claim 5, wherein determining the profit-loss calculation corresponding to the query time based on the daily profit-loss calculation corresponding to the target transaction date comprises:
processing the profit-loss calculation result corresponding to the target trading date to obtain the profit-loss calculation result corresponding to the next day of the target trading date;
judging whether the next day of the target transaction date is the latest query date in the query time;
if not, determining the next day of the target trading date as the updated target trading date;
repeating the above operations until the next day of the updated target transaction date is the latest query date in the query time;
if yes, determining the query date consistent with the next day of each target transaction date, and acquiring daily profit and loss calculation results corresponding to each query date;
and determining the sum of the daily profit and loss calculation results corresponding to each query date to obtain the profit and loss calculation results corresponding to the query time.
9. A securities trade profit and loss processing apparatus, comprising:
the receiving module is configured to receive a profit and loss query request, and the profit and loss query request comprises a user identifier and a query time;
a determining module configured to determine a profit-loss calculation result corresponding to the query time based on a target daily profit-loss data table, where the target daily profit-loss data table is a daily profit-loss data table corresponding to the user identifier;
and the sending module is configured to send the profit and loss calculation result to the user terminal corresponding to the user identifier.
10. A computer device, characterized in that the computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor being adapted to perform the method according to any of claims 1-8 when executing the program.
11. A computer-readable storage medium, characterized in that a computer program is stored thereon for implementing the method according to any one of claims 1-8.
CN202110136356.8A 2021-02-01 2021-02-01 Method, device, equipment and medium for processing profit and loss of securities transaction Pending CN114840569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110136356.8A CN114840569A (en) 2021-02-01 2021-02-01 Method, device, equipment and medium for processing profit and loss of securities transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110136356.8A CN114840569A (en) 2021-02-01 2021-02-01 Method, device, equipment and medium for processing profit and loss of securities transaction

Publications (1)

Publication Number Publication Date
CN114840569A true CN114840569A (en) 2022-08-02

Family

ID=82561178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110136356.8A Pending CN114840569A (en) 2021-02-01 2021-02-01 Method, device, equipment and medium for processing profit and loss of securities transaction

Country Status (1)

Country Link
CN (1) CN114840569A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017127000A1 (en) * 2016-01-20 2017-07-27 Telefonaktiebolaget Lm Ericsson (Publ) Methods, system and user equipment of a wireless communication network for determining transmission conditions for a real-time media flow
CN107885802A (en) * 2017-10-31 2018-04-06 阿里巴巴集团控股有限公司 Inquiry into balance method, apparatus and equipment
CN109300055A (en) * 2018-12-11 2019-02-01 泰康保险集团股份有限公司 Investment-linked insurance profit and loss querying method, device, equipment and readable storage medium storing program for executing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017127000A1 (en) * 2016-01-20 2017-07-27 Telefonaktiebolaget Lm Ericsson (Publ) Methods, system and user equipment of a wireless communication network for determining transmission conditions for a real-time media flow
CN107885802A (en) * 2017-10-31 2018-04-06 阿里巴巴集团控股有限公司 Inquiry into balance method, apparatus and equipment
CN109300055A (en) * 2018-12-11 2019-02-01 泰康保险集团股份有限公司 Investment-linked insurance profit and loss querying method, device, equipment and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络拖拉机手: "支付宝中如何按时间段查看收益报表", Retrieved from the Internet <URL:https://jingyan.baidu.com/article/425e69e6ac50eaff15fc168b.html> *

Similar Documents

Publication Publication Date Title
CN111861745B (en) Service wind control method and device
CN111427971A (en) Business modeling method, device, system and medium for computer system
CN112948138A (en) Method and device for processing message
CN114297278A (en) Batch data fast writing method, system and device
CN111008865A (en) Coupon synchronous display method, device, server and storage medium
CN113378346A (en) Method and device for model simulation
CN114625458A (en) Page data processing method and device, electronic equipment and storage medium
CN111882294B (en) Method and device for flow approval
CN113743906A (en) Method and device for determining service processing strategy
CN113190558A (en) A data processing method and system
CN110738509B (en) Method and device for quantifying association degree between users
CN117235111A (en) Data query method, device, equipment, storage medium and product
CN114218313B (en) Data management method, device, electronic device, storage medium and product
CN114840569A (en) Method, device, equipment and medium for processing profit and loss of securities transaction
CN113763083B (en) Information processing method and device
CN110858240A (en) Front-end module loading method and device
CN114648410A (en) Stock staring method, apparatus, system, device and medium
CN114896260A (en) Information processing method, information processing device, electronic equipment and storage medium
CN114565402A (en) Information recommendation method and device and electronic equipment
CN115269645A (en) Information query method and device, electronic equipment and computer readable medium
CN112785358A (en) Order fulfillment merchant access method and device
CN114092237B (en) Clearing processing method, device, system and equipment based on difference value
CN112949670B (en) Data set switching method and device for federal learning model
CN113157828B (en) Method and device for pushing data
US20150262148A1 (en) Systems and methods for service request processing

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