22 lines
682 B
Bash
Executable File
22 lines
682 B
Bash
Executable File
#!/bin/bash
|
|
# 运行实时模拟盘
|
|
|
|
set -e
|
|
|
|
echo "Starting Realtime Paper Trading..."
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo ""
|
|
echo "This will:"
|
|
echo " 1. Connect to Binance WebSocket for real-time prices"
|
|
echo " 2. Monitor latest_signal.json for trading signals"
|
|
echo " 3. Execute simulated trades based on short-term signals"
|
|
echo ""
|
|
echo "Press Ctrl+C to stop"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo ""
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# Run the realtime trader
|
|
python -m trading.realtime_trader
|