CN112765234A - Method and device for acquiring exposure data, storage medium and electronic device - Google Patents

Method and device for acquiring exposure data, storage medium and electronic device Download PDF

Info

Publication number
CN112765234A
CN112765234A CN202110076762.XA CN202110076762A CN112765234A CN 112765234 A CN112765234 A CN 112765234A CN 202110076762 A CN202110076762 A CN 202110076762A CN 112765234 A CN112765234 A CN 112765234A
Authority
CN
China
Prior art keywords
target
time period
time
data
exposure data
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
CN202110076762.XA
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.)
JD Digital Technology Holdings Co Ltd
Original Assignee
JD Digital Technology Holdings 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 JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings Co Ltd
Priority to CN202110076762.XA priority Critical patent/CN112765234A/en
Publication of CN112765234A publication Critical patent/CN112765234A/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
    • 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/2455Query execution
    • G06F16/24568Data stream processing; Continuous queries
    • 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)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for acquiring exposure data, a storage medium and an electronic device. Wherein, the method comprises the following steps: receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target open data of a target time interval; determining target exposure data based on the exposure data of each time period in a target time interval, wherein the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined; and responding to the service request, and returning the target open data to the target terminal. The method and the device solve the technical problem that the efficiency of determining the exposure data is low in the related technology.

Description

Method and device for acquiring exposure data, storage medium and electronic device
Technical Field
The application relates to the field of data processing, in particular to an exposure data acquisition method and device, a storage medium and an electronic device.
Background
In the financial field, open is the unprotected risk, and is the part that may cause loss because no precautionary measures are taken for the risk.
Regression analysis, which is the most popular tool in analyzing risk and constructing hedging schemes, is commonly used in the related art to assess risk exposure. It can examine the relationship between enterprise cash flow historical data without hedging and risk elements. Specifically, the factor p coefficient is estimated based on a quantitative relationship regression between the historical revenue or cash flow of the enterprise and the risk factors. The element of the Run coefficient (the Run coefficient is an index for determining the degree of influence of the return on the entire market return) in the regression model is the slope of the curve.
The regression method uses historical data and is an evaluation method for post-examination. For the industry which changes rapidly nowadays, accurate prediction of future exposure is difficult, and the scheme involves analysis of a large amount of historical data, needs to consume more hardware resources and time resources, and is low in efficiency. In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides an exposure data acquisition method and device, a storage medium and an electronic device, so as to at least solve the technical problem of low efficiency of determining exposure data in the related art.
According to an aspect of the embodiments of the present application, there is provided an exposure data obtaining method, including: receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target open data of a target time interval; determining the target exposure data based on the exposure data of each time period in the target time interval, wherein the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined; and responding to the service request, and returning the target open data to the target terminal.
According to another aspect of the embodiments of the present application, there is also provided an exposure data obtaining apparatus, including: the system comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving a service request sent by a target terminal, and the service request is used for requesting to acquire target open data of a target time interval; the determining unit is used for determining the target exposure data based on the exposure data of each time period in the target time interval, wherein the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined; and the response unit is used for responding to the service request and returning the target open data to the target terminal.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.
In the embodiment of the application, when a server receives a service request sent by a target terminal, the target open data is determined based on the open data of each time period in the target time interval, the target open data is returned to the target terminal, the target time interval comprises a plurality of time periods with the same duration, and because each open data of the time period is predetermined, the target open data can be rapidly determined, processing of a large amount of original data is avoided, the technical problem that the efficiency for determining the open data in the related technology is low can be solved, and the technical effect of improving the data processing efficiency is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a diagram illustrating a hardware environment of an exposure data obtaining method according to an embodiment of the present application;
FIG. 2 is a flowchart of an alternative exposure data obtaining method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a presentation interface for exposure data according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a presentation interface for exposure data according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an alternative exposure data obtaining apparatus according to an embodiment of the present application;
and
fig. 6 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial nouns or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
position is a financial term that refers to the amount of a particular good, security, currency, etc. held or owned by an individual or entity. The first and last position of the day are the beginning and ending position of the day, respectively.
And (4) opening funds: the capital gap is generally obtained by subtracting the initial position of the day from the final position of the day, so that the capital management personnel can conveniently check the required financing amount.
Bank account: i.e. an account opened in a bank, such as a bank card account opened for an enterprise.
Inter-bank account: the bank refers to a foreign exchange transaction center, and the inter-bank account is also a bank card account, except that the bank is a bank designated by the inter-bank.
The exchange account is: the exchange refers to a stock exchange, which is also a bank card account, except that here the bank is the bank designated by the transaction.
According to an aspect of the embodiments of the present application, a method embodiment of an exposure data obtaining method is provided.
Alternatively, in this embodiment, the above-mentioned method for acquiring exposure data may be applied to a hardware environment formed by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, a server 103 is connected to a terminal 101 through a network, which may be used to provide services (such as data management services) for the terminal or a client installed on the terminal, and a database 105 may be provided on the server or separately from the server, and is used to provide data storage services for the server 103, and the network includes but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like.
The method for acquiring exposure data in the embodiment of the application may be executed by the server 103, or may be executed by both the server 103 and the terminal 101. Fig. 2 is a flowchart of an optional exposure data obtaining method according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S202, the server receives a service request sent by the target terminal, where the service request is used to request to obtain target exposure data of the target time interval, and the target exposure data is the amount of virtual resources, such as currency, virtual currency, digital currency, etc., required in the target time interval.
Step S204, the server determines target exposure data based on the exposure data of each time period in the target time interval, the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined.
The target time interval is a time interval specified by the user on the target terminal, such as 1-8 days of a month, and the time period is a week of fixed duration, such as 1 day, 1 hour, and the like.
Step S206, responding to the service request, the server returns the target open data to the target terminal.
By adopting the technical scheme, when the server receives a service request sent by the target terminal, the target open data is determined based on the open data of each time period in the target time interval, the target open data is returned to the target terminal, the target time interval comprises a plurality of time periods with the same duration, and because the open data of each time period is predetermined, the target open data can be rapidly determined, the processing of a large amount of original data is avoided, the technical problem that the efficiency for determining the open data in the related technology is low can be solved, and the technical effect of improving the data processing efficiency is achieved. The technical scheme of the application is detailed in the following specific steps:
step 1, determining exposure data of each time period.
The time period of the exposure data to be determined currently can be recorded as a second time period, the exposure data of the second time period is determined according to resource circulation data generated by a third resource circulation event of the second time period, and the third resource circulation event is a resource circulation event of which the expected occurrence time is located in the second time period.
The resource circulation event is an event that causes a change in virtual resources, such as an event related to a Transaction exposure (Transaction exposure), an event related to an operation or Economic exposure (Operating or Economic exposure), and an event related to a conversion exposure (Transaction or Accounting exposure).
The business scope of the fund exposure statistics is relatively comprehensive, and comprises all cash flows generated by trading and non-trading behaviors, and the specific table is shown in table 1:
TABLE 1
Figure BDA0002907895850000061
Optionally, when determining the exposure data of the second time period according to the resource flow data generated by the third resource flow event of the second time period, multiple types of resource flow data generated by the third resource flow event may be searched, where the multiple types refer to multiple service types, such as coupon buying and selling, inter-bank pledge type, agreement type buyback, and the like; and acquiring the sum of the various types of resource flow data generated by all the third resource flow events as the exposure data of the second time period. Specific implementation modes include the following two types:
one is that, under the condition that the starting time of the second time period is later than the current time, the third resource circulation event of which the expected occurrence time is located in the second time period is searched, and the sum of the resource circulation data generated by each third resource circulation event is acquired as the open data of the second time period.
In calculating the resource flow data (i.e., the fund exposure scenario) for each time period, the initial and final day positions of each product per day and the fund exposure scenario may be queried by date.
In calculating the fund exposure, the account of the customer including three of a bank account, an inter-bank account and an exchange account is taken as an example (if the account is more or less, the similar is true):
availability of inter-bank accounts: the fund allocated to the bank account on the day + the fund allocated to the bank account on the return purchase on the same day + the bond on the same day is sold-the bond on the same day is purchased on the return purchase-the bond on the same day is purchased on the same day-the bond on the same day matches the loss of the purchase and the sale-the fund allocated to the bank account on the same day;
income in the previous day between banks: the return purchase due income on the previous day, the bond selling income on the previous day, the fund selling income on the previous day and the loss on the previous day are matched;
the exchange account may be available: the money allocated to the bank account on the day + the money due for the reverse purchase on the day + the bond selling on the day-the reverse purchase on the day-the bond buying on the day-the bond matching the loss of the purchase on the day + the income on the day before the exchange-the buying of the fund + the selling of the fund to the account day + the exchange account on the day before;
exchange day before revenue: the return purchase due income on the previous day, the bond selling income on the previous day, the fund selling income on the previous day and the loss on the previous day are matched;
the bank account is available: the bank account of the previous day can be used + the income of the bank account of the previous day + the fund drawn into the bank account on the same day (bank + exchange) — the fund drawn from the bank account on the same day (bank + exchange) + the application of the product of the liability end-the redemption of the product of the liability end-the fee including the dividend.
The bank account will clear the funds in the account every day, automatically clearing the funds to the bank account, and the exchange account will not automatically clear. The trader transfers the corresponding funds from the bank account into the inter-bank account and the exchange account according to the daily trading volume of the client, and corresponding concepts are available corresponding to the three accounts.
Secondly, under the condition that the starting time of the second time period is not later than the current time, searching a fourth resource circulation event and the third resource circulation event of which the predicted time is located in the second time period, and acquiring the sum of resource circulation data generated by all the third resource circulation events and resource circulation data generated by all the fourth resource circulation events as the exposure data of the second time period, wherein the fourth resource circulation event is a resource circulation event which is generated before the current time in the second time period and is different from the third resource circulation event.
For the second scheme, the exposure condition of the current day can be updated in real time, and the specific calculation manner is similar to that of the first scheme, and is not described again.
And step 2, storing the exposure data of the second time period to a memory.
And step 3, receiving a service request sent by the target terminal, wherein the service request is used for requesting to acquire target open data of the target time interval.
Because business personnel need to control the fund transfer condition in a certain future day, the subsequent fund position can be simulated and calculated at the end of every day, and the calculation comprises the statistics of the inflow and outflow conditions of cash and fund transfer of an asset end and a liability end. The exposure forecast is primarily derived from forecasts of future transactions that are not due for existing transactions that have occurred.
Unexpired transactions have occurred, and such transactions are typically more common in buyback, loan, and bond events. Such services are typically due or event days, and the system can calculate by rule, and at the same time, the amount of money that will occur, including position and exposure on the future due day.
The possible future transaction is specifically characterized in that possible future transaction information is input into the investment management system and stored as draft, and the exposure function can calculate the exposure condition on a certain future day according to the draft information.
By adopting the scheme, cash flow generated by trading and non-trading behaviors is considered, fund exposure (namely target exposure data) in a specified time interval can be calculated, exposure distribution conditions in a future time interval can be checked, and bottom-layer transaction details can be searched by drilling down.
If the inquiry date is appointed, automatically calculating and displaying the openings of the bank and the exchange, including the exchange information of the department fund and the bond payment, according to the current date of the exchange and the due condition of the exchange, quickly inquiring the transaction detail data corresponding to each type of opening according to the exchange place, and respectively displaying according to different service types; the funds exposure may be updated in real time with the transaction action.
And 4, determining the target exposure data based on the exposure data of each time period in the target time interval, wherein the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined.
Determining the target exposure data based on the exposure data of each time period in the target time interval comprises the following two cases:
one is that, when the sending time of the service request is earlier than the starting time of the target time interval, the target exposure data is determined according to the exposure data of all time periods in the target time interval, which may specifically be implemented by the following steps:
and step 41, reading the exposure data of all time periods in the target time interval from the memory.
And 42, performing accumulation operation on the exposure data of all time periods in the target time interval to obtain the target exposure data.
Secondly, when the sending time is not earlier than the starting time of the target time interval, determining the target exposure data according to the exposure data of all time periods in the target time interval and the resource flow data of a first time period, where the first time period is the time period of the sending time, and specifically implementing the following steps:
step 41, reading the exposure data of all time periods in the target time interval from the memory, and obtaining the resource circulation data generated by the first resource circulation event in the first time period.
Optionally, when resource circulation data generated by a first resource circulation event in the first time period is acquired, determining the first resource circulation event in all resource circulation events in the first time period, where all resource circulation events include a first resource circulation event expected to occur and a second resource circulation event occurring occasionally, and the resource circulation data generated by the second resource circulation event is used to determine exposure data of the first time period; and under the condition that the number of the first resource circulation events is multiple, acquiring resource circulation data generated by all the first resource circulation events.
And 42, performing accumulation operation on the exposure data of all time periods in the target time interval and the resource circulation data generated by the first resource circulation event in the first time period to obtain the target exposure data.
And 5, responding to the service request, and returning the target open data to the target terminal.
When the user inquires, as shown in fig. 3 and 4, the left group displays position and exposure information in a combined manner. And the upper half part on the right side displays the position information, and the lower half part displays the cash flow and the opening information.
Due to the fact that the capital changes the flow quantity every day, 1 million flowing water can be obtained in 1 month historically, the performance requirements cannot be met in the traditional flowing water statistical scheme, and the flowing water can be returned in a long time.
The scheme combines the data carry-over technology and the memory database technology to greatly improve the performance.
Data carrying-over technology: and carrying out daily balance and monthly balance on the historical data, specifically, carrying out summation treatment on daily fund running water according to a fund exposure algorithm to form a daily balance value. And forming a monthly bearing value from the daily bearing value. Therefore, when the fund exposure is required to be inquired, the historical settlement and the fund flow occurring in real time in the same day are only required to be inquired, and the sum is calculated according to the algorithm.
The memory database technology comprises the following steps: and (4) aiming at the fund running water data occurring in the same day, the fund running water data is thrown into an internal database in real time, and the real-time position is subjected to accumulated calculation by adopting a stream processing technology. And when various fund change events occur, triggering the fund exposure calculation service to realize the real-time calculation of the fund position and the exposure.
By adopting the technical scheme of the application, accurate prediction of the fund exposure is realized through multidimensional and multi-level fund exposure calculation; the multi-dimensional and multi-level fund exposure calculation is realized; the fund open interface layout adopts left-right linkage, so that fund managers can conveniently see the fund open interface in a whole screen; forecasting the exposure distribution condition or trial calculation of the position in a future section; and inquiring transaction detail.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiment of the present application, there is also provided an exposure data acquiring apparatus for implementing the above method for acquiring exposure data. Fig. 5 is a schematic diagram of an alternative exposure data obtaining apparatus according to an embodiment of the present application, and as shown in fig. 5, the apparatus may include:
a receiving unit 51, configured to receive a service request sent by a target terminal, where the service request is used to request to acquire target exposure data of a target time interval;
a determining unit 53, configured to determine the target exposure data based on exposure data of each time period in the target time interval, where the target time interval includes a plurality of time periods with the same duration, and exposure data of each time period is predetermined;
a response unit 55, configured to respond to the service request, and return the target exposure data to the target terminal.
It should be noted that the receiving unit 51 in this embodiment may be configured to execute step S202 in this embodiment, the determining unit 53 in this embodiment may be configured to execute step S204 in this embodiment, and the responding unit 55 in this embodiment may be configured to execute step S206 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Through the modules, when a server receives a service request sent by a target terminal, the target open data is determined based on the open data of each time period in the target time interval, the target open data is returned to the target terminal, the target time interval comprises a plurality of time periods with the same duration, and because the open data of each time period is predetermined, the target open data can be rapidly determined, a large amount of original data is prevented from being processed, the technical problem that the efficiency of determining the open data in the related technology is low can be solved, and the technical effect of improving the data processing efficiency is achieved.
Optionally, the determining unit includes: a first determining module, configured to determine the target exposure data according to the exposure data of all time periods in the target time interval when the sending time of the service request is earlier than the starting time of the target time interval; and a second determining module, configured to determine the target exposure data according to the exposure data of all time periods in the target time interval and the resource flow data of a first time period when the sending time is not earlier than a starting time of the target time interval, where the first time period is a time period in which the sending time is located.
Optionally, the first determining module is further configured to: reading the open data of all time periods in the target time interval from the memory; and performing accumulation operation on the exposure data of all time periods in the target time interval to obtain the target exposure data.
Optionally, the second determining module is further configured to: reading the open data of all time periods in the target time interval from a memory, and acquiring resource flow data generated by a first resource flow event in the first time period; and performing accumulation operation on the exposure data of all time periods in the target time interval and the resource circulation data generated by the first resource circulation event in the first time period to obtain the target exposure data.
Optionally, the second determining module is further configured to: determining the first resource circulation event in all resource circulation events in the first time period, wherein all the resource circulation events comprise the first resource circulation event and a second resource circulation event, and resource circulation data generated by the second resource circulation event is used for determining exposure data of the first time period; and under the condition that the number of the first resource circulation events is multiple, acquiring resource circulation data generated by all the first resource circulation events.
Optionally, the apparatus of the present application may further comprise: the preprocessing unit is used for determining exposure data of each time period according to the following mode before determining the target exposure data based on the exposure data of each time period in the target time interval: determining exposure data of the second time period according to resource circulation data generated by a third resource circulation event of the second time period, wherein the second time period is the time period of the currently determined exposure data, and the third resource circulation event is a resource circulation event which is expected to occur within the second time period; and storing the exposure data of the second time period to a memory.
Optionally, the preprocessing unit is further configured to, when determining the exposure data of the second time period according to the resource circulation data generated by the third resource circulation event of the second time period, search for the third resource circulation event whose expected occurrence time is within the second time period when the start time of the second time period is later than the current time, and acquire the sum of the resource circulation data generated by each of the third resource circulation events as the exposure data of the second time period; and under the condition that the starting time of the second time period is not later than the current time, searching a fourth resource circulation event and the third resource circulation event of which the predicted time is located in the second time period, and acquiring the sum of resource circulation data generated by all the third resource circulation events and resource circulation data generated by all the fourth resource circulation events as the exposure data of the second time period, wherein the fourth resource circulation event is a resource circulation event which is different from the third resource circulation event and occurs before the current time in the second time period.
Optionally, the preprocessing unit is further configured to determine exposure data of the second time period according to resource flow data generated by a third resource flow event of the second time period, and search multiple types of resource flow data generated by the third resource flow event; and acquiring the sum of the various types of resource flow data generated by all the third resource flow events as the exposure data of the second time period.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiment of the application, a server or a terminal for implementing the method for acquiring exposure data is also provided.
Fig. 6 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 6, the terminal may include: one or more processors 601 (only one of which is shown in fig. 6), a memory 603, and a transmitting device 605, as shown in fig. 6, the terminal may further include an input-output device 607.
The memory 603 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for acquiring exposure data in the embodiment of the present application, and the processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 603, that is, implements the above-mentioned method for acquiring exposure data. The memory 603 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 603 may further include memory located remotely from the processor 601, which may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The above-mentioned transmission device 605 is used for receiving or sending data via a network, and may also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 605 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 605 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Among them, the memory 603 is used to store an application program, in particular.
The processor 601 may call the application stored in the memory 603 through the transmission device 605 to perform the following steps:
receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target open data of a target time interval; determining the target exposure data based on the exposure data of each time period in the target time interval, wherein the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined; and responding to the service request, and returning the target open data to the target terminal.
The processor 601 is further configured to perform the following steps:
when determining the exposure data of the second time period according to the resource circulation data generated by the third resource circulation event of the second time period, searching the third resource circulation event of which the expected occurrence time is located in the second time period under the condition that the starting time of the second time period is later than the current time, and acquiring the exposure data of the second time period, which is the sum of the resource circulation data generated by each third resource circulation event; and under the condition that the starting time of the second time period is not later than the current time, searching a fourth resource circulation event and the third resource circulation event of which the predicted time is located in the second time period, and acquiring the sum of resource circulation data generated by all the third resource circulation events and resource circulation data generated by all the fourth resource circulation events as the exposure data of the second time period, wherein the fourth resource circulation event is a resource circulation event which is different from the third resource circulation event and occurs before the current time in the second time period.
By adopting the embodiment of the application, when the server receives the service request sent by the target terminal, the target open data is determined based on the open data of each time period in the target time interval, the target open data is returned to the target terminal, the target time interval comprises a plurality of time periods with the same duration, and because each time period open data is predetermined, the target open data can be rapidly determined, the processing of a large amount of original data is avoided, the technical problem that the efficiency for determining the open data in the related technology is low can be solved, and the technical effect of improving the data processing efficiency is achieved.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 6 is a diagram illustrating a structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Optionally, in this embodiment, the storage medium may be used to execute a program code of the method for acquiring exposure data.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target open data of a target time interval; determining the target exposure data based on the exposure data of each time period in the target time interval, wherein the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined; and responding to the service request, and returning the target open data to the target terminal.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
when determining the exposure data of the second time period according to the resource circulation data generated by the third resource circulation event of the second time period, searching the third resource circulation event of which the expected occurrence time is located in the second time period under the condition that the starting time of the second time period is later than the current time, and acquiring the exposure data of the second time period, which is the sum of the resource circulation data generated by each third resource circulation event; and under the condition that the starting time of the second time period is not later than the current time, searching a fourth resource circulation event and the third resource circulation event of which the predicted time is located in the second time period, and acquiring the sum of resource circulation data generated by all the third resource circulation events and resource circulation data generated by all the fourth resource circulation events as the exposure data of the second time period, wherein the fourth resource circulation event is a resource circulation event which is different from the third resource circulation event and occurs before the current time in the second time period.
In an alternative embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the steps of any of the embodiments of the method described above.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (15)

1. An exposure data acquisition method is characterized by comprising the following steps:
receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target open data of a target time interval;
determining the target exposure data based on the exposure data of each time period in the target time interval, wherein the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined;
and responding to the service request, and returning the target open data to the target terminal.
2. The method of claim 1, wherein determining the target exposure data based on the exposure data for each time period within the target time interval comprises:
under the condition that the sending time of the service request is earlier than the starting time of the target time interval, determining the target exposure data according to the exposure data of all time periods in the target time interval;
and under the condition that the sending time is not earlier than the starting time of the target time interval, determining the target exposure data according to the exposure data of all time periods in the target time interval and the resource circulation data of a first time period, wherein the first time period is the time period of the sending time.
3. The method of claim 2, wherein determining the target exposure data based on the exposure data for all time periods within the target time interval comprises:
reading the open data of all time periods in the target time interval from the memory;
and performing accumulation operation on the exposure data of all time periods in the target time interval to obtain the target exposure data.
4. The method of claim 2, wherein determining the target exposure data according to the exposure data of all time periods and the resource flow data of the first time period in the target time interval comprises:
reading the open data of all time periods in the target time interval from a memory, and acquiring resource flow data generated by a first resource flow event in the first time period;
and performing accumulation operation on the exposure data of all time periods in the target time interval and the resource circulation data generated by the first resource circulation event in the first time period to obtain the target exposure data.
5. The method of claim 4, wherein obtaining resource flow data generated by a first resource flow event within the first time period comprises:
determining the first resource circulation event in all resource circulation events in the first time period, wherein all the resource circulation events comprise the first resource circulation event and a second resource circulation event, and resource circulation data generated by the second resource circulation event is used for determining exposure data of the first time period;
and under the condition that the number of the first resource circulation events is multiple, acquiring resource circulation data generated by all the first resource circulation events.
6. The method of claim 1, wherein prior to determining the target exposure data based on the exposure data for each time period within the target time interval, the method further comprises determining the exposure data for each time period as follows:
determining exposure data of a second time period according to resource circulation data generated by a third resource circulation event of the second time period, wherein the second time period is the time period of the currently determined exposure data, and the third resource circulation event is a resource circulation event which is expected to occur within the second time period;
and storing the exposure data of the second time period to a memory.
7. The method of claim 6, wherein determining exposure data for a second time period based on resource flow data generated by a third resource flow event for the second time period comprises:
under the condition that the starting time of the second time period is later than the current time, searching the third resource circulation events of which the expected occurrence time is located in the second time period, and acquiring the sum of the resource circulation data generated by each third resource circulation event as the open data of the second time period;
and under the condition that the starting time of the second time period is not later than the current time, searching a fourth resource circulation event and the third resource circulation event of which the predicted time is located in the second time period, and acquiring the sum of resource circulation data generated by all the third resource circulation events and resource circulation data generated by all the fourth resource circulation events as the exposure data of the second time period, wherein the fourth resource circulation event is a resource circulation event which is different from the third resource circulation event and occurs before the current time in the second time period.
8. The method of claim 6, wherein determining exposure data for a second time period based on resource flow data generated by a third resource flow event for the second time period comprises:
searching for multiple types of resource circulation data generated by the third resource circulation event;
and acquiring the sum of the various types of resource flow data generated by all the third resource flow events as the exposure data of the second time period.
9. An exposure data acquisition device, comprising:
the system comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving a service request sent by a target terminal, and the service request is used for requesting to acquire target open data of a target time interval;
the determining unit is used for determining the target exposure data based on the exposure data of each time period in the target time interval, wherein the target time interval comprises a plurality of time periods with the same duration, and the exposure data of each time period is predetermined;
and the response unit is used for responding to the service request and returning the target open data to the target terminal.
10. The apparatus of claim 9, wherein the determining unit comprises:
a first determining module, configured to determine the target exposure data according to the exposure data of all time periods in the target time interval when the sending time of the service request is earlier than the starting time of the target time interval;
and a second determining module, configured to determine the target exposure data according to the exposure data of all time periods in the target time interval and the resource flow data of a first time period when the sending time is not earlier than a starting time of the target time interval, where the first time period is a time period in which the sending time is located.
11. The apparatus of claim 10, wherein the first determining module is further configured to:
reading the open data of all time periods in the target time interval from the memory;
and performing accumulation operation on the exposure data of all time periods in the target time interval to obtain the target exposure data.
12. The apparatus of claim 10, wherein the second determining module is further configured to:
reading the open data of all time periods in the target time interval from a memory, and acquiring resource flow data generated by a first resource flow event in the first time period;
and performing accumulation operation on the exposure data of all time periods in the target time interval and the resource circulation data generated by the first resource circulation event in the first time period to obtain the target exposure data.
13. The apparatus of claim 12, wherein the second determining module is further configured to:
determining the first resource circulation event in all resource circulation events in the first time period, wherein all the resource circulation events comprise the first resource circulation event and a second resource circulation event, and resource circulation data generated by the second resource circulation event is used for determining exposure data of the first time period;
and under the condition that the number of the first resource circulation events is multiple, acquiring resource circulation data generated by all the first resource circulation events.
14. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 8.
15. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 8 by means of the computer program.
CN202110076762.XA 2021-01-20 2021-01-20 Method and device for acquiring exposure data, storage medium and electronic device Pending CN112765234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110076762.XA CN112765234A (en) 2021-01-20 2021-01-20 Method and device for acquiring exposure data, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110076762.XA CN112765234A (en) 2021-01-20 2021-01-20 Method and device for acquiring exposure data, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112765234A true CN112765234A (en) 2021-05-07

Family

ID=75701800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110076762.XA Pending CN112765234A (en) 2021-01-20 2021-01-20 Method and device for acquiring exposure data, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112765234A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4752877A (en) * 1984-03-08 1988-06-21 College Savings Bank Method and apparatus for funding a future liability of uncertain cost
CN105608566A (en) * 2015-12-21 2016-05-25 宁夏极致网络科技有限公司 Target information processing method and apparatus
CN106375115A (en) * 2016-08-30 2017-02-01 东软集团股份有限公司 Resource distribution method and device
CN109886659A (en) * 2018-12-29 2019-06-14 平安健康保险股份有限公司 Virtual resource allocation method, apparatus and computer equipment based on block chain
US20190325517A1 (en) * 2018-03-07 2019-10-24 Baton Systems, Inc. Transaction netting systems and methods
CN110633306A (en) * 2019-08-14 2019-12-31 中国平安人寿保险股份有限公司 Service data processing method and device, computer equipment and storage medium
CN111178692A (en) * 2019-12-12 2020-05-19 上海淇玥信息技术有限公司 Resource usage amount estimation method and device and electronic equipment
CN111400356A (en) * 2020-06-04 2020-07-10 浙江口碑网络技术有限公司 Data query method, device and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4752877A (en) * 1984-03-08 1988-06-21 College Savings Bank Method and apparatus for funding a future liability of uncertain cost
CN105608566A (en) * 2015-12-21 2016-05-25 宁夏极致网络科技有限公司 Target information processing method and apparatus
CN106375115A (en) * 2016-08-30 2017-02-01 东软集团股份有限公司 Resource distribution method and device
US20190325517A1 (en) * 2018-03-07 2019-10-24 Baton Systems, Inc. Transaction netting systems and methods
CN109886659A (en) * 2018-12-29 2019-06-14 平安健康保险股份有限公司 Virtual resource allocation method, apparatus and computer equipment based on block chain
CN110633306A (en) * 2019-08-14 2019-12-31 中国平安人寿保险股份有限公司 Service data processing method and device, computer equipment and storage medium
CN111178692A (en) * 2019-12-12 2020-05-19 上海淇玥信息技术有限公司 Resource usage amount estimation method and device and electronic equipment
CN111400356A (en) * 2020-06-04 2020-07-10 浙江口碑网络技术有限公司 Data query method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱永彬;薛耀文;高慧敏;张朋翥;: "基于智能Agent的金融交易模拟终端设计与实现", 计算机技术与发展, no. 08, 10 August 2008 (2008-08-10) *

Similar Documents

Publication Publication Date Title
Lenz Peer-to-peer lending: Opportunities and risks
US20100076888A1 (en) System and method for provisioning a controlled secondary market for small dollar deposits and lending
US20080033852A1 (en) Computer-based modeling of spending behaviors of entities
KR101794221B1 (en) System and method for providing calculation of online sellers
US20060242039A1 (en) Method and apparatus for estimating the spend capacity of consumers
JP2012506078A (en) System and method for operating principal secured funds based on weekly option costs
CN101236638A (en) Web based bank card risk monitoring method and system
US20140344143A1 (en) System and method for managing related accounts
CN111784388A (en) Financial product recommendation method and device
KR20200049491A (en) Method for providing medical counseling service between insurance organization and specialist based on bigdata
KR20180011680A (en) Investment advice offer method and investment advice offer server
CN110782339A (en) Default probability prediction method, system and readable storage medium
KR20180093320A (en) Method and server for managing cash assets
Titu et al. Online banking system-its application in some selected private commercial banks in Bangladesh
JP2003114977A (en) Method and system for calculating customer's lifelong value
KR20180122076A (en) Method and system for the fundrevolving through the management of the credit rating.
CN113052673B (en) Account checking and clearing method and device, computer equipment and storage medium
Anand E-Banking Trends in India: Evolution, Challenges and Opportunities
US20180082363A1 (en) Online auction platform for invoice purchasing
CN112765234A (en) Method and device for acquiring exposure data, storage medium and electronic device
KR102133668B1 (en) Lending Meditation Platform System and Credit Estimating Apparatus
Guo et al. Mechanism design for near real-time retail payment and settlement systems
CN113313597B (en) Product combination recommendation method, device and system, storage medium and electronic device
KR101472679B1 (en) Financial goods management method and server performing the same
WO2004012111A2 (en) Loyalty-building method by granting a reward to an individual in consideration of an action profitable to an enterprise

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co., Ltd