Skip to content
eptr2-api-discovery logo

eptr2 API Discovery Guide

eptr2-api-discovery

Discover and explore available eptr2 API endpoints for Turkish electricity market data. List all 213+ API calls, find endpoints by category (GÖP, GİP, DGP, Üretim, Tüketim), search for specific data types, and get parameter requirements. Use when asking what data is available, how to find endpoin...

SKILL.md

Full skill instructions

eptr2 API Discovery Guide

Overview

This skill helps you discover and explore the 213+ API endpoints available in eptr2 for Turkish electricity market data. Use this when you need to find the right endpoint for your data needs.

Quick Start

from eptr2 import EPTR2

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

# List all available API calls
all_calls = eptr.get_available_calls()
print(f"Total available calls: {len(all_calls)}")
print(all_calls[:20])  # First 20 calls

Discovery Methods

1. Get All Available Calls

# List all endpoint names
calls = eptr.get_available_calls()
print(calls)

2. Get Number of Calls

# Get count of available endpoints
count = eptr.get_number_of_calls()
print(f"Available endpoints: {count}")

3. Get Aliases

# Some endpoints have shorthand aliases
aliases = eptr.get_aliases()
print(aliases)
# Example: 'ptf' is alias for 'mcp', 'smf' is alias for 'smp'

4. Get Help for Specific Call

from eptr2.mapping.help import get_help_d

# Get detailed info about an endpoint
help_info = get_help_d("mcp")
print(f"Category: {help_info['category']}")
print(f"Title (EN): {help_info['title']['en']}")
print(f"Title (TR): {help_info['title']['tr']}")
print(f"Description: {help_info['desc']['en']}")
print(f"URL: {help_info['url']}")

API Categories

CategoryTurkishDescriptionExample Calls
GÖPGün Öncesi PiyasasıDay-Ahead Marketmcp, dam-clearing, dam-volume
GİPGün İçi PiyasasıIntraday Marketwap, idm-qty, idm-log
DGPDengeleme Güç PiyasasıBalancing Power Marketsmp, bpm-up, bpm-down
ÜretimÜretimGenerationrt-generation, uevm, dpp
TüketimTüketimConsumptionrt-cons, uecm, load-plan
DengesizlikDengesizlikImbalanceimbalance-price, imb-qty, imb-vol
İAİkili AnlaşmalarBilateral Contractsbi-long, bi-short
BarajlarBarajlarDams/​Reservoirsdams-daily-level, dams-active-fullness
Kurulu GüçKurulu GüçInstalled Capacityinstalled-capacity, lic-pp-list

Common Endpoint Patterns

Price Data

  • mcp / ptf - Market Clearing Price
  • smp / smf - System Marginal Price
  • wap - Weighted Average Price (IDM)
  • imbalance-price - Imbalance prices

Quantity Data

  • rt-generation - Real-time generation
  • rt-cons - Real-time consumption
  • dam-clearing - DAM cleared quantity
  • idm-qty - IDM matched quantity

Plan Data

  • load-plan - Demand forecast
  • dpp / kgup - Daily production plan
  • kudup - Settlement production plan

Settlement Data

  • uevm - Settlement generation
  • uecm - Settlement consumption

Finding the Right Endpoint

Search by Keyword

from eptr2.mapping.help import get_help_d

# Get all help entries
all_help = get_help_d()

# Search for keywords
keyword = "price"  # or "fiyat" for Turkish
matches = {
    k: v for k, v in all_help.items()
    if keyword.lower() in v['title']['en'].lower()
    or keyword.lower() in v['desc']['en'].lower()
}

for call, info in matches.items():
    print(f"{call}: {info['title']['en']}")

List by Category

all_help = get_help_d()

# Filter by category
category = "GÖP"  # Day-Ahead Market
gop_calls = {
    k: v for k, v in all_help.items()
    if v['category'] == category
}

print(f"GÖP (Day-Ahead Market) endpoints:")
for call, info in gop_calls.items():
    print(f"  {call}: {info['title']['en']}")

Parameter Requirements

Get Required Parameters

from eptr2.mapping.parameters import get_required_parameters, get_optional_parameters

# Check what parameters an endpoint needs
required = get_required_parameters("mcp")
optional = get_optional_parameters("mcp")

print(f"Required: {required}")
print(f"Optional: {optional}")

Common Parameters

ParameterTypeDescription
start_datestrStart date (YYYY-MM-DD)
end_datestrEnd date (YYYY-MM-DD)
org_idint/​strOrganization ID
pp_idint/​strPower plant ID
uevcb_idint/​strProduction unit ID

Quick Reference Tables

Most Used Price Endpoints

CallDescription
mcpMarket Clearing Price
smpSystem Marginal Price
wapIDM Weighted Average Price
imbalance-priceImbalance prices
mcp-smp-imbCombined MCP, SMP, Imbalance

Most Used Quantity Endpoints

CallDescription
rt-generationReal-time generation by type
rt-consReal-time consumption
load-planDemand forecast
dam-clearingDAM cleared volume
idm-qtyIDM matched volume

Production Plan Endpoints

CallDescription
dpp / kgupDaily Production Plan (KGÜP)
kgup-v1KGUP Version 1
kudupSettlement Production Plan
uevmSettlement Generation (UEVM)

For More Details

  • See endpoint-categories.md for complete category listings
  • Run the helper script in scripts/​list_endpoints.py for interactive discovery

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View