This directory contains convenience scripts for common JGT service operations.
setup-service.sh
Initial setup and configuration
./setup-service.sh # Interactive setup
./setup-service.sh --full # Install with web dependencies
./setup-service.sh --quick # Quick setup with defaults
check-status.sh
Comprehensive status check
./check-status.sh # Basic status check
./check-status.sh --verbose # Detailed information
./check-status.sh --web # Check API endpoints
refresh-all.sh
Refresh all CDS data (excludes m1 by default)
./refresh-all.sh # Default timeframes/instruments
./refresh-all.sh "H1,H4,D1" # Specific timeframes
./refresh-all.sh "H1,H4" "EUR/USD,XAU/USD" # Specific timeframes + instruments
./refresh-all.sh "" "" --verbose # Defaults with verbose output
start-api-server.sh
Launch web API server
./start-api-server.sh # Start on default port 8080
./start-api-server.sh 9000 # Start on port 9000
start-daemon.sh
Start continuous daemon mode
./start-daemon.sh # Standard daemon mode
./start-daemon.sh --verbose # Verbose logging
# 1. Initial setup
./setup-service.sh --full
# 2. Check everything is working
./check-status.sh --verbose
# 3. Run a test refresh
./refresh-all.sh "H1" "EUR/USD" --verbose
# Check service status
./check-status.sh
# Refresh all data
./refresh-all.sh
# Start API server for data access
./start-api-server.sh
# Start continuous processing
./start-daemon.sh
# Detailed status with API check
./check-status.sh --web --verbose
# Refresh specific data with logging
./refresh-all.sh "H1,H4" "EUR/USD,XAU/USD" --verbose
# Test API server on custom port
./start-api-server.sh 9090
These scripts respect the following environment variables:
JGTPY_DATA
- Current data storage pathJGTPY_DATA_FULL
- Full historical data pathJGTPY_DROPBOX_APP_TOKEN
- Dropbox upload tokenJGTPY_SERVICE_MAX_WORKERS
- Number of parallel workersJGTPY_SERVICE_WEB_PORT
- Web server portJGTPY_API_KEY
- Optional API authenticationScripts will load configuration from:
$HOME/.jgt/.env
(created by setup script).env
All scripts include:
When the API server is running (./start-api-server.sh
):
Each script includes built-in help:
./script-name.sh --help
For comprehensive documentation, see:
chmod +x *.sh
./setup-service.sh
first./check-status.sh --verbose
These scripts provide a user-friendly interface to the powerful JGT Data Refresh Service, making complex operations simple and accessible.