pandas only supports SQLAlchemy connectable (engine/connection) or database string
URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please
consider using SQLAlchemy.
Datos cargados: 284 filas, 57 columnas.
Archivo 'tabla_general_final.csv' generado con éxito.
/code/apps/indices/modulos_py/pestaña_4/IOL/orders_history.py:4: UserWarning:
The dash_table package is deprecated. Please replace
`import dash_table` with `from dash import dash_table`
Also, if you're using any of the table format helpers (e.g. Group), replace
`from dash_table.Format import Group` with
`from dash.dash_table.Format import Group`
INFO UserIOLSessionManager inicializado
/code/apps/indices/callbacks/trading_callbacks.py:24: UserWarning:
The dash_core_components package is deprecated. Please replace
`import dash_core_components as dcc` with `from dash import dcc`
INFO Registrando callbacks del modal de programacion...
INFO Callbacks del modal registrados exitosamente
INFO REGISTRANDO CALLBACKS DE LOGIN IOL
/code/apps/market_data/application/panel_at_service.py:150: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string
URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please
consider using SQLAlchemy.
INFO Datos iniciales cargados: 13 sectores, 284 símbolos
INFO Datos iniciales cargados: 13 sectores, 284 símbolos
Error al obtener datos de índices: connection to server at "localhost" (::1), port
5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" ([Link]), port 5432 failed: Connection
refused
Is the server running on that host and accepting TCP/IP connections?
/code/apps/market_data/application/panel_at_service.py:150: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string
URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please
consider using SQLAlchemy.
/code/apps/market_data/application/panel_at_service.py:150: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string
URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please
consider using SQLAlchemy.
/code/apps/market_data/application/panel_at_service.py:150: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string
URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please
consider using SQLAlchemy.
/code/apps/market_data/application/panel_at_service.py:150: UserWarning:
pandas only supports SQLAlchemy connectable (engine/connection) or database string
URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please
consider using SQLAlchemy.
Iniciando refresh_daily_data (max_lag_days=1)...
INFO refresh_daily_data: comenzando refresh para 284 símbolos (max_lag_days=1).
[1/284] Verificando símbolo: HTZ...
INFO [HistoricalBatchSyncService] Symbol HTZ está atrasado 25 días (> 1) respecto
del último día de mercado 2025-12-08. Ejecutando sync_symbol...
INFO [HistoricalBatchSyncService] Iniciando sync_symbol(HTZ)...
ERROR Error en ensure_symbol_fresh para símbolo HTZ: ([Link])
connection to server at "localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" ([Link]), port 5432 failed: Connection
refused
Is the server running on that host and accepting TCP/IP connections?
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
146, in __init__
self._dbapi_connection = engine.raw_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
3298, in raw_connection
return [Link]()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 449,
in connect
return _ConnectionFairy._checkout(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line
1264, in _checkout
fairy = _ConnectionRecord.checkout(pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 713,
in checkout
rec = pool._do_get()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 179,
in _do_get
with util.safe_reraise():
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/util/[Link]",
line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 177,
in _do_get
return self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 390,
in _create_connection
return _ConnectionRecord(self)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 675,
in __init__
self.__connect()
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 901,
in __connect
with util.safe_reraise():
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/util/[Link]",
line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 897,
in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
646, in connect
return [Link](*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
625, in connect
return self.loaded_dbapi.connect(*cargs, **cparams) # type: ignore[no-any-
return] # NOQA: E501
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/psycopg2/__init__.py", line 122, in
connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Link]: connection to server at "localhost" (::1), port 5432
failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" ([Link]), port 5432 failed: Connection
refused
Is the server running on that host and accepting TCP/IP connections?
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/code/apps/market_data/management/commands/refresh_daily_data.py", line 83,
in handle
refreshed = service.ensure_symbol_fresh(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/code/apps/market_data/application/historical_batch_service.py", line 118,
in ensure_symbol_fresh
self.sync_symbol(symbol)
File "/code/apps/market_data/application/historical_batch_service.py", line 62,
in sync_symbol
[Link].sync_symbol(symbol)
File "/code/data_engineering/batch_yahoo/yahoo_provider.py", line 154, in
sync_symbol
tablas = self._get_tables_for_symbol(symbol)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/orm/[Link]", line
2241, in _execute_internal
conn = self._connection_for_bind(bind)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/orm/[Link]", line
2110, in _connection_for_bind
return trans._connection_for_bind(engine, execution_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in _connection_for_bind
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/orm/state_changes.py",
line 139, in _go
ret_value = fn(self, *arg, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/orm/[Link]", line
1189, in _connection_for_bind
conn = [Link]()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
3274, in connect
return self._connection_cls(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
148, in __init__
Connection._handle_dbapi_exception_noconnection(
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
2439, in _handle_dbapi_exception_noconnection
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
146, in __init__
self._dbapi_connection = engine.raw_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
3298, in raw_connection
return [Link]()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 449,
in connect
return _ConnectionFairy._checkout(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR Error en ensure_symbol_fresh para símbolo AAPL: ([Link])
connection to server at "localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" ([Link]), port 5432 failed: Connection
refused
Is the server running on that host and accepting TCP/IP connections?
(Background on this error at: [Link]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
146, in __init__
self._dbapi_connection = engine.raw_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
3298, in raw_connection
return [Link]()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 449,
in connect
return _ConnectionFairy._checkout(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line
1264, in _checkout
fairy = _ConnectionRecord.checkout(pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 713,
in checkout
rec = pool._do_get()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 179,
in _do_get
with util.safe_reraise():
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/util/[Link]",
line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 177,
in _do_get
return self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^
(Background on this error at: [Link]
INFO [HistoricalBatchSyncService] DESP está marcado como delisted en ticker_info,
se omite ensure_symbol_fresh.
✗ Error al refrescar IVW: ([Link]) connection to server at
"localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" ([Link]), port 5432 failed: Connection
refused
Is the server running on that host and accepting TCP/IP connections?
(Background on this error at: [Link]
[281/284] Verificando símbolo: IVW...
INFO [HistoricalBatchSyncService] Symbol IVW está atrasado 25 días (> 1) respecto
del último día de mercado 2025-12-08. Ejecutando sync_symbol...
INFO [HistoricalBatchSyncService] Iniciando sync_symbol(IVW)...
ERROR Error en ensure_symbol_fresh para símbolo IVW: ([Link])
connection to server at "localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" ([Link]), port 5432 failed: Connection
refused
Is the server running on that host and accepting TCP/IP connections?
(Background on this error at: [Link]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
146, in __init__
self._dbapi_connection = engine.raw_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
3298, in raw_connection
return [Link]()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 449,
in connect
return _ConnectionFairy._checkout(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line
1264, in _checkout
fairy = _ConnectionRecord.checkout(pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 713,
in checkout
rec = pool._do_get()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 179,
in _do_get
with util.safe_reraise():
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/util/[Link]",
line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 177,
in _do_get
return self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 390,
in _create_connection
return _ConnectionRecord(self)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 675,
in __init__
self.__connect()
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 901,
in __connect
with util.safe_reraise():
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/util/[Link]",
line 146, in __exit__
raise exc_value.with_traceback(exc_tb)
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/pool/[Link]", line 897,
in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/[Link]", line
646, in connect
return [Link](*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(Background on this error at: [Link]
[282/284] Verificando símbolo: DESP...
[283/284] Verificando símbolo: YY...
[284/284] Verificando símbolo: X...
refresh_daily_data finalizado. OK=5, errores=279, total=284.
INFO [HistoricalBatchSyncService] YY está marcado como delisted en ticker_info, se
omite ensure_symbol_fresh.
INFO [HistoricalBatchSyncService] X está marcado como delisted en ticker_info, se
omite ensure_symbol_fresh.
INFO refresh_daily_data finalizado. OK=5, errores=279, total=284.
Ciclo completado, esperando 21600 segundos...