- price_history table on Oracle ADB stores prices every 10 minutes - check_trend(): current price vs N hours ago (default 1h, +3% threshold) - check_momentum(): unchanged (MA20 + 2x volume still applies) - Ticker list cached 5 minutes to avoid 429 rate limits - Collector starts 30s after boot to avoid simultaneous API calls - Configurable: TREND_HOURS, TREND_MIN_GAIN_PCT in .env Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
424 B
Plaintext
20 lines
424 B
Plaintext
ACCESS_KEY=
|
|
SECRET_KEY=
|
|
|
|
# Oracle ADB (price_history 저장)
|
|
ORACLE_USER=
|
|
ORACLE_PASSWORD=
|
|
ORACLE_DSN=
|
|
ORACLE_WALLET=
|
|
|
|
# 추세 판단: N시간 전 대비 +M% 이상이면 상승 중으로 판단
|
|
TREND_HOURS=1
|
|
TREND_MIN_GAIN_PCT=3
|
|
|
|
# 트레일링 스탑: 최고가 대비 -N% 도달 시 청산
|
|
STOP_LOSS_PCT=5
|
|
|
|
# 타임 스탑: N시간 경과 후 수익률 M% 미만이면 청산
|
|
TIME_STOP_HOURS=24
|
|
TIME_STOP_MIN_GAIN_PCT=3
|