Unnamed Skill

Query Turkish electricity market operations data including Day-Ahead Market (GÖP) orders and clearing, Intraday Market (GİP) transactions and order books, bilateral contracts (İA), and Balancing Power Market (DGP) instructions. Use when asking about market volumes, trading activity, order books, block bids, flexible offers, or bilateral agreements in Turkey. Triggers on: GÖP, GİP, DGP, gün öncesi piyasası, gün içi piyasası, ikili anlaşmalar, market orders, block bids, YAL, YAT.

$ 설치

git clone https://github.com/Tideseed/eptr2 /tmp/eptr2 && cp -r /tmp/eptr2/.claude/skills/eptr2-market-operations ~/.claude/skills/eptr2

// tip: Run this command in your terminal to install the skill


name: eptr2-market-operations description: Query Turkish electricity market operations data including Day-Ahead Market (GÖP) orders and clearing, Intraday Market (GİP) transactions and order books, bilateral contracts (İA), and Balancing Power Market (DGP) instructions. Use when asking about market volumes, trading activity, order books, block bids, flexible offers, or bilateral agreements in Turkey. Triggers on: GÖP, GİP, DGP, gün öncesi piyasası, gün içi piyasası, ikili anlaşmalar, market orders, block bids, YAL, YAT. allowed-tools: Read, Bash(python:*)

Turkish Electricity Market Operations with eptr2

Overview

This skill helps you query electricity market trading data from Turkey's EPIAS Transparency Platform, covering the Day-Ahead Market (GÖP), Intraday Market (GİP), Bilateral Contracts (İA), and Balancing Power Market (DGP).

Quick Start

from eptr2 import EPTR2

# Initialize
eptr = EPTR2(use_dotenv=True, recycle_tgt=True)

# Get DAM clearing quantity
dam_clearing = eptr.call("dam-clearing", start_date="2024-07-29", end_date="2024-07-29")
print(dam_clearing)

Market Structure Overview

MarketTurkishAbbreviationTiming
Day-Ahead MarketGün Öncesi PiyasasıGÖPD-1 (day before delivery)
Intraday MarketGün İçi PiyasasıGİPUntil 1h before delivery
Balancing Power MarketDengeleme Güç PiyasasıDGPReal-time balancing
Bilateral Contractsİkili AnlaşmalarİAOTC agreements

Day-Ahead Market (GÖP) Endpoints

Quantities & Clearing

CallDescription (EN)Description (TR)
dam-clearingDAM Matching QuantityGÖP Eşleşme Miktarı
dam-volumeDAM Trade ValueGÖP İşlem Hacmi
dam-bidDAM Submitted Bid VolumeGÖP Teklif Edilen Alış Miktarları
dam-offerDAM Submitted Sales VolumeGÖP Teklif Edilen Satış Miktarları

Block & Flexible Orders

CallDescription (EN)Description (TR)
dam-block-bidDAM Block BidGÖP Blok Alış Miktarı
dam-block-offerDAM Block OfferGÖP Blok Satış Miktarı
dam-flexible-bidDAM Flexible Buying OfferGÖP Esnek Alış Teklif
dam-flexible-offerDAM Flexible Selling OfferGÖP Esnek Satış Teklif
dam-flexible-matchingDAM Matched Flexible OffersGÖP Esnek Teklif Eşleşme

Price Independent Orders

CallDescription (EN)Description (TR)
pi-bidPrice Independent Bid OrderFiyattan Bağımsız Alış Teklifi
pi-offerPrice Independent Sales OrderFiyattan Bağımsız Satış Teklifi

Supply-Demand

CallDescription
supply-demandDAM Supply-Demand curves at each price step

Intraday Market (GİP) Endpoints

Quantities & Prices

CallDescription (EN)Description (TR)
idm-qtyIDM Matching QuantityGİP Eşleşme Miktarı
idm-volumeIDM Trade ValueGİP İşlem Hacmi
wapIDM Weighted Average PriceGİP Ağırlıklı Ortalama Fiyat

Min-Max Prices

CallDescription
idm-mm-bidIDM Min-Max Bid Price
idm-mm-offerIDM Min-Max Offer Price
idm-mm-matchingIDM Min-Max Matching Price

Transaction & Order Data

CallDescription
idm-logIDM Transaction History (işlem akışı)
idm-order-listIDM Order List
idm-contract-listIDM Contract List
idm-summaryIDM Contract Summary
idm-ob-qtyIDM Bid/Offer Quantities

Balancing Power Market (DGP) Endpoints

CallDescription (EN)Description (TR)
bpm-upUp Regulation InstructionsYük Alma (YAL) Talimat
bpm-downDown Regulation InstructionsYük Atma (YAT) Talimat
bpm-orders-w-avgBPM Instructions (Weighted Avg)DGP Talimatları (AOF)
smp-dirSystem DirectionSistem Yönü

Bilateral Contracts (İA) Endpoints

CallDescription (EN)Description (TR)
bi-longBilateral Contracts Bid QuantityİA Alış Miktarı
bi-shortBilateral Contracts Offer QuantityİA Satış Miktarı
bi-euasEÜAŞ - Authorized Retailers BilateralsEÜAŞ - GTŞ İkili Anlaşmalar

Common Use Cases

1. DAM Trading Activity

# Get DAM clearing and volume for a day
clearing = eptr.call("dam-clearing", start_date="2024-07-15", end_date="2024-07-15")
volume = eptr.call("dam-volume", start_date="2024-07-15", end_date="2024-07-15")

print(f"Total Cleared: {clearing['matchedQuantity'].sum():,.0f} MWh")
print(f"Total Volume: {volume['volume'].sum():,.0f} TL")

2. IDM Transaction History

# Get intraday market transaction log
idm_log = eptr.call("idm-log", start_date="2024-07-15", end_date="2024-07-15")

# Analyze by contract
print(f"Total Transactions: {len(idm_log)}")
print(f"Total IDM Volume: {idm_log['quantity'].sum():,.0f} MWh")

3. Balancing Instructions

# Get up and down regulation instructions
yal = eptr.call("bpm-up", start_date="2024-07-15", end_date="2024-07-15")
yat = eptr.call("bpm-down", start_date="2024-07-15", end_date="2024-07-15")

print(f"Total Up Regulation (YAL): {yal['upRegulationNet'].sum():,.0f} MWh")
print(f"Total Down Regulation (YAT): {yat['downRegulationNet'].sum():,.0f} MWh")

4. Bilateral Contracts Volume

bi_long = eptr.call("bi-long", start_date="2024-07-15", end_date="2024-07-15")
bi_short = eptr.call("bi-short", start_date="2024-07-15", end_date="2024-07-15")

print(f"Bilateral Purchases: {bi_long['quantity'].sum():,.0f} MWh")
print(f"Bilateral Sales: {bi_short['quantity'].sum():,.0f} MWh")

Market Volume Breakdown

Get comprehensive market volumes:

# All market volumes in one call
market_volumes = eptr.call(
    "electricity-market-quantity",
    start_date="2024-07-15",
    end_date="2024-07-15"
)
print(market_volumes)

Date Format

Always use ISO format: YYYY-MM-DD (e.g., "2024-07-29")

Authentication

Set credentials in .env file:

EPTR_USERNAME=your_email@example.com
EPTR_PASSWORD=your_password

For More Details