CN117785891A - Information processing method, device, medium, product and information processing apparatus - Google Patents

Information processing method, device, medium, product and information processing apparatus Download PDF

Info

Publication number
CN117785891A
CN117785891A CN202211155522.XA CN202211155522A CN117785891A CN 117785891 A CN117785891 A CN 117785891A CN 202211155522 A CN202211155522 A CN 202211155522A CN 117785891 A CN117785891 A CN 117785891A
Authority
CN
China
Prior art keywords
exchange rate
information
target
price
electronic resource
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
CN202211155522.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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202211155522.XA priority Critical patent/CN117785891A/en
Publication of CN117785891A publication Critical patent/CN117785891A/en
Pending legal-status Critical Current

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides an information processing method, an information processing device, information processing equipment, a medium and a product. The method comprises the following steps: acquiring target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to the exchange rate update information provided by at least one subscribed exchange rate providing object; determining the information type of the target exchange rate update information; and updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair, wherein the updated fair exchange rate comprises exchange rate prices of the target electronic resource pair in different delivery deadlines. The method and the device can perform comprehensive fair exchange rate update according to the exchange rate update information provided by the subscribed multiple exchange rate providing objects.

Description

Information processing method, device, medium, product and information processing apparatus
Technical Field
The present invention relates to the field of computer technology, and in particular, to an information processing method, an information processing apparatus, a computer device, a computer readable storage medium, and a computer program product.
Background
The fair exchange rate is used for indicating the exchange price of the current foreign exchange transaction in the foreign exchange market, and is a judgment index for comparing the convincing power. However, the transaction frequency in the foreign exchange market may be low for different pairs of electronic resources, or at different delivery dates, which may result in a slower efficiency of the institution's acquisition of the fair exchange rate for certain pairs of electronic resources.
At present, the fair exchange rate of the target electronic resource pair is mainly obtained based on an active query mode, namely, the query frequency of the fair exchange rate is controlled according to the requirements of the mechanism on the obtaining frequency, and if the query frequency is too low, important information can be missed, so that the perception of the price of the achievement is distorted.
Disclosure of Invention
The embodiment of the application provides an information processing method, device, equipment, medium and product, which can update the common exchange rate more comprehensively according to exchange rate update information provided by a plurality of subscribed exchange rate providing objects.
In one aspect, an embodiment of the present application provides an information processing method, including:
acquiring target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to the exchange rate update information provided by at least one subscribed exchange rate providing object;
Determining the information type of the target exchange rate update information;
updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair;
wherein the updated fair rate includes the rate price of the target electronic resource for different delivery deadlines; if the determined information type is the first type, determining exchange rate prices of the target electronic resource pair at different delivery deadlines according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type.
In one aspect, an embodiment of the present application provides an information processing apparatus, including:
an acquisition unit configured to acquire target exchange rate update information provided for a target pair of electronic resources, the target exchange rate update information being determined according to exchange rate update information provided by at least one subscribed exchange rate providing object;
the processing unit is used for determining the information type of the target exchange rate update information;
the processing unit is also used for updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair;
Wherein the updated fair rate includes the rate price of the target electronic resource for different delivery deadlines; if the determined information type is the first type, determining exchange rate prices of the target electronic resource pair at different delivery deadlines according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type.
In one possible implementation, the target exchange rate update information is obtained via a message event bus; the method comprises the steps that exchange rate update information sent by at least one exchange rate providing object can be obtained from a message event bus, and each exchange rate update information is obtained after standardized processing;
wherein, in the process of obtaining exchange rate update information through standardization processing, the method comprises the following steps: and classifying any exchange rate update information to be processed, and carrying out standardization processing according to a standardized format corresponding to the information type determined after the classification processing to obtain the exchange rate update information.
In one possible implementation manner, the information label is added after classifying any exchange rate update information to be processed, wherein the information label comprises a price information label or a skip point sub-label; the processing unit determines the information type of the target exchange rate update information for performing the following operations:
Acquiring an information tag of the target exchange rate update information, and if the information tag is a price information tag, determining that the information type of the target exchange rate update information is a first type;
if the information label is the expiration date sub-label, determining that the information type of the target exchange rate update information is a second type.
In one possible implementation, the target exchange rate update information includes a first type of target price update information or a second type of target expiration point update information;
the target price update information includes at least: any one or more of a first tag field, a resource pair type field, a buy price field, a sell price field, a delivery deadline field, and an update timestamp field;
the update information of the target expiration date point at least comprises: any one or more of a second tag field, a resource pair type field, a first drop point sub-field, a second drop point sub-field, and an update timestamp field;
the target delivery deadline stored in the delivery deadline field is T+2, a first drop point sub-field is used for storing a first buying drop point and a first selling drop point of the T+1 delivery deadline, a second drop point sub-field is used for storing a second buying drop point and a second selling drop point of the T+2 delivery deadline, and T is a positive integer.
In one possible implementation manner, the processing unit updates the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair, and is used for executing the following operations:
if the determined information type is the first type, acquiring reference falling-period point information of a second type;
and updating the fair exchange rate of the target electronic resource pair according to the first type of target price updating information and the second type of reference expiration date information to obtain the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, the updated fair exchange rate includes: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline;
the processing unit updates the fair exchange rate of the target electronic resource pair according to the first type of target price updating information and the second type of reference expiration date information to obtain the updated fair exchange rate of the target electronic resource pair, and the processing unit comprises any one or two of the following steps:
determining the exchange rate price of the target electronic resource to the T+1 delivery deadline according to the target price updating information and the content stored in the second drop point sub-field in the reference drop point sub-information;
And determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first exchange point subfield in the reference exchange point subfield.
In one possible implementation, the exchange rate price includes a buy price and a sell price; the processing unit determines the exchange rate price of the target electronic resource for the delivery deadline of T+1 according to the target price updating information and the content stored in the second drop point sub-field in the reference drop point sub-information, and is used for executing the following operations:
if the second selling-out period point stored in the second falling period point sub-field in the reference falling period point sub-information is larger than the second buying-in falling period point, determining the buying price of the target electronic resource in the T+1 delivery period according to the content stored in the buying price field in the target price updating information and the second selling-out period point; determining the selling price of the target electronic resource for the delivery period of T+1 according to the content stored in the selling price field in the target price updating information and the second buying expiration date; or,
if the second selling-out period point stored in the second period-out period point sub-field in the reference period-out period point sub-information is smaller than the second buying-in period-out point, determining the buying price of the target electronic resource in the T+1 cut period according to the content stored in the buying price field in the target price updating information and the second buying-in period-out point; and determining the selling price of the target electronic resource for the delivery deadline of T+1 according to the content stored in the selling price field in the target price updating information and the second selling period-falling point.
In one possible implementation manner, the processing unit updates the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair, and is used for executing the following operations:
if the determined information type is the second type, acquiring the reference exchange rate price information of the first type;
and updating the fair exchange rate of the target electronic resource pair according to the target expiration date sub-information of the second type and the reference exchange rate price information of the first type to obtain the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, the updated fair exchange rate includes: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline; t is a positive integer; the reference exchange rate price information includes an exchange rate price for a t+2 delivery deadline;
the processing unit updates the fair exchange rate of the target electronic resource pair according to the target expiration date sub-information of the second type and the reference exchange rate price information of the first type to obtain the updated fair exchange rate of the target electronic resource pair, and the processing unit comprises any one or two of the following steps:
determining the exchange rate price of the target electronic resource for the delivery deadline of T+1 according to the reference exchange rate price information and the content stored in the second exchange period point sub-field in the target exchange period sub-information;
And determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first exchange point sub-field in the target exchange point sub-information.
In one possible implementation, the target pair of electronic resources includes a first electronic resource and a second electronic resource; the processing unit is also configured to perform the following operations:
acquiring the activity degree of a target electronic resource pair, and if the activity degree is greater than or equal to a preset degree threshold, acquiring the fair exchange rate of a reference electronic resource pair, wherein the reference electronic resource pair is a resource pair comprising a first electronic resource or a second electronic resource;
and acquiring the fair exchange rate of the crossed electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, if the reference pair of electronic resources includes a first electronic resource and a third electronic resource, then the cross pair of electronic resources includes a second electronic resource and a third electronic resource;
the processing unit obtains the fair exchange rate of the crossed electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair, and is used for executing the following operations:
Determining the exchange rate ratio between the exchange rate price of the target electronic resource pair at the target delivery deadline and the exchange rate price of the reference electronic resource pair at the target delivery deadline according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair;
and determining the exchange rate price of the crossed electronic resource pair at the target delivery deadline according to the exchange rate ratio.
In one aspect, an embodiment of the present application provides a computer apparatus, where the computer apparatus includes a memory and a processor, and the memory stores a computer program, and when the computer program is executed by the processor, causes the processor to execute the information processing method described above.
In one aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program that, when read and executed by a processor of a computer device, causes the computer device to execute the above-described information processing method.
In one aspect, embodiments of the present application provide a 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 so that the computer device performs the above-described information processing method.
In the embodiment of the application, the target exchange rate update information provided for the target electronic resource pair is acquired, and the target exchange rate update information is determined according to the exchange rate update information provided by at least one subscribed exchange rate providing object; and determining the information type of the target exchange rate update information, and updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair. The updated fair exchange rate comprises exchange rate prices at different exchange periods, and if the determined information type is the first type, the exchange rate price of the target electronic resource pair at the different exchange periods is determined according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type. Therefore, the method and the device can subscribe a plurality of exchange rate providing objects aiming at the target electronic resource pair, and provide richer and comprehensive exchange rate updating information by the plurality of exchange rate providing objects, so that the acquired latest exchange rate updating information is more accurate and reliable; in addition, the exchange rate price of the target electronic resource at different delivery deadlines can be determined according to the latest exchange rate updating information, so that a more comprehensive fair exchange rate is provided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a schematic flow chart of information subscription according to an embodiment of the present application;
FIG. 1b is a schematic flow chart of an information processing according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an information handling system according to an embodiment of the present application;
fig. 3 is a schematic flow chart of an information processing method according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for updating a fair exchange rate according to an embodiment of the present disclosure;
FIG. 5 is a flow chart of another method for updating a fair exchange rate according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an information processing scenario provided in an embodiment of the present application;
fig. 7 is a schematic structural view of an information processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application.
The embodiment of the application provides an information processing scheme, wherein a plurality of exchange rate providing objects can be subscribed to obtain the latest exchange rate updating information, so that the comprehensiveness and the sensitivity of updating the fair exchange rate are improved. The principle of the information processing scheme mainly comprises the following steps: acquiring target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to exchange rate update information provided by at least one subscribed exchange rate providing object; and determining the information type of the target exchange rate update information, and updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair. The updated fair exchange rate comprises exchange rate prices at different exchange periods, and if the determined information type is the first type, the exchange rate price of the target electronic resource pair at the different exchange periods is determined according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type.
Therefore, a plurality of exchange rate providing objects can be subscribed for the target electronic resource pairs, and richer and comprehensive exchange rate updating information can be provided, so that the acquired latest exchange rate updating information is more accurate and reliable; in addition, the exchange rate price of the target electronic resource at different delivery deadlines can be determined according to the latest exchange rate updating information, so that a more comprehensive fair exchange rate is provided.
Next, the relevant principles of the information processing scheme provided in the present application and the related technical terms will be described in detail with reference to fig. 1a and 1 b:
referring to fig. 1a, fig. 1a is a schematic flow chart of information subscription according to an embodiment of the present application. As shown in fig. 1a, subscription may be performed with a plurality of rate providing objects (e.g., rate providing object 1, rate providing object 2..rate providing object n), and rate update information (may specifically include price update information, expiration date update information) of a plurality of electronic resource pairs may be subscribed to, and the pushed rate update information of each rate providing object for each electronic resource pair may be received based on corresponding rate/expiration date sub-receivers, respectively, and finally, each receiver may store the received rate update information in a message event bus. In the application, the received exchange rate update information can be stored based on a cloud storage technology. Among them, cloud storage (cloud storage) is a new concept that extends and develops in the concept of cloud computing, and a distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that provides data storage and service access functions together by integrating a large number of storage devices (storage devices are also referred to as storage nodes) of different types in a network through application software or application interfaces through functions such as cluster application, grid technology, and a distributed storage file system.
Specifically, a subscription method for rate price information and expiration date information based on a streaming rate is provided in the schematic diagram shown in fig. 1a, where the streaming rate is that an object is provided by the rate, and the latest rate update information is actively and continuously pushed to a customer (for example, a third party payment mechanism) through a financial information exchange protocol (Financial Information exchange, FIX), so that compared with a traditional method for actively inquiring the customer and the rate object, the message pushing method based on the streaming rate in the present application is higher in frequency and timely, and ensures the reliability of the target rate update information. Meanwhile, the data volume related to the message pushing mode based on the stream exchange rate is larger. Therefore, the exchange rate update information of different electronic resource pairs pushed based on the stream exchange rate can be respectively stored in different types of storage devices based on the cloud storage technology, so that a storage system for providing data storage and service access functions is formed together, namely, the message event bus shown in the figure 1a can be deployed as one information storage system, and thus, the information storage system can be used for storing the exchange rate update information of different electronic resource pairs pushed by various exchange rate providing objects.
Further, referring to fig. 1b, fig. 1b is a schematic flow chart of an information processing according to an embodiment of the present application. It should be appreciated that after the target rate update information is obtained from the message event bus shown in fig. 1a, the information type of the target rate update information may be determined based on different rate receiving processors for processing the rate update information of different information types, as shown in fig. 1 b. And then, updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair, namely, calculating the exchange rate price of the target electronic resource pair in different delivery deadlines. The above calculation process of the fair exchange rate often involves larger-scale calculation, so that larger calculation power and storage space are required, and then enough calculation power and storage space can be obtained based on the cloud computing technology, so that the specific process of updating the fair exchange rate of the target electronic resource pair related in the application is executed.
Wherein, cloud computing (cloud computing) refers to a delivery and use mode of an IT infrastructure, and refers to obtaining required resources (i.e. flow arrangement information and node configuration information of each target use case node) in an on-demand and easily-expandable manner through a network; generalized cloud computing refers to the delivery and usage patterns of services, meaning that the required services are obtained in an on-demand, easily scalable manner over a network. Such services may be IT, software, internet related, or other services. Cloud Computing is a product of fusion of traditional computer and network technology developments such as Grid Computing (Grid Computing), distributed Computing (Distributed Computing), parallel Computing (Parallel Computing), utility Computing (Utility Computing), network storage (Network Storage Technologies), virtualization (Virtualization), load balancing (Load balancing), and the like.
It should be appreciated that, as shown in fig. 1b, after updating the compliance rate of the target electronic resource pair, it may be further determined whether the target electronic resource pair is an active type electronic resource pair. If so, the electronic resource pair of the inactive type can be further calculated based on the target electronic resource pair of the active type, so that a richer and comprehensive fair exchange rate is provided for the fair exchange rate user.
It will be appreciated that in the information processing scheme of the present application, a large amount of data (e.g., the rate update information pushed by each rate provider object) is involved, and then the data may be uploaded into the blockchain for storage. Among them, the so-called Blockchain (Blockchain) is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. The blockchain is essentially a decentralised database, which is a series of data blocks generated by cryptographic methods, each data block containing a batch of information of network transactions for verifying the validity (anti-counterfeiting) of the information and generating the next block. Based on the mode, the target exchange rate updating information is uploaded to the blockchain for storage, so that the data on the blockchain can be prevented from being tampered easily, and the safety and reliability of the information processing process are ensured.
As described in fig. 1a and fig. 1b, the principle of the information processing scheme provided in the embodiment of the present application may at least include the following flows:
1) Subscribing a plurality of different exchange rate providing objects at the same time, thereby acquiring exchange rate update information (namely price update information and expiration date update information) pushed by each exchange rate providing object, and carrying out standardized processing on the exchange rate update information so as to drive a fair exchange rate user to carry out fair exchange rate update processing;
2) The price update information and the expiration date sub-update information are respectively sent to two processors (such as an exchange rate update information processor and an expiration date sub-update information processor shown in fig. 1 b) for calculation, for example, the exchange rate update information processor is used for processing the price update information, and the expiration date sub-update information processor is used for processing the expiration date sub-update information. Summarizing, the exchange rates of the fair for a plurality of delivery deadlines are calculated by interdependence between the exchange rates of the fair and the expiration date;
3) After the fair exchange rate is updated, the activity degree of the electronic resource pair can be judged, if the electronic resource pair belongs to the electronic resource pair of the active type, the fair exchange rate of the electronic resource pair of the inactive type, which is concerned by the fair exchange rate user, can be further updated through the cross calculation of the electronic resource pair, and the richer and comprehensive fair exchange rate is provided for the fair exchange rate user.
It should be noted that, in the following detailed description of the present application, related data such as object information is referred to, and when the above embodiments of the present application are applied to specific products or technologies, permission or consent of the object needs to be obtained, and collection, use and processing of the related data need to comply with related laws and regulations and standards of related countries and regions.
Next, an architecture diagram of an information processing system according to the present application will be described. Referring to fig. 2, fig. 2 is a schematic architecture diagram of an information processing system according to an embodiment of the present application. As shown in fig. 2, the system architecture diagram may at least include: server 204 and a terminal device cluster, where the terminal device cluster may at least include: terminal device 201, terminal device 202, terminal device 203, etc. Any one of the terminal devices in the terminal device cluster may be directly or indirectly connected to the server 204 through a wired or wireless communication manner, which is not limited herein.
The server 204 shown in fig. 2 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content distribution networks), basic cloud computing services such as big data and artificial intelligence platforms.
Any of the terminal devices shown in fig. 2 may be a smart device having an information processing function such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device (MID, mobile internet device), a vehicle-mounted device, a roadside device, an aircraft, a wearable device, for example, a smart watch, a smart bracelet, a pedometer, etc.
In a possible implementation manner, taking the terminal device 201 as an example, the information processing scheme provided in the embodiment of the present application is further described. Specifically, the terminal device 201 may acquire target rate update information provided for a target pair of electronic resources, the target rate update information being determined according to rate update information provided by at least one rate providing object subscribed to. The terminal device 201 may send the target exchange rate update information to the server 204, and the server 204 may determine an information type of the target exchange rate update information; the server 204 updates the fair exchange rate of the target electronic resource pair according to the determined information type, and obtains the updated fair exchange rate of the target electronic resource pair. If the determined information type is the first type, determining exchange rate prices of the target electronic resource pair at different delivery deadlines according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource pair at different delivery deadlines according to the reference information of the first type. Finally, the server 204 may send the updated fair exchange rate for the target electronic resource pair to the terminal device 201.
It should be understood that the foregoing is merely illustrative of specific operations performed by the terminal device 201 and the server 204. In another possible implementation, the determining of the information type of the target exchange rate update information is not necessarily performed by the server 204, but may be performed by the terminal device 201 (or any other terminal device in the terminal device cluster). In yet another possible implementation manner, the above-mentioned information processing scheme may also be executed by a server in the information processing system, or any one of the terminal devices in the terminal device cluster, which is not specifically limited in this embodiment of the present application.
In one possible implementation, the information processing system provided in the embodiments of the present application may be deployed on a blockchain, for example, the server 204 and each terminal device included in the terminal device cluster may be used as node devices of the blockchain to jointly form a blockchain network. Therefore, the information processing flow in the application can be executed on the blockchain, so that the fairness and fairness of the information processing flow can be guaranteed, and meanwhile, the information processing flow can be traceable, and the safety of the information processing flow is improved.
It may be understood that the schematic diagram of the system architecture described in the embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and does not constitute a limitation on the technical solution provided in the embodiments of the present application, and those skilled in the art can know that, with the evolution of the system architecture and the appearance of a new service scenario, the technical solution provided in the embodiments of the present application is equally applicable to similar technical problems.
Based on the above description of the information processing scheme and the information processing system, the embodiment of the application provides an information processing method. Referring to fig. 3, fig. 3 is a flowchart of an information processing method provided in an embodiment of the present application, where the information processing method may be executed by a terminal device or a server in the information processing system mentioned in fig. 2, and for convenience of explanation, the embodiment of the present application is described by taking a computer device as an example. The information processing method may include the following steps S301 to S303:
s301, acquiring target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to the exchange rate update information provided by at least one subscribed exchange rate providing object.
The target exchange rate update information is the latest exchange rate update information determined from one or more exchange rate update information provided by the subscribed at least one exchange rate providing object. The latest exchange rate update information means that the update time stamp of the exchange rate update information is closest to the time stamp of the currently acquired exchange rate update information. Specifically, if the computer device currently receives the exchange rate update information pushed by any one of the at least one exchange rate providing object, the received exchange rate update information is taken as target exchange rate update information; if the computer device currently receives the plurality of exchange rate update information pushed by the plurality of exchange rate providing objects at the same time, the latest exchange rate update information can be obtained from the plurality of exchange rate update information as target exchange rate update information. For example, when the rate update information 1 transmitted from the rate providing object 1 and the rate update information 2 transmitted from the rate providing object 2 are received at the same time, the latest rate update information is determined as the target rate update information from the rate update information 1 and the rate update information 2.
The target electronic resource pair may include a first electronic resource and a second electronic resource, and the resource type to which the first electronic resource belongs and the resource type to which the second electronic resource belongs are different, and specifically, the first electronic resource and the second electronic resource may be electronic resources belonging to different countries. For example, the first electronic resource may be the electronic resource 1 of the country a, the second electronic resource may be the electronic resource 2 of the country B, and for example, the target electronic resource pair may be specifically expressed as: USDCNY, USDHKD, USDKRW, etc.
In one possible implementation, the computer device may also establish a subscription connection with at least one rate providing object, respectively, before obtaining the target rate update information provided for the target electronic resource pair. The subscription connection relation is used for indicating that when any exchange rate providing object detects an exchange rate update event aiming at a target electronic resource pair, exchange rate update information to be processed is generated. As shown in fig. 1a, any of the rate providing objects may push the pending rate update information into the message event bus for storage.
It should be noted that, the computer device may subscribe to one or more types of electronic resource pairs including the same electronic resource pair with each of the rate providing objects, or may subscribe to one or more types of electronic resource pairs including the same electronic resource pair with different rate providing objects. For example, the computer device may subscribe to exchange rate update information regarding electronic resource pair 1, electronic resource pair 2 with both exchange rate providing object 1, and exchange rate providing object 2. For another example, the computer device may also subscribe to exchange rate update information regarding electronic resource pair 1 and electronic resource pair 2 with exchange rate provider 1; and subscribing to exchange rate update information regarding the pair of electronic resources 1 and the pair of electronic resources 3 with the exchange rate providing object 2.
It should be understood that, for the same target electronic resource pair, it is required to ensure that at least one exchange rate providing object provides corresponding exchange rate update information, that is, a plurality of exchange rate providing objects actively and continuously push the latest exchange rate update information to the computer device based on a streaming exchange rate manner through a FIX financial information exchange protocol, so that the computer device (for example, a third party payment mechanism) can obtain the target exchange rate update information provided for the target electronic resource pair more sensitively, and the reliability of the target exchange rate update information is improved. In order to obtain more comprehensive and highly sensitive exchange rate update information, the present application needs to subscribe to exchange rate update information about a target electronic resource pair with each exchange rate providing object establishing a subscription connection relationship. As shown in fig. 1a, the computer device may subscribe to rate update information regarding the target electronic resource versus USDCNY with rate provider 1, rate provider 2, and rate provider n, among others.
In one possible implementation, the target exchange rate update information is obtained via a message event bus; the exchange rate update information transmitted by the plurality of exchange rate providing objects can be acquired from the message event bus, and each exchange rate update information is obtained after standardized processing. Wherein, in the standardized processing procedure, the method comprises the following steps: and classifying any exchange rate update information to be processed, and standardizing according to different types of corresponding standardized formats to obtain the exchange rate update information.
For example, as shown in fig. 1a, any "rate & expiration date sub-receiver" may perform classification processing on the rate update information provided by any rate providing object, perform standardization processing according to the standardized formats corresponding to different information types, and store the standardized information in the message event bus. Wherein, the exchange rate update information after the classification processing is added with an information label, and the information label can be used for indicating the information type of the exchange rate update information, for example, the information label comprises a price information label or a expiration date sub-label; and, exchange rate update information added with different information labels can be standardized according to different standardized formats. For example, the exchange rate update information to which the price information label is added may be standardized in a first standardized format; for another example, the exchange rate update information added with the expiration date sub-label may be normalized according to a second normalization format, where the first normalization format and the second normalization format are different, and the first normalization format and the second normalization format are used to indicate that the exchange rate update information of the corresponding information type is normalized into a plurality of fields. In addition, any "exchange rate & expiration date point sub-receiver" in the embodiments of the present application may be further used to subscribe to exchange rate as substitute or supplementary data of a fair exchange rate, where exchange rate refers to an exchange rate provided by a bank or a financial institution to a client and available for direct exchange, including a purchase price and a sell price, and has a high update frequency and definite timeliness. Therefore, the achievable exchange rate is used as the reference data for updating the fair exchange rate, and the accuracy of updating the fair exchange rate can be improved.
Specifically, the target rate update information may include a first type of target price update information. Then, when the target exchange rate update information is the first type of target price update information, the target price update information obtained by performing the normalization processing on the target exchange rate update information according to the first normalization format may at least include: any one or more of a first tag field, a resource pair type field, a buy price field, a sell price field, a delivery deadline field, and an update timestamp field. For example, for a target electronic resource pair USDCNY, the target Price update information after normalization processing (e.g., the exchange rate price_usdcny_t2 for the t+2 delivery deadline) may be expressed as follows: [ currency Pair ]: "USDCNY", "bid":6.3750, "ask":6.3760, "tenter": "T+2", "update Time": "2021-04-13:22:01:20").
Next, relevant description is made on each field included in the target price update information:
1) First tag field: for storing information tags, in particular, the information tag stored in the first tag field may be a price information tag;
2) Resource Pair type field "currency Pair": resource types for storing target pairs of electronic resources, including but not limited to: USDCNY, USDHKD, USDKRW;
3) The buy price field "bid": for storing a corresponding purchase price of the target electronic resource pair at a third party payment authority, e.g., 6.3750;
4) The sell price field "ask": for storing the corresponding selling price of the target electronic resource pair at the third party payment mechanism, for example 6.3760, in general, the buying price bid price < selling price ask price of the target electronic resource pair;
5) Update timestamp field "update Time": for storing a specific update time corresponding to the current exchange rate update information, for example: 2021-04-13:22:01:20;
6) Delivery deadline field "tenter": the target delivery deadline for storing the target electronic resource pair is t+2 in the embodiment of the present application.
It should be noted that, in the embodiment of the present application, the foreign exchange transaction corresponding to the t+2 delivery deadline is more active, and more reflects the real foreign exchange market, where T is the working day, and the t+2 delivery deadline refers to: purchased on day T, delivered on day t+2. For example, purchase is made on day 9 and 15 (working days), and delivery is made on day 9 and 17. In addition, the term "foreign exchange transaction" refers to a process of simultaneously buying a first electronic resource and selling a second electronic resource in an electronic resource pair, and is essentially a process of exchanging an electronic resource in one country with an electronic resource in another country. Unlike other financial markets, the foreign exchange market has no specific location nor central exchange, primarily through electronic networks between banks (i.e., third party payment institutions), businesses, or individuals. For easy understanding, the embodiment of the application may subscribe to the fair exchange rate of the t+2 delivery deadline, thereby improving accuracy of exchange rate update information.
Specifically, the target exchange rate update information may also include a second type of target expiration point update information. Then, when the target exchange rate update information is the second type of target expiration date update information, the target expiration date update information obtained by performing the normalization processing on the target exchange rate update information according to the second normalization format may at least include: any one or more of a second tag field, a resource pair type field, a first drop point subfield, a second drop point subfield, and an update timestamp field. For example, for the target electronic resource pair USDCNY, the target falling-period point update information after the normalization processing may be expressed as: [ currency Pair ]: "USDCNY", "on": { "bid":0.001"ask":0.002}, "tn": { "bid":0.002"ask":0.003, "update Time": "2021-04-13:7:00:00").
Next, the relevant description is performed on each field included in the target expiration date sub-update information:
1) Second tag field: the information tag stored in the second tag field may be a drop point sub-tag;
2) Resource Pair type field "currency Pair": resource types for storing target pairs of electronic resources, including but not limited to: USDCNY, USDHKD, USDKRW;
3) The first drop point subfield "on": ON (Over-right overnight, i.e., day of day, next day delivery), this field is used to store the first buy drop point on_bid (e.g., 0.001) and the first sell drop point on_ask (e.g., 0.002) for the t+1 delivery deadline;
4) A second drop point subfield "tn": TN (Tom-Next, the Next day of the day, the third day of the T+2 cut), this field is used to store a second buy drop point tn_bid (e.g., 0.002) and a second sell drop point tn_ask (e.g., 0.003) for the T+2 cut period;
5) Update timestamp field "update Time": and the method is used for storing the specific update time corresponding to the current exchange rate update information. It should be noted that, the target expiration date update information may further include an expiration date field 1M (i.e., expiration date, i.e., month after expiration date), for storing the buy expiration date and the sell expiration date for the t+30 (or t+31) expiration date.
Note that, for the aforementioned drop Point (Swap Point): the term-losing refers to buying a spot foreign exchange in a foreign exchange market and selling a long-term foreign exchange of the same kind of electronic resource, or buying a long-term foreign exchange of the same kind of electronic resource while selling a spot foreign exchange, that is to say, a spot business and a long-term business are combined together in the same foreign exchange transaction. In a lost transaction, the difference between the spot rate and the distant rate, i.e., the lift or the post, is called the lost rate. When the rising water or the pasting water is regarded as the falling period rate, the price is quoted in the form of a basic point. On an fx transaction offer, the base point refers to the fourth digit below the decimal point, which is the minimum unit of the offer. The exchange rate bid refers to the exchange point = long term exchange rate-spot exchange rate.
S302, determining the information type of the target exchange rate update information.
In this embodiment of the present application, after updating any one of the exchange rate update information to be processed, the computer device is added with an information tag, where the information tag includes a price information tag or a skip point sub-tag. In one possible implementation, the information tag may be added to the normalized exchange rate update information in the form of a tag field, e.g., the information tag may include the first tag field, the second tag field, and the like mentioned above.
In one possible implementation, the determining, by the computer device, the information type of the target exchange rate update information may specifically include: acquiring an information tag of the target exchange rate update information, and if the information tag is a price information tag, determining that the information type of the target exchange rate update information is a first type; if the information label is the expiration date sub-label, determining that the information type of the target exchange rate update information is a second type. If the information type of the target exchange rate updating information is the first type, the target exchange rate updating information comprises target price updating information; if the information type of the target exchange rate update information is the second type, the target exchange rate update information comprises target expiration date update information. Based on the mode, the information type of the target exchange rate update information can be conveniently determined based on the added information label.
In another possible implementation, the determining, by the computer device, the information type of the target exchange rate update information may further include: and analyzing each field in the target exchange rate updating information, and determining the information type of the target exchange rate updating information according to each analyzed field. Specifically, a key field can be obtained from each parsed field, and if the key field includes "bid", "ask" or "tension", the information type of the target exchange rate update information can be determined to be a first type; if the key field includes "on", or "tn", then the information type of the target rate update information may be determined to be the second type. In this way, without adding an information tag to the exchange rate update message, the information type may be determined by parsing the field.
And S303, updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair.
Wherein the updated fair rate includes the rate price of the target electronic resource for different delivery deadlines. Examples may include, but are not limited to: t+2 cut-off period, t+1 cut-off period, rate price for t+0 cut-off period, etc. And, the exchange rate price per delivery deadline may include, in particular, a bid price and a ask price.
Note that the delivery period T mentioned above: refers to the date on which the currency should be delivered when the foreign currency is purchased or sold. Buying an object of a foreign exchange requires delivery of the electronic resource of the home country, and selling an object of a foreign exchange requires delivery of the electronic resource of the foreign country. The acceptable delivery deadline is required to be a business day of the delivery resource issuing country, and even if both parties to the transaction are holidays, the acceptable delivery deadline can be considered to be acceptable as long as the country delivering the electronic resource is a business day (working day). In addition, the t+2 delivery deadline means: purchased on day T, delivered on day t+2. For example, a 9 month 15 day (workday) purchase, a 9 month 17 day delivery; t+1 delivery deadlines refer to: purchased on day T, delivered on day t+1. For example, a 9 month 15 day (workday) purchase, a 9 month 16 day delivery; t+0 delivery deadlines refer to: purchase on T days and delivery on T days. For example, purchase is made on 9 months 15 days (working days), and delivery is made on 9 months 15 days. In the embodiment of the application, the exchange rate prices of the plurality of delivery deadlines of the target electronic resource pair can be updated and obtained, so that a comprehensive fair exchange rate can be provided.
In one possible implementation, if the determined information type is the first type, determining a rate price of the target electronic resource for different delivery deadlines according to the second type of reference information; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type. Among them, so-called fair exchange rate: the exchange rate price of the latest exchange in the current foreign exchange market is issued to the outside by a third party transaction platform (exchange rate providing object), for example, exchange rate providing object 1, exchange rate providing object 2 and the like shown in fig. 1a, and other financial institutions can observe and use the exchange rate as a reference exchange rate.
Specifically, the computer device updates the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair, and may include: if the determined information type is the first type, acquiring reference falling-period point information of a second type; and updating the fair exchange rate of the target electronic resource pair according to the first type of target price updating information and the second type of reference expiration date information to obtain the updated fair exchange rate of the target electronic resource pair.
In addition, the computer device updates the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair, and may further include: if the determined information type is the second type, acquiring the reference exchange rate price information of the first type; and updating the fair exchange rate of the target electronic resource pair according to the target expiration date sub-information of the second type and the reference exchange rate price information of the first type to obtain the updated fair exchange rate of the target electronic resource pair.
In the embodiment of the application, the target exchange rate update information provided for the target electronic resource pair is acquired, and the target exchange rate update information is determined according to the exchange rate update information provided by at least one subscribed exchange rate providing object; and determining the information type of the target exchange rate update information, and updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair. The updated fair exchange rate comprises exchange rate prices at different exchange periods, and if the determined information type is the first type, the exchange rate price of the target electronic resource pair at the different exchange periods is determined according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type. Therefore, a plurality of exchange rate providing objects can be subscribed for the target electronic resource pairs, and richer and comprehensive exchange rate updating information can be provided, so that the acquired latest exchange rate updating information is more accurate and reliable; in addition, the exchange rate price of the target electronic resource at different delivery deadlines can be determined according to the latest exchange rate updating information, so that a more comprehensive fair exchange rate is provided.
Further, a specific description will be given of how to calculate the updated compliant exchange rate according to the step S303 in the embodiment of fig. 3. Referring to fig. 4, fig. 4 is a flow chart of a method for updating a compliant exchange rate according to an embodiment of the present application. As shown in fig. 4, the method may be performed by a terminal device or a server in the information processing system mentioned in fig. 2, and for convenience of explanation, the embodiment of the present application is described by taking a computer device as an example. The embodiment of fig. 4 is a specific embodiment related to step S303 in the embodiment of fig. 3, and the method may include the following steps S401 to S404:
s401, acquiring target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to the exchange rate update information provided by at least one subscribed exchange rate providing object.
S402, determining the information type of the target exchange rate update information.
It should be noted that, the detailed process involved in steps S401 to S402 executed by the computer device in the embodiment of the present application may refer to the detailed process involved in steps S301 to S302 in the embodiment of fig. 3, and the embodiment of the present application is not repeated here.
S403, if the determined information type is the first type, acquiring the reference falling-period point sub-information of the second type.
When the information type of the target exchange rate updating information is the first type, the target exchange rate updating information is the target price updating information of the first type. The reference expiration point information refers to the currently existing expiration point information.
S404, updating the fair exchange rate of the target electronic resource pair according to the target price updating information of the first type and the reference expiration date information of the second type to obtain the updated fair exchange rate of the target electronic resource pair.
Specifically, the updated fair exchange rate includes: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline; t is a positive integer. Updating the fair exchange rate of the target electronic resource pair according to the target price updating information and the second type of reference expiration date sub-information to obtain the updated fair exchange rate of the target electronic resource pair, wherein the method comprises any one or two of the following steps: determining the exchange rate price of the target electronic resource to the delivery deadline of T+1 according to the target price updating information and the content stored in the second drop point sub-field in the reference drop point sub-information; and determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first exchange point subfield in the reference exchange point subfield.
Next, an example of how to calculate the rate price of the target electronic resource for the delivery deadline t+1 and the rate price of the target electronic resource for the delivery deadline t+0 will be described, respectively:
(1) the computer device determines the exchange rate price of the target electronic resource for the delivery deadline at t+1 according to the target price update information and the content stored in the second drop point sub-field in the reference drop point sub-information, and specifically may include: if the second selling-out period point stored in the second falling period point sub-field in the reference falling period point sub-information is larger than the second buying-in falling period point, determining the buying price of the target electronic resource in the T+1 delivery period according to the content stored in the buying price field in the target price updating information and the second selling-out period point; and determining the selling price of the target electronic resource for the delivery deadline of T+1 according to the content stored in the selling price field in the target price updating information and the second buying expiration date. Or if the second selling-out period point stored in the second period-out period point sub-field in the reference period-out period point sub-information is smaller than the second buying-in period-out point, determining the buying price of the target electronic resource in the T+1 cut period according to the content stored in the buying price field in the target price updating information and the second buying-in period-out point; and determining the selling price of the target electronic resource for the delivery deadline of T+1 according to the content stored in the selling price field in the target price updating information and the second selling period-falling point.
For example, if the computer device obtains the target Price update information price_usdcny_t2 of USDCNY with delivery deadline t+2: [ currency Pair ]: "USDCNY", "bid":6.3750, "ask":6.3760, "tenter": "T+2", "update Time": "2021-04-13:22:01:20"). The computer device may obtain the existing USDCNY reference expiration point information: [ currency Pair ]: "USDCNY", "on": { "bid":0.001"ask":0.002} "tn": { "bid":0.002"ask":0.003, "update Time": "2021-04-13:7:00:00").
Wherein tn_ask (0.003) > tn_bid (0.002), the specific formulas for calculating the exchange rate Price price_usdcny_t1_bid and price_usdcny_t1_ask for the t+1 delivery deadline are as follows:
Price_USDCNY_t1_bid=Price_USDCNY_t2_bid-tn_ask=6.3720;
Price_USDCNY_t1_ask=Price_USDCNY_t2_ask-tn_bid=6.3740。
it should be appreciated that if tn_ask < tn_bid, then the rate prices price_usdcny_t1_bid and price_usdcny_t1_ask for the t+1 delivery terms should be calculated as follows:
Price_USDCNY_t1_bid=Price_USDCNY_t2_bid-tn_bid;
Price_USDCNY_t1_ask=Price_USDCNY_t2_ask-tn_ask。
(2) further, the determining, by the computer device, the exchange rate price of the target electronic resource for the t+0 delivery deadline according to the price update information of the t+1 delivery deadline and the content stored in the first falling-period point subfield in the reference falling-period point subfield information specifically may include: if the first sell-out period point stored in the first sell-out period point sub-field in the reference period point sub-information is larger than the first buy-in period point, determining the buying price of the target electronic resource in the T+0 cut-in period according to the buying price of the T+1 cut-in period and the first sell-out period point; and determining the selling price of the target electronic resource for the T+1 delivery deadline according to the selling price of the T+1 delivery deadline and the first buying missing period point. Or if the first sell-out period point stored in the first break-out period point sub-field in the reference break-out period point sub-information is smaller than the first buy-in break-out period point, determining the purchase price of the target electronic resource in the T+1 cut period according to the content stored in the purchase price field in the target price updating information and the first buy-in break-out period point; and determining the selling price of the target electronic resource for the delivery deadline of T+1 according to the content stored in the selling price field in the target price updating information and the first selling period-falling point.
Wherein, on_ask (0.002) > on_bid (0.001), the specific formulas for calculating the exchange rate Price price_usdcny_t0_bid and price_usdcny_t0_ask for the t+0 delivery deadline are as follows:
Price_USDCNY_t0_bid=Price_USDCNY_t1_bid-on_ask=6.3700;
Price_USDCNY_t0_ask=Price_USDCNY_t1_ask-on_bid=6.3730。
it should be appreciated that if on_ask < on_bid, the calculation formula is as follows:
Price_USDCNY_t0_bid=Price_USDCNY_t1_bid-on_bid;
Price_USDCNY_t0_ask=Price_USDCNY_t1_ask-on_ask。
it should be understood that, in the embodiment of the present application, the USDCNY is illustrated by taking the target electronic resource pair as an example, and for other electronic resource pairs, the manner of updating the fair exchange rate of the target electronic resource pair may refer to the specific flow in the above embodiment, and the embodiments of the present application are not repeated herein.
In the embodiment of the application, when receiving the exchange rate update information of the target electronic resource pair, the exchange rate price of the target electronic resource pair at different delivery deadlines can be updated according to the existing expiration date sub-information, so that a comprehensive fair exchange rate is obtained.
Referring to fig. 5, fig. 5 is a flowchart illustrating another method for updating the fair exchange rate according to an embodiment of the present disclosure. As shown in fig. 5, the method may be performed by a terminal device or a server in the information processing system mentioned in fig. 2, and for convenience of explanation, the embodiment of the present application is described by taking a computer device as an example. The embodiment of fig. 5 is another specific embodiment related to step S303 in the embodiment of fig. 3, and the method may include the following steps S501 to S504:
S501, acquiring target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to the exchange rate update information provided by at least one subscribed exchange rate providing object.
S502, determining the information type of the target exchange rate update information.
Similarly, the detailed process involved in steps S501-S502 executed by the computer device in the embodiment of the present application may refer to the detailed process involved in steps S301-S302 in the embodiment of fig. 3, which is not described herein.
S503, if the determined information type is the second type, acquiring the first type of reference exchange rate price information.
When the information type of the target exchange rate updating information is the second type, the target exchange rate updating information is the target exchange rate updating information of the second type. The reference exchange rate price information is currently existing exchange rate price information. Note that, the reference exchange rate price information in the present application may specifically include exchange rate price information of the target electronic resource pair for the existing t+2 delivery deadline.
S504, updating the fair exchange rate of the target electronic resource pair according to the second type of target expiration date point updating information and the first type of reference exchange rate price information to obtain the updated fair exchange rate of the target electronic resource pair.
Specifically, the updated fair exchange rate includes: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline; t is a positive integer; the reference exchange rate price information includes an exchange rate price for a t+2 delivery deadline. The computer equipment updates the fair exchange rate of the target electronic resource pair according to the target expiration date sub-information of the second type and the reference exchange rate price information of the first type to obtain the updated fair exchange rate of the target electronic resource pair, and the method comprises any one or two of the following steps: determining the exchange rate price of the target electronic resource for the delivery deadline of T+1 according to the reference exchange rate price information and the content stored in the second exchange period point sub-field in the target exchange period sub-information; and determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first exchange point sub-field in the target exchange point sub-information.
Similarly, calculating the rate price of the target electronic resource for the time period of T+1 and the rate price of the target electronic resource for the time period of T+0 according to the case 1 illustrates:
(1) for example, if the computer device obtains the target drop point update information of the USDHDK with the delivery deadline of t+2: [ currency Pair ]: "USDHKD", "on": { "bid":0.001"ask":0.002}, "tn": { "bid":0.002"ask":0.003}, "update Time": "2021-04-13:7:00:00"). Then the existing reference exchange rate Price information price_usdhdk_t2 of USDHDK may be obtained: [ currency Pair ]: "USDHKD", "bid":7.7990, "ask":7.8010, "tenter": "T+2", "update Time": "2021-04-13:22:01:20").
Wherein tn_ask (0.003) > tn_bid (0.002), the specific formulas for calculating the exchange rate Price price_usdhdk_t1_bid and price_usdhdk_t1_ask for the t+1 delivery deadline are as follows:
Price_USDHDK_t1_bid=Price_USDHDK_t2_bid-tn_ask=7.7987;
Price_USDHDK_t1_ask=Price_USDHDK_t2_ask-tn_bid=7.8008。
(2) further, since on_ask (0.002) > on_bid (0.001), the specific formulas for calculating the exchange rate Price price_usdhdk_t0_bid and price_usdhdk_t0_ask for the t+0 delivery deadline are as follows:
Price_USDHDK_t0_bid=Price_USDHDK_t1_bid-on_ask=7.7985;
Price_USDHDK_t0_ask=Price_USDHDK_t1_ask-on_bid=7.8007。
in the embodiment of the present application, when receiving the update information of the expiration date of the target electronic resource pair, the exchange rate price of the target electronic resource pair in different delivery deadlines may be updated according to the existing exchange rate price information of the t+2 delivery deadlines, so as to obtain a relatively comprehensive fair exchange rate.
It should be appreciated that both of the cases described for the embodiments of fig. 4 and 5 are applicable for both active and inactive types of electronic resource pairs. Furthermore, the embodiment of the application also provides a cross calculation mode so as to obtain the exchange rate price of the electronic resource pair of the non-active type in different delivery deadlines. Next, a detailed description will be given of a specific procedure of how to cross-calculate the fair exchange rate of the inactive resource pair:
in one possible implementation, the target pair of electronic resources includes a first electronic resource and a second electronic resource; the computer equipment can also acquire the activity degree of the target electronic resource pair, and if the activity degree is greater than or equal to a preset degree threshold, the fair exchange rate of the reference electronic resource pair is acquired, wherein the reference electronic resource pair refers to a resource pair comprising a first electronic resource or a second electronic resource; and acquiring the fair exchange rate of the crossed electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair.
Specifically, if the reference pair of electronic resources includes a first electronic resource and a second electronic resource, the cross pair of electronic resources includes the second electronic resource and a third electronic resource. The computer device obtains the fair exchange rate of the crossed electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair, and specifically may include: determining the exchange rate ratio between the exchange rate price of the target electronic resource pair at the target delivery deadline and the exchange rate price of the reference electronic resource pair at the target delivery deadline according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair; and determining the exchange rate price of the crossed electronic resource pair at the target delivery deadline according to the exchange rate ratio.
For example, the target electronic resource pair USDCNY is an active type electronic resource pair, and if the institution pays attention to the inactive type electronic resource pair HKDCNY at the same time, the cross calculation of the resource pair needs to be performed. The obtaining of the current fair exchange rate of the reference electronic resource to the USDHKD may specifically include exchange rate prices at different delivery deadlines such as t+2, t+1, and t+0. For example, the compliance rate for the reference electronic resource versus the USDHKD is shown in table 1 below:
TABLE 1 compliance exchange Rate with USDHKD with reference to electronic resources
Delivery deadline Buying price bid Price ask is sold
T+2 7.7990 7.8010
T+1 7.7960 7.7990
T+0 7.7940 7.7980
As can be seen from table 1, price_usdhkd_t2_bid=7.7990, price_usdhkd_t2_ask=7.8010, price_usdhkd_t1_bid=7.7960, price_usdhkd_t1_ask=7.7990, price_usdhkd_t0_bid=7.7940, price_usdhkd_t0_ask= 7.7980.
Likewise, the compliance rate for USDCNY according to the target electronic resource shown in case 1 above may be as shown in table 2 below:
TABLE 2 fair exchange Rate of target electronic resources for USDCNY
As can be seen from table 2, price_usdcny_t2_bid=6.3750, price_usdcny_t2_ask=6.3760, price_usdcny_t1_bid=6.3720, price_usdcny_t1_ask=6.3740, price_usdcny_t0_bid=6.3700, price_usdcny_t0_ask= 6.3730.
Then, according to the target electronic resource pair and the reference electronic resource pair, the calculation formulas of the price_hkdcny_t2_bid, price_hkdcny_t2_ask, price_hkdcny_t1_bid, price_hkdcny_t1_ask, price_hkdcny_t0_bid, price_hkdcny_t0_ask of the cross electronic resource pair are obtained respectively as follows:
Price_HKDCNY_t2_bid=Price_USDCNY_t2_bid/Price_USDHKD_t2_ask=6.3750/7.8010=0.8172;
Price_HKDCNY_t2_ask=Price_USDCNY_t2_ask/Price_USDHKD_t2_bid=6.3760/7.7990=0.8175;
Price_HKDCNY_t1_bid=Price_USDCNY_t1_bid/Price_USDHKD_t1_ask=6.3720/7.7990=0.8170;
Price_HKDCNY_t1_ask=Price_USDCNY_t1_ask/Price_USDHKD_t1_bid=6.3740/7.7960=0.8176;
Price_HKDCNY_t0_bid=Price_USDCNY_t0_bid/Price_USDHKD_t0_ask=6.3700/7.7980=0.8169;
Price_HKDCNY_t0_ask=Price_USDCNY_t0_ask/Price_USDHKD_t0_bid=6.3730/7.7940=0.8177。
that is, the resulting fair exchange rate for the non-active type of crossed electronic resource pair may be as shown in Table 3 below:
TABLE 3 fair exchange Rate of Cross electronic resources versus HKCCNY
Delivery deadline Buying price bid Price ask is sold
T+2 0.8172 0.8175
T+1 0.8170 0.8176
T+0 0.8169 0.8177
Further, the HKDCNY of the non-active type of cross electronic resource pair is obtained after the exchange rate price of the different delivery deadlines based on the cross calculation. If the first type of Price update information of HKDCNY of the cross electronic resource pair is received, for example, price_hkdcny_t2 of HKDCNY of delivery date t+2: [ currency Pair ]: "HKDCNY", "bid":0.8172, "ask":0.8175, "tenter": "T+2", "update Time": "2021-04-13:22:01:20"). The computer equipment can acquire the existing reference falling period point sub-information of HKCCNY: [ currency Pair ]: "HKDCNY", "on": { "bid":0.001"ask":0.002}, "tn": { "bid":0.002"ask":0.003}, "update Time": "2021-04-13:7:00:00"). Then, according to the relevant steps involved in the above embodiment, the calculation of the exchange rate price of the crossing electronic resource pair at the t+1 delivery deadline and the exchange rate price of the target electronic resource pair at the t+0 delivery deadline are exemplified:
(1) the specific formulas for calculating the rate prices price_hkdcny_t1_bid and price_hkdcny_t1_ask for the t+1 delivery terms are as follows:
Price_HKDCNY_t1_bid=Price_HKDCNY_t2_bid-tn_ask=0.8169;
Price_HKDCNY_t1_ask=Price_HKDCNY_t2_ask-tn_bid=0.8173。
(2) the specific formulas for calculating the rate prices price_hkdcny_t0_bid and price_hkdcny_t0_ask for the t+0 delivery terms are as follows:
Price_HKDCNY_t0_bid=Price_HKDCNY_t1_bid-on_ask=0.8167;
Price_HKDCNY_t0_ask=Price_HKDCNY_t1_ask-on_bid==0.8172。
It should be noted that, in the above cross calculation process, it should be understood that different types of price marking modes should correspond to different calculation modes, so that in a specific calculation process, three different calculation modes of Direct price (Direct query) and Direct price (Direct query), indirect price (Indirect query) and Indirect price (Indirect query) need to be distinguished.
The direct pricing refers to calculating and coping with a number of units of a home resource based on a foreign resource of a certain unit (for example, 1, 100, 1000, 10000). In the international foreign exchange market, the yen, swiss france, additive elements and the like are direct pricing methods, for example, yen 119.05, namely dollar 1, can be exchanged for yen 119.05. In the embodiment of the present application, taking the USDCNY as an example of the target electronic resource pair, if price_usdcny_t2_bid= 6.3750, the Price is directly marked, that is, dollar 1 can be exchanged for 6.3750 yuan. Indirect pricing refers to calculating a number of units of foreign resources to be received based on a standard of a local resource of a certain unit (e.g., 1, 100, 1000, 10000). In the international foreign exchange market, euro, pound, australian, etc. use indirect pricing, for example, pound 1 = 1.6025 dollars.
It should be understood that the exchange rate providing object in the embodiment of the present application may also provide more exchange points, for example, the exchange point 1M (i.e., the exchange point takes place, i.e., the exchange is performed in one month after the period), so as to calculate the exchange rate of more different exchange periods, such as the exchange rate price of the t+3 exchange period, the exchange rate price of the t+4 exchange period, and so on. Specifically, the calculating manner of the exchange rate prices of different delivery deadlines may refer to the above-mentioned related process of calculating the exchange rate prices of the delivery deadlines t+2, t+1, and t+0 in the embodiment of the present application, which is not described herein again.
Finally, the information processing method provided by the embodiment of the application can be applied to various business scenes, and particularly, the fair exchange rate obtained after updating in the embodiment of the application can be applied to a cross-border payment scene of a third-party payment mechanism. Referring to fig. 6, fig. 6 is a schematic diagram of an information processing scenario provided in an embodiment of the present application. As shown in fig. 6, there are very many business needs for fair exchange rate in the cross-border payment scenario as an indication signal of business transaction: for example, in a business scenario where an enterprise is being offered a third party payment mechanism may need to offer the enterprise a change in exchange rate over a very long period of time and in the nearest tens of seconds to help the enterprise make comparisons before the exchange purchase and make exchange purchase decisions. Specifically, since the change frequency of the fair exchange rate is faster, the method and the device can provide the latest fair exchange rate of a plurality of corresponding exchange periods aiming at the target electronic resource pair (such as USDCNY, USDHKD or USDKRW), so that a more detailed, comprehensive and accurate exchange rate change curve is drawn, and enterprises can be helped to judge the exchange rate price of the specific exchange period when the enterprises need to purchase and exchange. As another example, in a cross-border money transfer service, where an enterprise wishes to subscribe to the rate signal of a target electronic resource pair, a user may perform money transfer activities when the current day market's fair rate reaches the most recent 7 or 15 day optimal rate. Specifically, the method and the system can subscribe to a plurality of exchange rate providing objects, and the plurality of exchange rate providing objects provide the fair exchange rate for the target electronic resource pair based on the push mode of the stream exchange rate, so that enterprises can feel the change of the exchange rate in a finer granularity, and a better fair exchange rate is obtained. For example, a large amount of fair exchange rate is also needed in the third party payment mechanism to measure and calculate the exchange rate price of different electronic resource pairs (including the fluctuation rate calculation of the exchange rate price), so that the exchange rate change condition of the foreign exchange transaction market is perceived, and the operation strategy is timely adjusted. Then, based on the updated fair exchange rate with relatively comprehensive and relatively high accuracy in the above embodiment, the reliability of the related business transaction can be improved when the updated fair exchange rate is applied to the indication signal used as the business transaction in the specific business scenario, including but not limited to the above.
Wherein, the third party payment mechanism shown in fig. 6: the network payment mode of the transaction payment platform which is connected with a bank payment settlement system is provided by an independent mechanism with a certain strength and credit guarantee and adopting a mode of signing with each big bank. In the third party payment mode, after the buyer selects and purchases goods in the goods transaction platform, the buyer uses an account provided by the third party payment mechanism to pay the electronic resources (namely, the buyer pays a certain amount of electronic resources to the third party payment mechanism), and the third party payment mechanism informs the seller of the payment of the resources, requests the seller to send goods, and the like; after receiving the commodity, checking the commodity and confirming the commodity, the buyer informs the third party payment mechanism to pay the electronic resource (namely, the third party payment mechanism transfers a certain amount of electronic resource paid by the buyer to the account of the seller).
In the embodiment of the application, the exchange rate price update information and the expiration date update information of the object provided by different exchange rates can be subscribed at the same time, and the information is converted into the event message after standardized processing, so that the fair exchange rate is driven to be updated. When receiving exchange rate updating information of a target electronic resource pair, updating exchange rate prices of the target electronic resource pair in different delivery deadlines according to the existing expiration date sub-information; when receiving the update information of the expiration date of the target electronic resource pair, the exchange rate price of the target electronic resource pair at different exchange periods can be obtained according to the exchange rate price information of the existing T+2 exchange period, so that a comprehensive fair exchange rate is obtained. Further, when the fair exchange rate is updated, the activity degree of the electronic resource pair is determined, and the fair exchange rate of some electronic resource pairs of non-active types can be updated through the cross calculation between the resource pairs.
The foregoing details of the method according to the embodiment of the present application are set forth in detail, so that, in order to better implement the foregoing solutions of the embodiments of the present application, correspondingly, an apparatus according to the embodiment of the present application is provided below, and next, in combination with the foregoing information processing solution provided by the embodiment of the present application, a corresponding description is provided for a related apparatus of the embodiment of the present application.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application. As shown in fig. 7, the information processing apparatus 700 can be applied to the computer device (terminal device or server) mentioned in the foregoing embodiment. Note that each unit in the information processing apparatus 700 shown in fig. 7 may be configured by combining each unit into one or several other units, or some unit(s) may be configured by splitting into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present application. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present application, the information processing apparatus 700 may also include other units, and in practical applications, these functions may also be implemented with assistance of other units, and may be implemented by cooperation of a plurality of units.
Specifically, the information processing apparatus 700 may be a computer program (including program code) running in a computer device, for example, the information processing apparatus 700 is an application software; the information processing apparatus 700 may be used to perform the corresponding steps in the information processing method provided in the embodiment of the present application. The information processing apparatus 700 includes:
an obtaining unit 701, configured to obtain target rate update information provided for a target electronic resource pair, where the target rate update information is determined according to rate update information provided by at least one subscribed rate providing object;
a processing unit 702, configured to determine an information type of the target exchange rate update information;
the processing unit 702 is further configured to update the fair exchange rate of the target electronic resource pair according to the determined information type, so as to obtain an updated fair exchange rate of the target electronic resource pair;
wherein the updated fair rate includes the rate price of the target electronic resource for different delivery deadlines; if the determined information type is the first type, determining exchange rate prices of the target electronic resource pair at different delivery deadlines according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type.
In one possible implementation, the target exchange rate update information is obtained via a message event bus; the method comprises the steps that exchange rate update information sent by at least one exchange rate providing object can be obtained from a message event bus, and each exchange rate update information is obtained after standardized processing;
wherein, in the process of obtaining exchange rate update information through standardization processing, the method comprises the following steps: and classifying any exchange rate update information to be processed, and carrying out standardization processing according to a standardized format corresponding to the information type determined after the classification processing to obtain the exchange rate update information.
In one possible implementation manner, the information label is added after classifying any exchange rate update information to be processed, wherein the information label comprises a price information label or a skip point sub-label; the processing unit 702 determines the information type of the target exchange rate update information for performing the following operations:
acquiring an information tag of the target exchange rate update information, and if the information tag is a price information tag, determining that the information type of the target exchange rate update information is a first type;
if the information label is the expiration date sub-label, determining that the information type of the target exchange rate update information is a second type.
In one possible implementation, the target exchange rate update information includes a first type of target price update information or a second type of target expiration point update information;
the target price update information includes at least: any one or more of a first tag field, a resource pair type field, a buy price field, a sell price field, a delivery deadline field, and an update timestamp field;
the update information of the target expiration date point at least comprises: any one or more of a second tag field, a resource pair type field, a first drop point sub-field, a second drop point sub-field, and an update timestamp field;
the target delivery deadline stored in the delivery deadline field is T+2, a first drop point sub-field is used for storing a first buying drop point and a first selling drop point of the T+1 delivery deadline, a second drop point sub-field is used for storing a second buying drop point and a second selling drop point of the T+2 delivery deadline, and T is a positive integer.
In one possible implementation manner, the processing unit 702 updates the fair exchange rate of the target electronic resource pair according to the determined information type, so as to obtain the updated fair exchange rate of the target electronic resource pair, and is configured to perform the following operations:
If the determined information type is the first type, acquiring reference falling-period point information of a second type;
and updating the fair exchange rate of the target electronic resource pair according to the first type of target price updating information and the second type of reference expiration date information to obtain the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, the updated fair exchange rate includes: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline;
the processing unit 702 updates the fair exchange rate of the target electronic resource pair according to the first type of target price update information and the second type of reference expiration date information to obtain the updated fair exchange rate of the target electronic resource pair, and the method comprises any one or two of the following steps:
determining the exchange rate price of the target electronic resource to the T+1 delivery deadline according to the target price updating information and the content stored in the second drop point sub-field in the reference drop point sub-information;
and determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first exchange point subfield in the reference exchange point subfield.
In one possible implementation, the exchange rate price includes a buy price and a sell price; the processing unit 702 determines, according to the target price update information and the content stored in the second falling-period point subfield in the reference falling-period point subfield information, a rate price of the target electronic resource for the delivery deadline t+1, for performing the following operations:
if the second selling-out period point stored in the second falling period point sub-field in the reference falling period point sub-information is larger than the second buying-in falling period point, determining the buying price of the target electronic resource in the T+1 delivery period according to the content stored in the buying price field in the target price updating information and the second selling-out period point; determining the selling price of the target electronic resource for the delivery period of T+1 according to the content stored in the selling price field in the target price updating information and the second buying expiration date; or,
if the second selling-out period point stored in the second period-out period point sub-field in the reference period-out period point sub-information is smaller than the second buying-in period-out point, determining the buying price of the target electronic resource in the T+1 cut period according to the content stored in the buying price field in the target price updating information and the second buying-in period-out point; and determining the selling price of the target electronic resource for the delivery deadline of T+1 according to the content stored in the selling price field in the target price updating information and the second selling period-falling point.
In one possible implementation manner, the processing unit 702 updates the fair exchange rate of the target electronic resource pair according to the determined information type, so as to obtain the updated fair exchange rate of the target electronic resource pair, and is configured to perform the following operations:
if the determined information type is the second type, acquiring the reference exchange rate price information of the first type;
and updating the fair exchange rate of the target electronic resource pair according to the target expiration date sub-information of the second type and the reference exchange rate price information of the first type to obtain the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, the updated fair exchange rate includes: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline; t is a positive integer; the reference exchange rate price information includes an exchange rate price for a t+2 delivery deadline;
the processing unit 702 updates the fair exchange rate of the target electronic resource pair according to the second type of target expiration date sub-information and the first type of reference exchange rate price information to obtain the updated fair exchange rate of the target electronic resource pair, and the method comprises any one or two of the following steps:
Determining the exchange rate price of the target electronic resource for the delivery deadline of T+1 according to the reference exchange rate price information and the content stored in the second exchange period point sub-field in the target exchange period sub-information;
and determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first exchange point sub-field in the target exchange point sub-information.
In one possible implementation, the target pair of electronic resources includes a first electronic resource and a second electronic resource; the processing unit 702 is further configured to perform the following operations:
acquiring the activity degree of a target electronic resource pair, and if the activity degree is greater than or equal to a preset degree threshold, acquiring the fair exchange rate of a reference electronic resource pair, wherein the reference electronic resource pair is a resource pair comprising a first electronic resource or a second electronic resource;
and acquiring the fair exchange rate of the crossed electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, if the reference pair of electronic resources includes a first electronic resource and a third electronic resource, then the cross pair of electronic resources includes a second electronic resource and a third electronic resource;
The processing unit 702 obtains the fair exchange rate of the crossed electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair, and is used for executing the following operations:
determining the exchange rate ratio between the exchange rate price of the target electronic resource pair at the target delivery deadline and the exchange rate price of the reference electronic resource pair at the target delivery deadline according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair;
and determining the exchange rate price of the crossed electronic resource pair at the target delivery deadline according to the exchange rate ratio.
The information processing device provided by the embodiment of the application acquires target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to exchange rate update information provided by at least one subscribed exchange rate providing object; and determining the information type of the target exchange rate update information, and updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair. The updated fair exchange rate comprises exchange rate prices at different exchange periods, and if the determined information type is the first type, the exchange rate price of the target electronic resource pair at the different exchange periods is determined according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type. Therefore, the method and the device can subscribe a plurality of exchange rate providing objects aiming at the target electronic resource pair, and provide richer and comprehensive exchange rate updating information by the plurality of exchange rate providing objects, so that the acquired latest exchange rate updating information is more accurate and reliable; in addition, the exchange rate price of the target electronic resource at different delivery deadlines can be determined according to the latest exchange rate updating information, so that a more comprehensive fair exchange rate is provided.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 800 is configured to perform the steps performed by the computer device in the foregoing method embodiment, where the computer device 800 includes: one or more processors 810; one or more input devices 820, one or more output devices 830, and a memory 840. The processor 810, input device 820, output device 830, and memory 840 are connected by a bus 850. The processor 810 (or CPU (Central Processing Unit, central processing unit)) is a processing core of a computer device, where the processor 810 is adapted to implement one or more program instructions, and in particular to load and execute the one or more program instructions to implement the flow of the information processing method shown in fig. 3, 4 and 5. In addition, the memory 840 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, at least one memory located remotely from the aforementioned processor. The memory 840 provides storage space for storing an operating system of the content playback device. And in the memory space is also used for storing a computer program comprising program instructions adapted to be invoked and executed by a processor for performing the steps of the information processing method of the present application. In addition, memory 840 may be used to store rate update information pushed by individual rate providing objects in the message event bus.
In particular, the memory 840 is configured to store a computer program comprising program instructions, and the processor 810 is configured to invoke the program instructions stored in the memory 840 to perform the following operations:
acquiring target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to the exchange rate update information provided by at least one subscribed exchange rate providing object;
determining the information type of the target exchange rate update information;
updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair;
wherein the updated fair rate includes the rate price of the target electronic resource for different delivery deadlines; if the determined information type is the first type, determining exchange rate prices of the target electronic resource pair at different delivery deadlines according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type.
In one possible implementation, the target exchange rate update information is obtained via a message event bus; the method comprises the steps that exchange rate update information sent by at least one exchange rate providing object can be obtained from a message event bus, and each exchange rate update information is obtained after standardized processing;
Wherein, in the process of obtaining exchange rate update information through standardization processing, the method comprises the following steps: and classifying any exchange rate update information to be processed, and carrying out standardization processing according to a standardized format corresponding to the information type determined after the classification processing to obtain the exchange rate update information.
In one possible implementation manner, the information label is added after classifying any exchange rate update information to be processed, wherein the information label comprises a price information label or a skip point sub-label; the processor 810 determines the information type of the target exchange rate update information for performing the following operations:
acquiring an information tag of the target exchange rate update information, and if the information tag is a price information tag, determining that the information type of the target exchange rate update information is a first type;
if the information label is the expiration date sub-label, determining that the information type of the target exchange rate update information is a second type.
In one possible implementation, the target exchange rate update information includes a first type of target price update information or a second type of target expiration point update information;
the target price update information includes at least: any one or more of a first tag field, a resource pair type field, a buy price field, a sell price field, a delivery deadline field, and an update timestamp field;
The update information of the target expiration date point at least comprises: any one or more of a second tag field, a resource pair type field, a first drop point sub-field, a second drop point sub-field, and an update timestamp field;
the target delivery deadline stored in the delivery deadline field is T+2, a first drop point sub-field is used for storing a first buying drop point and a first selling drop point of the T+1 delivery deadline, a second drop point sub-field is used for storing a second buying drop point and a second selling drop point of the T+2 delivery deadline, and T is a positive integer.
In one possible implementation, the processor 810 updates the fair exchange rate of the target electronic resource pair according to the determined information type, to obtain an updated fair exchange rate of the target electronic resource pair, and is configured to perform the following operations:
if the determined information type is the first type, acquiring reference falling-period point information of a second type;
and updating the fair exchange rate of the target electronic resource pair according to the first type of target price updating information and the second type of reference expiration date information to obtain the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, the updated fair exchange rate includes: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline;
The processor 810 updates the fair exchange rate of the target electronic resource pair according to the first type of target price update information and the second type of reference expiration date information to obtain the updated fair exchange rate of the target electronic resource pair, and the method comprises any one or two of the following steps:
determining the exchange rate price of the target electronic resource to the T+1 delivery deadline according to the target price updating information and the content stored in the second drop point sub-field in the reference drop point sub-information;
and determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first exchange point subfield in the reference exchange point subfield.
In one possible implementation, the exchange rate price includes a buy price and a sell price; the processor 810 determines a rate price of the target electronic resource for the delivery deadline at t+1 based on the target price update information and the content stored in the second drop point subfield in the reference drop point subfield, for performing the following operations:
if the second selling-out period point stored in the second falling period point sub-field in the reference falling period point sub-information is larger than the second buying-in falling period point, determining the buying price of the target electronic resource in the T+1 delivery period according to the content stored in the buying price field in the target price updating information and the second selling-out period point; determining the selling price of the target electronic resource for the delivery period of T+1 according to the content stored in the selling price field in the target price updating information and the second buying expiration date; or,
If the second selling-out period point stored in the second period-out period point sub-field in the reference period-out period point sub-information is smaller than the second buying-in period-out point, determining the buying price of the target electronic resource in the T+1 cut period according to the content stored in the buying price field in the target price updating information and the second buying-in period-out point; and determining the selling price of the target electronic resource for the delivery deadline of T+1 according to the content stored in the selling price field in the target price updating information and the second selling period-falling point.
In one possible implementation, the processor 810 updates the fair exchange rate of the target electronic resource pair according to the determined information type, to obtain an updated fair exchange rate of the target electronic resource pair, and is configured to perform the following operations:
if the determined information type is the second type, acquiring the reference exchange rate price information of the first type;
and updating the fair exchange rate of the target electronic resource pair according to the target expiration date sub-information of the second type and the reference exchange rate price information of the first type to obtain the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, the updated fair exchange rate includes: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline; t is a positive integer; the reference exchange rate price information includes an exchange rate price for a t+2 delivery deadline;
The processor 810 updates the fair exchange rate of the target electronic resource pair according to the second type of target expiration date sub-information and the first type of reference exchange rate price information to obtain an updated fair exchange rate of the target electronic resource pair, and the method comprises any one or two of the following steps:
determining the exchange rate price of the target electronic resource for the delivery deadline of T+1 according to the reference exchange rate price information and the content stored in the second exchange period point sub-field in the target exchange period sub-information;
and determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first exchange point sub-field in the target exchange point sub-information.
In one possible implementation, the target pair of electronic resources includes a first electronic resource and a second electronic resource; the processor 810 is also configured to perform the following operations:
acquiring the activity degree of a target electronic resource pair, and if the activity degree is greater than or equal to a preset degree threshold, acquiring the fair exchange rate of a reference electronic resource pair, wherein the reference electronic resource pair is a resource pair comprising a first electronic resource or a second electronic resource;
and acquiring the fair exchange rate of the crossed electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair.
In one possible implementation, if the reference pair of electronic resources includes a first electronic resource and a third electronic resource, then the cross pair of electronic resources includes a second electronic resource and a third electronic resource;
the processor 810 obtains the fair rate of the crossed electronic resource pair according to the fair rate of the reference electronic resource pair and the updated fair rate of the target electronic resource pair, and is configured to perform the following operations:
determining the exchange rate ratio between the exchange rate price of the target electronic resource pair at the target delivery deadline and the exchange rate price of the reference electronic resource pair at the target delivery deadline according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair;
and determining the exchange rate price of the crossed electronic resource pair at the target delivery deadline according to the exchange rate ratio.
The information processing device provided by the embodiment of the application acquires target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to exchange rate update information provided by at least one subscribed exchange rate providing object; and determining the information type of the target exchange rate update information, and updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair. The updated fair exchange rate comprises exchange rate prices at different exchange periods, and if the determined information type is the first type, the exchange rate price of the target electronic resource pair at the different exchange periods is determined according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource for different delivery deadlines according to the reference information of the first type. Therefore, the method and the device can subscribe a plurality of exchange rate providing objects aiming at the target electronic resource pair, and provide richer and comprehensive exchange rate updating information by the plurality of exchange rate providing objects, so that the acquired latest exchange rate updating information is more accurate and reliable; in addition, the exchange rate price of the target electronic resource at different delivery deadlines can be determined according to the latest exchange rate updating information, so that a more comprehensive fair exchange rate is provided.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer storage medium, and the computer storage medium stores a computer program, where the computer program includes program instructions, when executed by a processor, can perform the method in the corresponding embodiment, and therefore, a detailed description will not be given here. For technical details not disclosed in the embodiments of the computer storage medium related to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed on one computer device or executed on multiple computer devices at one site or distributed across multiple sites and interconnected by a communication network.
According to one aspect of the present application, there is provided a 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, so that the computer device can perform the method in the foregoing corresponding embodiment, and therefore, a detailed description will not be given here.
It will be understood by those skilled in the art that implementing all or part of the above-described methods in the embodiments may be implemented by a computer program for instructing relevant hardware, and the above-described program may be stored in a computer readable storage medium, and the program may include the steps of the embodiments of the above-described methods when executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (15)

1. An information processing method, characterized by comprising:
acquiring target exchange rate update information provided for a target electronic resource pair, wherein the target exchange rate update information is determined according to exchange rate update information provided by at least one subscribed exchange rate providing object;
determining the information type of the target exchange rate update information;
updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair;
Wherein the updated fair rate comprises a rate price of the target electronic resource for different delivery deadlines; if the determined information type is the first type, determining exchange rate prices of the target electronic resource pair at different delivery deadlines according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource pair at different delivery deadlines according to the reference information of the first type.
2. The method of claim 1 wherein the target exchange rate update information is obtained via a message event bus; the method comprises the steps that exchange rate update information sent by at least one exchange rate providing object can be obtained from the message event bus, and each exchange rate update information is obtained after standardized processing;
wherein, in the process of obtaining exchange rate update information through standardization processing, the method comprises the following steps: and classifying any exchange rate update information to be processed, and carrying out standardization processing according to a standardized format corresponding to the information type determined after the classification processing to obtain the exchange rate update information.
3. The method of claim 2, wherein information tags are added after classifying any exchange rate update information to be processed, and the information tags include price information tags or expiration date sub-tags; the determining the information type of the target exchange rate update information comprises the following steps:
Acquiring an information tag of the target exchange rate update information, and if the information tag is a price information tag, determining that the information type of the target exchange rate update information is a first type;
and if the information label is a drop sub-label, determining that the information type of the target exchange rate update information is a second type.
4. The method of claim 3, wherein the target exchange rate update information comprises a first type of target price update information or a second type of target expiration date update information;
the target price update information at least comprises: any one or more of a first tag field, a resource pair type field, a buy price field, a sell price field, a delivery deadline field, and an update timestamp field;
the target expiration date point update information at least comprises: any one or more of a second tag field, a resource pair type field, a first drop point sub-field, a second drop point sub-field, and an update timestamp field;
the target delivery deadline stored in the delivery deadline field is T+2, the first drop point sub-field is used for storing a first buying drop point and a first selling drop point of the T+1 delivery deadline, the second drop point sub-field is used for storing a second buying drop point and a second selling drop point of the T+2 delivery deadline, and T is a positive integer.
5. The method of claim 4, wherein updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair comprises:
if the determined information type is the first type, acquiring reference falling-period point information of a second type;
and updating the fair exchange rate of the target electronic resource pair according to the first type of target price updating information and the second type of reference expiration date sub-information to obtain the updated fair exchange rate of the target electronic resource pair.
6. The method of claim 5, wherein the updated fair exchange rate comprises: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline;
the updating process is performed on the fair exchange rate of the target electronic resource pair according to the target price updating information of the first type and the reference expiration date information of the second type to obtain the updated fair exchange rate of the target electronic resource pair, and the updating process comprises any one or two of the following steps:
determining the exchange rate price of the target electronic resource to the T+1 delivery deadline according to the target price updating information and the content stored in the second drop point sub-field in the reference drop point sub-information;
And determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first drop point sub-field in the reference drop point sub-information.
7. The method of claim 6, wherein the exchange rate prices include a buy price and a sell price; the determining the exchange rate price of the target electronic resource for the delivery deadline at T+1 according to the target price updating information and the content stored in the second drop point sub-field in the reference drop point sub-information comprises the following steps:
if the second selling-out period point stored in the second period-out period point sub-field in the reference period-out period point sub-information is larger than the second buying-in period-out point, determining the buying price of the target electronic resource in the T+1 delivery period according to the content stored in the buying price field in the target price updating information and the second selling-out period-out point; determining the selling price of the target electronic resource for the T+1 delivery period according to the content stored in the selling price field in the target price updating information and the second buying expiration date; or,
If the second selling-out period point stored in the second period-out period point sub-field in the reference period-out period point sub-information is smaller than the second buying-in period-out point, determining the buying price of the target electronic resource in the T+1 cut period according to the content stored in the buying price field in the target price updating information and the second buying-in period-out point; and determining the selling price of the target electronic resource for the T+1 delivery period according to the content stored in the selling price field in the target price updating information and the second selling period-losing point.
8. The method of claim 4, wherein updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair comprises:
if the determined information type is the second type, acquiring the reference exchange rate price information of the first type;
and updating the fair exchange rate of the target electronic resource pair according to the target expiration date sub-information of the second type and the reference exchange rate price information of the first type to obtain the updated fair exchange rate of the target electronic resource pair.
9. The method of claim 8, wherein the updated fair exchange rate comprises: either or both of the exchange rate price for the t+1 delivery deadline and the exchange rate price for the t+0 delivery deadline; t is a positive integer; the reference exchange rate price information comprises an exchange rate price of a T+2 delivery deadline;
the updating process is performed on the fair exchange rate of the target electronic resource pair according to the target expiration date sub-information of the second type and the reference exchange rate price information of the first type to obtain the updated fair exchange rate of the target electronic resource pair, and the updating process comprises any one or two of the following steps:
determining the exchange rate price of the target electronic resource pair at the T+1 delivery deadline according to the reference exchange rate price information and the content stored in the second exchange rate subfield in the target exchange rate subfield information;
and determining the exchange rate price of the target electronic resource to the T+0 delivery deadline according to the price updating information of the T+1 delivery deadline and the content stored in the first drop point subfield in the target drop point subfield.
10. The method of any of claims 1-9, wherein the target pair of electronic resources comprises a first electronic resource and a second electronic resource; the method further comprises the steps of:
Acquiring the activity degree of the target electronic resource pair, and if the activity degree is greater than or equal to a preset degree threshold, acquiring the fair exchange rate of a reference electronic resource pair, wherein the reference electronic resource pair is a resource pair comprising the first electronic resource or the second electronic resource;
and acquiring the fair exchange rate of the crossed electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair.
11. The method of claim 10, wherein if the reference pair of electronic resources includes a first electronic resource and a third electronic resource, the cross pair of electronic resources includes a second electronic resource and a third electronic resource;
the obtaining the fair exchange rate of the cross electronic resource pair according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair comprises the following steps:
determining the exchange rate ratio between the exchange rate price of the target electronic resource pair at the target delivery deadline and the exchange rate price of the reference electronic resource pair at the target delivery deadline according to the fair exchange rate of the reference electronic resource pair and the updated fair exchange rate of the target electronic resource pair;
And determining the exchange rate price of the crossed electronic resource pair at the target delivery deadline according to the exchange rate ratio.
12. An information processing apparatus, characterized by comprising:
an acquisition unit configured to acquire target rate update information provided for a target pair of electronic resources, the target rate update information being determined according to rate update information provided by at least one subscribed rate providing object;
a processing unit, configured to determine an information type of the target exchange rate update information;
the processing unit is further used for updating the fair exchange rate of the target electronic resource pair according to the determined information type to obtain the updated fair exchange rate of the target electronic resource pair;
wherein the updated fair rate comprises a rate price of the target electronic resource for different delivery deadlines; if the determined information type is the first type, determining exchange rate prices of the target electronic resource pair at different delivery deadlines according to the reference information of the second type; or if the determined information type is the second type, determining the exchange rate price of the target electronic resource pair at different delivery deadlines according to the reference information of the first type.
13. A computer device, comprising: a memory device and a processor;
a memory in which one or more computer programs are stored;
processor for loading the one or more computer programs for implementing the information processing method according to any one of claims 1-11.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program adapted to be loaded by a processor and to perform the information processing method according to any one of claims 1-11.
15. A computer program product, characterized in that the computer program product comprises a computer program adapted to be loaded by a processor and to perform the information processing method according to any of claims 1-11.
CN202211155522.XA 2022-09-21 2022-09-21 Information processing method, device, medium, product and information processing apparatus Pending CN117785891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211155522.XA CN117785891A (en) 2022-09-21 2022-09-21 Information processing method, device, medium, product and information processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211155522.XA CN117785891A (en) 2022-09-21 2022-09-21 Information processing method, device, medium, product and information processing apparatus

Publications (1)

Publication Number Publication Date
CN117785891A true CN117785891A (en) 2024-03-29

Family

ID=90387926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211155522.XA Pending CN117785891A (en) 2022-09-21 2022-09-21 Information processing method, device, medium, product and information processing apparatus

Country Status (1)

Country Link
CN (1) CN117785891A (en)

Similar Documents

Publication Publication Date Title
JP6599021B2 (en) Method and system for recording point-to-point transaction processing
US20180268483A1 (en) Programmable asset systems and methods
CN110458562B (en) Bill reimbursement method, device and equipment and computer storage medium
US20190108586A1 (en) Data ingestion systems and methods
CN106254543A (en) Distributed interconnection Network and Finance Network based on cloud computing framework borrows method and system
US20230394337A1 (en) Systems and methods for projecting data trends
US20140129400A1 (en) Electronic payment processing system
CN111198873A (en) Data processing method and device
CN111311277B (en) Bill processing method and device based on block chain network and related equipment
CN110599273B (en) Data processing method, data processing device, node equipment and storage medium
US20220114580A1 (en) Tokenized energy settlements application
US20200074415A1 (en) Collateral optimization systems and methods
CN112258306B (en) Account information checking method, device, electronic equipment and storage medium
CN112991054B (en) Electric futures contract design method based on block chain
CN113034275B (en) Management system and method based on block chain network and terminal equipment
CN111209337A (en) Financial report generation system, method, device, equipment and medium based on block chain
KR20140107030A (en) Method, system and non-transitory computer-readable recording medium for supporting securities lending and borrowing transaction by using address book
US20190156416A1 (en) Risk and liquidity management systems and methods
CN116383592A (en) Real-time computing and analyzing system and method based on Amazon finance
CN117785891A (en) Information processing method, device, medium, product and information processing apparatus
CN108932615A (en) A kind of digital asset method of commerce, system and computer readable storage medium
CN111882436B (en) Data processing method, device and equipment based on block chain
CN109087201A (en) Data processing method, server and the storage medium of virtual resource
US11334948B2 (en) Computer-based platforms configured to administer software objects designed to allow users to administer bundles of digital assets and methods of use thereof
KR102072278B1 (en) Method for vertual currency secured loan financial technology service and apparatus thereof

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