CN117333299A - Data processing method and device for virtual resources - Google Patents

Data processing method and device for virtual resources Download PDF

Info

Publication number
CN117333299A
CN117333299A CN202311402992.6A CN202311402992A CN117333299A CN 117333299 A CN117333299 A CN 117333299A CN 202311402992 A CN202311402992 A CN 202311402992A CN 117333299 A CN117333299 A CN 117333299A
Authority
CN
China
Prior art keywords
financial product
transaction
operated
product object
user account
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311402992.6A
Other languages
Chinese (zh)
Inventor
李杰岳
林耀龙
张诗瑶
王中正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Futuo Network Technology Shenzhen Co ltd
Original Assignee
Futuo Network Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Futuo Network Technology Shenzhen Co ltd filed Critical Futuo Network Technology Shenzhen Co ltd
Priority to CN202311402992.6A priority Critical patent/CN117333299A/en
Publication of CN117333299A publication Critical patent/CN117333299A/en
Pending legal-status Critical Current

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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4016Transaction verification involving fraud or risk level assessment in transaction processing
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Mathematical Physics (AREA)
  • Development Economics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a data processing method and device for virtual resources, comprising the following steps: receiving an operation request for a financial product object; determining a first quantity to be operated, a user account identifier and a financial product object in an operation request, wherein the first quantity to be operated is decimal; acquiring matching information according to the financial product objects and the first quantity to be operated; the method comprises the steps of sending matching information to a first transaction platform, controlling the first transaction platform to transfer operation of financial product objects of a first quantity to be operated between a target inventory account and a target user account corresponding to user account identification, and generating a first matching record of the matching information, wherein the target inventory account and the target user account are accounts in the first transaction platform, and the target inventory account holds pre-purchased financial product objects; and receiving a first transaction record, and updating first asset data of a local user account corresponding to the user account identification based on the first transaction record of the matching information. So as to improve the processing efficiency of the virtual resource.

Description

Data processing method and device for virtual resources
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a data processing method and device for virtual resources.
Background
Fractional stocks, also known as zero-breaking stocks, refer to non-integer numbers of stocks, e.g., 0.2 stocks, 0.8 stocks, all belong to fractional stocks. The investment threshold can be reduced by the decimal stocks, and clients with lower funds can realize the investment on the stocks with higher value by the decimal stocks. However, the current processing operation process for the small number of the investor account is complex, consumes manpower and time, and affects the processing efficiency and the processing convenience of the small number of the investor account.
Disclosure of Invention
The application provides a data processing method and device for virtual resources, which are used for improving the processing efficiency of financial product objects such as decimal places, reducing the processing time and improving the processing convenience.
In a first aspect, a data processing method for a virtual resource is provided, including: receiving an operation request of a user terminal for a financial product object; responding to the operation request, and determining a first quantity to be operated, a user account identifier and a financial product object in the operation request, wherein the first quantity to be operated is a decimal; acquiring matching information according to the financial product objects and the first quantity to be operated; the method comprises the steps of sending matching information to a first transaction platform, controlling the first transaction platform to transfer operation of financial product objects of a first quantity to be operated between a target inventory account and a target user account corresponding to user account identification, and generating a first matching record of the matching information, wherein the target inventory account and the target user account are accounts in the first transaction platform, and the target inventory account holds pre-purchased financial product objects; and receiving a first transaction record returned by the first transaction platform, and updating first asset data of the local user account corresponding to the user account identifier based on the first transaction record of the matching information.
In a second aspect, there is provided a data processing apparatus for a virtual resource, comprising: the first receiving module is used for receiving an operation request of the user terminal for the financial product object; the first determining module is used for responding to the operation request, determining a first quantity to be operated, a user account identifier and a financial product object in the operation request, wherein the first quantity to be operated is decimal; the first acquisition module is used for acquiring matching information according to the financial product objects and the first quantity to be operated; the first processing module is used for sending the matching information to the first transaction platform, controlling the first transaction platform to perform transfer operation on the first quantity of financial product objects to be operated and generate a first matching record of the matching information between a target inventory account and a target user account corresponding to the user account identification, wherein the target inventory account and the target user account are accounts in the first transaction platform, and the target inventory account holds the financial product objects purchased in advance; the second processing module is used for receiving a first transaction record returned by the first transaction platform and updating the first asset data of the local user account corresponding to the user account identification based on the first transaction record of the matching information.
In a third aspect, there is provided an electronic device comprising: a processor and a memory for storing a computer program, the processor being for invoking and running the computer program stored in the memory for performing the method as in the first aspect or in various implementations thereof.
In a fourth aspect, a computer-readable storage medium is provided for storing a computer program for causing a computer to perform the method as in the first aspect or in various implementations thereof.
In a fifth aspect, a computer program product is provided comprising computer program instructions for causing a computer to perform the method as in the first aspect or in various implementations thereof.
In a sixth aspect, a computer program is provided, the computer program causing a computer to perform the method as in the first aspect or in various implementations thereof.
According to the technical scheme, the electronic equipment can receive an operation request of a user terminal for a financial product object, respond to the operation request, can determine a first quantity to be operated, a user account identifier and the financial product object in the operation request, wherein the first quantity to be operated is a decimal, then the electronic equipment can acquire matching information according to the financial product object and the first quantity to be operated, and can send the matching information to a first transaction platform, and control the first transaction platform to transfer the first quantity to be operated between a target inventory account and a target user account corresponding to the user account identifier, and generate a first transaction record of the matching information; and receiving a first transaction record returned by the first transaction platform, and updating first asset data of the local user account corresponding to the user account identifier based on the first transaction record of the matching information. In the above process, since the financial product objects in the target inventory account are purchased in advance, the electronic device may control the first transaction platform to perform the transferring operation of the financial product objects between the user account and the target inventory account after receiving the operation request for the financial product objects in the fractional number, so as to rapidly implement a rapid processing function for the financial product objects and the asset data in the account corresponding to the user account identifier, thereby improving the processing efficiency of the financial product objects in the fractional number, reducing the processing time, and improving the processing convenience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario diagram provided in an embodiment of the present application;
FIG. 2 is a flowchart of a method for processing data of virtual resources according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a method for processing data of virtual resources according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another method for processing data of virtual resources according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a data processing method of another virtual resource according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a data processing apparatus 600 for virtual resources according to an embodiment of the present application;
fig. 7 is a schematic block diagram of an electronic device 700 provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described above, at present, the stock exchange does not support the exchange of fractional order, which causes that the customers with less funds are difficult to invest the stock with larger value, and a certain investment threshold is caused for the scattered customers, thereby affecting the exchange efficiency and the exchange convenience.
In order to solve the technical problem, the electronic device may perform a matching operation on the user account and the target inventory account holding the financial product object purchased in advance by controlling the first transaction platform, so as to perform a transferring operation of the financial product object between the user account and the target inventory account, thereby implementing a fast processing function for the financial product object with the decimal number of the user account, and improving the processing efficiency and the processing convenience.
It should be understood that the technical solution of the present application may be applied to the following scenarios, but is not limited to:
in some implementations, fig. 1 is an application scenario diagram provided in an embodiment of the present application, where, as shown in fig. 1, the application scenario may include a user terminal 110, an electronic device 120, and a first transaction platform 130. The user terminal 110 and the first transaction platform 130 may be connected to the electronic device 120 through a wired network or a wireless network.
For example, the user terminal 110 may be a device used by a user, the user terminal 110 may install a securities client, the user terminal 110 may display and manage a financial product object such as a stock of an account corresponding to an account id of the securities client, and asset data, for example, the user terminal 110 may obtain a trigger operation of the user, and in response to the trigger operation, the user terminal 110 may send an operation request for the financial product object to the electronic device 120. The electronic device 120 may complete an operation corresponding to the operation request through interaction with the first transaction platform 130 in response to the operation request for the financial product object.
The electronic device 120 or the first transaction platform may be a server, a server cluster formed by a plurality of servers, or a cloud platform control center, which is not limited in this application. The user terminal 110 may be, but is not limited to, a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR), a Virtual Reality (VR) device, and the like.
In addition, fig. 1 illustrates one electronic device, a user terminal, and a first transaction platform, and may actually include other numbers of electronic devices, user terminals, and first transaction platforms, which are not limited in this application.
In other realizations, the electronic device 120 and the first transaction platform may be different processing units on the same device, and the corresponding embodiments and the like are similar to the application scenario and are not described herein.
After the application scenario of the embodiment of the present application is introduced, the following details of the technical solution of the present application will be described:
fig. 2 is a flowchart of a data processing method of a virtual resource according to an embodiment of the present application, where the method may be performed by the electronic device 120 shown in fig. 1, but is not limited thereto. As shown in fig. 2, the method may include the steps of:
s210: receiving an operation request of a user terminal for a financial product object;
s220: responding to the operation request, and determining a first quantity to be operated, a user account identifier and a financial product object in the operation request, wherein the first quantity to be operated is a decimal;
s230: acquiring matching information according to the financial product objects and the first quantity to be operated;
S240: the method comprises the steps of sending matching information to a first transaction platform, controlling the first transaction platform to transfer operation of financial product objects of a first quantity to be operated between a target inventory account and a target user account corresponding to user account identification, and generating a first matching record of the matching information, wherein the target inventory account and the target user account are accounts in the first transaction platform, and the target inventory account holds pre-purchased financial product objects;
s250: and receiving a first transaction record returned by the first transaction platform, and updating first asset data of the local user account corresponding to the user account identifier based on the first transaction record of the matching information.
It should be noted that, in the following embodiments, the application technical solution will be described by taking the electronic device as an example of a service server, and when the electronic device is other devices, the embodiments of the electronic device are similar to those described herein, and the application is not repeated.
It should be noted that, the target inventory account may be an administrator account corresponding to a client installed on the user terminal, for example, assuming that the client is a securities client that is developed or managed by the administrator 1, the administrator 1 may create at least one new account or select at least one existing account as at least one alternative inventory account based on the first trading platform, for holding a certain number of financial product objects as retail inventory. At least one alternative inventory account may hold at least one target quantity of financial product objects. The business server may determine a target inventory account from the at least one alternative inventory account, the target inventory account holding the financial product object including the financial product object in the operation request. For example, the first transaction platform may determine an account holding the financial product object in the operation request in the at least one alternative inventory account as a first account, and determine any one account holding the financial product object in the first account greater than or equal to the first to-be-operated amount as the target inventory account.
In addition, the local user account and the target user account have a mapping relation, the local user account corresponds to the same user identifier with the target user account, the local user account is a set of user related information corresponding to each user identifier locally stored and managed by the service server, the target user account is a set of user related information corresponding to each user identifier locally managed by the first transaction platform, it can be understood that the service server manages the holding amount of the corresponding user to different financial product objects, the holding amount of virtual resources and the like on the first transaction platform through the local user account, and the first transaction platform manages the position information of the corresponding user to different financial product objects through the target user account; similarly, the local inventory account and the target inventory account have a mapping relation, the local inventory account corresponds to the same inventory identifier with the target inventory account, the business server manages retail inventory amounts of different financial product objects on the first transaction platform through the local inventory account, and the first transaction platform manages bin information of the different financial product objects in the retail inventory through the target inventory account management business server. The business server may manage a local user account and a local inventory account, and the first transaction platform may manage a target user account and a target inventory account.
In some implementations, the financial product object may be a stock, a fund, an option, or the like, but is not limited thereto.
In some implementations, a client installed on the user terminal may display financial product object data, for example, may display stock data of the type of stock, the number of stocks held in the user account, and optionally the type of stock, the price of stock, etc. Then, the user may select a specified number of financial product objects based on the financial product object data displayed by the client, or select a market price, an order specified amount, and a financial product object, and then the user terminal may acquire the above-mentioned selection operation, and in response to the selection operation, may transmit an operation request for the financial product object to the service server, and the operation request may include the specified number, the user account number identification, and the financial product object, so that the service server may acquire the operation request. When the user selects the market price list and the order appointed amount based on the client, the client can determine the appointed amount by using the ratio of the order appointed amount to the market price list. The above-described specified number may be the first number to be operated or the total number of operations, and when the specified number is the total number of operations, the first number to be operated may be a fraction of the total number of operations. The first number to operate may be a positive fraction less than 1.
In some implementations, S220 may include: and responding to the operation request, and detecting the operation request to obtain a first quantity to be operated, a user account number identifier and a financial product object in the operation request. For example, the service server may detect the operation request based on a text recognition method, which may be a convolutional recurrent neural network (Convolutional Recurrent Neural Network, CRNN) model-based method, but is not limited thereto.
In some implementations, the service server may first perform risk control detection on the operation request, and when the risk control detection passes, the above-mentioned S230 is performed. The risk and errors in processing the financial product objects are reduced, and the reliability and scientificity of a processing strategy for processing the financial product objects are improved.
For example, before executing S230, the service server may perform risk control detection on the financial product object processing authority and the financial product object market state of the user account corresponding to the user account identifier.
For example, the service server may determine a user account according to a user account identifier carried by the operation request, determine whether the user account has a financial product object processing authority according to the user account, and determine whether the user account has an authority to process a financial product object of a first to-be-operated number by comparing the financial product object processing authority with the first to-be-operated number and the financial product object; if yes, the service server can determine that the authority of the user account passes; otherwise, the service server may determine that the authority is not passed. Specifically, account operation portrait information of a user account may be obtained first, where the account operation portrait information includes, but is not limited to, historical operation information of different financial product objects each time, for example, product information of a historical financial product object (such as a product type, etc.), an operation direction of performing a financial product operation (such as buying or selling), a value of performing a financial product object operation each time (such as the number of buying or selling, or an amount of money), a time of performing a financial product operation each time, etc.; clustering the account operation portrait information to obtain a plurality of clustering centers of the account operation portrait information as operation feature information corresponding to the user account; further, current operation information such as product information of the financial product object in the operation request, an operation direction of the operation request, a total operation number in the operation request, a transmission time of the operation request and the like is obtained, and a distance between the current operation information and each operation feature information is calculated by the following formula:
Wherein feature_op= { x 1 ,…,x n -representing operational characteristic information; feature_cur= { y 1 ,…,y n And } represents current operation information. When the distance between the current operation information and any one of the operation feature information is smaller than a preset distance threshold value, the operation request of the user account can be determined to have the authority of processing the first to-be-operated quantity of financial product objects.
In addition, the service server can acquire the market state of the financial product object, determine and process the income data corresponding to the financial product object of the first quantity to be operated from the market state of the financial product object, and if the income data accords with the expected standard and the processing authority passes, the service server can determine that the wind control detection control passes, and the expected standard can comprise the predetermined income data; otherwise, determining that the wind control detection control is not passed.
In the above embodiment, the service server may store in advance the correspondence between the plurality of user accounts and the processing rights for the financial product objects in the memory database, so that the service server may obtain the processing rights of the user accounts by directly operating the memory database, thereby making the speed of determining or acquiring the data faster, and improving the processing speed and processing efficiency. Wherein, the processing authority of the user account for the financial product object can comprise: the number of financial product objects that may be processed in the user account, the type of financial product object, the type of transaction for the financial product object, etc., are not limited in this regard.
In some implementations, determining the first number of operations to be performed in the processing request may include: acquiring the total operation quantity in the operation request; determining a first to-be-operated number of the decimal part and a second to-be-operated number corresponding to the integer part from the total operation number; before the acquiring the matching information according to the financial product object and the first quantity to be operated, the method further comprises: generating a first transaction request based on the financial product object and the second quantity to be operated when the second quantity to be operated is not 0; sending a first transaction request to a first transaction platform, controlling the first transaction platform to conduct transaction operation of the financial product object based on a target user account and generating a second transaction record; and receiving a second transaction record returned by the first transaction platform, and updating the first asset data of the local user account based on the second transaction record.
Specifically, after the total operation quantity in the operation request is obtained, the first to-be-operated quantity of the decimal part and the second to-be-operated quantity corresponding to the integer part can be determined according to the total operation quantity, and if the second to-be-operated quantity is 0, matching information can be directly obtained according to the financial product object and the first to-be-operated quantity so as to realize the transaction operation of the financial product object of the decimal part; if the second to-be-operated number is 0, the transaction operation of the financial product object of the integer part corresponding to the second to-be-operated number can be realized first, and then the transaction operation of the financial product object of the decimal part is carried out.
The controlling the first transaction platform to perform the transaction operation of the financial product objects based on the target user account and generate the second transaction record may include controlling the first transaction platform to send a transaction request corresponding to the transaction operation to a server corresponding to the transaction, so as to perform the transaction on the financial product objects with the second quantity to be operated in the target user account, and acquiring a second transaction price from the server corresponding to the transaction.
For example, assuming that the financial product object is stock, the user triggers 2.2 shares of stock 1 based on a client installed on the user terminal, the user terminal may send an operation request to the service server in response to the triggering operation, and after the service server detects the operation request, determine that the total operation number in the operation request is 2.2, the financial product object is stock 1, and determine that the first to-be-operated number of the fractional part is 0.2 and the second to-be-operated number corresponding to the integer part is 2. Then, the service server may determine that the second number of to-be-operated is not 0, generate a first transaction request based on the stock 1 and the second number of to-be-operated 2 shares, send the first transaction request to the first transaction platform, control the first transaction platform to perform 2 shares of stock 1 transaction operation on the target user account, and generate a second transaction record. For example, a first transaction request may be for 2 shares of stock 1, each share having a unit price of 2, and the second transaction record may be: 2 shares of stock 1 are purchased, the price of the trading is 2, and the expenditure is 4. The business server may then receive a second transaction record returned by the first transaction platform, and update the first asset data of the local user account based on the second transaction record. For example, the first asset data in the local user account may be updated to data after a reduction of 4.
Optionally, the matching information includes: the method for acquiring the matching information according to the financial product object and the first quantity to be operated includes the steps of: inquiring the market real-time price of the financial product object according to the financial product object and the first quantity to be operated; obtaining a market trading price of the financial product object from the second trading record; determining an optimal trading price of the financial product object according to the market trading price and the market real-time price; matching information is generated based on the financial product object, the first quantity to operate, and the optimal transaction price.
Wherein the market real-time price may be a real-time price of a financial product object queried from the market, such as a nationally optimal bid and ask (National Best Bid and the National Best Offer, NBBO), but is not limited thereto. The market trade price refers to a trade price of an integer portion of a trade of a financial product object. Specifically, if the second to-be-operated number is 0, the transaction operation of the financial product object in the integer part corresponding to the second to-be-operated number can be realized first, and the actual transaction price of the financial product object in the integer part is taken as the market transaction price and taken as the reference value of the transaction price corresponding to the financial product object in the subsequent decimal part.
For example, the operation request may further include: the transaction type, when inquiring the market real-time price and obtaining the market transaction price successfully, the service server determines the optimal transaction price of the financial product object according to the market transaction price and the market real-time price, may include: the maximum value of the market trade price and the market real-time price may be determined as the optimal trade price when the trade type is buy, and the minimum value of the market trade price and the market real-time price may be determined as the optimal trade price when the trade type is sell.
In addition, when the query of the real-time price of the market is successful and the acquisition of the market trading price fails, the real-time price of the market can be determined as the optimal trading price; when the real-time price of the market is inquired and the market trading price is successfully acquired, the market trading price can be determined to be the optimal trading price; and if the real-time price query of the market fails and the price acquisition of the market transaction fails, returning an operation failure request to the user terminal.
Alternatively, when the transaction corresponding to the first transaction request fails, the service server may not perform S240.
In the process, the service server can automatically determine the better price, so that the user experience is improved, and the fund processing efficiency and scientificity are improved.
In some implementations, the match information includes: the acquiring the matching information according to the financial product object and the first quantity to be operated may include: inquiring the market real-time price of the financial product object according to the financial product object and the first quantity to be operated; matching information is generated based on the financial product object, the first quantity to operate, and the market real-time price.
Specifically, if the second number of to-be-operated is 0, or if the second number of to-be-operated is not 0 but the acquisition of the market transaction price fails, the market real-time price of the financial product object can be directly queried from the market, and the real-time market price is taken as the corresponding transaction price of the financial product object of the decimal part.
In some implementations, the operation request further includes a transaction type, and if the transaction type is buy, S240 includes: controlling the first transaction platform to transfer the first to-be-operated quantity of financial product objects in the target inventory account to the target user account, and correspondingly, S250 includes: reducing first asset data in the local user account based on the first transaction record, and increasing asset data in the local inventory account based on the first transaction record; if the transaction type is sell, S240 includes: controlling the first transaction platform to transfer the first to-be-operated quantity of financial product objects in the target user account to the target inventory account, and correspondingly, S250 includes: the first asset data in the local user account is increased based on the first transaction record, and the asset data in the local inventory account is decreased based on the first transaction record.
In some implementations, the updating the first asset data of the local user account corresponding to the user account identifier based on the first transaction record of the matching information includes: determining the transaction amount of the financial product object according to the real-time price of the market and the first quantity to be operated; updating the object quantity corresponding to the financial product object in the first asset data according to the first quantity to be operated; and updating the fund balance in the first asset data according to the transaction amount of the financial product object.
For example, assuming that the transaction type is 0.2 for buying, the first quantity to be operated is 0.2, and the real-time market price is 2, the service server may determine that the transaction amount is 0.4, and may increase the number of objects corresponding to the financial product objects in the first asset data by 0.2 and decrease the balance of funds in the first asset data by 0.4.
In some implementations, the service server may determine an order state corresponding to the operation request according to a processing state of the operation request, and send the order state to the user terminal, and the client installed on the user terminal may display the order state, so that an investor may select a subsequent operation policy according to the order state displayed by the client, and provide real-time financial product object processing data for the user, thereby improving interaction diversity.
For example, when the service server performs the above S250 successfully, the service server may determine that the order status is the all-in-one status; when the service server receives the second transaction record and fails to execute the step S250, the service server may determine that the order status is in a withdrawn status, the withdrawn status indicates that the transaction of the integer part of the financial product objects in the order is successful and the transaction of the fractional part of the financial product objects fails; when the service server does not receive the second transaction record and fails to execute the step S250, the service server may determine that the order status is a removed status, where the removed status indicates that the transaction between the integer part of the financial product objects and the fractional part of the financial product objects in the order fails.
In some implementations, after receiving the first transaction record returned by the first transaction platform, the method further includes: updating the number of the financial product objects in the local inventory account based on the first transaction record of the matching information to obtain the inventory number; generating a second transaction request according to the inventory quantity and the financial product object when the inventory quantity does not belong to the inventory interval; sending a second transaction request to the first transaction platform, controlling the first transaction platform to conduct transaction operation of the financial product object based on the target inventory account and generating a third transaction record; and receiving a third transaction record returned by the first transaction platform, and updating the quantity of the financial product objects in the local inventory account based on the third transaction record so that the quantity of the financial product objects in the updated local inventory account belongs to the inventory interval.
For example, the service server may set a detection time, and determine the inventory quantity when the detection time is reached, so that the inventory quantity may be automatically detected in a timing manner, so as to ensure that the inventory quantity is greater than or equal to a pre-stored threshold value.
For example, the business server may control the first transaction platform to conduct a transaction operation of the financial product object based on the target inventory account using a market price bill acquisition manner.
The inventory interval includes a first inventory threshold and a second inventory threshold, the first inventory threshold is smaller than the second inventory threshold, when the inventory quantity is smaller than the first inventory threshold, the business server may control the first transaction platform to buy the first quantity of the financial product objects, so as to distribute the first quantity of the financial product objects to the target inventory account, and enable the quantity of the financial product objects in the updated local inventory account to belong to the inventory interval, wherein the sum of the first quantity and the inventory quantity before updating is greater than or equal to the first inventory threshold and is smaller than or equal to the second inventory threshold. When the inventory quantity is greater than the first inventory threshold value, the business server can control the first transaction platform to sell the second quantity of financial product objects so as to remove the second quantity of financial product objects from the target inventory account, and enable the quantity of the financial product objects in the updated local inventory account to belong to an inventory interval, wherein the difference between the inventory quantity before updating and the second quantity is greater than or equal to the first inventory threshold value and is less than or equal to the second inventory threshold value.
For example, assuming that the inventory interval is [2,3], if the inventory number is 2.3, it can be determined that the inventory number belongs to the inventory interval. If the inventory number is 1.9, the business server may control the first transaction platform to buy 0.1 quantity of financial product objects, so as to allocate the 0.1 quantity of financial product objects to the target inventory account, so that the quantity of the financial product objects in the target inventory account is increased to 2, and the financial product objects belong to the inventory interval. When the inventory quantity is 3.3, the business server can control the first transaction platform to sell 0.3 quantity of financial product objects so as to remove 0.3 quantity of financial product objects from the target inventory account, so that the quantity of the financial product objects in the target inventory account is reduced to 3, and the financial product objects belong to the inventory interval. After the first transaction platform completes the transaction operation of the financial product objects, the first transaction platform can generate second transaction information and return the second transaction information to the service server, so that the service server updates the local inventory account based on the second transaction information, and the number of the financial product objects in the local inventory account and the target inventory account in the first transaction platform are kept consistent, so that the accuracy of subsequent matching is determined.
In some implementations, assuming that the financial product object is a stock, the business server may operate with: the system comprises a retail transaction service, a retail wind control service and an inventory system, wherein the retail transaction service is used for receiving a request of a client and processing information of the request, the retail wind control service is used for carrying out wind control detection on the request related to the transaction, and the inventory system is used for managing a local inventory account, namely, managing holding amount information of different financial product objects in retail inventory of a business server; the first transaction platform can operate an institution wind control service and an institution transaction service, wherein the institution wind control service is used for carrying out wind control detection on a request related to transaction, and the institution transaction service is used for executing the transaction operation of an actual financial product object and managing bin information of different accounts on the first transaction platform.
As shown in fig. 3, the retail transaction service, the retail wind control service, the institution wind control service, and the institution transaction service are respectively abbreviated as: retail transactions, retail wind control, institution transactions. When the user a places an order of 2.2 shares of stock 1 based on the client installed on the user terminal, the user terminal may send a request corresponding to the order (such as the operation request described above) to the service server, and after the service server obtains the request, the service server may send order information corresponding to the order to the retail transaction service: the total operation number of 2.2 and the stock identification of stock 1 are sent to the retail pneumatic control service, the information of the order is checked through the retail pneumatic control service (the pneumatic control detection can be referred to), and if the checking is not passed, the order is refused; if the verification is passed, a transaction request corresponding to an integer part of 2 shares of 2.2 shares of stocks is sent to a first transaction platform through a retail transaction service, then the first transaction platform can verify the request through an institution wind control service (refer to the wind control detection), and if the verification is not passed, the order is refused; if the verification is passed, the first transaction platform sends an upstream bill to the institution transaction service to execute stock transaction, after the success of the transaction is determined, a transaction report can be generated, wherein the transaction report can comprise transaction price, transaction quantity, and the transacted stock, and the transaction report is respectively sent to the institution wind control service and the retail transaction service of the business server.
After the institution wind control service obtains the deal report, the bin information of stock 1 in the target user account of the user a on the first trading platform can be updated, namely 2 shares of stock 1 are added.
After the retail transaction service of the business server obtains the transaction report, the first asset data of the local user account number of the user A on the business server can be updated based on the transaction report; in addition, the retail transaction service also performs a match of the fractional part of the "0.2 shares" stock 1 in the inventory system to generate match information that is signaled to the inventory system and to the institution wind control service of the first transaction platform; the inventory system reduces the holding quantity of the stock 1 (namely holding quantity information of a target inventory account) by 0.2 share stock 1 based on the signal of the matching information, meanwhile, the institution wind control service of the first trading platform transfers 0.2 share stock 1 from the target inventory account of the first trading platform to the target user account of the user based on the signal of the matching information, so that the bin information of the stock 1 in the target inventory account in the first trading platform is kept consistent with the stock quantity (namely holding quantity information) of the stock 1 in a local inventory account on a service server; after the first trading platform completes the transfer operation, the first trading platform can generate another trading report and send the retail trade service of the business server to update the first asset data of the local user account number of the user A on the business server again, so that the holding amount information of the stock 1 in the local user account is consistent with the position information of the stock 1 in the target user account in the first trading platform.
In some implementations, the service server may operate with: the business wind control service, the asset system, the transaction system, and the inventory system, the first transaction platform may include: the mechanism wind control service and the mechanism system; as shown in fig. 4, the present application refers to the business wind control service and the organization wind control service as follows: business wind control and institution wind control. In combination with the above embodiment, as shown in fig. 4, the transaction system may obtain an operation request of the user terminal for a stock, and in response to the operation request, the transaction system may interact with the service wind control service to enable the service wind control service to perform wind control detection processing on the operation request, and after risk control is passed, the transaction system may obtain a total operation number in the operation request, and determine a first to-be-operated number of the fraction part and a second to-be-operated number corresponding to the integer part from the total operation number; if the second to-be-operated quantity is not 0, generating a first transaction request of stocks of an integer part (namely the second to-be-operated quantity) in the total operation quantity of the order based on stocks corresponding to the operation request and the second to-be-operated quantity, and sending the first transaction request to an institution system of a first transaction platform; when the institution system determines that the request risk control passes through interaction with the institution wind control service, the institution system sends the first transaction request to an upstream order, executes stock transaction, and after determining that the order corresponding to the first transaction request is successful, the institution system can reply a transaction report to the transaction system; the transaction system may then send the transaction report to a business wind control service in the business server, which interacts with the asset system to update the first asset data of the user's local user account. After the second to-be-operated number is not 0 and the stock transaction of the integer part is completed, or when the second to-be-operated number is 0, aiming at the stocks of the decimal part (namely the first to-be-operated number) in the total to-be-operated number, the transaction system performs stock matching of the first to-be-operated number based on the local inventory account and the local user account to determine matching information, so that the local user account and the local inventory account can complete the transaction of the decimal part stocks, wherein the matching information comprises: deal information such as deal label, deal quantity, deal price, deal time, account information, etc. The trading system may send the matching information to the inventory system so that the inventory system interacts with the asset system to complete inventory account asset changes, i.e., changes to the holding amount information of the traded stock in the local inventory account. Meanwhile, the trading system can push information of user asset change to the mechanism wind control service of the first trading platform based on the matching information, so that the mechanism wind control service of the first trading platform can transfer stocks with respect to the first quantity to be operated between a target stock account and a target user account corresponding to the user, and bin change of the stock account and the user account on the first trading platform is completed. In addition, the transaction system can also receive a transaction report corresponding to the fractional stock transaction returned by the mechanism wind control service of the first transaction platform, and send the transaction report to the business wind control service, and the business wind control service interacts with the asset system to update the asset information of the user, namely, update the first asset data of the local user account.
In some implementations, in connection with the foregoing embodiments, as shown in fig. 5, taking an operation request as an example, after obtaining an operation request, that is, an order request sent by a user terminal, a service server may first perform a pre-check on a total operation number, a transaction right, a market status, and the like in the order request, after the check passes, the service wind control system may determine whether a second to-be-operated number of an integer part in the total operation number is 0, and when the second to-be-operated number is not 0, the service wind control system may generate, based on the second to-be-operated number and a financial product object in the order request, a first transaction request to an institution transaction system to purchase an integer part corresponding to the second to-be-operated number, so as to implement an order operation of the integer part. When the second quantity to be operated is 0, the service wind control system can inquire the NBBO price based on the first operation data, and when the inquiry fails, the order corresponding to the request can be intercepted; if the inquiry is successful, the inventory account and the user account can be matched according to the order quantity, namely the order quantity and the NBBO price, a transaction report and matching information are generated, and the matching information is pushed to the inventory system and the institution wind control system. Then, the business server can process the corresponding deal report of the stocks of the integer part or the corresponding deal report of the integer part of 0, judge whether the orders corresponding to the order request are not processed by the stocks of the middle and small number parts of the quantity, if not, control the business wind control system to conduct deal processing, such as updating the user account and the inventory account; if so, matching the inventory account with the user account according to the optimal price and decimal part in the NBBO price and the historical transaction price, generating a transaction report and matching information, pushing the matching information to the inventory system and the institution wind control system, and controlling the business wind control system to perform transaction processing, such as updating the user account and the inventory account. The updating the user account and the inventory account includes: updating asset data of the local user account and the local inventory account, and performing stock transfer operation between the target user account and the target inventory account.
According to the technical scheme, after the operation request for the decimal financial product objects is received, the first transaction platform is controlled to conduct transfer operation of the financial product objects between the user account and the target inventory account, transaction of the decimal financial product objects is directly achieved, the rapid processing function of the financial product objects and the asset data in the account corresponding to the user account identification is achieved rapidly, processing efficiency of the decimal financial product objects can be improved, processing time is shortened, and processing convenience is improved. Taking a financial product object as an example of stock, when a transaction request of a decimal place is received through maintaining a local inventory account and a target inventory account on a first transaction platform, the decimal place can be matched in the local inventory account so as to control the first transaction platform to transfer stock between a user account and the target inventory account, so that the transaction request of the decimal place can directly realize the transaction capability of the decimal place without entering a financial market, the processing efficiency of the financial product object such as the decimal place is improved, and the processing time is reduced.
It should be noted that, in the specific embodiments of the present application, related data such as quantity, stock identifier, account identifier, etc. are related, when the embodiments of the present application are applied to specific products or technologies, user permission, consent or authorization needs to be obtained, and collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions.
The preferred embodiments of the present application have been described in detail above with reference to the accompanying drawings, but the present application is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solutions of the present application within the scope of the technical concept of the present application, and all the simple modifications belong to the protection scope of the present application. For example, the specific features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various possible combinations are not described in detail. As another example, any combination of the various embodiments of the present application may be made without departing from the spirit of the present application, which should also be considered as disclosed herein.
Fig. 6 is a schematic diagram of a data processing apparatus 600 for virtual resources according to an embodiment of the present application, as shown in fig. 6, the apparatus 600 includes: a first receiving module 601, a first determining module 602, a first obtaining module 603, a first processing module 604, a second processing module 605, a first generating module 606, a third processing module 607, a fourth processing module 608, an updating module 609, a second generating module 610, a fifth processing module 611, and a sixth processing module 612, wherein:
A first receiving module 601, configured to receive an operation request of a user terminal for a financial product object; a first determining module 602, configured to determine, in response to the operation request, a first to-be-operated number, a user account identifier, and a financial product object in the operation request, where the first to-be-operated number is a fraction; a first obtaining module 603, configured to obtain matching information according to the financial product object and the first quantity to be operated; the first processing module 604 is configured to send the matching information to the first transaction platform, control the first transaction platform to perform a transfer operation for a first quantity of financial product objects to be operated and generate a first transaction record of the matching information between a target inventory account and a target user account corresponding to the user account identifier, where the target inventory account and the target user account are accounts in the first transaction platform, and the target inventory account holds a pre-purchased financial product object; the second processing module 605 is configured to receive a first transaction record returned by the first transaction platform, and update, based on the first transaction record of the matching information, first asset data of a local user account corresponding to the user account identifier.
In some implementations, the match information includes: a financial product object, a first quantity to operate, and a transaction price for the financial product object; the first obtaining module 603 is specifically configured to query a market real-time price of the financial product object according to the financial product object and the first quantity to be operated; matching information is generated based on the financial product object, the first quantity to operate, and the market real-time price.
In some implementations, the first determining module 602 is specifically configured to obtain a total number of operations in the operation request; determining a first to-be-operated number of the decimal part and a second to-be-operated number corresponding to the integer part from the total operation number; a first generation module 606 for: generating a first transaction request based on the financial product object and the second quantity to be operated when the second quantity to be operated is not 0; the third processing module 607 is configured to send a first transaction request to the first transaction platform, control the first transaction platform to perform a transaction operation of the financial product object based on the target user account, and generate a second transaction record; a fourth processing module 608 is configured to receive a second transaction record returned by the first transaction platform, and update the first asset data of the local user account based on the second transaction record.
In some implementations, the match information includes: a financial product object, a first quantity to operate, and a transaction price for the financial product object; the first obtaining module 603 is specifically configured to: inquiring the market real-time price of the financial product object according to the financial product object and the first quantity to be operated; obtaining a market trading price of the financial product object from the second trading record; determining an optimal trading price of the financial product object according to the market trading price and the market real-time price; matching information is generated based on the financial product object, the first quantity to operate, and the optimal transaction price.
In some implementations, if the market real-time price query fails and the market transaction price acquisition fails, an operation failure request is returned to the user terminal.
In some implementations, the second processing module 605 is specifically configured to: determining the transaction amount of the financial product object according to the real-time price of the market and the first quantity to be operated; updating the object quantity corresponding to the financial product object in the first asset data according to the first quantity to be operated; and updating the fund balance in the first asset data according to the transaction amount of the financial product object.
In some implementations, the update module 609 is to: updating the number of the financial product objects in the local inventory account based on the first transaction record of the matching information to obtain the inventory number; a second generating module 610, configured to generate a second transaction request according to the inventory number and the financial product object when the inventory number does not belong to the inventory interval; a fifth processing module 611, configured to send a second transaction request to the first transaction platform, control the first transaction platform to perform a transaction operation of the financial product object based on the target inventory account, and generate a third transaction record; the sixth processing module 612 is configured to receive a third transaction record returned by the first transaction platform, update the number of financial product objects in the local inventory account based on the third transaction record, so that the number of financial product objects in the updated local inventory account belongs to the inventory interval.
It should be understood that apparatus embodiments and method embodiments may correspond with each other and that similar descriptions may refer to the method embodiments. To avoid repetition, no further description is provided here. Specifically, the apparatus 600 shown in fig. 6 may perform the above method embodiments, and the foregoing and other operations and/or functions of each module in the apparatus 600 are respectively for implementing the corresponding flows in each method, which are not described herein for brevity.
The apparatus 600 of the embodiments of the present application is described above in terms of functional modules in connection with the accompanying drawings. It should be understood that the functional module may be implemented in hardware, or may be implemented by instructions in software, or may be implemented by a combination of hardware and software modules. Specifically, each step of the method embodiments in the embodiments of the present application may be implemented by an integrated logic circuit of hardware in a processor and/or an instruction in software form, and the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented as a hardware decoding processor or implemented by a combination of hardware and software modules in the decoding processor. Alternatively, the software modules may be located in a well-established storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, and the like. The storage medium is located in a memory, and the processor reads information in the memory, and in combination with hardware, performs the steps in the above method embodiments.
Fig. 7 is a schematic block diagram of an electronic device 700 provided by an embodiment of the present application. As shown in fig. 7, the electronic device 700 may include:
a memory 710 and a processor 720, the memory 710 being configured to store a computer program and to transfer the program code to the processor 720. In other words, the processor 720 may call and run a computer program from the memory 710 to implement the methods in the embodiments of the present application.
For example, the processor 720 may be configured to perform the above-described method embodiments according to instructions in the computer program.
In some embodiments of the present application, the processor 720 may include, but is not limited to:
a general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
In some embodiments of the present application, the memory 710 includes, but is not limited to:
volatile memory and/or nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DR RAM).
In some embodiments of the present application, the computer program may be partitioned into one or more modules that are stored in the memory 710 and executed by the processor 720 to perform the methods provided herein. The one or more modules may be a series of computer program instruction segments capable of performing the specified functions, which are used to describe the execution of the computer program in the electronic device.
As shown in fig. 7, the electronic device may further include:
a transceiver 730, the transceiver 730 being connectable to the processor 720 or the memory 710.
The processor 720 may control the transceiver 730 to communicate with other devices, and in particular, may send information or data to other devices or receive information or data sent by other devices. Transceiver 730 may include a transmitter and a receiver. Transceiver 730 may further include antennas, the number of which may be one or more.
It will be appreciated that the various components in the electronic device are connected by a bus system that includes, in addition to a data bus, a power bus, a control bus, and a status signal bus.
The present application also provides a computer storage medium having stored thereon a computer program which, when executed by a computer, enables the computer to perform the method of the above-described method embodiments. Alternatively, embodiments of the present application also provide a computer program product comprising instructions which, when executed by a computer, cause the computer to perform the method of the method embodiments described above.
When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces, in whole or in part, a flow or function consistent with embodiments of the present application. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. For example, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for processing data of a virtual resource, comprising:
receiving an operation request of a user terminal for a financial product object;
responding to the operation request, and determining a first quantity to be operated, a user account identifier and a financial product object in the operation request, wherein the first quantity to be operated is decimal;
Acquiring matching information according to the financial product object and the first quantity to be operated;
the matching information is sent to a first transaction platform, the first transaction platform is controlled to carry out transfer operation on the first quantity of financial product objects to be operated and generate a first transaction record of the matching information between a target inventory account and a target user account corresponding to the user account identification, the target inventory account and the target user account are accounts in the first transaction platform, and the target inventory account holds pre-purchased financial product objects;
and receiving a first transaction record returned by the first transaction platform, and updating first asset data of the local user account corresponding to the user account identifier based on the first transaction record of the matching information.
2. The method of claim 1, wherein the match information comprises: the financial product object, the first quantity to operate, and a transaction price for the financial product object;
the obtaining matching information according to the financial product object and the first quantity to be operated includes:
inquiring the market real-time price of the financial product object according to the financial product object and the first quantity to be operated;
The matching information is generated based on the financial product object, the first quantity to operate, and the market real-time price.
3. The method of claim 1, wherein the determining the first number of actions to be performed in the processing request comprises:
acquiring the total operation quantity in the operation request;
determining a first to-be-operated number of the decimal part and a second to-be-operated number corresponding to the integer part from the total operation number;
before the matching information is obtained according to the financial product object and the first quantity to be operated, the method further comprises the following steps:
generating a first transaction request based on the financial product object and the second quantity to be operated when the second quantity to be operated is not 0;
the first transaction request is sent to a first transaction platform, and the first transaction platform is controlled to conduct transaction operation of the financial product object based on the target user account and generate a second transaction record;
and receiving a second transaction record returned by the first transaction platform, and updating the first asset data of the local user account based on the second transaction record.
4. The method of claim 3, wherein the match information comprises: the financial product object, the first quantity to operate, and a transaction price for the financial product object;
The obtaining matching information according to the financial product object and the first quantity to be operated includes:
inquiring the market real-time price of the financial product object according to the financial product object and the first quantity to be operated;
obtaining a market transaction price for the financial product object from the second transaction record;
determining an optimal trading price of the financial product object according to the market trading price and the market real-time price;
the matching information is generated based on the financial product object, the first quantity to operate, and the optimal transaction price.
5. The method as recited in claim 4, further comprising:
and if the market real-time price query fails and the market transaction price acquisition fails, returning an operation failure request to the user terminal.
6. The method of claim 1, wherein updating the first asset data of the local user account corresponding to the user account identification based on the first transaction record of the matching information comprises:
determining the transaction amount of the financial product object according to the real-time market price and the first quantity to be operated;
Updating the object quantity corresponding to the financial product object in the first asset data according to the first quantity to be operated;
updating the funds balance in the first asset data according to the amount of the financial product object.
7. The method of any of claims 1-6, further comprising, after receiving the first transaction record returned by the first transaction platform:
updating the quantity of the financial product objects in the local inventory account based on the first transaction record of the matching information to obtain inventory quantity;
generating a second transaction request according to the inventory quantity and the financial product object when the inventory quantity does not belong to the inventory interval;
the second transaction request is sent to the first transaction platform, the first transaction platform is controlled to conduct transaction operation of the financial product object based on the target inventory account, and a third transaction record is generated;
and receiving a third transaction record returned by the first transaction platform, and updating the quantity of the financial product objects in the local inventory account based on the third transaction record so that the quantity of the financial product objects in the updated local inventory account belongs to the inventory interval.
8. A data processing apparatus for virtual resources, comprising:
the first receiving module is used for receiving an operation request of the user terminal for the financial product object;
the first determining module is used for responding to the operation request and determining a first quantity to be operated, a user account identifier and a financial product object in the operation request, wherein the first quantity to be operated is a decimal;
the first acquisition module is used for acquiring matching information according to the financial product objects and the first quantity to be operated;
the first processing module is used for sending the matching information to a first transaction platform, controlling the first transaction platform to perform transfer operation on the first quantity of financial product objects to be operated and generate a first transaction record of the matching information between a target inventory account and a target user account corresponding to the user account identification, wherein the target inventory account and the target user account are accounts in the first transaction platform, and the target inventory account holds pre-purchased financial product objects;
the second processing module is used for receiving a first transaction record returned by the first transaction platform, and updating first asset data of a local user account corresponding to the user account identification based on the first transaction record of the matching information.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-7 via execution of the executable instructions.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1-7.
CN202311402992.6A 2023-10-26 2023-10-26 Data processing method and device for virtual resources Pending CN117333299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311402992.6A CN117333299A (en) 2023-10-26 2023-10-26 Data processing method and device for virtual resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311402992.6A CN117333299A (en) 2023-10-26 2023-10-26 Data processing method and device for virtual resources

Publications (1)

Publication Number Publication Date
CN117333299A true CN117333299A (en) 2024-01-02

Family

ID=89277201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311402992.6A Pending CN117333299A (en) 2023-10-26 2023-10-26 Data processing method and device for virtual resources

Country Status (1)

Country Link
CN (1) CN117333299A (en)

Similar Documents

Publication Publication Date Title
US20190392511A1 (en) Bid matching for blockchain-based goods/assets systems and methods
CN110232565B (en) Resource clearing method, device, computer equipment and storage medium
US20180053189A1 (en) Systems and methods for enhanced authorization response
CN112116334A (en) Cross-block-chain third-party arbitration performance guarantee system and method thereof
CN111861472B (en) Service monitoring processing method and device
US9799075B2 (en) Random-time auctions in an electronic trading system
KR20190108666A (en) Apparatus and method for automated deposit and withdrawal of funds for cryptocurrency transactions and computer program for the same
CN112381645A (en) Information processing method and device for bill transaction
CN111311277B (en) Bill processing method and device based on block chain network and related equipment
KR20170048976A (en) System and method for estimating reliability of stock investment using stock investment performance
US20230385891A1 (en) Prototype message service
CN116611754A (en) Cross-border commodity outlet line reporting method, system and equipment
CN108876339B (en) E-pet transaction method and device based on certificate
CN117333299A (en) Data processing method and device for virtual resources
CN115526730A (en) Method and device for managing equity incentive funds, electronic equipment and storage medium
CN111144975B (en) Order matching method, server and computer readable storage medium
CN108961039B (en) Transaction processing method, device and system
US20210073798A1 (en) Product payment device and payment method utilizing a blockchain system, and non-transitory storage medium
CN108573446B (en) Bank card authentication method, device, equipment and readable storage medium
CN111311102A (en) Resource ratio adjusting method, device, equipment and computer readable storage medium
CN111353855B (en) Method, device, system and storage medium for processing bulk commodity transaction
KR20200093779A (en) Block chain based product purchasing agent method and system
KR102475662B1 (en) Method and system for managing point using blockchain based on distributed ledger
KR20170133302A (en) System and method for estimating reliability of stock investment using stock investment performance
WO2024095253A1 (en) Systems and methods for processing payments in cryptographic currency

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