Initial commit
This commit is contained in:
20
config/secrets.env.example
Normal file
20
config/secrets.env.example
Normal file
@@ -0,0 +1,20 @@
|
||||
# Exchange API Keys (ejemplo con Binance)
|
||||
EXCHANGE_NAME=binance
|
||||
API_KEY=your_api_key_here
|
||||
API_SECRET=your_api_secret_here
|
||||
|
||||
# Database
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_NAME=trading_bot
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=your_password
|
||||
|
||||
# Redis
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_DB=0
|
||||
|
||||
# General
|
||||
ENVIRONMENT=development
|
||||
LOG_LEVEL=INFO
|
||||
28
config/settings.yaml
Normal file
28
config/settings.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
trading:
|
||||
symbols:
|
||||
- BTC/USDT
|
||||
- ETH/USDT
|
||||
timeframes:
|
||||
- 1m
|
||||
- 5m
|
||||
- 15m
|
||||
- 1h
|
||||
|
||||
data:
|
||||
fetch_interval: 60 # segundos
|
||||
historical_days: 365
|
||||
max_retries: 3
|
||||
retry_delay: 5
|
||||
|
||||
database:
|
||||
pool_size: 10
|
||||
max_overflow: 20
|
||||
echo: false
|
||||
|
||||
redis:
|
||||
ttl: 3600 # time to live en segundos
|
||||
|
||||
logging:
|
||||
format: "{time:YYYY-MM-DD HH:mm:ss} | {level} | {message}"
|
||||
rotation: "500 MB"
|
||||
retention: "30 days"
|
||||
Reference in New Issue
Block a user