35 lines
595 B
Bash
Executable File
35 lines
595 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Usage: $0 <engine_name>"
|
|
echo "Example: $0 trend"
|
|
exit 1
|
|
fi
|
|
|
|
ENGINE_NAME="$1"
|
|
BASE="app/src/trading/market_intelligence"
|
|
ENGINE_DIR="$BASE/$ENGINE_NAME"
|
|
|
|
mkdir -p "$ENGINE_DIR"
|
|
|
|
FILES=(
|
|
__init__.py
|
|
constants.py
|
|
models.py
|
|
engine.py
|
|
payloads.py
|
|
calculators.py
|
|
evaluators.py
|
|
)
|
|
|
|
for FILE in "${FILES[@]}"; do
|
|
cat > "$ENGINE_DIR/$FILE" <<EOF
|
|
# app/src/trading/market_intelligence/$ENGINE_NAME/$FILE
|
|
EOF
|
|
done
|
|
|
|
echo
|
|
echo "Created market intelligence engine:"
|
|
find "$ENGINE_DIR" -type f | sort
|