Block chain-based distributed energy transaction method and system

By combining the distributed energy trading method with a price priority matching strategy and a bilateral auction mechanism on the blockchain, the problem of low efficiency of distributed energy trading is solved, and the matching success rate and transaction efficiency are improved.

CN120235700APending Publication Date: 2025-07-01HARBIN CAMBRIDGE UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510203716.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In the existing technology, distributed energy transaction efficiency is low, and the success rate of matching between the sellers is not high, resulting in inefficient transactions.

Method used

A distributed energy trading method based on blockchain is adopted, combining a price priority matching strategy and a bilateral auction mechanism, and the matching success rate is improved through the first phase of transaction and unified price clearance.

Benefits of technology

It improves the matching success rate between the seller and the seller, finds the best clearance price as soon as possible, and improves the efficiency of distributed energy transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120235700A_ABST
    Figure CN120235700A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of block chains, in particular to a distributed energy transaction method and system based on a block chain, and the transaction method comprises the following steps: obtaining an electricity selling demand of an electricity selling user and an electricity purchasing demand of an electricity purchasing user in a target time period through the block chain; the price priority transaction method based on bilateral auction comprises the following steps: performing a first-stage transaction according to an electricity selling demand and an electricity purchasing demand; acquiring electricity selling users and electricity purchasing users which are not matched in the first-stage transaction process; acquiring the updated electricity selling demand of the electricity selling user who fails to match and the updated electricity purchasing demand of the electricity purchasing user who fails to match; and performing unified price clearing by using a clearing contract according to the updated electricity selling demand and the updated electricity purchasing demand. The distributed energy is cleared by adopting a strategy of combining bilateral auction and unified auction, so that the matching success rate of two sellers can be improved, the optimal clearing price can be found as soon as possible, and the transaction efficiency of the distributed energy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of blockchain, and in particular to a distributed energy trading method and system based on blockchain. Background Art

[0002] With the development of the energy Internet, a large number of distributed energy sources such as wind energy, solar energy, and biomass energy have been connected to the grid, and the types of power transactions have shown a diversified trend.

[0003] With the continuous expansion of the scale of distributed energy transactions, the information data has been increasing continuously, resulting in a significant increase in the difficulty of transactions.

[0004] Blockchain is a decentralized, publicly transparent, and immutable distributed database that integrates technologies such as peer-to-peer transmission protocols, modern cryptography, and consensus algorithms. Its decentralized feature keeps the status of each participating node in the network the same, cancels the trading center, and can ensure the fairness of the rights of trading subjects and reduce transaction costs when applied to distributed energy transactions, and can better adapt to the characteristics of distributed energy transactions.

[0005] Although the fairness and low cost of energy transactions have been achieved through blockchain technology, however, in the transaction process, the matching success rate between the selling and buying parties is not high, resulting in inefficient transactions. Summary of the Invention

[0006] In order to solve the problem of low efficiency of distributed energy transactions in the prior art, the present invention provides a distributed energy trading method based on blockchain. This trading method is based on a price-priority matching strategy and a bilateral auction mechanism, and solves the problem of low efficiency of distributed energy transactions in the prior art.

[0007] The technical solution adopted by the present invention to solve its technical problems is: A distributed energy trading method based on blockchain, comprising the following steps: S1: Obtain the power selling demands of power selling users and the power buying demands of power buying users within a target time period through blockchain; S2: Based on the price-priority trading method of bilateral auction, conduct the first-stage transaction according to the power selling demand and the power buying demand; S3: Obtain the power selling users and the power buying users who failed to be matched during the first-stage transaction; S4: Obtain the updated power selling demands of the power selling users who failed to be matched and the updated power buying demands of the power buying users who failed to be matched; S5: According to the updated power selling demand and the updated power buying demand, use the clearing contract to conduct uniform price clearing.

[0008] Optionally, the electricity selling demand includes the selling price and the electricity quantity to be sold.

[0009] Optionally, the electricity purchasing demand includes the purchasing price and the electricity quantity to be purchased.

[0010] Optionally, in step S2, the first-stage transaction based on the electricity selling demand and the electricity purchasing demand complies with the time priority principle and the quantity priority principle.

[0011] Optionally, the first-stage transaction based on the electricity selling demand and the electricity purchasing demand in step S2 includes: arranging the selling prices of the electricity selling users in descending order; arranging the purchasing prices of the electricity purchasing users in ascending order; if the selling price is equal to the purchasing price, a match is achieved.

[0012] Optionally, when the selling price is equal to the purchasing price and a match is achieved, the trading volume is the minimum value of the electricity quantity to be sold and the electricity quantity to be purchased.

[0013] Optionally, in step S5, using the clearing contract for uniform price clearing includes: obtaining the updated total electricity quantity to be sold and the updated total electricity quantity to be purchased; determining whether the updated total electricity quantity to be sold is greater than the updated total electricity quantity to be purchased; if so, using the updated average purchasing price as the uniform clearing price; otherwise, using the updated average selling price as the uniform clearing price.

[0014] Another object of the present invention is to provide a blockchain-based distributed energy trading system for trading according to the blockchain-based distributed energy trading method as described above.

[0015] The beneficial effects of the present invention are: The blockchain-based distributed energy trading method provided by the present invention adopts a strategy combining bilateral auction and uniform auction to clear distributed energy, which can improve the matching success rate between the selling and buying parties, quickly find the best clearing price, and improve the efficiency of distributed energy trading. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The present invention will be further described below with reference to the drawings and embodiments.

[0017] Figure 1 It is a schematic flowchart of the trading method in the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0018] The present invention will now be described in further detail. The embodiments described below are exemplary and are intended to explain the present invention, but should not be construed as limiting the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.

[0019] To make the above objects, features, and advantages of the present invention more apparent and understandable, the following provides a detailed description of specific embodiments of the present invention with reference to the accompanying drawings.

[0020] To solve the problem of low efficiency in distributed energy trading in the prior art, the present invention provides a distributed energy trading method based on blockchain. As shown in Figure 1 the following, the trading method includes the following steps: S1: Obtain the electricity selling demand of electricity selling users and the electricity buying demand of electricity buying users within a target time period through the blockchain; S2: Based on the price-priority trading method of bilateral auction, conduct the first-stage trading according to the electricity selling demand and the electricity buying demand; S3: Obtain the electricity selling users and electricity buying users who fail to be matched during the first-stage trading process; S4: Obtain the updated electricity selling demand of the electricity selling users who fail to be matched and the updated electricity buying demand of the electricity buying users who fail to be matched; S5: According to the updated electricity selling demand and the updated electricity buying demand, use the clearing contract to conduct uniform price clearing.

[0021] Specifically, construct a distributed energy trading system based on blockchain; the trading system includes a user side, a blockchain, and a distribution network; where the user side includes electricity buying users and electricity selling users; the user side submits demands to the blockchain, and the blockchain saves data and conducts trading clearing according to the demands proposed by the user side, and finally transports energy through the distribution network; during the distributed energy trading process, there are multiple buyers and multiple sellers, and the trading is all many-to-many trading; an electricity buying user can purchase energy from multiple electricity selling users, and similarly, an electricity selling user can also sell energy to multiple electricity buying users.

[0022] During the transaction process, the electricity-selling user sends the electricity-selling demand for the target time period to the blockchain, and the electricity-buying user sends the electricity-buying demand for the target time period to the blockchain. After the blockchain obtains the electricity-selling demand and the electricity-buying demand, based on the price-priority trading method of bilateral auction, the first-stage transaction is carried out according to the electricity-selling demand and the electricity-buying demand. During this first-stage transaction process, the electricity-selling demands of some electricity-selling users match the electricity-buying demands of the electricity-buying users, and transactions can be carried out. After the first-stage transaction is completed, there are still some electricity-selling users and electricity-buying users who fail to match. If no market guidance is carried out, users will not be able to meet their demands and a large amount of energy will be wasted. Further obtain the electricity-selling users and electricity-buying users who fail to match during the first-stage transaction process. In order to achieve a match as soon as possible, the electricity-selling users who fail to match during the first-stage transaction process can update their electricity-selling demands. Similarly, the electricity-buying users who fail to match during the first-stage transaction process can also update their electricity-buying demands. Re-obtain the updated electricity-selling demands of the electricity-selling users who fail to match and the updated electricity-buying demands of the electricity-buying users who fail to match, and further use the clearing contract to conduct a uniform-price clearing.

[0023] The distributed energy trading method based on blockchain provided by the present invention adopts a strategy combining bilateral auction and unified auction to clear distributed energy, which can improve the matching success rate of both the selling and buying sides, quickly find the best clearing price, and improve the efficiency of distributed energy trading.

[0024] Specifically, the electricity-selling demand in the present invention includes the selling price and the selling electricity quantity; similarly, the buying demand includes the buying price and the buying electricity quantity.

[0025] To improve the matching success rate of both the selling and buying sides, the present invention preferably follows the time-priority principle and the quantity-priority principle in the first-stage transaction according to the electricity-selling demand and the electricity-buying demand in step S2. Among them, the time-priority principle means that when there are two or more users with the same price, the one with an earlier submission time has a higher trading priority than the one with a later submission time. The quantity-priority principle means that when the time is the same and the price is the same, the one with a larger trading quantity has a higher priority to trade.

[0026] Specifically, the first-stage transaction according to the electricity-selling demand and the electricity-buying demand in step S2 includes: arranging the selling prices of the electricity-selling users in ascending order; arranging the buying prices of the electricity-buying users in descending order; if the selling price is equal to the buying price, a match is achieved.

[0027] The present invention preferably sets that when the selling price is equal to the buying price and a match is achieved, the trading volume is the minimum value of the selling electricity quantity and the buying electricity quantity.

[0028] In this step, after arranging the selling prices of the electricity-selling users in ascending order, the seller sequence Q is obtained s , the seller sequence Qs The lowest selling price is denoted as P s The selling electricity quantity of the electricity selling user with the lowest selling price is denoted as E s Arrange the purchase prices of the electricity purchasing users in descending order to obtain the buyer sequence Q b The buyer sequence Q b The highest purchase price in the buyer sequence is denoted as P b The purchase electricity quantity of the electricity purchasing user with the highest purchase price is denoted as E b When the highest purchase price in the buyer sequence is greater than the lowest selling price in the seller sequence, that is, P s ≤ P b The transaction is concluded. The transaction price is the average of the prices of both parties, and the transaction quantity is the smaller value of E s and E b Finally, deposit the transaction price into the sequence. After the transaction is completed, the completed part is deleted from the queue, and the uncompleted part is updated in the queue. Repeat the above process to continue the transaction

[0029] After the first - stage transaction ends, to improve the matching success rate and avoid energy waste, the electricity purchasing users and electricity selling users who failed to conduct transactions can be cleared according to the formulated clearing contract; the clearing contract can refer to the corresponding existing technologies; to further improve the matching success rate, the present invention preferably uses the clearing contract in step S5 for unified - price clearing, including: S51: Obtain the updated total selling electricity quantity and the updated total purchasing electricity quantity S52: Compare the updated total selling electricity quantity and the updated total purchasing electricity quantity, and determine whether the updated total selling electricity quantity is greater than the updated total purchasing electricity quantity; if so, go to step S53, otherwise go to step S54 S53: Use the average of the updated purchase prices as the unified clearing price S54: Use the average of the updated selling prices as the unified clearing price

[0030] The updated total selling electricity quantity refers to the sum of the updated selling electricity quantities of all electricity selling users who failed to conduct transactions; the updated total purchasing electricity quantity refers to the sum of the updated purchasing electricity quantities of all electricity purchasing users who failed to conduct transactions; the average of the updated purchase prices refers to the average value obtained by dividing the sum of the updated purchase prices of all electricity purchasing users who failed to conduct transactions by the number of electricity purchasing users who failed to conduct transactions; the average of the updated selling prices refers to the average value obtained by dividing the sum of the updated selling prices of all electricity selling users who failed to conduct transactions by the number of electricity selling users who failed to conduct transactions

[0031] In the unified price clearing process of the present invention, the formulation of the clearing price fully considers the profit and loss situation of the unsold electricity volume compared with the purchased electricity volume that fails to be traded, making the formulated clearing price more reasonable and easier to meet the needs of electricity selling users and electricity purchasing users at the same time, thus making it easier to achieve matching and complete the transaction.

[0032] Another object of the present invention is to provide a blockchain-based distributed energy trading system, which conducts transactions according to the blockchain-based distributed energy trading method as described above.

[0033] The blockchain-based distributed energy trading system provided by the present invention adopts a strategy of combining bilateral auction and unified auction to clear distributed energy during the trading process, which can improve the matching success rate of both the selling and buying sides, quickly find the best clearing price, and improve the efficiency of distributed energy trading.

[0034] Inspired by the ideal embodiments of the present invention described above, through the above description, relevant staff can completely make various changes and modifications without departing from the technical idea of the present invention. The technical scope of the present invention is not limited to the content in the specification, and its technical scope must be determined according to the scope of the claims.

Claims

1. A distributed energy trading method based on blockchain, characterized in that: The steps include: S1: Obtain the electricity sales demand of electricity sellers and the electricity purchase demand of electricity buyers within the target time period through blockchain; S2: A price priority trading method based on a bilateral auction, in which the first phase of trading is conducted according to the electricity sales demand and the electricity purchase demand; S3: Acquire the electricity seller and the electricity buyer that failed to be matched during the first phase of the transaction; S4: obtaining updated electricity sales demand of the electricity seller who cannot be matched and updated electricity purchase demand of the electricity buyer who cannot be matched; S5: Based on the updated electricity sales demand and the updated electricity purchase demand, a unified price clearing is performed using a clearing contract.

2. The distributed energy transaction method based on blockchain as claimed in claim 1, characterized in that: The electricity sales demand includes a sales price and a sales quantity.

3. The distributed energy transaction method based on blockchain as claimed in claim 2, characterized in that: The purchase demand includes a purchase price and a purchase amount of electricity.

4. The distributed energy transaction method based on blockchain as claimed in claim 3, characterized in that: In step S2, the first phase transaction is conducted according to the electricity sales demand and the electricity purchase demand in accordance with the time priority principle and the quantity priority principle.

5. The distributed energy transaction method based on blockchain as claimed in claim 4, characterized in that: In step S2, the first phase transaction based on the electricity selling demand and the electricity purchasing demand includes: arranging the selling prices of the electricity selling users in ascending order; arranging the purchasing prices of the electricity purchasing users in descending order; if the selling price is equal to the purchasing price, a match is achieved.

6. The distributed energy transaction method based on blockchain as claimed in claim 5, characterized in that: The selling price is equal to the purchasing price. When a match is achieved, the transaction volume is the minimum value between the selling power and the purchasing power.

7. The distributed energy transaction method based on blockchain as claimed in claim 3, characterized in that: In step S5, the clearing contract is used to perform unified price clearing, including: obtaining the updated total amount of electricity sold and the updated total amount of electricity purchased; judging whether the updated total amount of electricity sold is greater than the updated total amount of electricity purchased; if so, taking the updated average purchase price as the unified clearing price; otherwise, taking the updated average selling price as the unified clearing price.

8. A distributed energy trading system based on blockchain, characterized in that: The transaction is carried out according to the distributed energy transaction method based on blockchain as described in any one of claims 1 to 7.