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_bluechipsvsget_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)
Metadata
Release files for PyOBD 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyobd-0.3.0.tar.gz | 21.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyobd-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.5 kB
Release files / pyobd-0.3.0.tar.gz
| Download URL | pyobd-0.3.0.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99b957c3fb05728c4cb542fd1f2168b69160a4179df8423a8c791684b4869df8
|
|
BLAKE2b-256 checksum How to use checksums |
34f56868c56385ed1933c97be6d858c16d7a97be115df3092face70b23ca9f7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / pyobd-0.3.0-py3-none-any.whl
| Download URL | pyobd-0.3.0-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9acc84d9cc7adb70dda9f9da06841649595134e7aa0c26f7da57e2e1549c1a77
|
|
BLAKE2b-256 checksum How to use checksums |
6fb4a1260d3aa5e6eb999d065968cd1b0bff835a5545cc6b8cfaaf7379b7e49a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for PyOBD 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.