config: Deprecate MySQL and update PostgreSQL credentials
- PostgreSQL credentials updated to trading_user/trading_dev_2026 - MySQL section marked as deprecated (remote server no longer accessible) - Table mappings updated to use market_data PostgreSQL schema - Password redacted from deprecated MySQL config Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
75c4d07690
commit
475e913e3c
@ -1,32 +1,33 @@
|
|||||||
# Database Configuration
|
# Database Configuration
|
||||||
# ======================
|
# ======================
|
||||||
|
# Updated: 2026-01-25 - Homologated to use local PostgreSQL only
|
||||||
|
|
||||||
# PostgreSQL - Primary Database (trading_platform)
|
# PostgreSQL - Primary Database (trading_platform)
|
||||||
|
# All data now stored locally in PostgreSQL
|
||||||
postgres:
|
postgres:
|
||||||
host: "${DB_HOST:-localhost}"
|
host: "${DB_HOST:-localhost}"
|
||||||
port: "${DB_PORT:-5432}"
|
port: "${DB_PORT:-5432}"
|
||||||
database: "${DB_NAME:-trading_platform}"
|
database: "${DB_NAME:-trading_platform}"
|
||||||
user: "${DB_USER:-trading}"
|
user: "${DB_USER:-trading_user}"
|
||||||
password: "${DB_PASSWORD:-trading_dev_2025}"
|
password: "${DB_PASSWORD:-trading_dev_2026}"
|
||||||
pool_size: 10
|
pool_size: 10
|
||||||
max_overflow: 20
|
max_overflow: 20
|
||||||
pool_timeout: 30
|
pool_timeout: 30
|
||||||
pool_recycle: 3600
|
pool_recycle: 3600
|
||||||
echo: false
|
echo: false
|
||||||
|
|
||||||
# MySQL - Remote Database (Historical data - READ ONLY)
|
# MySQL - DEPRECATED (2026-01-25)
|
||||||
|
# Historical data has been migrated to PostgreSQL market_data schema
|
||||||
|
# This section is kept for reference only and is NOT used
|
||||||
mysql:
|
mysql:
|
||||||
host: "72.60.226.4"
|
_deprecated: true
|
||||||
|
_deprecation_note: "Use PostgreSQL market_data schema instead"
|
||||||
|
_migration_date: "2026-01-25"
|
||||||
|
host: "72.60.226.4" # Remote server no longer accessible
|
||||||
port: 3306
|
port: 3306
|
||||||
user: "root"
|
user: "root"
|
||||||
password: "AfcItz2391,."
|
password: "[REDACTED]"
|
||||||
database: "db_trading_meta"
|
database: "db_trading_meta"
|
||||||
pool_size: 5
|
|
||||||
max_overflow: 10
|
|
||||||
pool_timeout: 30
|
|
||||||
pool_recycle: 3600
|
|
||||||
echo: false
|
|
||||||
read_only: true # Solo lectura de datos historicos
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
host: "localhost"
|
host: "localhost"
|
||||||
@ -42,8 +43,14 @@ data:
|
|||||||
batch_size: 5000
|
batch_size: 5000
|
||||||
cache_ttl: 300 # seconds
|
cache_ttl: 300 # seconds
|
||||||
|
|
||||||
# Table names
|
# Table names (PostgreSQL market_data schema)
|
||||||
tables:
|
tables:
|
||||||
tickers_agg_data: "tickers_agg_data"
|
# Primary OHLCV tables
|
||||||
tickers_agg_ind_data: "tickers_agg_ind_data"
|
ohlcv_5m: "market_data.ohlcv_5m"
|
||||||
tickers_agg_data_predict: "tickers_agg_data_predict"
|
ohlcv_15m: "market_data.ohlcv_15m"
|
||||||
|
tickers: "market_data.tickers"
|
||||||
|
|
||||||
|
# Legacy mappings (for backward compatibility)
|
||||||
|
tickers_agg_data: "market_data.ohlcv_5m" # Maps to 5-minute data
|
||||||
|
tickers_agg_ind_data: "market_data.ohlcv_5m" # Same table, indicators computed at runtime
|
||||||
|
tickers_agg_data_predict: "ml.predictions" # ML predictions table
|
||||||
Loading…
Reference in New Issue
Block a user