CN112765234B - Method and device for acquiring open data, storage medium and electronic device - Google Patents

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

Info

Publication number
CN112765234B
CN112765234B CN202110076762.XA CN202110076762A CN112765234B CN 112765234 B CN112765234 B CN 112765234B CN 202110076762 A CN202110076762 A CN 202110076762A CN 112765234 B CN112765234 B CN 112765234B
Authority
CN
China
Prior art keywords
target
data
time period
resource circulation
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110076762.XA
Other languages
Chinese (zh)
Other versions
CN112765234A (en
Inventor
赵兴雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202110076762.XA priority Critical patent/CN112765234B/en
Publication of CN112765234A publication Critical patent/CN112765234A/en
Application granted granted Critical
Publication of CN112765234B publication Critical patent/CN112765234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method and a device for acquiring open 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 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 target exposure data to the target terminal. The method and the device solve the technical problem that the efficiency of determining the open data is low in the related art.

Description

Method and device for acquiring open data, storage medium and electronic device
Technical Field
The application relates to the field of data processing, in particular to a method and a device for acquiring open data, a storage medium and an electronic device.
Background
In the financial field, open refers to an unprotected risk, and refers to a portion of the risk that may be lost without taking any precautions against the risk.
Regression analysis is commonly used in the related art to assess risk exposure, and is one of the most popular tools in analyzing risk and constructing a hedging scheme. It can check the relation between the enterprise cash flow history data without the underwriting and the risk factors. Specifically, the factor p coefficient is estimated according to regression of the number relationship between the historic returns or cash flow of the enterprise and the risk factor. The element Lu Jishu (the lu coefficient is an index used to determine how much revenue is affected by the change in revenue across the market) in the regression model is the slope of the curve.
The regression method uses historical data and is an evaluation method for post-hoc inspection. For the industry with quite rapid change and development nowadays, accurate prediction of future exposure is difficult, and the scheme involves analysis of a large amount of historical data, so that more hardware resources and time resources are required to be consumed, and the efficiency is low. In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring open data, a storage medium and an electronic device, which are used for at least solving the technical problem of low efficiency of determining open data in the related technology.
According to an aspect of the embodiment of the present application, there is provided a method for acquiring open data, including: receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target exposure data of a target time interval; determining target exposure data based on exposure data of time periods 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 exposure data to the target terminal.
According to another aspect of the embodiment of the present application, there is also provided an apparatus for acquiring open data, including: the receiving unit is used for receiving a service request sent by the target terminal, wherein the service request is used for requesting to acquire target open data of a target time interval; a determining unit, 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 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 exposure 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 that executes the above-described method when running.
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, the processor executing the method described above by the computer program.
In the embodiment of the application, when receiving the service request sent by the target terminal, the server determines the target exposure data based on the exposure data of each time period in the target time interval, and returns the target exposure data to the target terminal, 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, so that the target exposure data can be determined quickly, the processing of a large amount of original data is avoided, the technical problem of lower efficiency of determining the exposure data in the related technology can be solved, and the technical effect of improving the data processing efficiency is further 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 specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment of a method for acquiring open data according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method of acquiring exposure data according to an embodiment of the application;
FIG. 3 is a schematic diagram of a presentation interface of exposure data according to an embodiment of the application;
FIG. 4 is a schematic diagram of a presentation interface of exposure data according to an embodiment of the application;
FIG. 5 is a schematic diagram of an alternative exposure data acquisition device according to an embodiment of the application;
And
Fig. 6 is a block diagram of a structure of a terminal according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise 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 terms or terminology appearing in the course of describing the embodiments of the application are applicable to the following explanation:
position is a financial term that refers to the number of particular goods, securities, currencies, etc., held or owned by an individual or entity. The beginning and ending positions of the day are the positions of the beginning and ending of the day, respectively.
Funds are uncovered: i.e. the fund gap is generally obtained by subtracting the initial position of the day from the final position of the day, which is convenient for fund management personnel to check the amount of financing required.
A bank account: i.e. an account opened at a bank, such as a bank card account opened for an enterprise.
Inter-bank account: the inter-bank refers to a foreign exchange transaction center, and the inter-bank account is also a bank card account, except that here the bank is a bank designated by the inter-bank.
Exchange account: the exchange refers to a ticket exchange, the exchange account is also a bank card account, except here the bank is the bank designated by the exchange.
According to an aspect of the embodiment of the application, a method embodiment of a method for acquiring open data is provided.
Alternatively, in the present embodiment, the above-described method of acquiring exposure data may be applied to a hardware environment constituted by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, the server 103 is connected to the terminal 101 through a network, which may be used to provide services (such as data management services, etc.) to the terminal or clients installed on the terminal, and a database 105 may be provided on the server or independent of the server, for providing data storage services to the server 103, where the network includes, but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, or the like.
The method for acquiring the open data according to the embodiment of the present application may be executed by the server 103, or may be executed by the server 103 and the terminal 101 together. FIG. 2 is a flowchart of an alternative method for acquiring exposure data according to an embodiment of the application, as shown in FIG. 2, the method may include the steps of:
in 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, where the target exposure data is the amount of virtual resources, such as currency, virtual currency, digital currency, etc., needed in the target time interval.
In step S204, the server determines target exposure data based on exposure data of each time period in a target time interval, where the target time interval includes 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 designated by a user on the target terminal, for example, 1-8 days of a month, and the time period is a sunday with a fixed duration, for example, 1 day, 1 hour, etc.
In step S206, in response to the service request, the server returns the target exposure data to the target terminal.
By adopting the technical scheme of the application, when the server receives the service request sent by the target terminal, the target exposure data is determined based on the exposure data of each time period in the target time interval, the target exposure data is returned to the target terminal, and the target time interval comprises a plurality of time periods with the same duration. The following detailed steps detail the technical scheme of the application:
and step 1, determining exposure data of each time period.
The time period of the current open data to be determined can be recorded as a second time period, the open data of the second time period is determined according to the 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 with the expected occurrence time in the second time period.
The resource circulation event is an event that causes a change in the virtual resource, such as an event related to a transaction exposure (Transaction exposure), an event related to a business or economic exposure (Operating or Economic exposure), and an event related to a conversion exposure (Translation or Accounting exposure).
The business scope of the funds exposure statistics is comprehensive, including all cash flows generated by transaction and non-transaction behaviors, and the cash flows are shown in the following table 1:
TABLE 1
Optionally, when determining the open 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 multiple types of resource circulation data generated by the third resource circulation event, where multiple types refer to multiple service types, such as coupon buying and selling, inter-bank mortgage, protocol type buyback, and the like; and obtaining the sum of all the various types of resource circulation data generated by the third resource circulation event as the open data of the second time period. The specific implementation modes comprise the following two modes:
And when the starting time of the second time period is later than the current time, searching the third resource circulation event with the expected occurrence time 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.
When calculating the resource circulation data (namely, the fund exposure condition) of each time period, the daily initial and daily final positions of each product and the fund exposure condition can be inquired according to the date.
In calculating the funds exposure, three examples of customer accounts including bank accounts, inter-bank accounts, and exchange accounts (similar if more or less accounts are used):
availability of inter-bank accounts: money transferred by the bank account on the same day, money purchased by the reverse purchase on the same day, money purchased by the bond purchased by the reverse purchase on the same day, money purchased by the bond purchased on the same day, money purchased by the bank account on the same day;
Earnings of the day before the bank: reverse purchase due to previous day + previous day bond selling benefit + previous day fund selling benefit-previous day matching loss;
the exchange account is available: the method comprises the steps of transferring funds of a bank account on the same day, checking up due funds of a reverse purchase on the same day, selling bonds on the same day, checking up the reverse purchase on the same day, buying bonds on the same day, trading the defects of buying and selling bonds on the same day, buying funds on the same day, selling funds of the same day, and availability of trading accounts on the same day;
Daily benefits of exchange: reverse purchase due to previous day + previous day bond selling benefit + previous day fund selling benefit-previous day matching loss;
The bank account is available: the bank account of the previous day is available + the bank income of the previous day + the funds (inter-bank + exchange) paid into the bank account of the current day + the funds (inter-bank + exchange) paid out by the bank account of the current day + the product claims at the liability end-the product redemption (including red out) -cost.
The inter-bank account will settle funds in the account at the end of the day, automatically settle its funds to the bank account, while the exchange account will not automatically settle. And the transactor transfers corresponding funds from the bank account into the inter-bank account and the exchange account according to the daily transaction amount of the consignor, and corresponding available concepts exist for the three accounts.
And 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 with the predicted time in the second time period, and acquiring the sum of the resource circulation data generated by all the third resource circulation event and the resource circulation data generated by all the fourth resource circulation event as the open data of the second time period, wherein the fourth resource circulation event is a resource circulation event which occurs before the current time in the second time period and is different from the third resource circulation event.
For the second scheme, the current opening condition can be updated in real time, and the specific calculation mode is similar to that of the first scheme and will not be repeated.
And 2, storing the open data in the second time period to a memory.
And step 3, receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target exposure data of a target time interval.
Because business personnel need to control the condition of the funds circulation in the future for a certain day, the follow-up funds position can be simulated and calculated at the end of the daily, and statistics of the inflow and outflow conditions of cash at the asset end and the liability end and the condition of funds transfer are calculated. The exposure forecast is mainly derived from the fact that the existing occurred transactions are not expired and the future possible occurrence of the transactions is forecast.
Transactions have occurred without expiration, and such transactions are generally common to buyback, borrowing, and bond events. Such business typically has an expiration date or event date, and the system can calculate by rules and at the same time calculate the amount of the occurrence, into the position and opening of the future expiration date.
The future possible trade is recorded in the investment management system and stored as draft, and the exposure function can calculate the exposure condition in the future on a certain day according to the draft information.
By adopting the scheme, cash flows generated by transaction and non-transaction behaviors are considered, the funds opening (namely target opening data) in a designated time interval can be calculated, the opening distribution condition of a future time interval can be checked, and the transaction details of the bottom layer can be queried in a drilling mode.
If the inquiry date is appointed, according to the first date and expiration condition of the trade between banks and the trade exchange on the same day, the openings between banks and the trade exchange are automatically calculated and displayed, including the money exchange of departments and the payment and redemption information of bonds, and the transaction detail data corresponding to each type of opening can be rapidly inquired according to the trade places and respectively displayed according to different business types; funds exposure may be updated in real time with transaction actions.
And 4, determining target exposure data based on 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:
Firstly, when 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, wherein the method specifically comprises the following steps:
And step 41, reading the open data of all time periods in the target time interval from the memory.
And step 42, performing accumulation operation on the exposure data of all time periods in the target time interval to obtain the target exposure data.
Secondly, under the condition that the sending time is not earlier than the starting time of the target time interval, determining the target open data according to the open 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, and the method specifically comprises the following steps:
And step 41, reading the open data of all time periods in the target time interval from the memory, and acquiring the resource circulation data generated by the first resource circulation event in the first time period.
Optionally, when acquiring resource circulation data generated by a first resource circulation event in the first time period, determining the first resource circulation event in all resource circulation events in the first time period, wherein all resource circulation events comprise a first resource circulation event which is expected to occur and a second resource circulation event which happens accidentally, and the resource circulation data generated by the second resource circulation event is used for determining open data of the first time period; and under the condition that a plurality of first resource circulation events are provided, acquiring resource circulation data generated by all the first resource circulation events.
And step 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 step 5, responding to the service request, and returning the target exposure data to the target terminal.
When a user inquires, the left side sub-combination displays position information and opening information as shown in fig. 3 and 4. The upper right half displays the position information and the lower half displays the cash flow and the opening information.
Because of the large daily capital variation flow, 1 million flows can be reached in 1 month of history, and the traditional flow statistics scheme can not meet the performance requirements and can return only after a long time.
The scheme adopts a scheme of combining two technologies, namely a data transfer technology and a memory database technology, so that the performance is greatly improved.
Data transfer technology: and carrying out daily corotation and monthly corotation on the historical data, specifically, carrying out addition treatment on daily running water of funds according to a funds opening algorithm to form a daily corotation value. And forming the daily knot rotation value from the daily knot rotation value. When the fund opening needs to be inquired, only the historical rotation and the fund flowing water which occurs in real time on the same day need to be inquired, and the fund opening can be obtained through the calculation by adding up according to the algorithm.
Memory database technology: aiming at the fund running water data generated in the current day, the fund running water data is lost into a memory database in real time, and the real-time position is accumulated and calculated by adopting a stream processing technology. When various funds change events occur, a funds opening calculation service is triggered, and real-time calculation of funds positions and openings is realized.
By adopting the technical scheme, accurate prediction of the funds opening is realized through multi-dimensional and multi-level funds opening calculation; realizing multi-dimensional multi-level fund exposure calculation; the fund opening interface layout adopts left-right linkage, so that fund management personnel can conveniently see the fund opening interface layout completely on one screen; the distribution condition of the opening of a section in the future, the prediction of the opening or the trial calculation of the position; transaction detail query.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
According to another aspect of the embodiment of the application, there is also provided an exposure data acquisition device for implementing the exposure data acquisition method. FIG. 5 is a schematic diagram of an alternative exposure data acquisition device according to an embodiment of the application, as shown in FIG. 5, the device 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 obtain target exposure data in 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 the exposure data of each time period is predetermined;
and the response unit 55 is used for responding to the service request and returning the target exposure data to the target terminal.
It should be noted that the receiving unit 51 in this embodiment may be used to perform step S202 in the embodiment of the present application, the determining unit 53 in this embodiment may be used to perform step S204 in the embodiment of the present application, and the responding unit 55 in this embodiment may be used to perform step S206 in the embodiment of the present application.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or hardware as a part of the apparatus in the hardware environment shown in fig. 1.
Through the module, when the server receives the service request sent by the target terminal, the target exposure data is determined based on the exposure data of each time period in the target time interval, the target exposure data is returned to the target terminal, and the target time interval comprises a plurality of time periods with the same duration.
Optionally, the determining unit includes: the first determining module is used for determining the target opening data according to the opening data of all time periods in the target time interval under the condition that the sending time of the service request is earlier than the starting time of the target time interval; and the second determining module is used for determining the target open data according to the open data of all time periods in the target time interval and the resource circulation data of a first time period under the condition that the sending time is not earlier than the starting time of the target time interval, wherein the first time period is the time period of the sending time.
Optionally, the first determining module is further configured to: reading open data of all time periods in the target time interval from a memory; and executing 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 open data of all time periods in the target time interval from a memory, and acquiring resource circulation data generated by a first resource circulation event in the first time period; and executing 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 open data in the first time period; and under the condition that a plurality of first resource circulation events are provided, acquiring resource circulation data generated by all the first resource circulation events.
Optionally, the apparatus of the present application may further comprise: a preprocessing unit, configured to determine exposure data of each time period in the target time interval according to the following manner before determining the target exposure data based on exposure data of each time period in the target time interval: determining open 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 for determining the open data currently, and the third resource circulation event is a resource circulation event with the expected occurrence time in the second time period; and storing the open data in the second time period to a memory.
Optionally, the preprocessing unit is further configured to, when determining the open data of the second time period according to the resource circulation data generated by the third resource circulation event of the second time period, find, in a case where the start time of the second time period is later than the current time, the third resource circulation event whose expected occurrence time is located in the second time period, and obtain, as the open data of the second time period, a sum of the resource circulation data generated by each of the third resource circulation events; 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 with the expected time in the second time period, and acquiring the sum of the resource circulation data generated by all the third resource circulation event and the resource circulation data generated by all the fourth resource circulation event as open data of the second time period, wherein the fourth resource circulation event is a resource circulation event which occurs before the current time in the second time period and is different from the third resource circulation event.
Optionally, the preprocessing unit is further configured to determine, in the open 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 multiple types of resource circulation data generated by the third resource circulation event; and obtaining the sum of all the various types of resource circulation data generated by the third resource circulation event as the open data of the second time period.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, 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 the open 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 (only one is shown in fig. 6) processors 601, memory 603, and transmission means 605, as shown in fig. 6, the terminal may further comprise an input output device 607.
The memory 603 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for acquiring open data in the embodiment of the present application, and the processor 601 executes the software programs and modules stored in the memory 603, thereby executing various functional applications and data processing, that is, implementing the method for acquiring open data described above. 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 remotely located with respect to 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 transmission device 605 is used to receive or transmit data via a network, and may also be used for data transmission between the processor and the memory. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 605 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 605 is a Radio Frequency (RF) module that is configured to communicate wirelessly with the internet.
In particular, the memory 603 is used to store applications.
The processor 601 may call an application program stored in the memory 603 through the transmission means 605 to perform the steps of:
Receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target exposure data of a target time interval; determining target exposure data based on exposure data of time periods 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 exposure data to the target terminal.
The processor 601 is further configured to perform the steps of:
When the open data of the second time period is determined according to the resource circulation data generated by the third resource circulation event of the second time period, searching the third resource circulation event with the expected occurrence time 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 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 with the expected time in the second time period, and acquiring the sum of the resource circulation data generated by all the third resource circulation event and the resource circulation data generated by all the fourth resource circulation event as open data of the second time period, wherein the fourth resource circulation event is a resource circulation event which occurs before the current time in the second time period and is different from the third resource circulation event.
When the embodiment of the application is adopted, when the server receives a service request sent by a target terminal, the target exposure data is determined based on the exposure data of each time period in the target time interval, the target exposure data is returned to the target terminal, and the target time interval comprises a plurality of time periods with the same duration.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is only illustrative, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 6 is not limited to the 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 of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The embodiment of the application also provides a storage medium. Alternatively, in the present embodiment, the above-described storage medium may be used for executing the program code of the acquisition method of the exposure data.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
Receiving a service request sent by a target terminal, wherein the service request is used for requesting to acquire target exposure data of a target time interval; determining target exposure data based on exposure data of time periods 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 exposure data to the target terminal.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
When the open data of the second time period is determined according to the resource circulation data generated by the third resource circulation event of the second time period, searching the third resource circulation event with the expected occurrence time 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 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 with the expected time in the second time period, and acquiring the sum of the resource circulation data generated by all the third resource circulation event and the resource circulation data generated by all the fourth resource circulation event as open data of the second time period, wherein the fourth resource circulation event is a resource circulation event which occurs before the current time in the second time period and is different from the third resource circulation event.
In an alternative embodiment, a computer program product or computer program is provided, the computer program product or computer program comprising 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.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by 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 exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (15)

1. The method for acquiring the open data 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 exposure data of a target time interval;
Determining target exposure data based on exposure data of time periods 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;
responding to the service request, and returning the target exposure data to the target terminal;
The determining the target exposure data based on the exposure data of each time period in the target time interval comprises the following steps: under the condition that the sending time of the service request is earlier than the starting time of the target time interval, determining target opening data according to the opening data of all time periods in the target time interval;
Before determining the target exposure data based on the exposure data for each time period within the target time interval, the method further includes determining exposure data for each time period as follows: determining open 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 for determining the open data currently, and the third resource circulation event is a resource circulation event with the expected occurrence time in the second time period;
The 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 comprises the following steps: and under the condition that the starting time of the second time period is later than the current time, searching the third resource circulation event with the expected occurrence time in the second time period, and acquiring the sum of resource circulation data generated by each third resource circulation event as the open data of the second time period.
2. The method of claim 1, wherein determining the target exposure data based on exposure data for each time period within the target time interval comprises:
And under the condition that the sending time is not earlier than the starting time of the target time interval, determining the target opening data according to the opening 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 in which the sending time is located.
3. The method of claim 2, wherein determining the target exposure data from exposure data for all time periods within the target time interval comprises:
Reading open data of all time periods in the target time interval from a memory;
And executing 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 from exposure data for all time periods and resource flow data for a first time period within the target time interval comprises:
reading open data of all time periods in the target time interval from a memory, and acquiring resource circulation data generated by a first resource circulation event in the first time period;
And executing 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 open data in the first time period;
And under the condition that a plurality of first resource circulation events are provided, 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 exposure data for each time period within the target time interval, the method further comprises:
And storing the open data in 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 further comprises:
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 with the expected time in the second time period, and acquiring the sum of the resource circulation data generated by all the third resource circulation event and the resource circulation data generated by all the fourth resource circulation event as open data of the second time period, wherein the fourth resource circulation event is a resource circulation event which occurs before the current time in the second time period and is different from the third resource circulation event.
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 various types of resource circulation data generated by the third resource circulation event;
and obtaining the sum of all the various types of resource circulation data generated by the third resource circulation event as the open data of the second time period.
9. An apparatus for acquiring open data, comprising:
the receiving unit is used for receiving a service request sent by the target terminal, wherein the service request is used for requesting to acquire target open data of a target time interval;
A determining unit, 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 the exposure data of each time period is predetermined;
The response unit is used for responding to the service request and returning the target exposure data to the target terminal;
the determining unit comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining target opening data according to opening 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;
A preprocessing unit, configured to determine exposure data of each time period in the target time interval according to the following manner before determining the target exposure data based on exposure data of each time period in the target time interval: determining open 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 for determining the open data currently, and the third resource circulation event is a resource circulation event with the expected occurrence time in the second time period;
the preprocessing unit is further configured to, when the start time of the second time period is later than the current time, search for the third resource circulation events whose expected occurrence time is located in the second time period, and obtain the sum of the resource circulation data generated by each third resource circulation event as open data of the second time period.
10. The apparatus according to claim 9, wherein the determining unit comprises:
And the second determining module is used for determining the target open data according to the open data of all time periods in the target time interval and the resource circulation data of a first time period under the condition that the sending time is not earlier than the starting time of the target time interval, wherein the first time period is the time period of the sending time.
11. The apparatus of claim 10, wherein the first determination module is further configured to:
Reading open data of all time periods in the target time interval from a memory;
And executing 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 determination module is further configured to:
reading open data of all time periods in the target time interval from a memory, and acquiring resource circulation data generated by a first resource circulation event in the first time period;
And executing 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 determination 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 open data in the first time period;
And under the condition that a plurality of first resource circulation events are provided, acquiring resource circulation data generated by all the first resource circulation events.
14. A storage medium comprising a stored program, wherein the program when run performs the method of any one 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, characterized in that the processor performs 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 open data, storage medium and electronic device Active CN112765234B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN112765234A CN112765234A (en) 2021-05-07
CN112765234B true CN112765234B (en) 2024-06-14

Family

ID=75701800

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN112765234B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400356A (en) * 2020-06-04 2020-07-10 浙江口碑网络技术有限公司 Data query method, device and equipment

Family Cites Families (7)

* 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
CN106375115B (en) * 2016-08-30 2019-12-03 东软集团股份有限公司 Resource allocation methods and device
WO2019173645A1 (en) * 2018-03-07 2019-09-12 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
CN110633306B (en) * 2019-08-14 2024-07-12 中国平安人寿保险股份有限公司 Service data processing method, device, computer equipment and storage medium
CN111178692A (en) * 2019-12-12 2020-05-19 上海淇玥信息技术有限公司 Resource usage amount estimation method and device and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400356A (en) * 2020-06-04 2020-07-10 浙江口碑网络技术有限公司 Data query method, device and equipment

Also Published As

Publication number Publication date
CN112765234A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
Lenz Peer-to-peer lending: Opportunities and risks
Lee et al. The wisdom of crowds and information cascades in fintech: Evidence from initial coin offerings
US20070073608A1 (en) Cash only marketplace system for trading securities
KR101456818B1 (en) Method and Apparatus for Generating Trade Action to Manage Financial Market Risk and Record Medium Storing Program for Executing The Same
KR20190053778A (en) Method for providing medical counseling service between insurance organization and specialist based on bigdata
KR20200049491A (en) Method for providing medical counseling service between insurance organization and specialist based on bigdata
US20080262961A1 (en) Merchant Credit Risk Monitoring
CN111784388A (en) Financial product recommendation method and device
US20170323293A1 (en) Processing Transactions
AU2024203120A1 (en) Methods and systems for maximizing share purchase under an employee stock purchase plan with limited payroll deductions
KR20180011680A (en) Investment advice offer method and investment advice offer server
Buschbom et al. Delinquencies, Default and Borrowers' Strategic Behavior toward the Modification of Commercial Mortgages
KR101876623B1 (en) System and method for fund managing
CA3168646A1 (en) System and method for automated investment
CN112765234B (en) Method and device for acquiring open data, storage medium and electronic device
CN110838062A (en) Supply chain financial cash collection management system and method
Anand E-Banking Trends in India: Evolution, Challenges and Opportunities
US20220084035A1 (en) System and method for facilitating direct trading of electronic transactions
KR20140121642A (en) Real Estate Lease Funds Operating System using Internet and Method thereof
Guo et al. Mechanism design for near real-time retail payment and settlement systems
Xu et al. The Credit Asset of Enterprise Accounts Receivable Pricing Model
US20110202452A1 (en) System and method for providing borrow coverage services to short sell securities
US20200320554A1 (en) Method for predicting future seller product values for determining investor capital contributions
TWI707284B (en) Investment-matching server
KR20180011682A (en) Investment advice offer method and investment advice offer server

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.

GR01 Patent grant
GR01 Patent grant