This personal crypto and asset trading app - based upon mosaic theoretic complexity mining - is my fifth large scale vibe-coding project in the last 8 months. (I am an erstwhile software engineer and have a bachelor of applied science in math/computing.)



It's working nicely now.
If you want to use the same toolkit as me:
1. Google Firebase Firestore for back end database.
2. AntiGravity for the IDE (the integrated development environment where the AI does the vibe coding)
3. Google Gemini Pro (or else plus) account for the AI credits (Often Google has promotions with the first month free or with the first three months at 24% of the price.)
4. GitHub (not necessary for the above trading app except to backup my code into a private repository. Make sure you set your repository to private)
The trading app architecture is completely different to the architecture of neurascene.app, diagnav.site, and infopunk.site . They are all REACT Next.js client-server apps hosted on Google Firebase hosting services. The trading app is a synchronous-asynchronous python app which runs on my local laptop and uses a remote database (the Firestore database) for all of its logging and ledger data. It calls Google Vertex AI for the mosaic theoretic complexity mining.
I've learned a few things along the way. Mostly that while Google Gemini 3.1 is very good, Anthropic Opus 4.6 thinking is better.
I have been using Gemini almost exclusively as it is usually cheaper. I used Gemini 3.1 almost exclusively for all apps including this one.
Recently, however I discovered (by running out of Gemini Pro 3.1 credits) that when one logs into AntiGravity (2 above) with one's Gemini Pro (or else Plus) account, one gets quite a few free Anthropic Claude Opus credits/tokens to spend. Enough to analyse the entire chat context and code base done by Gemini 3.1 and fix complex problems.
That's how I discovered that Opus 4.6 is much smarter at code. It can do better problem solving than Gemini Pro 3.1, and much faster. Moreover, its adjunct logic, context awareness, and general knowledge context and judgement are far more powerful. It solves the problem faster, better, with less errors, and with more insight.


I also learned that using Flash 3.0 in conjunction with Pro 3.1 (in a separate browser with file uploads) is not completely useless, but is largely useless. For a while Pro gave sensible prompts to use with Flash (cut and paste into AntiGravity Flash chat),which executed them faithfully. However, then I think Google caught onto the trick and suddenly Pro wouldn't analyse the uploaded files properly and Flash would not just do search, copy, paste but insisted upon re-'fuck'-toring to prove how clever it was.
Also: life hacker hack: Do NOT use Flash for your complicated app unless you want it to be properly 'refuctored'. (No. It's not a typo.)
For those vibe coders who don't know what refactoring is: it's changing the code and especially the architecture thereof (how the logic is modularised, and what functions do what work where and how, and what the division of labour is between the front end and back end and so on...). So you can guess what refuctoring is. Use Flash 3.0 on your complicated code base problems if you want to find out. (You don't want to find out, so don't do that.)
EXAMPLE 1
Here's just one example from my recent work on my portfolio app (in which you are reading this now). Gemini built it using Vite frontend against Google Firebase authentication and a Firebase Firestore NoSQL database. I previously asked Gemini Pro 3.1 to do just step 4, and it choked and asked me to do complicated updates libraries and the filesystem. Claude did it without blinking and did three other front end updates at the same time, then tied them all up with a little bow and gifted them to me quickly:
ME:
1. Add an edit button to the articles in all of the live site pages which display articles so that if the logged in user is thee author admin then the app will take them directly to the article editor for that article so they can edit it.
2. The H1 and H2 buttons on the article editor don't do anything.
3. quotation button works but there's nothing in the WYSIWYG view in the article editor to show it's been applied
4. Implement the ability to embed X posts including their images and videos using the X embed post ccode feature:
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">To our warfighters and the American people—<br><br>THIS IS WHAT WE DID THIS WEEK AT THE WAR DEPARTMENT! <a href="https://t.co/vdR8CguF6Y">pic.twitter.com/vdR8CguF6Y</a></p>— DOW Rapid Response (@DOWResponse) <a href="https://twitter.com/DOWResponse/status/2042715740604670389?ref_src=twsrc%5Etfw">April 10, 2026</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
Opus 4.6 (thinking):
Build is successful with exit code 0. Let me provide a clear summary of all the changes made:
All 4 Changes Implemented ✅
1. Admin Edit Button on Article Lists & Detail Pages
ArticleList.tsx: AddeduseAuthhook. For admin users, a floating "Edit" button with a pencil icon appears on hover (top-right corner of each article card), linking directly to/admin/articles/[id]/edit. UsesstopPropagationso clicking it doesn't also navigate to the article.
blog/[id]/page.tsx: Added an "Edit Article" button in the sticky top bar (next to the dim slider), visible only to admins. This works on every article detail page regardless of category.2. H1 & H2 Buttons Fixed
Root cause: The toolbar had H2/H3 but users expected H1/H2. Also,
StarterKitwasn't explicitly configured with heading levels, which can prevent H1.Fix: Renamed the buttons to H1 (level 1) and H2 (level 2), and added
StarterKit.configure({ heading: { levels: [1, 2, 3] } }). Added explicit ProseMirror CSS for H1/H2 visual styles in the WYSIWYG editor.3. Blockquote Visual in WYSIWYG Editor Fixed
Added
.ProseMirror blockquoteCSS rule inglobals.csswith the indigo left-border, italic text, and subtle background — matching what appears in the public article view.4. X (Twitter) Post Embedding
Editor: Added a custom TipTap
TwitterEmbedNodethat stores the raw embed code as adata-embed-codeattribute. In the WYSIWYG view, it shows a styled placeholder card with the X logo and a Remove button. The toolbar now has an X icon button that prompts you to paste your<blockquote class="twitter-tweet">embed code.Article display: A
useEffectnow processes[data-twitter-embed]divs from saved content — it extracts the stored embed code, injects it as real HTML, then callstwttr.widgets.load()to render the live tweet card with images/videos.CSS: Added
.twitter-embed-wrapperstyles and a reset forblockquote.twitter-tweetso the article-content blockquote styles don't interfere with the Twitter card rendering.ArticleList.tsx page.tsx ArticleEditor.tsx globals.css
EXAMPLE 2.
If you're not very familiar with LLMs for vibe coding then it may be difficult to initially grasp the significance of this. Briefly stated: I handed Opus 4.6 (thinking) the entire 20,000+ line trading app and asked it how to fix a couple of complicated issues the Gemini Pro and Flash models had caused, then asked it how to best use the app in the broader context of the mission. It did both in short order and, most strikingly, its understanding of what the app was for and what to do to make it complexity trade volatility-wise and fast instead of Berkshire-Hathaway long and slow was astonishing.
(Note that the code base includes a huge repository of carefully curated and selected strategy documents so that humans and models know what the mission and theory are, and it had access to those. However, it's a lot of information and in chronological order some of it is out of date a little bit.)
ME:
1. Firstly, my overall conslusion is that this app, while working mechanically now, simply doesn't work in terms of its overall mission of making money daily from AI mosaic theory complexity mining.
2. Moomoo holds fiat waiting to be converted from USD to AUD on Monday (from conversion done this morning) as USD. It's not available to trade, but it is listed as theUSD balance. So leviathan sees it asavailable cash and tries to buy I think? It didn't go through at MooMoo and its not in the ledger sop I am assuming there's no problem.
[PERF] Pulse Active. Port: $76.73 USD (Commit in 84 pulses)
[PERF] Pulse Active. Port: $76.73 USD (Commit in 83 pulses)
[PERF] Pulse Active. Port: $76.73 USD (Commit in 82 pulses)
[PULSE] Heartbeat Active (Rally)
[OVERLORD] Initiating Strategic Sector Scout (60-Min Window)...
> Sector: MAJORS | Avg Vibe Power: 0.16
> Sector: AI_AGENTS | Avg Vibe Power: 0.49
> Sector: MOMENTUM | Avg Vibe Power: 0.19
[OVERLORD] Market Consensus: Low-Vibe Noise. Recommend MAJORS (Safety) (Auto-Override OFF)
[TELEMETRY] Kraken Fees Pushed To UI: Maker 0.400% | Taker 0.800%
[ACTIVE SCOUT] Kraken Fee Sync: Maker 0.400% | Taker 0.800%
==================================================
STARTING DUAL-ENGINE TICK ITERATION
==================================================
Fetching live billing SKUs for model: gemini-2.5-pro...
[BILLING] Exact SKU match not found for gemini-2.5-pro. Using fallback.
Leviathan is now alive. Operating on Dual-Engine settings. Equity Broker: MOOMOO. Margin Shorting: False (2x).
2026-04-11 18:23:00,468 | 44960 | 11316 | [open_context_base.py:409] initconnect_sync: New connect ready: conn=7448646775533593970(82) context=<moomoo.trade.open_trade_context.OpenSecTradeContext object at 0x0000022A699E1090>
2026-04-11 18:23:00,922 | 44960 | 4296 | [open_context_base.py:516] on_disconnect: Disconnected: conn=0(82) reason=CallClose
2026-04-11 18:23:00,925 | 44960 | 11316 | [open_context_base.py:409] initconnect_sync: New connect ready: conn=7448646777477925468(83) context=<moomoo.trade.open_trade_context.OpenSecTradeContext object at 0x0000022A792E3390>
Fetching Crypto Market Gravity (BTC Anchor)...
2026-04-11 18:23:00,940 | 44960 | 4296 | [open_context_base.py:516] on_disconnect: Disconnected: conn=0(83) reason=CallClose
BTC (Crypto Market Gravity) is currently BULLISH with a change of 5.76%
Fetching Equity Market Gravity (SPY Anchor) - Feed: IEX...
SPY (S&P 500) is currently BEARISH with a change of -0.08%
--- FETCHING MULTI-SOURCE NEWS (FILTER BUBBLE BREAKER) ---
Fetched 10 unique headlines.
Initiating Crypto Radar (Micro-Cap Scalper Mode)...
Targeting: ['BTT/USD', 'REKT/USD', 'PEPE/USD', 'BONK/USD', 'MOG/USD', 'SHIB/USD', 'COQ/USD']
No equity targets found. Initiating Auto-Discovery Radar...
Initiating Equity Auto-Discovery Radar (Penny Mode: OFF)...
Fetching news for Equity: SMCI...
Fetching 100h Alpaca OHLCV for SMCI (Feed: IEX)...
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 70.66. MACD: 0.5505, Hist: -0.417, Signal: 0.9676. VWAP (24h): 23.4782
--- MINING EQUITY COMPLEXITY: SMCI ---
Pacing Vertex AI API during radar sweep... (Sleeping 20s)
Fetching news for Equity: IREN...
Fetching 100h Alpaca OHLCV for IREN (Feed: IEX)...
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 63.97. MACD: 0.868, Hist: -0.7818, Signal: 1.6497. VWAP (24h): 37.0202
--- MINING EQUITY COMPLEXITY: IREN ---
Pacing Vertex AI API during radar sweep... (Sleeping 20s)
Fetching news for Equity: HUT...
Fetching 100h Alpaca OHLCV for HUT (Feed: IEX)...
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 59.84. MACD: 2.4116, Hist: -1.7067, Signal: 4.1183. VWAP (24h): 60.1989
--- MINING EQUITY COMPLEXITY: HUT ---
Pacing Vertex AI API during radar sweep... (Sleeping 20s)
Fetching news for Equity: GFAI...
Fetching 100h Alpaca OHLCV for GFAI (Feed: IEX)...
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 47.77. MACD: 0.0019, Hist: -0.0265, Signal: 0.0284. VWAP (24h): 0.4314
--- MINING EQUITY COMPLEXITY: GFAI ---
Pacing Vertex AI API during radar sweep... (Sleeping 20s)
Fetching news for Equity: AI...
Fetching 100h Alpaca OHLCV for AI (Feed: IEX)...
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 33.84. MACD: -0.0953, Hist: -0.2597, Signal: 0.1645. VWAP (24h): 8.6493
--- MINING EQUITY COMPLEXITY: AI ---
Pacing Vertex AI API during radar sweep... (Sleeping 20s)
Fetching news for Equity: AMD...
Fetching 100h Alpaca OHLCV for AMD (Feed: IEX)...
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 69.76. MACD: 4.7131, Hist: -5.7551, Signal: 10.4683. VWAP (24h): 231.6017
--- MINING EQUITY COMPLEXITY: AMD ---
Pacing Vertex AI API during radar sweep... (Sleeping 20s)
Fetching news for Equity: BTBT...
Fetching 100h Alpaca OHLCV for BTBT (Feed: IEX)...
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 51.76. MACD: 0.0068, Hist: -0.0303, Signal: 0.0371. VWAP (24h): 1.3459
--- MINING EQUITY COMPLEXITY: BTBT ---
Equity Auto-Discovery Complete. Hotlist: ['SMCI', 'IREN', 'AI', 'HUT', 'GFAI', 'AMD', 'BTBT']
Targeting: ['BTT/USD', 'REKT/USD', 'XRP/USD', 'PEPE/USD', 'ADA/USD', 'BONK/USD', 'ETH/USD', 'SOL/USD', 'MOG/USD', 'DOGE/USD', 'SHIB/USD', 'COQ/USD', 'AI', 'IREN', 'GFAI', 'HUT', 'BTBT', 'SMCI', 'AMD']
Fetching 100h Alpaca OHLCV for SPY (Feed: IEX)...
>>> PROCESSING CRYPTO: BTT/USD <<<
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 56.35. MACD: 0.0, Hist: -0.0, Signal: 0.0. VWAP (24h): 0.0 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for BTT/USD: ROI (-0.46%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING CRYPTO: REKT/USD <<<
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 60.83. MACD: -0.0, Hist: 0.0, Signal: -0.0. VWAP (24h): 0.0 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for REKT/USD: ROI (-1.34%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING CRYPTO: XRP/USD <<<
[ARBITRAGE RADAR] XRP/USD | Kraken: $1.348140 | Alpaca: $1.351000 | Spread: 0.21%
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 39.76. MACD: 0.0001, Hist: -0.0017, Signal: 0.0018. VWAP (24h): 1.3485 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for XRP/USD: ROI (-1.26%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING CRYPTO: PEPE/USD <<<
[ARBITRAGE RADAR] PEPE/USD | Kraken: $0.000004 | Alpaca: $0.000004 | Spread: 0.33%
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 51.52. MACD: 0.0, Hist: -0.0, Signal: 0.0. VWAP (24h): 0.0 | Protocol Metrics: [N/A (Cost Optimized)]
--- ANALYZING MARKET COMPLEXITY VIA VERTEX AI (GEMINI-2.5-PRO) ---
[VAMPIRE] Parsed Decision: HOLD (Conf: 0.9)
Agent log pushed successfully (LCI: 34.0).
Pacing Vertex AI API to respect quotas... (Sleeping 12s)
>>> PROCESSING CRYPTO: ADA/USD <<<
[ARBITRAGE RADAR] ADA/USD | Kraken: $0.250547 | Alpaca: $0.250600 | Spread: 0.02%
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 25.68. MACD: -0.0006, Hist: -0.0006, Signal: -0.0. VWAP (24h): 0.2537 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for ADA/USD: ROI (-3.08%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING CRYPTO: BONK/USD <<<
[ARBITRAGE RADAR] BONK/USD | Kraken: $0.000006 | Alpaca: $0.000006 | Spread: 0.34%
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 44.83. MACD: -0.0, Hist: -0.0, Signal: 0.0. VWAP (24h): 0.0 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for BONK/USD: ROI (-1.33%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING CRYPTO: ETH/USD <<<
[ARBITRAGE RADAR] ETH/USD | Kraken: $2234.950000 | Alpaca: $2236.674000 | Spread: 0.08%
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 45.92. MACD: 6.1776, Hist: -3.4745, Signal: 9.6521. VWAP (24h): 2199.5963 | Protocol Metrics: [N/A (Cost Optimized)]
--- ANALYZING MARKET COMPLEXITY VIA VERTEX AI (GEMINI-2.5-PRO) ---
[VAMPIRE] Parsed Decision: HOLD (Conf: 0.95)
Agent log pushed successfully (LCI: 21.6).
Pacing Vertex AI API to respect quotas... (Sleeping 12s)
>>> PROCESSING CRYPTO: SOL/USD <<<
[ARBITRAGE RADAR] SOL/USD | Kraken: $84.400000 | Alpaca: $84.550800 | Spread: 0.18%
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 47.23. MACD: 0.1204, Hist: -0.1452, Signal: 0.2656. VWAP (24h): 83.2242 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for SOL/USD: ROI (-0.75%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING CRYPTO: MOG/USD <<<
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 40.18. MACD: -0.0, Hist: -0.0, Signal: 0.0. VWAP (24h): 0.0 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for MOG/USD: ROI (-1.42%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING CRYPTO: DOGE/USD <<<
[ARBITRAGE RADAR] DOGE/USD | Kraken: $0.092937 | Alpaca: $0.093099 | Spread: 0.17%
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 35.96. MACD: -0.0, Hist: -0.0002, Signal: 0.0002. VWAP (24h): 0.0931 | Protocol Metrics: [N/A (Cost Optimized)]
--- ANALYZING MARKET COMPLEXITY VIA VERTEX AI (GEMINI-2.5-PRO) ---
[VAMPIRE] Parsed Decision: HOLD (Conf: 0.85)
Agent log pushed successfully (LCI: 24.6).
Pacing Vertex AI API to respect quotas... (Sleeping 12s)
>>> PROCESSING CRYPTO: SHIB/USD <<<
[ARBITRAGE RADAR] SHIB/USD | Kraken: $0.000006 | Alpaca: $0.000006 | Spread: 0.17%
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 35.57. MACD: -0.0, Hist: -0.0, Signal: 0.0. VWAP (24h): 0.0 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for SHIB/USD: ROI (-1.95%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING CRYPTO: COQ/USD <<<
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 55.99. MACD: 0.0, Hist: -0.0, Signal: 0.0. VWAP (24h): 0.0 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for COQ/USD: Spread (2.59%) exceeds tolerance (0.49%).
>>> PROCESSING EQUITY: AI <<<
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 33.84. MACD: -0.0953, Hist: -0.2597, Signal: 0.1645. VWAP (24h): 8.6493 | Protocol Metrics: [N/A (Cost Optimized)]
--- ANALYZING MARKET COMPLEXITY VIA VERTEX AI (GEMINI-2.5-PRO) ---
[QUANT] System Kelly Override! AI requested 80.0%, Kelly capped at 77.49999999999999%
[VAMPIRE] Parsed Decision: BUY (Conf: 0.85)
[AI] ⚡ AGGRESSIVE ENTRY: Targeting instant fill at $9.615200 (Market: $9.520000)
--- [EQUITY] EXECUTING MOOMOO BUY ORDER: AI ---
2026-04-11 18:32:38,550 | 44960 | 11316 | [open_context_base.py:409] initconnect_sync: New connect ready: conn=7448649200223493247(84) context=<moomoo.trade.open_trade_context.OpenSecTradeContext object at 0x0000022A699E1090>
❌ BROKER REJECTION [AI]: MOOMOO BUY Rejected: Insufficient settled cash.
2026-04-11 18:32:39,065 | 44960 | 4296 | [open_context_base.py:516] on_disconnect: Disconnected: conn=0(84) reason=CallClose
Agent log pushed successfully (LCI: 56.9).
Pacing Vertex AI API to respect quotas... (Sleeping 12s)
>>> PROCESSING EQUITY: IREN <<<
>>> PROCESSING EQUITY: GFAI <<<
[GFAI] Insufficient OHLCV data. Skipping...
>>> PROCESSING EQUITY: HUT <<<
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 59.84. MACD: 2.4116, Hist: -1.7067, Signal: 4.1183. VWAP (24h): 60.1989 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for HUT: Priced Out: Unit Price ($76.23) > Fiat ($22.95).
>>> PROCESSING EQUITY: BTBT <<<
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 51.76. MACD: 0.0068, Hist: -0.0303, Signal: 0.0371. VWAP (24h): 1.3459 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for BTBT: ROI (-0.72%) in dead zone (-25.0% → 1.5%). Forcing HOLD.
>>> PROCESSING EQUITY: SMCI <<<
--- CALCULATING TECHNICAL INDICATORS (VECTORIZED) ---
TA Complete: RSI (14): 70.66. MACD: 0.5505, Hist: -0.417, Signal: 0.9676. VWAP (24h): 23.4782 | Protocol Metrics: [N/A (Cost Optimized)]
[OPTIMIZER] Skipping LLM analysis for SMCI: Priced Out: Unit Price ($25.27) > Fiat ($22.95).
>>> PROCESSING EQUITY: AMD <<<
2026-04-11 18:32:58,439 | 44960 | 11316 | [open_context_base.py:409] initconnect_sync: New connect ready: conn=7448649283647628009(85) context=<moomoo.trade.open_trade_context.OpenSecTradeContext object at 0x0000022A792E1E50>
2026-04-11 18:32:58,453 | 44960 | 4296 | [open_context_base.py:516] on_disconnect: Disconnected: conn=0(85) reason=CallClose
2026-04-11 18:32:58,933 | 44960 | 11316 | [open_context_base.py:409] initconnect_sync: New connect ready: conn=7448649285717314094(86) context=<moomoo.trade.open_trade_context.OpenSecTradeContext object at 0x0000022A792E2AD0>
2026-04-11 18:32:58,966 | 44960 | 4296 | [open_context_base.py:516] on_disconnect: Disconnected: conn=0(86) reason=CallClose
==================================================
[DUAL-ENGINE v31.9] (Rate: 1.0)
--------------------------------------------------
> Crypto (Total): $ 49.66 USD
- Fiat: $ 2.17 USD
- Crypto: $ 47.50 USD
> Equity (Total): $ 27.06 USD
- Cash/Debt: $ 22.95 USD
- Health Score: 400.00 %
> GRAND TOTAL (NET): $ 76.72 USD
==================================================
Portfolio snapshot pushed. Total: $76.72 AUD (Health: 400.0%)
Portfolio snapshot pushed. True Unified Total: $76.72 AUD | Tokens used: 11155
Sleeping for 60.1 minutes until next cycle...
--> Engaging Surgical ROI Guard (Target: +1.5%, Panic: -25%):
Monitoring ADA/USD (Type: LONG)
Monitoring BONK/USD (Type: LONG)
Monitoring BTT/USD (Type: LONG)
Monitoring DOGE/USD (Type: LONG)
Monitoring BTBT (Type: LONG)
Monitoring ETH/USD (Type: LONG)
Monitoring MOG/USD (Type: LONG)
Monitoring REKT/USD (Type: LONG)
Monitoring SHIB/USD (Type: LONG)
Monitoring SOL/USD (Type: LONG)
Monitoring XRP/USD (Type: LONG)
[PULSE] Heartbeat Active (Rally)
2026-04-11 18:33:17,311 | 44960 | 11316 | [open_context_base.py:409] initconnect_sync: New connect ready: conn=7448649362763369539(87) context=<moomoo.trade.open_trade_context.OpenSecTradeContext object at 0x0000022A792E1F90>
2026-04-11 18:33:17,846 | 44960 | 4296 | [open_context_base.py:516] on_disconnect: Disconnected: conn=0(87) reason=CallClose
[PERF] Pulse Active. Port: $76.75 USD (Commit in 199 pulses)
[PERF] Pulse Active. Port: $76.76 USD (Commit in 198 pulses)
[PERF] Pulse Active. Port: $76.76 USD (Commit in 197 pulses)
[PERF] Pulse Active. Port: $76.76 USD (Commit in 196 pulses)
OPUS 4.6 (thinking):
I've addressed the Moomoo cash issue and I completely understand your conclusion regarding Leviathan's overall performance.
### 1. The Moomoo "Funds on Hold" Fix
Your diagnosis of the Moomoo API was exactly right. In a previous update, we forced the engine to look at
cashinstead ofpowerbecause Moomoo rejects trades made against unsettled (T+2) deposits. However, as you discovered, when you have Funds on Hold (like a pending currency conversion), they sit incashbut drop out ofpower.I have updated the engine to use
min(cash, power). This acts as a perfect mathematical shield: it successfully ignores unsettled deposits (where power > settled cash) while also zeroing out when funds are locked in transit (where cash > power). Moomoo rejected the trade anyway, so no harm was done, but this will stop Leviathan from hallucinating buying power in the logs.(This fix has been applied to
broker.pyand is live).### 2. The AI Complexity Mining Plateau
Your conclusion is completely valid and the logs paint a very clear picture of why this is happening. Leviathan is functioning mechanically perfectly, but strategically, it operates like a hyper-paranoid vault rather than a daily cash-flow generator.
The logs from your run highlight the exact bottlenecks:
* The Overlord is suppressing trades: "The market is a meat grinder for momentum. Ignore all breakouts and chop... Your sole function is to deploy capital into systemic panic... we are hunting fear, not price."
* The Surgical ROI Guard overrides LLM signals: Even when Vertex AI might be ready to play a trend, the dead zone guard kicks in:
Skipping LLM analysis for SOL/USD: ROI (-0.75%) in dead zone (-25.0% → 1.5%). Forcing HOLD.* VAMPIRE expects blood: By strictly seeking extreme market capitulations (Mean Reversion / finding crashed RSIs), it refuses to trade standard daily volatility.
The system has become so heavily armored with Veto thresholds, Ghost Archive synchronization, Kelly Capping, and Dual-Engine checks that its "opportunity density" stringency is simply too high. It has achieved near-perfect capital protection at the cost of trading velocity.
If your goal is daily realized yield, the "Vampire" personality combined with the current macro-Overlord bias is simply too defensive. If you ever decide to pivot its core directive, we would likely need to switch its personality to a momentum-chasing profile and loosen the Surgical ROI constraints to allow it to trade purely on the LLM's micro-structure physics rather than waiting for macro-capitulation.
ME:
Okay. So which personality and what constraints do I use?
OPUS 4.6 (thinking). (Note that I have just asked it advice about what to do to correctly configure the app I designed based upon a mosaic complexity theory approach which I devised. I know the system pretty well and I am well across the abstract concepts and pragmatic constraints of its objectives. Yet even though I devised the multiple-personality approach, it knew better than me what to do. Moreover,it worked):
Viewed CognitiveTuningHUD.tsx:110-160
Viewed CognitiveTuningHUD.tsx:190-250
If you want Leviathan to pivot from a long-term, paranoid vault into a high-frequency, daily cash-flow generator, you need to change its environment perception and lower its safety guards.
Here is exactly how to configure the Tuning Deck for aggressive daily trading:
### 1. Break the Overlord's Control
Right now, your Overlord Coupling is set to
[HARMONIC]. This forces the bot to obey the Overlord's macro analysis (which currently believes the market is a "bull trap" and a "meat grinder").* Action: Click the green
[HARMONIC]button in the Tuning Deck to flip it to the red *[DECOUPLED]**.* Why? This gives local autonomy to the individual ticker algorithms, allowing them to trade micro-trends even if the overarching macro market looks bad.
### 2. Change the Personality
Once Decoupled, you can manually set the Personality and Macro Psych:
* Action: Change the Personality/Psych to Volatility Hunter or Scalper.
* Why? "Vampire" only buys extreme blood (crashed prices). Volatility Hunter and Scalper will actively chase momentum and breakouts, executing trades on minor volume spikes instead of waiting for a total market capitulation.
### 3. Collapse the "Dead Zone" (ROI Guard)
In your logs we see:
Skipping LLM analysis... ROI in dead zone (-25.0% → 1.5%). The bot is literally freezing held assets because they haven't moved enough to justify spending Vertex AI API quota on them.* Action: Lower your *
MIN ROI TARGET (%)** from1.5down to0.5.* Action: Change your *
PANIC AUDIT (%)** from-25to-5.* Why? This shrinks the dead zone. The bot will now actively scalp profits at a +0.5% move and aggressively cut minor losses at a -5% move, rotating capital much faster.
### 4. Optimize Execution Limits
* Action: Make sure *
LIMIT BUYS** and *LIMIT SELLS** are turned OFF (unchecked).* Why? In high-frequency momentum trading, you want instant market execution. Limit orders risk sitting unfilled while the breakout flies past.
Apply these settings and wait for the next standard pulse. You should immediately see Leviathan abandon its "HOLD" bias and start firing off rapid, smaller trades as it hunts standard volatility rather than extreme macro fear.
So here's how I configured the cognition and mosaic-complexity mining, and it worked.


There are many other examples from my experience in the last few days, but this article is already long enough.
Conclusion: Gemini Pro 3.1 is very good and amazing, but Claude Opus 4.6 is mind blowing.





