Add testing scripts for DB connection and candle reading
- test_db_connection.py: 5-stage DB connection test (TCP, auth, schema, data, db.py integration) - read_candles.py: Read 1m candles with --all, --[symbol], --timestamp support - README.md: Usage instructions for testing scripts - .env.example: Template for connection configuration Default symbols updated to match LiveCandleFetcher subscriptions (BNB, ETH, xyz:GOLD, etc.) Colon-containing symbols handled via db.sanitize_table_name()
This commit is contained in:
9
testing/.env.example
Normal file
9
testing/.env.example
Normal file
@ -0,0 +1,9 @@
|
||||
# Database connection configuration for testing
|
||||
# Copy this file to .env and adjust as needed.
|
||||
|
||||
PG_HOST=20.20.20.20
|
||||
PG_PORT=5433
|
||||
PG_DB=hyper
|
||||
PG_USER=hyper
|
||||
PG_PASSWORD=your_password_here
|
||||
PG_TIMEOUT=10
|
||||
Reference in New Issue
Block a user