Overview
Use this skill to help users get authenticated ALGOPACK access and diagnose subscription, key, entitlement, and rate-limit failures without exposing secrets.
Core Workflow
- Confirm whether the user is using direct REST/curl or the Python library.
- Explain that Data MOEX/DataShop can provide free API-token access through
Стартовый / Starter, whilePromois paid/subscribed access. - Tell users that entitlement, delay, and field coverage are account-plan dependent; real-time or fully up-to-date data requires a valid token and the relevant entitlement.
- For direct REST, show
Authorization: Bearer ${APIKEY}againsthttps://apim.moex.com/iss. - For Python library workflows, store
APIKEYin.env, callload_dotenv(), then setsession.TOKENfromos.environ["APIKEY"]. - Map the symptom to missing/expired key, no product entitlement, wrong host, market/date coverage, or throttling.
- State product boundaries: ALGOPACK supplies market data and analytics, not order placement.
Quick Start
Direct REST:
curl -L "https://apim.moex.com/iss/datashop/algopack/eq/obstats.json?date=2025-01-10" \
-H "Authorization: Bearer ${APIKEY}"
Python library:
python -m pip install "moexalgo[dataframe]" python-dotenv
import os
from dotenv import load_dotenv
from moexalgo import session, Market
load_dotenv()
session.TOKEN = os.environ["APIKEY"]
eq = Market("EQ")
rows = eq.obstats(date="2025-01-10")
References
Read references/access-troubleshooting.md for subscription setup, access levels, error diagnosis, rate limits, and escalation notes.
Boundary
Do not ask users to paste real API keys. Do not include real keys in code, shell history, notebooks, logs, or responses.