Skip to content

Commit 359a929

Browse files
Replace Energy with Power in initialisation examples
Signed-off-by: camille-bouvy-frequenz <[email protected]>
1 parent 4fdadaf commit 359a929

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/frequenz/client/electricity_trading/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
2626
# Choose the version you want to install
2727
```bash
28-
VERSION=0.2.3
28+
VERSION=0.2.5
2929
pip install frequenz-client-electricity-trading==$VERSION
3030
```
3131
@@ -69,10 +69,10 @@ async def initialize():
6969
Currency,
7070
DeliveryArea,
7171
DeliveryPeriod,
72-
Energy,
7372
EnergyMarketCodeType,
7473
MarketSide,
7574
OrderType,
75+
Power,
7676
Price,
7777
)
7878
from datetime import datetime, timedelta
@@ -100,7 +100,7 @@ async def create_order():
100100
duration=timedelta(minutes=15)
101101
)
102102
price = Price(amount=Decimal("50.0"), currency=Currency.EUR)
103-
quantity = Energy(mwh=Decimal("0.1"))
103+
quantity = Power(mw=Decimal("0.1"))
104104
order = await client.create_gridpool_order(
105105
gridpool_id=gridpool_id,
106106
delivery_area=delivery_area,

0 commit comments

Comments
 (0)