CN113837883B - Precious metal transaction data management method, precious metal transaction data management device, computer equipment and storage medium - Google Patents

Precious metal transaction data management method, precious metal transaction data management device, computer equipment and storage medium Download PDF

Info

Publication number
CN113837883B
CN113837883B CN202111317606.4A CN202111317606A CN113837883B CN 113837883 B CN113837883 B CN 113837883B CN 202111317606 A CN202111317606 A CN 202111317606A CN 113837883 B CN113837883 B CN 113837883B
Authority
CN
China
Prior art keywords
target
transaction
data
currency
noble metal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111317606.4A
Other languages
Chinese (zh)
Other versions
CN113837883A (en
Inventor
曹折波
徐浩
李伟
张楠楠
杨琳
田圃森
杜水华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111317606.4A priority Critical patent/CN113837883B/en
Publication of CN113837883A publication Critical patent/CN113837883A/en
Application granted granted Critical
Publication of CN113837883B publication Critical patent/CN113837883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0206Price or cost determination based on market factors

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Artificial Intelligence (AREA)
  • Game Theory and Decision Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Technology Law (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application relates to the technical field of data analysis, in particular to a precious metal transaction data management method, a precious metal transaction data management device, computer equipment and a storage medium, which are used for solving the problem that convenience of a precious metal transaction process cannot be guaranteed. The method comprises the following steps: acquiring precious metal transaction data to be processed, and extracting an initial precious metal currency pair corresponding to the precious metal transaction data to be processed; if the initial noble metal currency pair is not matched with the preset reference noble metal currency pair, carrying out data splitting processing on the noble metal transaction data to be processed based on a pre-stored data splitting strategy to obtain target noble metal open data and target currency open data; and in the transaction record set, the obtained target noble metal exposure data and the target currency exposure data are stored as newly added transaction records.

Description

Precious metal transaction data management method, precious metal transaction data management device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of data analysis technologies, and in particular, to a method and apparatus for managing precious metal transaction data, a computer device, and a storage medium.
Background
With the continuous development of financial technology, more and more financial platforms can provide noble metal transaction services. Because of the diversification of culture, the currencies are rich and varied, and the financial platform cannot comprehensively provide the noble metal data corresponding to all the currencies, and generally only one noble metal data corresponding to one currency is provided, for example, the unit price of the noble metal is provided in the form of dollars on the financial platform.
However, since the currency of each place is different from the currency provided on the financial platform, the management of the precious metal historical transaction data is usually performed in the form of the local currency, and when the precious metal transaction is performed each time, a series of conversion processes such as currency exchange and the like are performed according to the precious metal historical transaction data, and then a new precious metal transaction plan is determined, so that the precious metal transaction can be performed on the financial platform. Therefore, the conventional precious metal transaction management method cannot guarantee the convenience of the precious metal transaction process.
Disclosure of Invention
The embodiment of the application provides a precious metal transaction data management method, a precious metal transaction data management device, computer equipment and a storage medium, which are used for solving the problem that convenience of a precious metal transaction process cannot be guaranteed.
In a first aspect, a method for managing precious metal transaction data is provided, including:
acquiring precious metal transaction data to be processed, and extracting an initial precious metal currency pair corresponding to the precious metal transaction data to be processed, wherein the initial precious metal currency pair is used for representing an initial measurement unit of initial precious metal contained in the precious metal transaction data to be processed and an initial currency type of the initial currency;
if the initial noble metal currency pair is not matched with a preset reference noble metal currency pair, carrying out data splitting processing on the to-be-processed noble metal transaction data based on a pre-stored data splitting strategy to obtain target noble metal open data and target currency open data, wherein the target noble metal open data at least comprises target noble metal and target currency, the target noble metal and the target currency represent the initial noble metal and the initial currency respectively according to a reference metering unit and a reference currency type contained in the reference noble metal currency pair, and the target currency open data is used for representing a data conversion relation between the initial currency and the target currency;
and in the transaction record set, the obtained target noble metal exposure data and the target currency exposure data are stored as newly added transaction records.
Optionally, if the initial precious metal currency pair is not matched with the preset reference precious metal currency pair, performing data splitting processing on the precious metal transaction data to be processed based on a pre-stored data splitting policy to obtain target precious metal open data and target currency open data, including:
determining a first conversion coefficient between the initial measurement unit and the reference measurement unit, and a second conversion coefficient between the initial currency and the reference currency, based on the initial measurement unit and the initial currency, and the reference measurement unit and the reference currency;
based on the first conversion coefficient and the second conversion coefficient, respectively performing data conversion processing on the initial noble metal and the initial currency to respectively obtain a target noble metal and the target currency;
updating the precious metal transaction data to be processed based on the reference precious metal currency pair, the target precious metal and the target currency to obtain target precious metal exposure data;
and obtaining the target currency exposure data based on the second conversion factor, the initial currency and the target currency.
Optionally, after adding the transaction record in the transaction record set based on the obtained target precious metal exposure data and the target currency exposure data, the method further includes:
determining noble metal exposure revocation data and currency exposure revocation data based on the value of the target noble metal with opposite sign and the value of the target currency with opposite sign in response to the revocation operation triggered for the target noble metal exposure data and the target currency exposure data, and adding a transaction record in the transaction record set based on the obtained noble metal exposure revocation data and currency exposure revocation data;
and responding to the modification operation triggered by the target noble metal exposure data and the target currency exposure data, obtaining modified target noble metal exposure data and modified target currency exposure data, and adding a transaction record in the transaction record set based on the modified target noble metal exposure data and the modified target currency exposure data.
Optionally, after adding the transaction record in the transaction record set based on the obtained target precious metal exposure data and the target currency exposure data, the method further includes:
Responding to editing operation triggered by aiming at a monitoring interface, obtaining a target monitoring range and a target monitoring standard, wherein the target monitoring range is used for indicating screening conditions aiming at transaction records, and the target monitoring standard is used for indicating data calculation targets aiming at the transaction records;
each time when a transaction record is newly added in the transaction record set, determining whether the newly added transaction record meets the target monitoring range, and each time a first preset time interval passes, obtaining each target transaction record meeting the target monitoring range in the first preset time interval;
based on a pre-stored data calculation strategy, carrying out data calculation on the data contained in each obtained target transaction record to obtain a data calculation result meeting the target monitoring standard;
and generating a target monitoring result based on the obtained data calculation result, and presenting the obtained target monitoring result in the monitoring interface.
Optionally, for each transaction record included in the transaction record set, a transaction classification and a transaction account triggering noble metal transaction are recorded respectively, and the target monitoring range comprises a target transaction classification and a target transaction account;
Determining whether the newly added transaction records meet the target monitoring range every time the transaction records are newly added in the transaction record set, and obtaining each target transaction record meeting the target monitoring range within a first preset time interval every time the first preset time interval passes, wherein the method comprises the following steps:
determining whether the transaction classification of the newly added transaction record is the same as the target transaction classification, and whether the transaction account of the newly added transaction record is the same as the target transaction account;
if the transaction classification of the newly added transaction record is the same as the target transaction classification, and the transaction account of the newly added transaction record is the same as the target transaction account, determining that the newly added transaction record meets the target monitoring range;
and each time when a first preset time interval passes, obtaining each target transaction record based on each newly-added transaction record meeting the target monitoring range in the first preset time interval.
Optionally, the target monitoring criteria include a target net position, a target net amount, a target average price, and a target profit and loss for each noble metal money pair;
Based on a pre-stored data calculation strategy, performing data calculation on the data contained in each obtained target transaction record to obtain a data calculation result meeting the target monitoring standard, wherein the data calculation result comprises:
respectively counting the total amount of the target noble metal and the total amount of the target money aiming at the target transaction records of the same noble metal money pair in the target transaction records, and respectively obtaining the corresponding target net position and the corresponding target net amount of each noble metal money pair;
obtaining target average prices of the various noble metal currency pairs based on the ratio between the target currency total amount and the target noble metal total amount corresponding to the various noble metal currency pairs;
obtaining the market price of the noble metals corresponding to the noble metal money pairs;
obtaining target damage of the various noble metal currencies to the respective corresponding target currencies based on the total amount of the respective corresponding target currencies of the various noble metal currencies and the sum of products of the total amount of the target noble metal and the market price of the noble metal;
and taking the target net positions, the target net amounts, the target average prices and the target damage corresponding to the various noble metal currencies as data calculation results meeting the target monitoring standards.
Optionally, for each transaction record, a transaction time is recorded, where the transaction time is used to characterize a generation time of the corresponding transaction record, and the method further includes:
each time a second preset time interval passes, acquiring each transaction record to be reevaluated of the transaction time within the second preset time interval from each transaction record;
based on the data calculation strategy, carrying out data calculation on the transaction records of the same noble metal currency pair in each transaction record to be reevaluated to obtain a target reevaluation result;
and responding to the overestimation monitoring operation triggered by the monitoring interface, and presenting the target overestimation result in the monitoring interface.
Optionally, an interface state and a display time are recorded for the monitoring interface, the interface state is used for representing whether the monitoring interface is displayed, and the display time is used for representing the time when the monitoring state of the monitoring interface recorded last time is the display state;
after obtaining the target monitoring range and the target monitoring standard in response to the editing operation triggered for the monitoring interface, further comprising:
updating the interface state of the monitoring interface into a display state, and updating the display time of the monitoring interface based on the current time;
And if the display time is taken as the preset time of the starting time, receiving a display signal aiming at the monitoring interface, updating the display time based on the current time, otherwise, updating the interface state into a closed state, wherein the display signal is used for representing that the monitoring interface is being displayed.
Optionally, before presenting the obtained target monitoring result in the monitoring interface, the method further includes:
acquiring an interface state of the monitoring interface;
and if the interface state represents that the monitoring interface is in a display state, presenting the obtained target monitoring result in the monitoring interface.
In a second aspect, there is provided a precious metal transaction data management device comprising:
the acquisition module is used for: the method comprises the steps of acquiring precious metal transaction data to be processed, and extracting an initial precious metal currency pair corresponding to the precious metal transaction data to be processed, wherein the initial precious metal currency pair is used for representing an initial measurement unit of initial precious metal contained in the precious metal transaction data to be processed and an initial currency type of the initial currency;
the processing module is used for: if the initial noble metal currency pair is not matched with a preset reference noble metal currency pair, carrying out data splitting processing on the to-be-processed noble metal transaction data based on a pre-stored data splitting strategy to obtain target noble metal open data and target currency open data, wherein the target noble metal open data at least comprises target noble metal and target currency, the target noble metal and the target currency respectively represent the initial noble metal and the initial currency in a reference metering unit and a reference currency type contained in the reference noble metal currency pair, and the target currency open data is used for representing a data conversion relation between the initial currency and the target currency;
The processing module is further configured to: and in the transaction record set, the obtained target noble metal exposure data and the target currency exposure data are stored as newly added transaction records.
Optionally, the processing module is specifically configured to:
determining a first conversion coefficient between the initial measurement unit and the reference measurement unit, and a second conversion coefficient between the initial currency and the reference currency, based on the initial measurement unit and the initial currency, and the reference measurement unit and the reference currency;
based on the first conversion coefficient and the second conversion coefficient, respectively performing data conversion processing on the initial noble metal and the initial currency to respectively obtain a target noble metal and the target currency;
updating the precious metal transaction data to be processed based on the reference precious metal currency pair, the target precious metal and the target currency to obtain target precious metal exposure data;
and obtaining the target currency exposure data based on the second conversion factor, the initial currency and the target currency.
Optionally, the processing module is further configured to:
After newly adding a transaction record in a collection of transaction records based on the obtained target noble metal exposure data and target currency exposure data, determining noble metal exposure revocation data and currency exposure revocation data based on opposite sign values of the target noble metal and opposite sign values of the target currency in response to a revocation operation triggered for the target noble metal exposure data and the target currency exposure data, and newly adding a transaction record in the collection of transaction records based on the obtained noble metal exposure revocation data and currency exposure revocation data;
and responding to the modification operation triggered by the target noble metal exposure data and the target currency exposure data, obtaining modified target noble metal exposure data and modified target currency exposure data, and adding a transaction record in the transaction record set based on the modified target noble metal exposure data and the modified target currency exposure data.
Optionally, the processing module is further configured to:
after newly adding a transaction record in a transaction record set based on the obtained target noble metal exposure data and target currency exposure data, responding to an editing operation triggered by a monitoring interface, and obtaining a target monitoring range and a target monitoring standard, wherein the target monitoring range is used for indicating screening conditions for the transaction record, and the target monitoring standard is used for indicating calculation targets for the data of the transaction record;
Each time when a transaction record is newly added in the transaction record set, determining whether the newly added transaction record meets the target monitoring range, and each time a first preset time interval passes, obtaining each target transaction record meeting the target monitoring range in the first preset time interval;
based on a pre-stored data calculation strategy, carrying out data calculation on the data contained in each obtained target transaction record to obtain a data calculation result meeting the target monitoring standard;
and generating a target monitoring result based on the obtained data calculation result, and presenting the obtained target monitoring result in the monitoring interface.
Optionally, for each transaction record included in the transaction record set, a transaction classification and a transaction account triggering noble metal transaction are recorded respectively, and the target monitoring range comprises a target transaction classification and a target transaction account;
the processing module is specifically configured to:
determining whether the transaction classification of the newly added transaction record is the same as the target transaction classification, and whether the transaction account of the newly added transaction record is the same as the target transaction account;
if the transaction classification of the newly added transaction record is the same as the target transaction classification, and the transaction account of the newly added transaction record is the same as the target transaction account, determining that the newly added transaction record meets the target monitoring range;
And each time when a first preset time interval passes, obtaining each target transaction record based on each newly-added transaction record meeting the target monitoring range in the first preset time interval.
Optionally, the target monitoring criteria include a target net position, a target net amount, a target average price, and a target profit and loss for each noble metal money pair;
the processing module is specifically configured to:
respectively counting the total amount of the target noble metal and the total amount of the target money aiming at the target transaction records of the same noble metal money pair in the target transaction records, and respectively obtaining the corresponding target net position and the corresponding target net amount of each noble metal money pair;
obtaining target average prices of the various noble metal currency pairs based on the ratio between the target currency total amount and the target noble metal total amount corresponding to the various noble metal currency pairs;
obtaining the market price of the noble metals corresponding to the noble metal money pairs;
obtaining target damage of the various noble metal currencies to the respective corresponding target currencies based on the total amount of the respective corresponding target currencies of the various noble metal currencies and the sum of products of the total amount of the target noble metal and the market price of the noble metal;
And taking the target net positions, the target net amounts, the target average prices and the target damage corresponding to the various noble metal currencies as data calculation results meeting the target monitoring standards.
Optionally, for each transaction record, a transaction time is recorded, where the transaction time is used to characterize a generation time of the corresponding transaction record, and the processing module is further configured to:
each time a second preset time interval passes, acquiring each transaction record to be reevaluated of the transaction time within the second preset time interval from each transaction record;
based on the data calculation strategy, carrying out data calculation on the transaction records of the same noble metal currency pair in each transaction record to be reevaluated to obtain a target reevaluation result;
and responding to the overestimation monitoring operation triggered by the monitoring interface, and presenting the target overestimation result in the monitoring interface.
Optionally, an interface state and a display time are recorded for the monitoring interface, the interface state is used for representing whether the monitoring interface is displayed, and the display time is used for representing the time when the monitoring state of the monitoring interface recorded last time is the display state;
The processing module is further configured to:
after a target monitoring range and a target monitoring standard are obtained in response to an editing operation triggered for a monitoring interface, updating the interface state of the monitoring interface to a display state, and updating the display time of the monitoring interface based on the current time;
and if the display time is taken as the preset time of the starting time, receiving a display signal aiming at the monitoring interface, updating the display time based on the current time, otherwise, updating the interface state into a closed state, wherein the display signal is used for representing that the monitoring interface is being displayed.
Optionally, the processing module is further configured to:
acquiring an interface state of the monitoring interface before the obtained target monitoring result is presented in the monitoring interface;
and if the interface state represents that the monitoring interface is in a display state, presenting the obtained target monitoring result in the monitoring interface.
In a third aspect, there is provided a computer device comprising:
a memory for storing program instructions;
and a processor for calling program instructions stored in the memory and executing the method according to the first aspect according to the obtained program instructions.
In a fourth aspect, there is provided a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of the first aspect.
In this embodiment of the present application, after obtaining the precious metal transaction data to be processed, it may be determined, according to an initial precious metal currency pair corresponding to the precious metal transaction data to be processed, whether data splitting processing needs to be performed on the precious metal transaction data to be processed, so as to obtain target precious metal open data and target currency open data. Thus, when the initial noble metal currency pair does not match the reference noble metal currency pair, the noble metal transaction data to be processed may be saved in the transaction record set in the form of the reference noble metal currency pair. When the transaction data analysis is carried out on each transaction record according to the transaction record set, the transaction data stored in the transaction record do not need to be subjected to data conversion, so that the convenience of the transaction data analysis is improved, and the transaction convenience is higher when the noble metal transaction is carried out continuously according to the transaction data analysis result.
Further, the target noble metal open data respectively represents the initial noble metal and the initial currency contained in the noble metal transaction data to be processed by the reference measuring unit and the reference currency contained in the reference noble metal currency pair, so that when the noble metal historical transaction data management is carried out, the transaction data analysis and the transaction data management can be carried out according to the target noble metal and the target currency contained in the target noble metal open data, and the transaction is directly carried out on a financial platform according to the transaction data analysis and the transaction data management result, thereby improving the convenience of the noble metal transaction process and avoiding the data conversion process caused by the difference between the initial noble metal and the initial currency contained in each noble metal transaction data to be processed.
The target currency open data characterizes the data conversion relation between the initial currency and the target currency, so that the initial currency can be directly obtained when the transaction data management is required to be carried out by using the initial currency, and the convenience of the noble metal transaction process is improved.
Drawings
Fig. 1 is an application scenario of a precious metal transaction data management method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for managing data of precious metal transaction according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a method for managing precious metal transaction data according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram two of a method for managing precious metal transaction data according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram III of a method for managing precious metal transaction data according to an embodiment of the present application;
fig. 6 is a schematic diagram of a method for managing precious metal transaction data according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram five of a method for managing precious metal transaction data according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a structure of a precious metal transaction data management device according to an embodiment of the present disclosure;
Fig. 9 is a schematic diagram of a second structure of the precious metal transaction data management device according to the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Some of the terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
(1) Noble metal is uncovered:
noble metal openings refer to the holding positions of the transaction resulting from noble metal transaction formation. Generally, a buy transaction is scored as positive and a sell transaction is scored as negative.
(2) Precious metal spot transaction:
precious metal spot transactions refer to spot transactions where two parties to a transaction are engaged in immediate or two business days. Including the following classes of transactions: noble metal spot transaction, noble metal futures transaction, personal entity gold buying and selling transaction, account noble metal bidirectional transaction, noble metal consignment buying and buying transaction, place losing transaction, deposit money to customer transaction and exchange delay delivery transaction.
The application field of the precious metal transaction data management method provided in the embodiment of the application is briefly described below.
With the continuous development of financial technology, more and more financial platforms can provide noble metal transaction services. Because of the diversification of culture, the currencies are rich and varied, and the financial platform cannot comprehensively provide the noble metal data corresponding to all the currencies, and generally only one noble metal data corresponding to one currency is provided, for example, the unit price of the noble metal is provided in the form of dollars on the financial platform.
However, since the currency of each place is different from the currency provided on the financial platform, the management of the precious metal historical transaction data is usually performed in the form of the local currency, and when the precious metal transaction is performed each time, a series of conversion processes such as currency exchange and the like are performed according to the precious metal historical transaction data, and then a new precious metal transaction plan is determined, so that the precious metal transaction can be performed on the financial platform. Therefore, the conventional precious metal transaction management method cannot guarantee the convenience of the precious metal transaction process.
In order to solve the problem that convenience in the precious metal transaction process cannot be guaranteed, the application provides a precious metal transaction data management method. After acquiring to-be-processed precious metal transaction data, extracting an initial precious metal currency pair corresponding to the to-be-processed precious metal transaction data, wherein the initial precious metal currency pair is used for representing initial measurement units of initial precious metals contained in the to-be-processed precious metal transaction data and initial currency types of the initial currencies.
If the initial noble metal currency pair is not matched with the preset reference noble metal currency pair, carrying out data splitting processing on the noble metal transaction data to be processed based on a pre-stored data splitting strategy to obtain target noble metal open data and target currency open data, and storing the obtained target noble metal open data and target currency open data in a transaction record set as a newly added transaction record.
The target noble metal opening data at least comprises target noble metal and target currency, the target noble metal and the target currency represent initial noble metal and initial currency by reference measuring units and reference currency types contained in reference noble metal currency pairs, and the target currency opening data are used for representing data conversion relations between the initial currency and the target currency.
In this embodiment of the present application, after obtaining the precious metal transaction data to be processed, it may be determined, according to an initial precious metal currency pair corresponding to the precious metal transaction data to be processed, whether data splitting processing needs to be performed on the precious metal transaction data to be processed, so as to obtain target precious metal open data and target currency open data. Thus, when the initial noble metal currency pair does not match the reference noble metal currency pair, the noble metal transaction data to be processed may be saved in the transaction record set in the form of the reference noble metal currency pair. When the transaction data analysis is carried out on each transaction record according to the transaction record set, the transaction data stored in the transaction record do not need to be subjected to data conversion, so that the convenience of the transaction data analysis is improved, and the transaction convenience is higher when the noble metal transaction is carried out continuously according to the transaction data analysis result.
Further, the target noble metal open data respectively represents the initial noble metal and the initial currency contained in the noble metal transaction data to be processed by the reference measuring unit and the reference currency contained in the reference noble metal currency pair, so that when the noble metal historical transaction data management is carried out, the transaction data analysis and the transaction data management can be carried out according to the target noble metal and the target currency contained in the target noble metal open data, and the transaction is directly carried out on a financial platform according to the transaction data analysis and the transaction data management result, thereby improving the convenience of the noble metal transaction process and avoiding the data conversion process caused by the difference between the initial noble metal and the initial currency contained in each noble metal transaction data to be processed.
The target currency open data characterizes the data conversion relation between the initial currency and the target currency, so that the initial currency can be directly obtained when the transaction data management is required to be carried out by using the initial currency, and the convenience of the noble metal transaction process is improved.
The application scenario of the precious metal transaction data management method provided by the application is described below.
Please refer to fig. 1, which is an application scenario of the precious metal transaction data management method provided in the embodiments of the present application. The application scene comprises a client 101 and a server 102. The client 101 and the server 102 may communicate with each other by using a wired communication technology, for example, communication is performed through a connection network or a serial port line; the communication may also be performed by using a wireless communication technology, for example, bluetooth or wireless fidelity (wireless fidelity, WIFI) technologies, and the like, which is not particularly limited.
The client 101 generally refers to a device that may provide the server 102 with precious metal transaction data to be processed, for example, a terminal device, a third party application accessible by the terminal device, or a web page accessible by the terminal device, etc. Terminal devices include, but are not limited to, cell phones, computers, smart medical devices, smart appliances, and the like.
The server 102 generally refers to a device, such as a terminal device or a server, that can perform precious metal transaction data management on precious metal transaction data to be processed. Servers include, but are not limited to, cloud servers, local servers, or associated third party servers, and the like. Both the client 101 and the server 102 can adopt cloud computing to reduce occupation of local computing resources; cloud storage may also be employed to reduce the occupation of local storage resources.
As an embodiment, the client 101 and the server 102 may be the same device, and in this embodiment, the description is given by taking the case that the client 101 and the server 102 are different devices respectively.
The following describes a precious metal transaction data management method according to the embodiment of the present application specifically, taking a client 101 as a client and a server 102 as a server as an example.
Fig. 2 is a schematic flow chart of a precious metal transaction data management method according to an embodiment of the present application.
S201, acquiring precious metal transaction data to be processed, and extracting an initial precious metal currency pair corresponding to the precious metal transaction data to be processed.
The server can acquire initial transaction data firstly, then extract key field data contained in the initial transaction data, and acquire precious metal transaction data to be processed; the server may also use the obtained initial transaction data as precious metal transaction data to be processed, and the like, and is not particularly limited.
For example, the client obtains initial transaction data in response to a transaction operation triggered by the transaction object. In the initial transaction data, a variety of field data is contained. According to preset field requirement information, for example, the field requirement information comprises a transaction number, a transaction classification, a transaction state, a warehouse holding direction, initial noble metal, initial currency, noble metal unit price, an initial noble metal currency pair, an account number, a transaction object number and the like, and the server extracts key field data meeting the field requirement information in the initial transaction data to generate to-be-processed noble metal transaction data.
After obtaining the precious metal transaction data to be processed, the server may extract an initial precious metal currency pair corresponding to the precious metal transaction data to be processed. The server can extract corresponding field data according to the field contained in the precious metal transaction data to be processed, namely an initial precious metal currency pair field, and obtain an initial precious metal currency pair corresponding to the precious metal transaction data to be processed; the server can also identify the initial measurement unit of the initial noble metal and the currency type of the initial currency contained in the to-be-processed noble metal transaction data according to the to-be-processed noble metal transaction data, so as to obtain the initial noble metal currency corresponding to the to-be-processed noble metal transaction data, and the method is not particularly limited.
As one embodiment, the precious metal transaction data to be processed is mainly divided into three categories, the first category, for guest transactions, mainly refers to transactions with customers in a branch, comprising: personal entity gold buying and selling transaction, account noble metal two-way transaction, deposit money and account transaction, and transaction mode is system input transaction; the second category, self-contained or flat-plate type transaction, mainly refers to a transaction between a headquarter and a transaction opponent, and comprises: precious metal spot transaction, precious metal futures transaction, precious metal consignment buying transaction, place losing transaction, exchange delay transaction, foreign exchange spot transaction, and the transaction mode is recorded as manual input transaction; and thirdly, precious metal spot transactions split from precious metal long-term transactions, wherein the types of the transactions are precious metal spot transactions, and the transaction mode is recorded as system split transactions.
S202, if the initial noble metal currency pair is not matched with the preset reference noble metal currency pair, carrying out data splitting processing on the noble metal transaction data to be processed based on a pre-stored data splitting strategy to obtain target noble metal open data and target currency open data.
After obtaining the precious metal transaction data to be processed, and the initial precious metal currency pair, the server may match the initial precious metal currency pair with a preset reference precious metal currency pair. The reference noble metal money pair may be a preset noble metal money pair, which may be used to characterize the data format of noble metal data of various noble metals provided in the financial platform. For example, in an international financial platform, where precious metal data is provided including gold having a unit price of $100 per 1 ounce, then the reference precious metal currency corresponds to gold ounces per dollar for gold. The reference noble metal money pair may be other noble metal money pairs for uniformly managing the noble metal transaction data, and is not particularly limited.
If the initial noble metal currency pair is matched with the preset reference noble metal currency pair, the noble metal transaction data to be processed is in the form of the reference noble metal currency pair, and the data do not need to be processed, so that the noble metal transaction data to be processed can be directly stored in a transaction record set.
If the initial noble metal currency pair is not matched with the preset reference noble metal currency pair, the fact that the noble metal transaction data to be processed need to be processed into the form of the reference noble metal currency pair is indicated, unified management is facilitated, data analysis is facilitated to be directly carried out subsequently, and then follow-up noble metal transaction is carried out, then the server can carry out data splitting processing on the noble metal transaction data to be processed based on a pre-stored data splitting strategy, and target noble metal open data and target currency open data are obtained.
The process of performing data splitting processing on the precious metal transaction data to be processed based on a pre-stored data splitting strategy is described below.
After obtaining the initial noble metal coin pair, the server may determine a first conversion coefficient between the initial measurement unit and the reference measurement unit and a second conversion coefficient between the initial coin type and the reference coin type based on the initial measurement unit and the initial coin type included in the initial noble metal coin pair and the reference measurement unit and the reference coin type included in the reference noble metal coin pair.
The server may determine an association relationship between the initial measurement unit and the reference measurement unit in a first mapping relationship between pre-stored noble metal measurement units, thereby obtaining a first conversion coefficient between the initial measurement unit and the reference measurement unit. For example, the initial unit of measurement is gram and the reference unit of measurement is ounce, then in the first mapping, the correlation between gram and ounce is 1 ounce= 31.1034768 grams, and the first conversion coefficient may be expressed as ounce/gram=1/31.1034768.
The server may determine an association relationship between the initial currency and the reference currency in a second mapping relationship between the pre-stored currency totals, thereby obtaining a second conversion coefficient between the initial currency and the reference currency. For example, the initial currency is rennet and the reference currency is dollar, then in the second mapping relationship, the relationship between rennet and dollar is $ 1=7.036, and the second conversion coefficient may be expressed as dollar/rennet=1/7.036.
After obtaining the first conversion coefficient and the second conversion coefficient, the server may perform data conversion processing on the initial noble metal and the initial money, respectively, based on the first conversion coefficient and the second conversion coefficient, to obtain the target noble metal and the target money, respectively.
For example, the first conversion factor is ounces/gram = 1/31.1034768 and the initial precious metal is 100 grams, then after data conversion, the target precious metal is 100/31.1034768 ounces. The second conversion coefficient is dollar/rmb=1/7.036, the initial currency is 100 rmb, and then after the data conversion, the target currency is obtained as 100/7.034.
After obtaining the target noble metal and the target currency, the server may update the noble metal transaction data to be processed based on the reference noble metal currency pair, the target noble metal and the target currency to obtain target noble metal exposure data. For example, the server updates the initial money in the precious metal transaction data to be processed to a target money, updates the initial precious metal to the target precious metal, updates the initial precious metal money pair to a reference precious metal money, and generates target precious metal open data based on the updated precious metal transaction data to be processed.
The server may obtain target currency exposure data based on the second conversion factor, the initial currency, and the target currency. The target currency exposure data is used to characterize the initial currency and the target currency, and a second conversion factor between the initial currency and the target currency at the current transaction time.
In the following, a process of performing data splitting processing on precious metal transaction data to be processed based on a pre-stored data splitting policy will be described as an example in a specific embodiment.
For example, the precious metal transaction data to be processed is to buy 500 g gold by 185365 yuan of people's banknote, and the precious metal unit price corresponding to gold is 370.73 yuan/g currently, please refer to table 1.
TABLE 1
Wherein AUB/CNY represents an initial noble metal currency pair corresponding to the noble metal transaction data to be processed, namely gold g/RMB; XAU/USD represents a reference precious metal currency pair, i.e., gold ounces/dollar; the USD/CNY indicates a currency pair formed by the target currency and the original currency, i.e., dollars/rennet.
After the precious metal transaction data to be processed are obtained, the initial precious metal currency pair is obtained as gold grams/RMB, the initial measurement unit is determined as grams, and the initial currency type is the RMB. The reference precious metal currency pair is gold ounces/dollar, the reference unit of measurement is ounces, and the reference currency type is dollar. The server may determine the first conversion factor, i.e., ounce/gram = 1/31.1034768, from the initial unit of measure, i.e., gram, and with reference to the unit of measure, i.e., ounce. The server may determine the second conversion factor, i.e., dollar/rennet=1/7.034, based on the initial currency, i.e., rennet, and the reference currency, i.e., dollar.
The unit price of the noble metal gold is 370.73 yuan/gram, the initial noble metal contained in the noble metal transaction data to be processed is 500 grams before the data splitting processing, the initial currency is-185365.00 yuan Renminbi currency, the sign of the initial currency represents buying or selling, the buying is negative, and the selling is positive. That is, the precious metal transaction data to be processed characterizes 185365.00 yuan Renminbi to purchase 500 grams of gold at a gold unit price of 370.73 yuan/gram.
In performing the data splitting process, the server may perform a data conversion process on the initial precious metal to the target precious metal, i.e., 500 grams to 16.0745 ounces, based on the first conversion coefficient. The server may perform a data conversion process on the initial currency to a target currency, i.e., -185365.00 primordial notes to $ 26352.72, based on the second conversion factor.
After the data splitting process, the server may obtain the precious metal gold unit price in the form of a reference precious metal currency pair, i.e., 1639.32 dollars/ounce.
The server may update the precious metal transaction data to be processed based on the reference precious metal currency pair, the target precious metal and the target currency to obtain target precious metal exposure data. The server may obtain target currency exposure data based on the second conversion factor, the initial currency, and the target currency.
For another example, the precious metal transaction data to be processed is 1000 g gold to obtain 371230.00 yuan rennet coin, and the precious metal unit price corresponding to gold is 371.23 yuan/g currently, please refer to table 2.
TABLE 2
Wherein AUB/CNY represents an initial noble metal currency pair corresponding to the noble metal transaction data to be processed, namely gold g/RMB; XAU/USD represents a reference precious metal currency pair, i.e., gold ounces/dollar; the USD/CNY indicates a currency pair formed by the target currency and the original currency, i.e., dollars/rennet.
After the precious metal transaction data to be processed are obtained, the initial precious metal currency pair is obtained as gold grams/RMB, the initial measurement unit is determined as grams, and the initial currency type is the RMB. The reference precious metal currency pair is gold ounces/dollar, the reference unit of measurement is ounces, and the reference currency type is dollar. The server may determine the first conversion factor, i.e., ounce/gram = 1/31.1034768, from the initial unit of measure, i.e., gram, and with reference to the unit of measure, i.e., ounce. The server may determine the second conversion factor, i.e., dollar/rennet=1/7.036, based on the initial currency, i.e., rennet, and the reference currency, i.e., dollar.
The unit price of the noble metal gold is 371.23 yuan/gram, before the data splitting treatment, the initial noble metal contained in the noble metal transaction data to be treated is 1000 grams, the initial currency is 371230.00 yuan Renmen, the sign of the initial noble metal represents buying or selling, the buying is positive, and the selling is negative. That is, the precious metal transaction data to be processed is characterized by buying 1000 grams of gold at a gold unit price of 371.23 yuan/gram, resulting in 371230.00 yuan of Renminbi.
In performing the data splitting process, the server may perform a data conversion process on the initial precious metal to the target precious metal, i.e., -1000 grams to-32.1507 ounces, based on the first conversion coefficient. The server may perform a data conversion process on the initial currency to a target currency, i.e., 371230.00 element RMB conversion to 52761.51 dollars, based on the second conversion factor.
After the data splitting process, the server may obtain the precious metal gold unit price in the form of a reference precious metal currency pair, i.e., 1641.07 dollars/ounce.
The server may update the precious metal transaction data to be processed based on the reference precious metal currency pair, the target precious metal and the target currency to obtain target precious metal exposure data. The server may obtain target currency exposure data based on the second conversion factor, the initial currency, and the target currency.
And S203, in the transaction record set, the obtained target noble metal exposure data and the target currency exposure data are used as newly added transaction records to be stored.
After the target precious metal exposure data and the target currency exposure data are obtained, the server can save the obtained target precious metal exposure data and target currency exposure data as a new transaction record in the transaction record set.
The transaction record set user records transaction data, which can include precious metal transaction data to be processed without data splitting processing, target precious metal exposure data, target currency exposure data and the like after data splitting processing, and is not particularly limited.
In order to ensure that the precious metal transaction is completed, the obtained precious metal transaction data to be processed is recorded, and the client can send the transaction state to the server when the precious metal transaction is completed, and can feed back the transaction state to the server every time a preset time length passes, which is not particularly limited.
The server can save the obtained target noble metal open data and the target currency open data as newly added transaction records in the transaction record set when the client side determines that the transaction state is newly added after feeding back the transaction state aiming at the noble metal transaction data to be processed.
Referring to table 3, after the receiving client feeds back the transaction state for the to-be-processed noble metal transaction data, the server determines that the transaction state is "new", and if the to-be-processed noble metal transaction data does not need to be subjected to data splitting processing, the to-be-processed noble metal transaction data is stored as a new transaction record in the transaction record set.
TABLE 3 Table 3
Precious metal money pair Transaction status Noble metals Precious metal unit price Money item
AUB/CNY New addition of -1000.00 371.23 371230.00
Wherein AUB/CNY represents that the noble metal currency pair corresponding to the noble metal transaction data to be processed is gold/RMB; the precious metal transaction data to be processed contains-1000.00 g of precious metal gold, the currency RMB is 371230.00 yuan, and the unit price of the precious metal gold in the transaction is 371.23 yuan/g.
As an embodiment, the transaction status may also be "revoked" or "flushed", for example, when the target object is revoked for the transaction data corresponding to a certain transaction record, the transaction status fed back by the client to the server may be "revoked". For another example, when the target object modifies the transaction data corresponding to a transaction record, the transaction status fed back by the client to the server may be "punch-through".
As one embodiment, after the obtained target noble metal exposure data and target currency exposure data are saved as newly added transaction records in the transaction record set, if a revocation operation triggered for the target noble metal exposure data and the target currency exposure data is responded, the noble metal exposure revocation data and the currency exposure revocation data are determined based on the opposite sign values of the target noble metal and the opposite sign values of the target currency, and the transaction records are newly added in the transaction record set based on the obtained noble metal exposure revocation data and the currency exposure revocation data.
For example, referring to Table 4, in response to a revocation operation triggered for target precious metal exposure data, then the opposite sign value for the target precious metal, i.e., 1000.00, and the opposite sign value for the target currency, i.e., -371230.00, determine precious metal exposure revocation data and save the obtained precious metal exposure revocation data in a collection of transaction records as a newly added transaction record. The modification process of the target money exposure data is similar and will not be described in detail herein.
TABLE 4 Table 4
Precious metal money pair Transaction status Noble metals Precious metal unit price Money item
AUB/CNY New addition of -1000.00 371.23 371230.00
AUB/CNY Revocation 1000.00 371.23 -371230.00
If the modification operation triggered by the target noble metal exposure data and the target currency exposure data is responded, modified target noble metal exposure data and modified target currency exposure data are obtained, and a transaction record is newly added in the transaction record set based on the modified target noble metal exposure data and the modified target currency exposure data.
For another example, referring to table 5, if a modification operation triggered for the target precious metal exposure data is responded, modified target precious metal exposure data is obtained. The modified target precious metal open data contained precious metal-800.00 grams, currency 296984.00 yuan. The server determines the noble metal open revocation data based on the opposite sign value of the target noble metal and the opposite sign value of the target currency, adds the transaction record in the transaction record set, and adds the transaction record in the transaction record set based on the modified target noble metal open data. The modification process of the target money exposure data is similar and will not be described in detail herein.
TABLE 5
Precious metal money pair Transaction status Noble metals Precious metal unit price Money item
AUB/CNY New addition of -1000.00 371.23 371230.00
AUB/CNY Revocation 1000.00 371.23 -371230.00
AUB/CNY Modification of -800.00 371.23 296984.00
As one example, after obtaining the target precious metal exposure data and the target currency exposure data, the server may present different data on the monitoring interface based on each transaction data recorded in the collection of transaction records.
And responding to the editing operation triggered by aiming at the monitoring interface, obtaining a target monitoring range and a target monitoring standard, wherein the target monitoring range is used for indicating screening conditions aiming at the transaction records, and the target monitoring standard is used for indicating data calculation targets aiming at the transaction records.
For example, the target monitoring scope includes a monitoring scope for a transaction classification, which characterizes a classification of transaction data corresponding to the transaction record, and a monitoring scope for a transaction object, which characterizes an object triggering a transaction corresponding to the transaction record. The server may determine at least one transaction category or at least one transaction object to obtain a target monitoring range in response to a selection operation of the target object on the client with respect to the transaction category and the transaction object displayed in the monitoring interface. Thus, the server can screen out transaction records corresponding to the transaction classification in at least one transaction classification; the server may also screen out the transaction object as a transaction record corresponding to the transaction object in the at least one transaction object.
Referring to fig. 3, the monitoring interface includes a transaction classification and a selection area of a transaction object, wherein the transaction classification includes a plurality of selectable transaction classifications and a plurality of selectable transaction classification sets, and the number of the transaction classifications or the transaction classifications included in each transaction classification set are different; the monitoring interface also comprises a plurality of selectable transaction objects and a plurality of selectable transaction object sets, wherein the number of the transaction objects or the transaction objects contained in each transaction object set are correspondingly different.
The monitoring interface may also include a query area for transaction categories or transaction objects, where the transaction categories or transaction objects queried by the target object in the query area may only appear in the selection area. The monitoring interface may also include a "determine" button and a "cancel" button, where triggering the "determine" button may determine to filter the selected transaction category or transaction object, and triggering the "cancel" button may cancel the selection of the transaction category or transaction object.
For another example, the target monitoring range includes a monitoring range for a transaction source that characterizes a type of transaction corresponding to the transaction record and a monitoring range for a transaction style that characterizes a form of trigger record transaction data. The server may determine at least one transaction source or at least one transaction manner in response to a selection operation of the target object on the client for the transaction source and the transaction manner displayed in the monitoring interface, and obtain the target monitoring range. Therefore, the server can screen out the transaction records of which the transaction sources correspond to the transaction sources in at least one transaction source; the server may also screen out transaction records corresponding to the transaction manner in the at least one transaction manner.
Referring to fig. 4, the monitoring interface may include a transaction source and a transaction manner selection area, which includes a plurality of selectable transaction sources and a plurality of selectable transaction manners. The transaction sources may include "noble metal spot transactions", "noble metal futures transactions", "personal physical gold transactions", "account noble metal bi-directional transactions", "noble metal consignment transactions", "spot swap transactions", "deposit cash versus customer transactions", "exchange cash delay transactions", and "foreign exchange cash transactions", among others. The transaction means may include "manual entry transaction", "system entry transaction" and "system split transaction", etc.
The monitoring interface may also include a selection area for the screening dimension, including a "detail" dimension for presenting each transaction data, and a "summary" dimension for presenting statistics of all transaction data. The monitoring interface may also include a "determine" button and a "cancel" button, where triggering the "determine" button may determine to screen with the selected transaction source and transaction mode, and triggering the "cancel" button may cancel the selection of the transaction source and transaction mode.
For another example, the target monitoring criteria include a monitoring criteria for a net position and a monitoring criteria for a net amount, and after screening each transaction record, the server may perform data calculation on data included in each transaction record based on a pre-stored data calculation policy to obtain the net position and the net amount, and present the obtained net position and net amount in the monitoring interface.
Referring to FIG. 5, the monitoring interface includes a selection area of field and currency pairs, which includes a plurality of selectable fields, such as net position, net amount, average price, noble metal market price, profit-and-loss, no profit-and-loss, multiple head average price, multiple head amount, empty head amount, buy average price, buy amount, sell average price, sell amount, etc.
The money pair can be a money pair between noble metal and money or a money pair between money. For example, XAU/USD, XAG/USD, XPT/USD, AUA/CNY, AUB/CNY, AGA/CNY, PTA/CNY, au2106/CNY, ag2108/CNY, etc.
The monitoring interface may also include a "ok" button and a "cancel" button, where triggering the "ok" button may determine to filter the selected field and currency pair and triggering the "cancel" button may cancel the selection of the field and currency pair.
As one embodiment, the server may present all transaction records in the collection of transaction records that meet the target monitoring range on the monitoring interface after the target monitoring range; the server can also calculate data of all transaction records in the transaction record set based on a pre-stored data calculation strategy after obtaining the target monitoring standard, generate a target monitoring result based on the data calculation result, and present the obtained target monitoring result in a monitoring interface; the server may also screen out the transaction records meeting the target monitoring range in the transaction record set after obtaining the target monitoring range and the target monitoring standard, perform data calculation on the screened transaction records based on a pre-stored data calculation policy, generate a target monitoring result based on the data calculation result, and monitor the interface.
As an embodiment, after the server obtains the target monitoring range, the target monitoring standard, or the target monitoring range and the target monitoring standard, the server may monitor the transaction records newly added in the transaction record set in real time. Taking the example after the server obtains the target monitoring range and the target monitoring standard, the server determines whether the newly added transaction record meets the target monitoring range every time the transaction record is newly added in the transaction record set, and obtains each target transaction record meeting the target monitoring range within the first preset time interval every time the first preset time interval passes.
For example, for each transaction record included in the transaction record set, a transaction source and a transaction manner are recorded respectively, and the target monitoring range includes a target transaction source and a target transaction manner. After the client obtains the target monitoring range, the client can push the target monitoring range and the TOPIC of the monitoring interface to the server, and the server stores the received target monitoring range into the memory. And the server determines a target monitoring result according to the screening dimension.
For the case where the screening dimension is "detail," the server may query transaction records generated on the same day that have not been reevaluated for corotation and that have a push status of "not pushed. And the server screens the obtained transaction records according to the transaction source type and the transaction mode to obtain each target transaction record. The server can take the data contained in the target transaction record as a target monitoring result, and push the data to a monitoring interface in the client side for presentation according to TOPIC. After the data corresponding to the target transaction record is successfully pushed, the push state of the corresponding target transaction record is updated to be pushed. The server can also calculate data contained in each obtained target transaction record based on a pre-stored data calculation strategy, obtain a data calculation result meeting the target monitoring standard, and push the data calculation result to a monitoring interface in the client for presentation according to TOPIC (top of the Internet protocol) pen by pen as the target monitoring result.
Please refer to table 6, which is a target monitoring result when the filtering dimension is "detail".
TABLE 6
Money pair Target net position Target net amount Market price of noble metal Transaction time Transaction source
XAU/USD 10 -18691.5 1869.15 09:12:50 Precious metal spot transactions
XAG/USD -20 555.6 27.78 09:20:32 Account precious metal transactions
AUA/CNY -100 38785 388.36 10:15:06 Precious metal spot transactions
AUB/CNY 50 -19425 388.50 10:42:02 Precious metal spot transactions
au2106/CNY -5 1946550 390.28 10:50:26 Noble metal futures trading
For the case that the screening dimension is summary, the server can query transaction records which are generated on the same day and are not reevaluated, summarize and count target noble metals according to the transaction source type for each currency pair, push the summarized data to the client as target monitoring results according to TOPIC, and present the target noble metals through a monitoring interface.
Please refer to table 7, which is a target monitoring result when the filtering dimension is "summary".
TABLE 7
For another example, for each transaction record included in the collection of transaction records, a transaction classification and a transaction account that triggers a noble metal transaction are recorded, respectively, and the target monitoring range includes a target transaction classification and a target transaction account. The server determines whether the transaction classification of the newly added transaction record is the same as the target transaction classification and whether the transaction account of the newly added transaction record is the same as the target transaction account, respectively. If the transaction classification of the newly added transaction record is the same as the target transaction classification, and the transaction account of the newly added transaction record is the same as the target transaction account, determining that the newly added transaction record meets the target monitoring range. And each time when the first preset time interval passes, each target transaction record is obtained based on each newly-added transaction record meeting the target monitoring range in the first preset time interval.
And the server performs data calculation on the data contained in each obtained target transaction record based on a pre-stored data calculation strategy to obtain a data calculation result meeting the target monitoring standard. And the server generates a target monitoring result based on the obtained data calculation result and presents the obtained target monitoring result in the monitoring interface.
Referring to table 8, taking real-time monitoring as an example, each calculation policy is specific to the same precious metal currency pair, but may also be specific to other data, and the embodiment of the present application is described with reference to the same precious metal currency pair.
TABLE 8
/>
Taking the example that the target monitoring standard comprises target net positions, target net amounts, target average prices and target damage aiming at each noble metal currency pair, the process of carrying out data calculation on the data contained in each obtained target transaction record based on a pre-stored data calculation strategy to obtain a data calculation result meeting the target monitoring standard is introduced.
Aiming at the target transaction records of the same noble metal currency pair in each target transaction record, the server respectively calculates the total target noble metal amount and the total target currency amount, and respectively obtains the corresponding target net position and the corresponding target net amount of each noble metal currency pair. The server obtains target average prices of the various noble metal currency pairs based on the ratio between the target currency total amount and the target noble metal total amount corresponding to the various noble metal currency pairs.
After obtaining the market price of each corresponding noble metal money pair, the server obtains the target damage benefit of each corresponding noble metal money pair based on the total amount of each corresponding target money pair and the sum of the products of the total amount of the target noble metal and the market price of the noble metal. The server takes the corresponding target net position, target net amount, target average price and target damage of various noble metal currency pairs as data calculation results meeting target monitoring standards.
Referring to table 9, a form of target monitoring result is generated according to the data calculation result satisfying the target monitoring standard.
TABLE 9
Money pair Target net position Target average price Target net amount Market price of noble metal Target damage and benefit
XAU/USD 10 1869.15 -18691.5 1872.39 32.4
XAG/USD -20 27.78 555.6 27.66 2.4
AUA/CNY -100 387.95 38785 388.78 -83
AUB/CNY 100 388.36 -38836 389.26 90
USD/CNY 10000 6.45 -64500 6.44 -100
au2106/CNY -5 389.31 1946550 390.28 -4850
In order to ensure that the monitoring interface is still displayed in the client when the server obtains the target monitoring result and presents the target monitoring result through the client, the problem of abnormal data display and the like caused by the fact that the monitoring interface is not displayed in the client when the server presents the target monitoring result through the client is avoided, after the target monitoring range and the target monitoring standard are obtained in response to the editing operation triggered by the monitoring interface, the server can update the interface state of the monitoring interface to be a display state and update the display moment of the monitoring interface based on the current moment. And the server continuously judges whether a display signal aiming at the monitoring interface is received within a preset time length taking the display time as the starting time. If the display time is taken as the preset time of the starting time, the display time of the monitoring interface is updated based on the current time after the display signal is received, otherwise, the interface state is updated to be in a closed state, wherein the display signal is used for representing that the monitoring interface is being displayed, for example, when a target object triggers any operation in the monitoring interface, the display signal and the like can be obtained.
Therefore, the server can acquire the interface state of the monitoring interface before presenting the obtained target monitoring result in the monitoring interface, and if the interface state represents that the monitoring interface is in a display state, the obtained target monitoring result is presented in the monitoring interface. If the interface state characterizes the monitoring interface in a closed state, the target monitoring result is not presented.
For example, after the client obtains the target monitoring range and the target monitoring standard in response to the editing operation of the target object, the client pushes the TOPIC of the target monitoring range and the target monitoring standard to the server, the server saves the target monitoring range in the memory, and if the target monitoring range contains the transaction classification set or the transaction object set, the server may obtain each transaction classification in the transaction classification set or each transaction object in the transaction object set, and convert each transaction classification or each transaction object into the transaction classification list or the transaction object list. The server can also record whether the state is valid and the synchronization time of the client while maintaining the target monitoring range. If the monitoring interface in the client is closed, the client pushes the TOPIC of the monitoring interface and the target monitoring range disabled flag to the server. Meanwhile, the client also has a heartbeat mechanism, heartbeat information of the monitoring interface is pushed to the server at intervals, the server updates the synchronization time of the client, and if the synchronization time of the client exceeds 4 hours and is not updated, the target monitoring range corresponding to the TOPIC is set to be invalid.
As one example, after obtaining the target monitoring range, the server may filter out screening conditions in which the same range is characterized. The target transaction records obtained by the server according to the target monitoring range can comprise target transaction records which are generated on the same day and not yet reevaluated for the corotation, and the current latest target reevaluation result, wherein the target reevaluation result is the target transaction record which is reevaluated for the corotation.
As one embodiment, the re-estimation of the forward-turning is realized by carrying out estimated metering on noble metal by using the re-estimation price, calculating the damage amount after the re-estimation of the forward-turning, and storing the data after the re-estimation of the forward-turning as historical data for analysis and inquiry for damage and benefit conditions. The currency recorded in the transaction records can be updated by reevaluating the converted currency, and the updated transaction records are used as the basis for subsequent monitoring. The procedure for re-estimating the corotation will be described below.
In the transaction record set, transaction time is recorded for each transaction record, and the transaction time is used for representing the generation time of the corresponding transaction record. And then, each transaction record with the transaction time within the second preset time interval is obtained from each transaction record after the second preset time interval is passed and is used as each transaction record to be reevaluated. The server can continue to calculate data for the transaction records of the same noble metal currency pair in each transaction record to be reevaluated based on the data calculation strategy, and a target reevaluation result is obtained.
The server may read the target overestimation result and present the target overestimation result in the monitoring interface in response to the overestimation monitoring operation triggered for the monitoring interface. Please refer to fig. 6, which is a monitoring interface for presenting the target re-estimation result. In the monitoring interface, the target monitoring range can also be determined through editing operation, so that in the monitoring interface, a target overestimation result meeting the target monitoring range can be presented. For example, the target monitoring range includes a range for transaction classification, transaction objects, currency pairs, or transaction time, etc.
As an embodiment, taking the second preset time interval as an example of one day, the server may query the transaction records generated on the same day and not yet reevaluated for the forward and the current latest target reevaluation result, as each transaction record to be reevaluated. The transaction record generated on the same day and not yet reevaluated for the same day may be a transaction record newly generated on the same day, and the current latest target reevaluation result may be a target reevaluation result obtained after reevaluating for the same day.
The data calculation policy may be the same as or different from the data calculation policy described above for obtaining the target monitoring result, and may include both the data calculation policy described above and the data calculation policy for re-estimating the corotation, and when monitoring is performed, the data calculation policy described above is called, and when the corotation is performed, the data calculation policy described below is called, specifically without limitation.
Referring to table 10, a pre-stored form of data calculation strategies is shown, each calculation strategy is specific to the same precious metal currency pair, and other data may be used, but the embodiment of the present application is described with reference to the same precious metal currency pair as an example.
Table 10
As one embodiment, each time a target overestimation result is obtained, an identification is added to the currently obtained target overestimation result, which characterizes the target overestimation result as the latest obtained target overestimation result. Meanwhile, the transaction record which is generated on the same day and not yet reevaluated for the corotation is marked as the transaction record which is reevaluated for the corotation, the time of reevaluation can be recorded, the time of reevaluation for the corotation can be used as the mark which is reevaluated for the corotation, and the like.
As an embodiment, the monitoring interface may further display a precious metal fund cost calculation result, where the precious metal fund cost calculation result is used to represent that, according to the fund usage, at the end of each third time interval, for example, at the end of each day, according to the lending interest rate of the financial platform, an interest in the interest in receipt calculation is performed. The server may use the precious metal funds calculation as a final net damage measure for the corresponding transaction object to evaluate the transaction capabilities of the transaction object. The funds cost measurement results of the corresponding transaction objects can be saved as historical data for analysis and inquiry for funds occupation and damage and benefit.
The process of determining the result of the precious metal capital cost calculation is described below.
The precious metal capital cost calculation may include a capital occupancy metering result, a capital cost/benefit calculation, and the like. The fund occupation amount metering result comprises a common mode fund occupation amount metering result and a guarantee mode fund occupation amount metering result. The common mode fund occupation amount measurement result is suitable for non-guaranteed gold transactions, such as: precious metal spot transactions, personal physical gold buying and selling transactions, account precious metal transactions, precious metal consignment buying and buying transactions, etc. The amount of the fund occupation of the deposit pattern is suitable for the transaction of the deposit class, such as: precious metal futures trading and financial exchange delay exchange trading.
For the ordinary mode fund occupation amount measurement result, the ordinary mode fund occupation amount measurement result can count the buying initial currency and the selling initial currency for the same initial precious metal currency pair according to the initial precious metal currency pair before the data splitting processing, wherein the buying initial currency is positive, and the selling initial currency is negative. The common mode fund occupation amount measurement result can also be used for counting buying target currency, selling target currency and the like according to the reference noble metal currency pair after the data splitting treatment.
For example, for the same initial precious metal currency pair comprising two transaction records, the first transaction record is that the transaction source is account precious metal transaction, the initial precious metal currency pair is AUB/CNY, the initial precious metal is-1000 g, the initial currency is 371230 RMB, after data splitting processing is performed on XAU/USD according to the reference precious metal currency, the target precious metal is-32.1507 oz, and the target currency is 52761.51 dollars.
The second transaction record is that the transaction source is precious metal spot transaction, the initial precious metal currency pair is AUB/CNY, the initial precious metal is 200 g, the initial currency is-74592 RMB, and the transaction record is not split.
Then, the normal mode funds accounting result = initial currency of the first transaction record minus initial currency of the second transaction record, i.e., 371230 primordial-74592 primordial = 296638 primordial.
And counting the multi-head noble metal and the empty noble metal aiming at the same noble metal currency pair according to the gold-pattern fund occupation amount metering result. The server can count the multi-head noble metal and the empty noble metal according to the initial noble metal before the data splitting treatment, and can count the multi-head noble metal and the empty noble metal according to the target noble metal after the data splitting treatment.
For example, for the same noble metal currency pair comprising two transaction records, the first transaction record is that the transaction source is noble metal futures transaction, the noble metal currency pair is au2106/CNY, the holding direction is multi-head, the noble metal is 10 g, the currency is-3890000 yuan of people's currency, and the noble metal unit price is 389 yuan/g.
The second transaction record is that the transaction source is noble metal futures transaction, the noble metal currency pair is au2106/CNY, the holding direction is empty, the noble metal is-6 g, the currency is 2328000 Yuanrenzhen, and the noble metal unit price is 388 yuan/g.
When calculating the result of the fund occupation amount of the deposit in the deposit guarantee mode, the server can obtain the real-time au2106/CNY settlement price of 390 yuan/g, and the deposit guarantee proportion is 10%. Then, the server may calculate the cumulative profit-and-loss amount as (settlement price-buying precious metal unit price) ×buying precious metal+ (settlement price-selling precious metal unit price) ×selling precious metal, i.e., (390-389) ×10+ (390-388) (-6) = -2.
The server may recalculate the current day's guard occupation to (buy precious metal + sell precious metal) the settlement price the guard ratio, i.e. (10- (-6)) × 390 × 0.1=624.
Thus, the server may obtain the deposit pattern fund occupancy amount as the sum of the accumulated profit-and-loss amount and the current day deposit occupancy, i.e., 624+ (-2) =622.
For the fund cost/benefit calculation result, the server can acquire the financial platform overnight lending interest rate in real time when calculating the fund cost/benefit calculation result, and determine the fund cost/benefit calculation result according to the fund occupation amount measurement result.
As an embodiment, the client may present the precious metal funds cost calculation result in the monitoring interface in response to the query operation for the monitoring interface, and the client may send a query request to the server in response to the query operation for the monitoring interface, the server obtains the precious metal funds cost calculation result and sends it to the client, and the client presents the precious metal funds cost calculation result in the monitoring interface after receiving the precious metal funds cost calculation result.
The server can send the precious metal fund cost calculation result to the client after calculating the precious metal fund cost calculation result, and can display the precious metal fund cost calculation result on the monitoring interface when the client displays the monitoring interface; the precious metal capital cost calculation result can be presented on the monitoring interface when responding to the inquiry operation of the client, and the like, and the precious metal capital cost calculation result is not particularly limited.
As an embodiment, please refer to fig. 7, which is a monitoring interface for presenting the calculation result of the precious metal capital cost. In the monitoring interface, the target monitoring range can also be determined through editing operation, so that the noble metal fund cost calculation result meeting the target monitoring range can be presented in the monitoring interface. For example, the target monitoring range includes a range for transaction classification, transaction objects, currency pairs, or transaction time, etc.
In the embodiment of the application, the data splitting process may be to convert the noble metal transaction data in the form of, for example, the rmb into the noble metal transaction data in the form of dollars, so that the transaction object can directly perform flat-plate on the international market according to the noble metal contained in the noble metal transaction data. The target noble metal exposure data and the target currency exposure data after the data splitting processing are brought into the category of noble metal transaction data management, and are displayed in real time in a monitoring interface.
Further, the monitoring interface provides functions of real-time inquiring, monitoring and managing the precious metal transaction data, including real-time monitoring and incremental monitoring. And real-time monitoring and summarizing the purchased noble metal openings, the purchased money, the sold noble metal openings and the sold money according to the money pairs in real time, summarizing the net noble metal openings and the net money by the rolling stock, and calculating the noble metal unit price of each money pair according to the net noble metal openings and the net money. And the aggregated calculated data is filtered according to the target monitoring range, then is pushed to the client in real time, and finally is displayed by the client.
The increment monitoring comprises increment detail monitoring and increment summarizing monitoring, wherein the increment detail monitoring screens newly generated transaction data generated by noble metal transaction through selected service classification, transaction modes and the like, and then pushes the transaction data to the client in a form of per-stroke detail data in real time, and finally displays the transaction data by the client. And the increment summarizing and monitoring summarizes and counts transaction data generated by precious metal transactions occurring on the same day according to currency pairs and transaction types, and the transaction data are pushed to the client in real time and finally displayed by the client.
The precious metal reevaluation and the conversion are automatically executed by batch processing at the end of each day without manual intervention, so that the precious metal transaction data is estimated and metered according to the reevaluated precious metal market price, the damage and benefit amount after the reevaluation and the conversion is calculated, and the damage and benefit data is reserved as historical data for analysis, inquiry and use of daily damage and benefit conditions. The noble metal open overestimation needs to introduce real-time noble metal market prices, including road-through international market prices, real-time market prices of the gold exchange, market prices of futures exchanges at home and abroad, and the like.
The precious metal fund cost measurement is automatically executed by batch processing at the end of each day without manual intervention, so that the fund occupation amount is calculated according to currency, and then interest and pay calculation is carried out at the end of each day according to the lending interest rate, and the final net damage and benefit measurement of a transaction object is brought into. The capital cost measurement results are saved as historical data for analysis and inquiry of daily capital occupation and cost benefit conditions.
According to the embodiment of the application, a unified precious metal transaction data management function is realized, management efficiency is improved through centralized management, and the integrity of precious metal transaction data management is ensured. Meanwhile, multidimensional management according to transaction objects, combination of transaction staff objects, transaction classification set and the like is provided, and the management capability of noble metal transaction data is improved. Through the data splitting processing, the target noble metal open data and the target currency open data after the data splitting processing can be directly transmitted to the international market platform without manual conversion of the transaction objects.
Based on the same inventive concept, the embodiments of the present application provide a precious metal transaction data management device, which is equivalent to the server discussed above, and can implement the functions corresponding to the precious metal transaction data management method described above. Referring to fig. 8, the apparatus includes an acquisition module 801 and a processing module 802, where:
acquisition module 801: the method comprises the steps of acquiring precious metal transaction data to be processed, and extracting an initial precious metal currency pair corresponding to the precious metal transaction data to be processed, wherein the initial precious metal currency pair is used for representing initial measurement units of initial precious metals contained in the precious metal transaction data to be processed and initial currency types of the initial currencies;
Processing module 802: if the initial noble metal currency pair is not matched with the preset reference noble metal currency pair, carrying out data splitting treatment on the noble metal transaction data to be treated based on a pre-stored data splitting strategy to obtain target noble metal open data and target currency open data, wherein the target noble metal open data at least comprises target noble metal and target currency, the target noble metal and the target currency represent the initial noble metal and the initial currency respectively by a reference measurement unit and a reference currency type contained in the reference noble metal currency pair, and the target currency open data is used for representing the initial currency and the data conversion relation between the target currency;
the processing module 802 is further configured to: and in the transaction record set, the obtained target noble metal exposure data and the target currency exposure data are stored as newly added transaction records.
In one possible embodiment, the processing module 802 is specifically configured to:
determining a first conversion coefficient between the initial measurement unit and the reference measurement unit and a second conversion coefficient between the initial currency and the reference currency based on the initial measurement unit and the initial currency, and the reference measurement unit and the reference currency;
Based on the first conversion coefficient and the second conversion coefficient, respectively carrying out data conversion processing on the initial noble metal and the initial currency to respectively obtain a target noble metal and a target currency;
updating the precious metal transaction data to be processed based on the reference precious metal currency pair, the target precious metal and the target currency to obtain target precious metal open data;
target currency exposure data is obtained based on the second conversion factor, the initial currency, and the target currency.
In one possible embodiment, the processing module 802 is further configured to:
after newly adding a transaction record in the transaction record set based on the obtained target noble metal exposure data and the target currency exposure data, determining noble metal exposure revocation data and currency exposure revocation data based on the opposite sign values of the target noble metal and the opposite sign values of the target currency in response to a revocation operation triggered for the target noble metal exposure data and the target currency exposure data, and newly adding the transaction record in the transaction record set based on the obtained noble metal exposure revocation data and the currency exposure revocation data;
and responding to the modification operation triggered by the target noble metal exposure data and the target currency exposure data, obtaining modified target noble metal exposure data and modified target currency exposure data, and adding a transaction record in the transaction record set based on the modified target noble metal exposure data and the modified target currency exposure data.
In one possible embodiment, the processing module 802 is further configured to:
after a transaction record is newly added in a transaction record set based on the obtained target noble metal exposure data and the target currency exposure data, a target monitoring range and a target monitoring standard are obtained in response to an editing operation triggered by a monitoring interface, wherein the target monitoring range is used for indicating screening conditions for the transaction record, and the target monitoring standard is used for indicating data for the transaction record to calculate a target;
each time when a transaction record is newly added in the transaction record set, determining whether the newly added transaction record meets a target monitoring range, and obtaining each target transaction record meeting the target monitoring range in a first preset time interval when the first preset time interval passes;
based on a pre-stored data calculation strategy, carrying out data calculation on the data contained in each obtained target transaction record to obtain a data calculation result meeting the target monitoring standard;
and generating a target monitoring result based on the obtained data calculation result, and presenting the obtained target monitoring result in a monitoring interface.
In one possible embodiment, for each transaction record included in the transaction record set, a transaction classification and a transaction account triggering a noble metal transaction are recorded, and the target monitoring range includes a target transaction classification and a target transaction account;
The processing module 802 is specifically configured to:
determining whether the transaction classification of the newly added transaction record is the same as the target transaction classification, and whether the transaction account of the newly added transaction record is the same as the target transaction account;
if the transaction classification of the newly added transaction record is the same as the target transaction classification, and the transaction account of the newly added transaction record is the same as the target transaction account, determining that the newly added transaction record meets the target monitoring range;
and each time when the first preset time interval passes, each target transaction record is obtained based on each newly-added transaction record meeting the target monitoring range in the first preset time interval.
In one possible embodiment, the target monitoring criteria include a target net position, a target net amount, a target average price, and a target profit for each noble metal money pair;
the processing module 802 is specifically configured to:
respectively counting the total amount of the target noble metal and the total amount of the target money according to the target transaction records of the same noble metal money pair in each target transaction record, and respectively obtaining the corresponding target net position and target net amount of each noble metal money pair;
obtaining target average prices of the various noble metal currency pairs based on the ratio of the target currency total amount to the target noble metal total amount corresponding to the various noble metal currency pairs;
Obtaining the market price of each corresponding noble metal of various noble metal money pairs;
obtaining target damage of each noble metal currency pair based on the total amount of each corresponding target currency of each noble metal currency pair and the sum of products of the total amount of the target noble metal and the market price of the noble metal;
and taking the target net position, the target net amount, the target average price and the target damage corresponding to each noble metal currency pair as a data calculation result meeting the target monitoring standard.
In a possible embodiment, for each transaction record, a transaction time is recorded, and the transaction time is used to characterize the generation time of the corresponding transaction record, and the processing module 802 is further configured to:
each transaction record to be reevaluated, wherein the transaction time of each transaction record is within the second preset time interval, is obtained from each transaction record every time the second preset time interval passes;
based on a data calculation strategy, carrying out data calculation on the transaction records of the same noble metal currency pair in each transaction record to be reevaluated to obtain a target reevaluation result;
and responding to the overestimation monitoring operation triggered by the monitoring interface, and presenting a target overestimation result in the monitoring interface.
In one possible embodiment, an interface state and a display time are recorded for the monitoring interface, wherein the interface state is used for representing whether the monitoring interface is displayed, and the display time is used for representing the time when the monitoring state of the monitoring interface recorded last time is the display state;
The processing module 802 is also configured to:
after the target monitoring range and the target monitoring standard are obtained in response to the editing operation triggered by the monitoring interface, updating the interface state of the monitoring interface into a display state, and updating the display time of the monitoring interface based on the current time;
if the display time is taken as the preset time of the starting time, the display time is updated based on the current time after the display signal aiming at the monitoring interface is received, otherwise, the interface state is updated to be in a closed state, wherein the display signal is used for representing that the monitoring interface is being displayed.
In one possible embodiment, the processing module 802 is further configured to:
acquiring an interface state of a monitoring interface before the obtained target monitoring result is presented in the monitoring interface;
and if the interface state characterizes that the monitoring interface is in a display state, the obtained target monitoring result is displayed in the monitoring interface.
Based on the same inventive concept, embodiments of the present application provide a computer device, and the computer device 900 is described below.
Referring to fig. 9, the precious metal transaction data management apparatus may be run on a computer device 900, a current version and a historical version of a data storage program and application software corresponding to the data storage program may be installed on the computer device 900, and the computer device 900 includes a display unit 940, a processor 980 and a memory 920, where the display unit 940 includes a display panel 941 for displaying an interface interacted with by a user and the like.
In one possible embodiment, the display panel 941 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD) or an Organic Light-Emitting Diode (OLED) or the like.
The processor 980 is configured to read the computer program and then perform a method defined by the computer program, for example, the processor 980 reads a data storage program or a file, etc., so that the data storage program is executed on the computer device 900 and a corresponding interface is displayed on the display unit 940. Processor 980 may include one or more general-purpose processors and may also include one or more DSPs (Digital Signal Processor, digital signal processors) for performing associated operations to implement the techniques provided by the embodiments of the present application.
Memory 920 generally includes memory and external storage, and memory may be Random Access Memory (RAM), read Only Memory (ROM), CACHE memory (CACHE), and the like. The external memory can be a hard disk, an optical disk, a USB disk, a floppy disk, a tape drive, etc. The memory 920 is used to store computer programs including application programs corresponding to respective clients, etc., and other data, which may include data generated after the operating system or application programs are executed, including system data (e.g., configuration parameters of the operating system) and user data. In the embodiment of the present application, the program instructions are stored in the memory 920, and the processor 980 executes the program instructions stored in the memory 920, so as to implement any one of the precious metal transaction data management methods discussed in the previous figures.
The above-described display unit 940 is used to receive input digital information, character information, or touch operation/noncontact gestures, and to generate signal inputs related to user settings and function controls of the computer device 900, and the like. Specifically, in the embodiment of the present application, the display unit 940 may include a display panel 941. The display panel 941, such as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the display panel 941 or on the display panel 941 using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program.
In one possible embodiment, the display panel 941 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a player, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 980, and can receive commands from the processor 980 and execute them.
The display panel 941 may be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the display unit 940, the computer device 900 may also include an input unit 930, which input unit 930 may include a graphical input device 931 and other input devices 932, where the other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
In addition to the above, computer device 900 may also include a power supply 990 for powering other modules, audio circuitry 960, near field communication module 970, and RF circuitry 910. The computer device 900 may also include one or more sensors 950, such as acceleration sensors, light sensors, pressure sensors, and the like. Audio circuitry 960 may include, among other things, a speaker 961 and a microphone 962, for example, where the computer device 900 may collect a user's voice via the microphone 962, perform a corresponding operation, etc.
The number of processors 980 may be one or more, and the processors 980 and memory 920 may be coupled or may be relatively independent.
As an example, processor 980 in fig. 9 may be used to implement the functionality of acquisition module 801 and processing module 802 as in fig. 8.
As an example, the processor 980 of fig. 9 may be used to implement the functions corresponding to the servers discussed above.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (12)

1. A method of precious metal transaction data management, comprising:
Acquiring precious metal transaction data to be processed, and extracting an initial precious metal currency pair corresponding to the precious metal transaction data to be processed, wherein the initial precious metal currency pair is used for representing an initial measurement unit of initial precious metal contained in the precious metal transaction data to be processed and an initial currency type of the initial currency;
if the initial noble metal currency pair is not matched with a preset reference noble metal currency pair, carrying out data splitting processing on the to-be-processed noble metal transaction data based on a pre-stored data splitting strategy to obtain target noble metal open data and target currency open data, wherein the target noble metal open data at least comprises target noble metal and target currency, the target noble metal and the target currency represent the initial noble metal and the initial currency respectively according to a reference metering unit and a reference currency type contained in the reference noble metal currency pair, and the target currency open data is used for representing a data conversion relation between the initial currency and the target currency;
and in the transaction record set, the obtained target noble metal exposure data and the target currency exposure data are stored as newly added transaction records.
2. The method according to claim 1, wherein if the initial precious metal money pair is not matched with a preset reference precious metal money pair, performing data splitting processing on the precious metal transaction data to be processed based on a pre-stored data splitting policy to obtain target precious metal exposure data and target money exposure data, including:
determining a first conversion coefficient between the initial measurement unit and the reference measurement unit, and a second conversion coefficient between the initial currency and the reference currency, based on the initial measurement unit and the initial currency, and the reference measurement unit and the reference currency;
based on the first conversion coefficient and the second conversion coefficient, respectively performing data conversion processing on the initial noble metal and the initial currency to respectively obtain a target noble metal and the target currency;
updating the precious metal transaction data to be processed based on the reference precious metal currency pair, the target precious metal and the target currency to obtain target precious metal exposure data;
and obtaining the target currency exposure data based on the second conversion factor, the initial currency and the target currency.
3. The method of claim 1, further comprising, after adding the transaction record in the collection of transaction records based on the obtained target precious metal exposure data and the target currency exposure data:
determining noble metal exposure revocation data and currency exposure revocation data based on the value of the target noble metal with opposite sign and the value of the target currency with opposite sign in response to the revocation operation triggered for the target noble metal exposure data and the target currency exposure data, and adding a transaction record in the transaction record set based on the obtained noble metal exposure revocation data and currency exposure revocation data;
and responding to the modification operation triggered by the target noble metal exposure data and the target currency exposure data, obtaining modified target noble metal exposure data and modified target currency exposure data, and adding a transaction record in the transaction record set based on the modified target noble metal exposure data and the modified target currency exposure data.
4. A method according to any one of claims 1 to 3, further comprising, after adding a transaction record in the collection of transaction records based on the obtained target precious metal exposure data and the target currency exposure data:
Responding to editing operation triggered by aiming at a monitoring interface, obtaining a target monitoring range and a target monitoring standard, wherein the target monitoring range is used for indicating screening conditions aiming at transaction records, and the target monitoring standard is used for indicating data calculation targets aiming at the transaction records;
each time when a transaction record is newly added in the transaction record set, determining whether the newly added transaction record meets the target monitoring range, and each time a first preset time interval passes, obtaining each target transaction record meeting the target monitoring range in the first preset time interval;
based on a pre-stored data calculation strategy, carrying out data calculation on the data contained in each obtained target transaction record to obtain a data calculation result meeting the target monitoring standard;
and generating a target monitoring result based on the obtained data calculation result, and presenting the obtained target monitoring result in the monitoring interface.
5. The method of claim 4, wherein for each transaction record contained in the collection of transaction records, a transaction classification and a transaction account for triggering a noble metal transaction are recorded, respectively, the target monitoring range comprising a target transaction classification and a target transaction account;
Determining whether the newly added transaction records meet the target monitoring range every time the transaction records are newly added in the transaction record set, and obtaining each target transaction record meeting the target monitoring range within a first preset time interval every time the first preset time interval passes, wherein the method comprises the following steps:
determining whether the transaction classification of the newly added transaction record is the same as the target transaction classification, and whether the transaction account of the newly added transaction record is the same as the target transaction account;
if the transaction classification of the newly added transaction record is the same as the target transaction classification, and the transaction account of the newly added transaction record is the same as the target transaction account, determining that the newly added transaction record meets the target monitoring range;
and each time when a first preset time interval passes, obtaining each target transaction record based on each newly-added transaction record meeting the target monitoring range in the first preset time interval.
6. The method of claim 4, wherein the target monitoring criteria include a target net position, a target net amount, a target average price, and a target profit for each noble metal money pair;
Based on a pre-stored data calculation strategy, performing data calculation on the data contained in each obtained target transaction record to obtain a data calculation result meeting the target monitoring standard, wherein the data calculation result comprises:
respectively counting the total amount of the target noble metal and the total amount of the target money aiming at the target transaction records of the same noble metal money pair in the target transaction records, and respectively obtaining the corresponding target net position and the corresponding target net amount of each noble metal money pair;
obtaining target average prices of the various noble metal currency pairs based on the ratio between the target currency total amount and the target noble metal total amount corresponding to the various noble metal currency pairs;
obtaining the market price of the noble metals corresponding to the noble metal money pairs;
obtaining target damage of the various noble metal currencies to the respective corresponding target currencies based on the total amount of the respective corresponding target currencies of the various noble metal currencies and the sum of products of the total amount of the target noble metal and the market price of the noble metal;
and taking the target net positions, the target net amounts, the target average prices and the target damage corresponding to the various noble metal currencies as data calculation results meeting the target monitoring standards.
7. The method of claim 4, wherein for each transaction record, a transaction time is recorded, the transaction time being used to characterize a time of generation of the corresponding transaction record, the method further comprising:
each time a second preset time interval passes, acquiring each transaction record to be reevaluated of the transaction time within the second preset time interval from each transaction record;
based on the data calculation strategy, carrying out data calculation on the transaction records of the same noble metal currency pair in each transaction record to be reevaluated to obtain a target reevaluation result;
and responding to the overestimation monitoring operation triggered by the monitoring interface, and presenting the target overestimation result in the monitoring interface.
8. The method according to claim 4, wherein an interface state and a display time are recorded for the monitoring interface, the interface state being used for indicating whether the monitoring interface is displayed, and the display time being used for indicating a time when the monitoring state of the monitoring interface recorded last time is the display state;
after obtaining the target monitoring range and the target monitoring standard in response to the editing operation triggered for the monitoring interface, further comprising:
Updating the interface state of the monitoring interface into a display state, and updating the display time of the monitoring interface based on the current time;
and if the display time is taken as the preset time of the starting time, receiving a display signal aiming at the monitoring interface, updating the display time based on the current time, otherwise, updating the interface state into a closed state, wherein the display signal is used for representing that the monitoring interface is being displayed.
9. The method of claim 8, wherein prior to presenting the obtained target monitoring results in the monitoring interface, further comprising:
acquiring an interface state of the monitoring interface;
and if the interface state represents that the monitoring interface is in a display state, presenting the obtained target monitoring result in the monitoring interface.
10. A precious metal transaction data management device, comprising:
the acquisition module is used for: the method comprises the steps of acquiring precious metal transaction data to be processed, and extracting an initial precious metal currency pair corresponding to the precious metal transaction data to be processed, wherein the initial precious metal currency pair is used for representing an initial measurement unit of initial precious metal contained in the precious metal transaction data to be processed and an initial currency type of the initial currency;
The processing module is used for: if the initial noble metal currency pair is not matched with a preset reference noble metal currency pair, carrying out data splitting processing on the to-be-processed noble metal transaction data based on a pre-stored data splitting strategy to obtain target noble metal open data and target currency open data, wherein the target noble metal open data at least comprises target noble metal and target currency, the target noble metal and the target currency respectively represent the initial noble metal and the initial currency in a reference metering unit and a reference currency type contained in the reference noble metal currency pair, and the target currency open data is used for representing a data conversion relation between the initial currency and the target currency;
the processing module is further configured to: and in the transaction record set, the obtained target noble metal exposure data and the target currency exposure data are stored as newly added transaction records.
11. A computer device, comprising:
a memory for storing program instructions;
a processor for invoking program instructions stored in the memory and for performing the method according to any of claims 1-9 in accordance with the obtained program instructions.
12. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 9.
CN202111317606.4A 2021-11-09 2021-11-09 Precious metal transaction data management method, precious metal transaction data management device, computer equipment and storage medium Active CN113837883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111317606.4A CN113837883B (en) 2021-11-09 2021-11-09 Precious metal transaction data management method, precious metal transaction data management device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111317606.4A CN113837883B (en) 2021-11-09 2021-11-09 Precious metal transaction data management method, precious metal transaction data management device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113837883A CN113837883A (en) 2021-12-24
CN113837883B true CN113837883B (en) 2023-12-22

Family

ID=78971286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111317606.4A Active CN113837883B (en) 2021-11-09 2021-11-09 Precious metal transaction data management method, precious metal transaction data management device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113837883B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002075619A1 (en) * 2001-03-21 2002-09-26 Gold Corporation Method and system for electronic precious metals transactions
JP2016532201A (en) * 2013-08-12 2016-10-13 トーマス ヴィートシュト How to calculate and convert currency value during financial transactions using precious metal collateral accounts
CN108269353A (en) * 2018-01-17 2018-07-10 北京网信云服信息科技有限公司 Self-service machine and the self-service system of exchanging of exchanging
CN112540959A (en) * 2020-12-14 2021-03-23 建信金融科技有限责任公司 Data processing method and device
CN113052702A (en) * 2021-04-19 2021-06-29 中国建设银行股份有限公司 Transaction cash flow computing system and working method thereof
CN113298604A (en) * 2020-12-04 2021-08-24 阿里巴巴集团控股有限公司 Commodity object settlement processing method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844547B2 (en) * 2006-08-21 2010-11-30 Carl Raymond Amos Uncle gem IV, universal automatic instant money, data and precious metal and stone transfer machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002075619A1 (en) * 2001-03-21 2002-09-26 Gold Corporation Method and system for electronic precious metals transactions
JP2016532201A (en) * 2013-08-12 2016-10-13 トーマス ヴィートシュト How to calculate and convert currency value during financial transactions using precious metal collateral accounts
CN108269353A (en) * 2018-01-17 2018-07-10 北京网信云服信息科技有限公司 Self-service machine and the self-service system of exchanging of exchanging
CN113298604A (en) * 2020-12-04 2021-08-24 阿里巴巴集团控股有限公司 Commodity object settlement processing method and device and electronic equipment
CN112540959A (en) * 2020-12-14 2021-03-23 建信金融科技有限责任公司 Data processing method and device
CN113052702A (en) * 2021-04-19 2021-06-29 中国建设银行股份有限公司 Transaction cash flow computing system and working method thereof

Also Published As

Publication number Publication date
CN113837883A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
US11354740B2 (en) System and method for managing trading using alert messages for outlying trading orders
CN110263024A (en) Data processing method, terminal device and computer storage medium
CN109635029B (en) Data processing method, device, equipment and medium based on label index system
CN110659787B (en) Bank data analysis method and system
CN111932268B (en) Enterprise risk identification method and device
US20140344143A1 (en) System and method for managing related accounts
CN110516967A (en) A kind of method and relevant apparatus of information evaluation
CN109785000A (en) Customer resources distribution method, device, storage medium and terminal
US20240062294A1 (en) Systems and methods for providing non-fully transparent markets
CN107451912A (en) The processing method and processing device of credit information
CN112232950A (en) Loan risk assessment method and device, equipment and computer-readable storage medium
CN110472956B (en) Real-time detection method and device for split-payment behavior
CN109118349A (en) Business finance bill generation method, device, electronic equipment and storage medium
US20140279452A1 (en) Vendor propensity analysis component for an electronic invoice payment system
JP5876842B2 (en) Wire fraud prevention system and wire fraud prevention method
CN113837883B (en) Precious metal transaction data management method, precious metal transaction data management device, computer equipment and storage medium
WO2012150828A2 (en) Method for displaying current disparate ratio for enterprise value using difference between market value for enterprise and basic analysis
JP2013251008A (en) Computer image processing methods and systems for displaying image objects or text in wagering environment
CN110766556A (en) Profit notification method, device, equipment and computer readable storage medium
CN109670939A (en) Refund data processing method, device, equipment and computer readable storage medium
JP2010282594A (en) Foreign exchange system
US20220374983A1 (en) Trading computer systems and methods for use with shareholder warrants incentivizing deleveraging
CN111192038B (en) Responsibility insurance information processing method and device based on electronic bill and terminal equipment
US20230419217A1 (en) System for improving distributed network data flow efficiency by generating interaction leads
JP2012248163A (en) Electronic money transaction management system

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
GR01 Patent grant
GR01 Patent grant