Skip to main content

BYMA Market Data Library - Open Data API client

Project description

PyOBD - BYMA Market Data Library

Biblioteca Python para acceso a datos del mercado argentino vía BYMA Open Data API.

Compatible con la API de pyhomebroker para facilitar migración y uso conjunto.

Instalación

pip install PyOBD

Instalación desde GitHub (última versión en el repositorio):

pip install "git+https://github.com/franco-lamas/PyOBD.git"

Install from GitLab Package Registry (replace <GITLAB_URL> and <PROJECT_ID>):

pip install --index-url https://<GITLAB_URL>/api/v4/projects/<PROJECT_ID>/packages/pypi/simple PyOBD==0.3.0

Uso rápido

from pyobd import BymaData

client = BymaData()

# Cotización actual
quote = client.get_current_quote("GGAL", settlement="48HS")
print(quote)

# Datos históricos (compatible con pyhomebroker)
df = client.get_daily_history(
    symbol="GGAL",
    from_date="2026-01-01",
    to_date="2026-03-01",
)
print(df.head())

# Datos intradiarios (1-minuto)
idf = client.get_intraday_history("GGAL")
print(idf.head())

# Índices
indices = client.get_indices()
print(indices)

Métodos disponibles

(Nota: algunos nombres antiguos se mantienen con alias deprecados)

Método Descripción
get_market_time() Estado y horario del mercado
get_indices() Índices bursátiles
get_bluechips() Panel acciones líderes (blue chips)
get_general_board() Panel acciones general
get_cedears() CEDEARs
get_current_quote(symbol, settlement) Cotización actual
get_daily_history(symbol, from_date, to_date) Datos históricos OHLCV
get_intraday_history(symbol, from_date=None, to_date=None) Datos intradiarios OHLCV 1-minuto
get_government_bonds() Títulos públicos
get_corporate_bonds() Obligaciones negociables
get_short_term_government_bonds() Letras (corto plazo)
get_company_info(symbol) Información empresa
get_equity_profile(symbol) Perfil especie
get_company_management(symbol) Directivos
get_company_balance(symbol) Balance

Migración desde pyhomebroker

Los métodos clave tienen las mismas firmas y estructura de DataFrame para facilitar la conversión:

# pyhomebroker (requiere cuenta broker)
import pyhomebroker as hb
hb.auth.login(dni=..., user=..., password=..., broker=...)

# Histórico diario
df = hb.history.get_daily_history("GGAL", "2026-01-01", "2026-03-01")
print(df.columns)  # ['date', 'open', 'high', 'low', 'close', 'volume']

# Intradiario
df = hb.history.get_intraday_history("GGAL")

# PyOBD (sin autenticación):
from pyobd import BymaData
client = BymaData()

df = client.get_daily_history("GGAL", "2026-01-01", "2026-03-01")
print(df.columns)  # ['date', 'open', 'high', 'low', 'close', 'volume']

df = client.get_intraday_history("GGAL")

Las diferencias menores:

  • PyOBD expone los métodos directamente en el cliente (client.get_*()) en lugar de módulos anidados (hb.history.*).
  • No se requiere login ni credenciales.
  • Algunos nombres de métodos han cambiado (get_bluechips vs get_leading_equity, etc.) pero existen alias deprecados.

DISCLAIMER

La información es mostrada “tal cual es”, puede ser incorrecta o contener errores, eso es responsabilidad de cada sitio. No somos responsables por el uso indebido de los Scripts.

Licencia

GNU General Public License v3 (GPLv3)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyobd-0.3.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyobd-0.3.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file pyobd-0.3.0.tar.gz.

File metadata

  • Download URL: pyobd-0.3.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for pyobd-0.3.0.tar.gz
Algorithm Hash digest
SHA256 99b957c3fb05728c4cb542fd1f2168b69160a4179df8423a8c791684b4869df8
MD5 3c35c22801491c98bd891aa649130246
BLAKE2b-256 34f56868c56385ed1933c97be6d858c16d7a97be115df3092face70b23ca9f7c

See more details on using hashes here.

File details

Details for the file pyobd-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pyobd-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for pyobd-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9acc84d9cc7adb70dda9f9da06841649595134e7aa0c26f7da57e2e1549c1a77
MD5 84225c804ab4ede05ec534fc69f774e3
BLAKE2b-256 6fb4a1260d3aa5e6eb999d065968cd1b0bff835a5545cc6b8cfaaf7379b7e49a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page