尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A rule-based trading bot that paper-trades US stocks and crypto on Alpaca's paper account using real market data, with a public read-only dashboard for history, positions, and analytics.
POST /api/tick runs one cycle. cron-job.org calls it every 15 minutes, 24/7 (GitHub Actions is a backup): crypto trades every tick, stocks only during market hours. The Sorties page shows which scheduler started each run.paper-api.alpaca.markets.lib/engine.ts)bot_runs row. Skip if another run is still in flight.lib/risk.ts).
{strategy}.{side}.{symbol}.{barTime}. That makes retries idempotent and attributes every fill to a strategy.BTCUSD in positions and fills but BTC/USD in orders; everything is stored as BTC/USD.lib/strategies/)| Strategy | Symbols | Entry | Exit |
|---|---|---|---|
rsi_revert | SPY QQQ AAPL MSFT | RSI(14) < 30 | RSI > 55, or the 5% stop |
sma_cross | NVDA AMZN META TSLA AMD | SMA20 crosses above SMA50 (within 3 bars) | SMA20 < SMA50, or the 5% stop |
sma_cross | BTC/USD ETH/USD | same | same |
rsi_revert | SOL/USD | same | same |
Universe, parameters, and risk limits live in lib/config.ts. To add a strategy, implement the Strategy interface and register it in lib/strategies/index.ts.
Risk limits
Crypto trades pay Alpaca's trading fee. Fees are synced from the account's CFEE activities and shown next to realized P&L; round-trip P&L itself is before fees.
npm i -g vercel && vercel login
vercel link
vercel integration add neon # provisions DATABASE_URL
vercel env add ALPACA_KEY_ID
vercel env add ALPACA_SECRET_KEY
vercel env add CRON_SECRET # openssl rand -hex 32
vercel env add ADMIN_SECRET # openssl rand -hex 32
vercel env pull .env.local
npm run db:migrate
vercel git connect. Every push to main then deploys to production. Use vercel deploy --prod for a one-off manual deploy.https://<your-app>/api/tick every 15 minutes with header Authorization: Bearer <CRON_SECRET>. Runs it starts show as cron-job.org in Sorties.TICK_URL (https://<your-app>/api/tick) and CRON_SECRET. The 24/7 schedule uses about 2,900 Actions minutes a month: free on a public repo, over the 2,000-minute free tier on a private one. A weekly keep-alive job re-enables the workflow so GitHub's 60-day inactivity shutoff never triggers.npm run dev
# Dry run: evaluates strategies even when the market is closed, never places orders
curl -X POST -H "Authorization: Bearer $CRON_SECRET" "localhost:3000/api/tick?dryRun=1"
npm test
The Runs page has an admin panel (needs ADMIN_SECRET) with: dry run, run a tick now, pause/resume, and liquidate all.