build 039: complete Quotes Feed migration foundation
This commit is contained in:
46
scripts/create_market_common.sh
Executable file
46
scripts/create_market_common.sh
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE="app/src/trading/market_intelligence"
|
||||
COMMON="$BASE/common"
|
||||
|
||||
echo "Creating directories..."
|
||||
|
||||
mkdir -p "$COMMON"
|
||||
|
||||
echo "Creating __init__.py files..."
|
||||
|
||||
cat > "$BASE/__init__.py" <<'EOF'
|
||||
# app/src/trading/market_intelligence/__init__.py
|
||||
EOF
|
||||
|
||||
cat > "$COMMON/__init__.py" <<'EOF'
|
||||
# app/src/trading/market_intelligence/common/__init__.py
|
||||
EOF
|
||||
|
||||
echo "Creating common files..."
|
||||
|
||||
FILES=(
|
||||
constants.py
|
||||
enums.py
|
||||
events.py
|
||||
models.py
|
||||
payloads.py
|
||||
reasons.py
|
||||
scores.py
|
||||
snapshots.py
|
||||
timeframes.py
|
||||
types.py
|
||||
)
|
||||
|
||||
for FILE in "${FILES[@]}"; do
|
||||
cat > "$COMMON/$FILE" <<EOF
|
||||
# app/src/trading/market_intelligence/common/$FILE
|
||||
EOF
|
||||
done
|
||||
|
||||
echo
|
||||
echo "Done."
|
||||
echo
|
||||
echo "Created:"
|
||||
find "$BASE" -type f | sort
|
||||
34
scripts/create_market_engine.sh
Executable file
34
scripts/create_market_engine.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user