Exchange rate dynamic acquisition method and device based on cross-border business
By automatically obtaining and persisting the exchange rate data provided by the bank open platform on the data side and providing target exchange rate data according to the requests of the business side, the problem of inaccurate and untimely maintenance of exchange rate data is solved, and the accuracy and timeliness of exchange rate data are improved. reduces the amount of customer investment and consultation.
Patent Information
- Application Number
- CN202411549418.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, manual maintenance exchange rate data is inaccurate and timely, resulting in capital losses; different dimensions of exchange rates are required in different business scenarios, and manual maintenance is large and inefficient.
When receiving a task processing request sent by the dispatcher on the data side, acquiring instructions are generated and sent to the bank open platform to obtain the corresponding day exchange rates for all foreign exchanges and perform durability processing; when the business side sends an exchange rate to obtain the exchange rate, the data The end obtains the target exchange rate data from the persistent exchange rate data and sends it to the service end.
It improves the accuracy and timeliness of exchange rate data, and automatically pulling exchange rates reduces the cost of manually maintaining exchange rate data, reduces customer capital loss problems, reduces customer exchange rate consultations, and improves customer satisfaction.
Smart Images

Figure CN119477505A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of exchange rate information processing, and in particular to a method and device for dynamically acquiring exchange rates based on cross-border business. Background Art
[0002] Cross-border business involves multi-currency business issues. Different currencies and different business scenarios will use exchange rates of different dimensions.
[0003] Currently, the exchange rate is obtained manually and maintained manually.
[0004] However, manual maintenance of exchange rate data is inaccurate and untimely, which can easily lead to capital losses. Different business scenarios require exchange rates of different dimensions, and manual maintenance is labor-intensive and inefficient. Summary of the invention
[0005] In view of the above problems, the present application is proposed to provide a method and device for dynamically acquiring exchange rates based on cross-border business to overcome the above problems or at least partially solve the above problems, including:
[0006] A method for dynamically acquiring exchange rates based on cross-border business, the method involving a business end, a scheduling end, a data end and a bank open platform, the method comprising:
[0007] When the data end receives the task processing request sent by the scheduling end, the data end generates an acquisition instruction according to the task processing request, and sends the acquisition instruction to the bank open platform; wherein the bank open platform is used to obtain the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rates corresponding to all foreign currencies to the data end;
[0008] The data terminal performs persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain exchange rate data corresponding to each foreign currency;
[0009] When the data end receives the exchange rate acquisition request sent by the service end, the data end acquires target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the service end.
[0010] Furthermore, the step of acquiring the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and sending the daily exchange rates corresponding to all foreign currencies to the data terminal includes:
[0011] The data terminal sends the acquisition instruction to the open interface of the bank open platform;
[0012] When the bank interface receives the acquisition instruction, the data terminal receives the daily exchange rates corresponding to all the foreign currencies sent by the bank open platform through the open interface.
[0013] Furthermore, the step of performing persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain exchange rate data corresponding to each foreign currency includes:
[0014] When the data terminal receives the exchange rate of the day, the data terminal performs data preprocessing on the exchange rate of the day to generate processed data;
[0015] The data end determines the key fields of the processed data according to the processed data and a preset database;
[0016] The data end generates an information table for storing the key field in the preset database according to the key field;
[0017] The data end generates a database transaction according to the information table;
[0018] The data end writes the current day's exchange rate into the information table according to the database transaction to generate the exchange rate data.
[0019] The embodiment of the present invention also discloses a method for dynamically acquiring exchange rates based on cross-border business, the method involving a business end, a scheduling end, a data end and a bank open platform, and the method includes:
[0020] The scheduling end generates an acquisition task according to a preset time;
[0021] The scheduling end generates a task processing request according to the acquired task, and sends the task processing request to the data end.
[0022] The embodiment of the present invention also discloses a method for dynamically acquiring exchange rates based on cross-border business, the method involving a business end, a scheduling end, a data end and a bank open platform, and the method includes:
[0023] The business end generates an exchange rate acquisition task according to preset business requirements;
[0024] The business end generates an exchange rate acquisition request according to the exchange rate acquisition task, and sends the exchange rate acquisition request to the data end;
[0025] When the business end receives the target exchange rate data sent by the data end, the business end distributes the target exchange rate data to a target system corresponding to the preset business requirement.
[0026] The embodiment of the present invention further discloses a device for dynamically acquiring exchange rates based on cross-border business, the device involving a business end, a scheduling end, a data end and a bank open platform, and the device includes:
[0027] A first sending module, configured to generate an acquisition instruction according to the task processing request sent by the scheduling end when the data end receives the task processing request, and send the acquisition instruction to the bank open platform; wherein the bank open platform is configured to acquire the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rates corresponding to all foreign currencies to the data end;
[0028] A first processing module, configured for the data end to perform persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain exchange rate data corresponding to each foreign currency;
[0029] The second sending module is used for, when the data end receives the exchange rate acquisition request sent by the business end, the data end obtains target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the business end.
[0030] The embodiment of the present invention further discloses a device for dynamically acquiring exchange rates based on cross-border business, the device involving a business end, a scheduling end, a data end and a bank open platform, and the device includes:
[0031] A first generating module, used for the scheduling end to generate an acquisition task according to a preset time;
[0032] The third sending module is used for the scheduling end to generate a task processing request according to the acquired task, and send the task processing request to the data end.
[0033] The embodiment of the present invention further discloses a device for dynamically acquiring exchange rates based on cross-border business, the device involving a business end, a scheduling end, a data end and a bank open platform, and the device includes:
[0034] A second generating module is used for the business end to generate an exchange rate acquisition task according to preset business requirements;
[0035] A fourth sending module, configured for the business end to generate an exchange rate acquisition request according to the exchange rate acquisition task, and send the exchange rate acquisition request to the data end;
[0036] The first allocation module is used for allocating the target exchange rate data to a target system corresponding to the preset business requirement when the business end receives the target exchange rate data sent by the data end.
[0037] An embodiment of the present invention also discloses a computer device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the method for dynamically obtaining exchange rates based on cross-border business as described above are implemented.
[0038] An embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for dynamically obtaining exchange rates based on cross-border business as described above are implemented.
[0039] This application has the following advantages:
[0040] In the embodiments of the present application, compared with the prior art that "manual maintenance of exchange rate data is inaccurate and untimely, which can easily lead to asset losses; different business scenarios require exchange rates of different dimensions, and manual maintenance workload is large and inefficient", the present application provides a solution of "a method for dynamically acquiring exchange rates based on cross-border business", specifically: "When the data end receives the task processing request sent by the scheduling end, the data end generates an acquisition instruction according to the task processing request, and sends the acquisition instruction to the bank open platform; wherein the bank open platform is used to obtain the daily exchange rate corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rate corresponding to all foreign currencies to the data end; the data end performs persistent processing on the daily exchange rate corresponding to all foreign currencies to obtain the exchange rate data corresponding to each foreign exchange; when the data end receives the exchange rate acquisition request sent by the business end, the data end obtains the target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the business end". Through the "data end", the problems of "inaccurate and untimely manual maintenance of exchange rate data, which can easily lead to capital loss; different business scenarios require exchange rates of different dimensions, and the workload of manual maintenance is large and inefficient" were solved, achieving the effect of "improving the accuracy and timeliness of exchange rate data; automatically pulling exchange rates reduces the cost of manual maintenance of exchange rate data; reducing customers' capital loss problems, reducing customer inquiries on exchange rate issues, and improving customer satisfaction". BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1This is a flowchart of a method for dynamically acquiring exchange rates based on cross-border business provided in one embodiment of the present application;
[0043] Figure 2 This is a flowchart of a method for dynamically acquiring exchange rates based on cross-border business provided in one embodiment of the present application;
[0044] Figure 3 This is a flowchart of a method for dynamically acquiring exchange rates based on cross-border business provided in one embodiment of the present application;
[0045] Figure 4 This is a structural block diagram of a device for dynamically acquiring exchange rates based on cross-border business provided in one embodiment of the present application;
[0046] Figure 5 This is a structural block diagram of a device for dynamically acquiring exchange rates based on cross-border business provided in one embodiment of the present application;
[0047] Figure 6 This is a structural block diagram of a device for dynamically acquiring exchange rates based on cross-border business provided in one embodiment of the present application;
[0048] Figure 7 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the objects, features and advantages of the present application more obvious and understandable, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0050] Reference Figure 1 , showing a flowchart of a method for dynamically acquiring exchange rates based on cross-border business provided in an embodiment of the present application;
[0051] A method for dynamically acquiring exchange rates based on cross-border business, the method involving a business end, a scheduling end, a data end and a bank open platform, the method comprising:
[0052] S110, when the data end receives the task processing request sent by the scheduling end, the data end generates an acquisition instruction according to the task processing request, and sends the acquisition instruction to the bank open platform; wherein the bank open platform is used to obtain the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rates corresponding to all foreign currencies to the data end;
[0053] S120, the data terminal performs persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain exchange rate data corresponding to each foreign currency;
[0054] S130. When the data end receives the exchange rate acquisition request sent by the service end, the data end acquires target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the service end.
[0055] In the embodiments of the present application, compared with the prior art that "manual maintenance of exchange rate data is inaccurate and untimely, which can easily lead to asset losses; different business scenarios require exchange rates of different dimensions, and manual maintenance workload is large and inefficient", the present application provides a solution of "a method for dynamically acquiring exchange rates based on cross-border business", specifically: "When the data end receives the task processing request sent by the scheduling end, the data end generates an acquisition instruction according to the task processing request, and sends the acquisition instruction to the bank open platform; wherein the bank open platform is used to obtain the daily exchange rate corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rate corresponding to all foreign currencies to the data end; the data end performs persistent processing on the daily exchange rate corresponding to all foreign currencies to obtain the exchange rate data corresponding to each foreign exchange; when the data end receives the exchange rate acquisition request sent by the business end, the data end obtains the target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the business end". Through the "data end", the problems of "inaccurate and untimely manual maintenance of exchange rate data, which can easily lead to capital loss; different business scenarios require exchange rates of different dimensions, and the workload of manual maintenance is large and inefficient" were solved, achieving the effect of "improving the accuracy and timeliness of exchange rate data; automatically pulling exchange rates reduces the cost of manual maintenance of exchange rate data; reducing customers' capital loss problems, reducing customer inquiries on exchange rate issues, and improving customer satisfaction".
[0056] Next, a method for dynamically acquiring exchange rates based on cross-border business in this exemplary embodiment will be further described.
[0057] It should be noted that foreign exchange refers to the flow of currencies between countries and the exchange of one country's currency into another country's currency to settle international creditor's rights and debts. It is the abbreviation of international exchange.
[0058] It should be noted that the spot purchase price refers to the price at which the bank buys the foreign currency spot from the customer, and is used when the customer converts the foreign currency spot he holds into RMB (settlement of foreign exchange).
[0059] It should be noted that the cash purchase price refers to the price at which a bank buys foreign currency cash from customers, and is used when customers exchange their foreign currency cash into RMB (exchange settlement).
[0060] It should be noted that the spot selling price refers to the price at which a bank sells foreign currency spot to a customer, and is used when a customer converts the RMB he holds into foreign currency spot (selling foreign exchange).
[0061] It should be noted that the cash selling price refers to the price at which a bank sells foreign currency cash to customers, and is used when customers exchange the RMB they hold into foreign currency cash (selling foreign exchange).
[0062] It should be noted that the Bank of China conversion price is a term in foreign exchange speculation. The Bank of China conversion price is equivalent to the benchmark price. If there is no benchmark price, the Bank of China converts the middle price by itself. The Bank of China conversion rate is the middle price used internally by the Bank of China and has no effect on general customers. It is mainly used for conversion between currencies during internal accounting, and is also used for internal closing of foreign exchange purchases to calculate the profit and loss of the business.
[0063] In one embodiment of the present invention, the step of acquiring the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and sending the daily exchange rates corresponding to all foreign currencies to the data terminal includes:
[0064] The data terminal sends the acquisition instruction to the open interface of the bank open platform;
[0065] When the bank interface receives the acquisition instruction, the data terminal receives the daily exchange rates corresponding to all the foreign currencies sent by the bank open platform through the open interface.
[0066] It should be noted that the bank open platform refers to the Bank of China. The task scheduling system periodically triggers the master data system to obtain exchange rate data from the Bank of China interface and persist it in the system database.
[0067] As an example, the data end sends an acquisition instruction to the open interface of the Bank of China, and the open interface obtains the daily exchange rates corresponding to all foreign currencies according to the received acquisition instruction.
[0068] In a specific implementation, the exchange rate data is obtained from the Bank of China interface.
[0069] In one embodiment of the present invention, the step of performing persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain exchange rate data corresponding to each foreign currency includes:
[0070] When the data terminal receives the exchange rate of the day, the data terminal performs data preprocessing on the exchange rate of the day to generate processed data;
[0071] The data end determines the key fields of the processed data according to the processed data and a preset database;
[0072] The data end generates an information table for storing the key field in the preset database according to the key field;
[0073] The data end generates a database transaction according to the information table;
[0074] The data end writes the current day's exchange rate into the information table according to the database transaction to generate the exchange rate data.
[0075] It should be noted that after receiving the daily exchange rates of all foreign exchange currencies returned by the bank, the data end will first parse these daily exchange rates. The parsing process includes confirming whether the data is complete, accurate and in the expected format. At the same time, the data will be preliminarily sorted, such as classifying the daily exchange rates according to currency pairs (such as USD / RMB, EUR / RMB, etc.) for subsequent processing and storage.
[0076] It should be noted that the data terminal will establish a connection with the preset database. This preset database is specifically used to store exchange rate data, including historical exchange rate information and current exchange rate information. After connecting to the preset database, the data terminal will check the current status of the preset database, such as whether there is a mismatch in the table structure, whether the preset database connection is normal, and other issues, and prepare to write data to the preset database.
[0077] It should be noted that once the data end confirms that the data parsing and the preset database connection are correct, it will start writing the parsed processed data into the preset database. This process is usually implemented through SQL statements or the API provided by the preset database. At the same time, in order to optimize the subsequent data query speed, the data end will also create indexes for the processed data in the preset database, such as indexing by currency pairs, dates, and other fields.
[0078] It should be noted that after the processed data is written into the preset database, the data end will also perform data verification and consistency checks. This process includes checking whether the written processed data is consistent with the original data, whether there are problems such as data loss or duplication. If the processed data is found to be inconsistent or has problems, the data end will perform corresponding processing, such as re-requesting data, correcting erroneous data, etc.
[0079] It should be noted that when all processed data is successfully written to the preset database and has been verified and checked for consistency, the data end will mark the task as completed and record relevant log information. These log information include the task processing time, processing results, possible problems, etc., to facilitate subsequent troubleshooting and performance optimization.
[0080] As an example, after receiving the exchange rate of the day returned by the bank's open platform, the data end first performs data preprocessing. This includes verifying the integrity of the data, that is, checking whether there are missing exchange rates of the day, accuracy, that is, checking whether the exchange rate value is within a reasonable range, and format consistency, that is, ensuring that all data follows the same format standard; if errors or inconsistencies are found in the data preprocessing stage, the data end will perform data cleaning operations; data cleaning operations include correcting incorrect exchange rate values, deleting duplicate data records, or filling missing data; the data end maps the cleaned processed data to the corresponding fields in the preset database; this usually involves classifying the processed data according to key fields such as currency pairs and dates, and preparing to insert them into specific tables in the preset database; before actual data persistence, the data end needs to establish a connection with the preset database and start a database transaction. This ensures that if any errors occur during the data persistence process, all executed database operations can be rolled back to maintain data consistency; in the context of the database transaction, the data end writes the processed data to the corresponding table in the preset database. This is usually achieved by executing SQL INSERT or UPDATE statements. If the preset database supports batch insert operations, the data end may choose to insert multiple processing data at one time to improve efficiency. After the data is successfully persisted to the preset database, the data end may create indexes for the information tables in the preset database according to business needs to speed up subsequent data queries. In addition, other performance optimization measures for the preset database can also be considered, such as adjusting the table structure, optimizing query statements, etc. Finally, the data end will commit the database transaction and record the log information related to this data persistence operation. This log information may include the start time, end time, success or failure status, exchange rate data involved, etc. This information is very important for subsequent troubleshooting, performance monitoring, and auditing.
[0081] In a specific implementation, after receiving the daily exchange rate information corresponding to all foreign currencies from the open interface of the Bank of China, the data end first performs data verification; this includes checking the integrity of the data (ensuring that all expected exchange rate information has been received), accuracy (verifying whether the exchange rate value is within a reasonable range and has no abnormal fluctuations), and timeliness of the data (confirming that the data is the latest exchange rate of the day); if the data verification passes, the data end will preprocess the received exchange rate information. This may include data format conversion (such as converting data in JSON or XML format to a format acceptable to the database), data cleaning (removing unnecessary fields or information), and data mapping (mapping the exchange rate information to the corresponding fields in the database table structure); the data end establishes a connection with the database and prepares for data persistence operations. This includes selecting the correct database instance, confirming the validity of the database connection, and creating or updating the database table structure as needed (such as adding new exchange rate data columns, adjusting indexes, etc.). In the context of the database connection, the data end writes the preprocessed exchange rate information into the corresponding table of the database. This usually involves executing a SQL INSERT statement (for new data) or an UPDATE statement (for existing data that needs to be updated). To ensure the integrity and consistency of the data, the data end may use database transactions to manage this series of operations. After the exchange rate information is persisted, the data end may need to index the database table to improve the efficiency of subsequent data queries. This includes creating or updating indexes (such as indexes based on currency pairs, dates, and other fields), and performing necessary query optimizations (such as adjusting query statements, using caches, etc.). After the data persistence operation is completed, the data end will commit the database transaction to ensure that all changes have been successfully applied to the database. At the same time, the data end will record log information related to this data persistence operation, including the start time, end time, amount of data involved, success, etc. of the operation. These log information are crucial for subsequent troubleshooting, performance monitoring, and auditing. In some cases, the data end may also need to synchronize the newly persisted exchange rate data to other systems or components (such as the business end, cache system, etc.) and notify related systems or components to update the data. This can be achieved through message queues, API calls, or other synchronization mechanisms. Through the above steps, the data end can ensure that the daily exchange rate obtained from the Bank of China interface is accurately and efficiently persisted in the system database, providing reliable and timely exchange rate information support for the business end; through such a persistence processing process, the data end can ensure that the daily exchange rates corresponding to all foreign currencies are accurately stored in the database for subsequent query and use by the business end.
[0082] Reference Figure 2 , showing a flowchart of a method for dynamically acquiring exchange rates based on cross-border business provided in an embodiment of the present application;
[0083] A method for dynamically acquiring exchange rates based on cross-border business, the method involving a business end, a scheduling end, a data end and a bank open platform, the method comprising:
[0084] The scheduling end generates an acquisition task according to a preset time;
[0085] The scheduling end generates a task processing request according to the acquired task, and sends the task processing request to the data end.
[0086] It should be noted that the preset time refers to a specific time point.
[0087] As an example, an acquisition task is generated every day according to a preset time, a task processing request is generated by the acquisition task, and the request is sent to the data end.
[0088] Reference Figure 3 , showing a flowchart of a method for dynamically acquiring exchange rates based on cross-border business provided in an embodiment of the present application;
[0089] A method for dynamically acquiring exchange rates based on cross-border business, the method involving a business end, a scheduling end, a data end and a bank open platform, the method comprising:
[0090] The business end generates an exchange rate acquisition task according to preset business requirements;
[0091] The business end generates an exchange rate acquisition request according to the exchange rate acquisition task, and sends the exchange rate acquisition request to the data end;
[0092] When the business end receives the target exchange rate data sent by the data end, the business end distributes the target exchange rate data to a target system corresponding to the preset business requirement.
[0093] As an example, the business end distributes the corresponding target exchange rate data to the corresponding business personnel according to business needs.
[0094] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0095] Reference Figure 4 , showing a structural block diagram of a device for dynamically acquiring exchange rates based on cross-border business provided by an embodiment of the present application;
[0096] A device for dynamically acquiring exchange rates based on cross-border business, characterized in that the device involves a business end, a scheduling end, a data end and a bank open platform, and the device includes:
[0097] A first sending module 410 is used for, when the data end receives the task processing request sent by the scheduling end, the data end generates an acquisition instruction according to the task processing request, and sends the acquisition instruction to the bank open platform; wherein the bank open platform is used to obtain the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rates corresponding to all foreign currencies to the data end;
[0098] The first processing module 420 is used for the data end to perform persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain exchange rate data corresponding to each foreign currency;
[0099] The second sending module 430 is used for, when the data end receives the exchange rate acquisition request sent by the business end, the data end obtains target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the business end.
[0100] In one embodiment of the present invention, the first sending module 410 includes:
[0101] A first sending submodule, used for the data terminal to send the acquisition instruction to the open interface of the bank open platform;
[0102] The second sending submodule is used for, when the bank interface receives the acquisition instruction, the data end receives the daily exchange rates corresponding to all the foreign currencies sent by the bank open platform through the open interface.
[0103] In one embodiment of the present invention, the first processing module 420 includes:
[0104] A first generating submodule, configured to, when the data terminal receives the exchange rate of the day, pre-process the exchange rate of the day to generate processed data;
[0105] A first determination submodule, configured for the data end to determine a key field of the processed data according to the processed data and a preset database;
[0106] A second generating submodule, configured for the data end to generate an information table for storing the key field in the preset database according to the key field;
[0107] A third generation submodule, used for the data end to generate a database transaction according to the information table;
[0108] The fourth generating submodule is used for the data end to write the current day exchange rate into the information table according to the database transaction to generate the exchange rate data.
[0109] Reference Figure 5, showing a structural block diagram of a device for dynamically acquiring exchange rates based on cross-border business provided by an embodiment of the present application;
[0110] A device for dynamically acquiring exchange rates based on cross-border business, the device involves a business end, a scheduling end, a data end and a bank open platform, and the device includes:
[0111] A first generating module, used for the scheduling end to generate an acquisition task according to a preset time;
[0112] The third sending module is used for the scheduling end to generate a task processing request according to the acquired task, and send the task processing request to the data end.
[0113] Reference Figure 6 , showing a structural block diagram of a device for dynamically acquiring exchange rates based on cross-border business provided by an embodiment of the present application;
[0114] A device for dynamically acquiring exchange rates based on cross-border business, the device involves a business end, a scheduling end, a data end and a bank open platform, and the device includes:
[0115] A second generating module is used for the business end to generate an exchange rate acquisition task according to preset business requirements;
[0116] A fourth sending module, configured for the business end to generate an exchange rate acquisition request according to the exchange rate acquisition task, and send the exchange rate acquisition request to the data end;
[0117] The first allocation module is used for allocating the target exchange rate data to a target system corresponding to the preset business requirement when the business end receives the target exchange rate data sent by the data end.
[0118] Reference Figure 7 , showing a computer device of a method for dynamically acquiring exchange rates based on cross-border business of the present invention, which may specifically include the following:
[0119] The computer device 12 is in the form of a general-purpose computing device, and the components of the computer device 12 may include but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0120] The bus 18 represents one or more of several types of bus 18 structures, including a memory bus 18 or memory controller, a peripheral bus 18, an accelerated graphics port, a processor or a local bus 18 using any of a variety of bus 18 architectures. These architectures include, by way of example, but are not limited to, an Industry Standard Architecture (ISA) bus 18, a Micro Channel Architecture (MAC) bus 18, an Enhanced ISA bus 18, an Audio Video Electronics Standards Association (VESA) local bus 18, and a Peripheral Component Interconnect (PCI) bus 18.
[0121] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0122] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, which are configured to perform the functions of various embodiments of the present invention.
[0123] A program / utility 40 having a set (at least one) of program modules 42 may be stored in, for example, a memory, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules 42, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0124] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, cameras, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs)), wide area networks (WANs), and / or public networks (e.g., the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 7 Not shown, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.
[0125] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, for example, implementing a method for dynamically acquiring exchange rates based on cross-border business provided in an embodiment of the present invention.
[0126] That is, when the processing unit 16 executes the program, the following is achieved: when the data terminal receives the task processing request sent by the scheduling terminal, the data terminal generates an acquisition instruction according to the task processing request, and sends the acquisition instruction to the bank open platform; wherein the bank open platform is used to obtain the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rates corresponding to all foreign currencies to the data terminal; the data terminal performs persistent processing on the daily exchange rates corresponding to all foreign currencies to obtain the exchange rate data corresponding to each foreign exchange; when the data terminal receives the exchange rate acquisition request sent by the business terminal, the data terminal obtains the target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the business terminal.
[0127] In an embodiment of the present invention, the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, a method for dynamically obtaining an exchange rate based on cross-border business as provided in all embodiments of the present application is implemented:
[0128] That is, when the program is executed by the processor, it is implemented as follows: when the data end receives the task processing request sent by the scheduling end, the data end generates an acquisition instruction according to the task processing request, and sends the acquisition instruction to the bank open platform; wherein the bank open platform is used to obtain the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rates corresponding to all foreign currencies to the data end; the data end performs persistent processing on the daily exchange rates corresponding to all foreign currencies to obtain the exchange rate data corresponding to each foreign exchange; when the data end receives the exchange rate acquisition request sent by the business end, the data end obtains the target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the business end.
[0129] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device.
[0130] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0131] The computer program code for performing the operation of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
[0132] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0133] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0134] The above is a detailed introduction to a method and device for dynamically obtaining exchange rates based on cross-border business provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for dynamically acquiring exchange rates based on cross-border business, characterized in that: The method involves a business end, a scheduling end, a data end and a bank open platform, and the method includes: When the data end receives the task processing request sent by the scheduling end, the data end generates an acquisition instruction according to the task processing request, and sends the acquisition instruction to the bank open platform; wherein the bank open platform is used to obtain the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rates corresponding to all foreign currencies to the data end; The data terminal performs persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain exchange rate data corresponding to each foreign currency; When the data end receives the exchange rate acquisition request sent by the service end, the data end acquires target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the service end.
2. The method according to claim 1, characterized in that The step of acquiring the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and sending the daily exchange rates corresponding to all foreign currencies to the data terminal includes: The data terminal sends the acquisition instruction to the open interface of the bank open platform; When the bank interface receives the acquisition instruction, the data terminal receives the daily exchange rates corresponding to all the foreign currencies sent by the bank open platform through the open interface.
3. The method according to claim 1, characterized in that The step of performing persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain the exchange rate data corresponding to each foreign currency includes: When the data terminal receives the exchange rate of the day, the data terminal performs data preprocessing on the exchange rate of the day to generate processed data; The data end determines the key fields of the processed data according to the processed data and a preset database; The data end generates an information table for storing the key field in the preset database according to the key field; The data end generates a database transaction according to the information table; The data end writes the current day's exchange rate into the information table according to the database transaction to generate the exchange rate data.
4. A method for dynamically acquiring exchange rates based on cross-border business, characterized in that: The method involves a business end, a scheduling end, a data end and a bank open platform, and the method includes: The scheduling end generates an acquisition task according to a preset time; The scheduling end generates a task processing request according to the acquired task, and sends the task processing request to the data end.
5. A method for dynamically acquiring exchange rates based on cross-border business, characterized in that: The method involves a business end, a scheduling end, a data end and a bank open platform, and the method includes: The business end generates an exchange rate acquisition task according to preset business requirements; The business end generates an exchange rate acquisition request according to the exchange rate acquisition task, and sends the exchange rate acquisition request to the data end; When the business end receives the target exchange rate data sent by the data end, the business end distributes the target exchange rate data to a target system corresponding to the preset business requirement.
6. A device for dynamically acquiring exchange rates based on cross-border business, characterized in that: The device involves a business end, a scheduling end, a data end and a bank open platform, and the device includes: A first sending module, configured to generate an acquisition instruction according to the task processing request sent by the scheduling end when the data end receives the task processing request, and send the acquisition instruction to the bank open platform; wherein the bank open platform is configured to acquire the daily exchange rates corresponding to all foreign currencies according to the acquisition instruction, and send the daily exchange rates corresponding to all foreign currencies to the data end; A first processing module, configured for the data end to perform persistent processing on the daily exchange rates corresponding to all the foreign currencies to obtain exchange rate data corresponding to each foreign currency; The second sending module is used for, when the data end receives the exchange rate acquisition request sent by the business end, the data end obtains target exchange rate data from the exchange rate data corresponding to each foreign exchange according to the exchange rate acquisition request, and sends the target exchange rate data to the business end.
7. A device for dynamically acquiring exchange rates based on cross-border business, characterized in that: The device involves a business end, a scheduling end, a data end and a bank open platform, and the device includes: A first generating module, used for the scheduling end to generate an acquisition task according to a preset time; The third sending module is used for the scheduling end to generate a task processing request according to the acquired task, and send the task processing request to the data end.
8. A device for dynamically acquiring exchange rates based on cross-border business, characterized in that: The device involves a business end, a scheduling end, a data end and a bank open platform, and the device includes: A second generating module is used for the business end to generate an exchange rate acquisition task according to preset business requirements; A fourth sending module, configured for the business end to generate an exchange rate acquisition request according to the exchange rate acquisition task, and send the exchange rate acquisition request to the data end; The first allocation module is used for allocating the target exchange rate data to a target system corresponding to the preset business requirement when the business end receives the target exchange rate data sent by the data end.
9. A computer device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 5 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.