anti-gambling-trader-tw
免費開源的投資反詐、交易統計與自動化交易程式工具:預設 PaperBroker,提供 14 種券商/交易所選項;交易紀錄分析在本機執行。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
You set the rules. The Guardian operates within them. Every decision is explainable and verifiable.
DiversiFi tells you what your currency is doing to your savings, proposes a
protected allocation inside the limits you set, and records the decision where
you can check it. The AI is the interface. The bounds are the trust model.
Is my money losing purchasing power? · What can I do about it? · Why can I
trust the thing doing it? — everything else in this repo exists to answer
those three.檢視完整 README ↗You set the rules. The Guardian operates within them. Every decision is explainable and verifiable.
DiversiFi tells you what your currency is doing to your savings, proposes a protected allocation inside the limits you set, and records the decision where you can check it. The AI is the interface. The bounds are the trust model.
Is my money losing purchasing power? · What can I do about it? · Why can I trust the thing doing it? — everything else in this repo exists to answer those three.
Live app: https://diversifi.persidian.com · Positioning: docs/product.md · Trust model: docs/guardian.md
data → deterministic risk calculation → constrained strategy → AI explanation
→ your approval → on-chain execution
The model never authorizes a move. Risk arithmetic (services/fx-drag/),
allocation bands and asset eligibility (config/jurisdictions.ts,
services/strategy/) and spending caps (VaultService.validateSwap,
guardian-loop.ts) are code. The Guardian proposes inside those results; you
approve in your own wallet; the decision is recorded on the chain where the
money moves, with its reasoning anchored to 0G Storage as evidence.
Savings never leave your wallet — no deposit, no custodial account, no Safe.
Autonomy exists only as an ERC-7715 grant your own smart account enforces, and
chains that can't enforce it fall back to one-tap proposals and journal the
decline. What is enforced where — and what is still app-layer only — is stated
plainly in docs/guardian.md.
Both directions of the same trade, one engine:
A chosen philosophy (Africapitalism, Buen Vivir, Islamic Finance, Confucian, Gotong Royong) shapes the allocation. It is the retention layer, not the headline.
Four instruments, one job each: Shield (protection plan + allocation ring),
Home (your currency's moment + holdings), Exchange (move savings),
Guardian (daily limit, latest decision, journal, proof). Simple mode shows
the first three; Full adds Guardian. Design contract:
docs/design-language.md.
pnpm install
cp .env.example .env.local # minimum: NEXT_PUBLIC_PRIVY_APP_ID, PRIVY_APP_SECRET
pnpm dev # http://localhost:3042
Requires Node ≥22.11 and pnpm. Full env table, test drive, deploy and capture
material: docs/reference.md. Docs index:
docs/README.md. Contributing: CONTRIBUTING.md.
| Area | Where |
|---|---|
| Next.js app | apps/web/ (components/, hooks/, pages/, …) |
| Domain logic | packages/shared/ |
| 0G evidence layer | packages/shared-0g/ |
| Agent APIs | apps/web/pages/api/agent/ |
| Contracts | contracts/ (+ contracts/test/), scripts/Deploy*.s.sol (Foundry libs in root lib/) |
| Ops | ops/ · x402 smoke scripts scripts/smoke/ |
| Doc | Answer |
|---|---|
docs/product.md | What DiversiFi is, for whom, and what's live vs. intended |
docs/guardian.md | The trust model — what bounds execution, where it's enforced, agent identity, the claims audit |
docs/architecture.md | System, chains and settlement rails, the 0G evidence stack |
docs/plan.md | What we're building now, in priority order |
docs/reference.md | Setup, env vars, endpoints, deploy, demo capture |
docs/internal/demo-night-runbook.md | The timed 3-minute walletless demo, with preflight and fallbacks |
docs/design-language.md | Surface contract for any user-facing work |
docs/history/roadmap-log.md | Dated record of what shipped |
docs/archive/ | Closed grant tracks and past submissions — reference, not roadmap |
Prior-work disclosure. DiversiFi is an existing product. All Stellar
support was built during HackMeridian — the Stellar network adapter, wallet
integration, exchange flow, receipt path, and this section. The underlying
risk/philosophy/ledger machinery predates the event; the hackathon scope is
Stellar-specific work only. Executed plan:
docs/archive/tracks/hackmeridian-2026-10-execution-plan.md.
What the Stellar integration does. Stellar testnet is a first-class
network mode: connect a Stellar wallet (Freighter, LOBSTR, xBull, Albedo, Hana or Rabet via the StellarWalletsKit picker) → the instrument surfaces real G-address
balances → a supported move is prepared as a strict-send path payment
(XLM → testnet USDC, min-destination computed from a live route) → the user
reviews exact terms and signs in their own wallet → the confirmed transaction
renders as a ledger-verified receipt with an explorer link. Stellar never
masquerades as an EVM chain — a dedicated adapter (apps/web/lib/stellar/)
isolates Horizon reads, validates prepared transactions (fee-bump/signed/legacy
XDR rejected), and recovers pending submissions durably.
| Piece | Where |
|---|---|
| Stellar adapter (Horizon isolation, strict validation, pending recovery) | apps/web/lib/stellar/ |
| Wallet (StellarWalletsKit picker — Freighter/LOBSTR/xBull/Albedo/Hana/Rabet + WalletConnect mobile; direct-Freighter fallback) | apps/web/lib/stellar/wallet.ts |
| Exchange flow + receipt | apps/web/components/swap/StellarExchange.tsx, PairStage.tsx |
| Home/Shield honest Stellar surface | apps/web/components/stellar/StellarModePanel.tsx |
Agent intent (open_stellar — navigation only, never signing) | use-agent-chat.ts, guardian-interaction.ts |
| Stellar voice-of-the-corridor verbs (speech previews/drafts — never commits) | apps/web/lib/voice-verbs.ts |
On-chain evidence (all Stellar testnet):
| Demonstration | Artifact |
|---|---|
| XLM → USDC strict-send path payment, wallet-signed | Exchange flow (pnpm check-stellar-routes re-queries the live route) |
| Soroban RecommendationLedger contract | contracts-stellar/ → CDQUT55ICBFEC6JGMZDJEHA47ECWQOAYHLNFHO2ULFLDQVIDNMKL4WT6, deploy tx b3115c87…, records seq 1 a0a2b75b… / seq 2 f8e41fa3… |
| Smart account + on-chain spending policy (agent key can only move funds inside the cap) | account CBH5NT2HEIQGBMTABOPRPRUJKDNHU3HFIY6STSN7QZSCX7WXSLCOAVC2, policy install abc2fa2e…, within-limit spend accepted a8ab4ab0…, over-limit rejected on-chain (policy error #3221) — scripts/stellar-smart-account-policy.mts reproduces both legs |
| Claimable-balance corridor (bounded proposal claimable only by the counterparty) | create ffde38e3…, claim 0b8927b8… — scripts/stellar-claimable-balance.ts |
| SEP-24 anchor discovery (read-only: which assets an anchor advertises; not a redemption claim) |
Demo: https://diversifi.persidian.com (wallet picker → Stellar testnet → Exchange). Video walkthrough covers one success and one refusal (a spoken commit being declined — voice never signs).
RecommendationLedger (Celo, Arbitrum, 0G) and
AgenticID #1, the x402 intelligence gateway.docs/plan.md.docs/plan.md §11). This is the build-phase target described in the hackathon submission; the demo and idea-phase deliverable is the plan above.scripts/sep24-anchor-discovery.ts — testanchor.stellar.org advertises USDC deposit + withdraw |