-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquickstart-tao.sh
More file actions
executable file
·63 lines (56 loc) · 1.77 KB
/
quickstart-tao.sh
File metadata and controls
executable file
·63 lines (56 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Gopher Quick Start - TAO Strategy Evolution
# A tested configuration to get started with strategy evolution
#
# Prerequisites:
# 1. Install gopher CLI (see docs/installation/cli.md)
# 2. Set your API key: export BART_GOPHER_CODE='gopher_your-key-here'
# Or use OpenRouter: export OPENROUTER_API_KEY='sk-or-v1-your-key-here'
#
# Usage:
# chmod +x quickstart-tao.sh
# ./quickstart-tao.sh
set -e
# Check if gopher is installed
if ! command -v gopher &> /dev/null; then
echo "Error: gopher CLI not found. Please install it first."
echo "See: https://github.com/gopher-lab/gopher/releases"
exit 1
fi
# Check for API key
if [ -z "$BART_GOPHER_CODE" ] && [ -z "$OPENROUTER_API_KEY" ]; then
echo "Warning: No API key found."
echo "Set BART_GOPHER_CODE or OPENROUTER_API_KEY environment variable."
echo ""
fi
# Calculate date range (last 25 days)
# macOS uses -v flag, Linux uses -d flag
END_DATE=$(date +%Y-%m-%d)
START_DATE=$(date -v-25d +%Y-%m-%d 2>/dev/null || date -d "25 days ago" +%Y-%m-%d)
# Set up database path in user's home directory
GOPHER_DIR="$HOME/Documents/Gopher"
mkdir -p "$GOPHER_DIR"
DB_PATH="$GOPHER_DIR/gopher.db"
echo "=============================================="
echo " Gopher Quick Start - TAO Strategy Evolution"
echo "=============================================="
echo ""
echo "Configuration:"
echo " Asset: TAO"
echo " Date range: $START_DATE to $END_DATE"
echo " Intervals: 15m, 30m, 1h"
echo " Iterations: 50"
echo " Leverage: 10x"
echo ""
echo "Starting evolution..."
echo ""
gopher evolve \
--asset TAO \
--start "$START_DATE" \
--end "$END_DATE" \
--intervals 15m,30m,1h \
--iterations 50 \
--leverage 10 \
--model qwen/qwen3-max \
--backtest-model qwen/qwen3-vl-8b-instruct \
--db "$DB_PATH"