camel-strategy
CAMEL v1.0 — Carry Hedge Fund. Two single-direction books on two wallets, one producer, harvesting funding carry. The HARVEST book shorts the most-positive-funding names (longs pay shorts → short collects); the PAYOUT book longs the most-negative-funding names (shorts pay longs → paid to hold). Both are gated to EXHAUSTING crowds (never a fresh trend against the carry), with trend/RSI as confirmation + risk control. The edge is carry — a structural, recurring funding inefficiency — not market direction. NOT a copy-trader: each book scores its own universe and pushes signals; the runtime owns the LLM gate (pass-through), DSL exits, and all risk.guard_rails. CAMEL_LEG env selects the book.
What this skill does
# 🐫 CAMEL v1.0 — Carry Hedge Fund Camel runs **two concurrent strategy wallets** that harvest **funding carry** — it takes the side that *collects* the funding payment, on names where the crowded trade is exhausting so price doesn't fight the carry. **One producer script** (`camel-producer.py`) serves both; the `CAMEL_LEG` env var selects which book a given daemon is. > **The edge is carry, not direction.** On Hyperliquid, positive funding > means longs pay shorts; negative means shorts pay longs. Camel > systematically takes the **collecting** side of the most extreme funding, > gated to crowds that are rolling over (shorts) or capitulating (longs). > Funding is a recurring, structural inefficiency — income that compounds. | Book | Style | Wallet env | Runtime | Scanner | |---|---|---|---|---| | `harvest` | Short the most-positive-funding names (short collects) | `CAMEL_HARVEST_WALLET` | `runtime-harvest.yaml` | `camel_harvest_signals` | | `payout` | Long the most-negative-funding names (paid to hold) | `CAMEL_PAYOUT_WALLET` | `runtime-payout.yaml` | `camel_payout_signals` | Taking some shorts (harvest) and some longs (payout) also skews the fund slightly net-neutral as a by-product — but the return driver is the funding, not the net direction. ## The funding rank (shared by both books) Each tick the producer pulls the live instrument board **once** and reads the per-asset `funding` field (hourly decimal) for every liquid main-DEX perp (`dayNtlVlm ≥ volFloorUsd`, default $20M). Annualized ≈ `funding × 24 × 365`. The **harvest** book ranks funding **descending** (most positive); the **payout** book ranks **ascending** (most negative). Only the top `rankPoolSize` names (default 12) then get 1h+4h candles for confirmation. > **Data robustness:** funding comes from the always-available instrument > board — NOT the ClickHouse-backed `funding_history` endpoint (which can > 503 or require elevated scope). `funding_history` is optional enrichment only. ## HARVEST book — short the expensive longs (carry + fade) ### Scoring (raw integer; `minScore` 4) | Component | Pts | Source | |---|---|---| | Funding (annualized) | +3 (≥~88%/yr) / +2 (≥~53%) / +1 (≥~26%) / **disqualify** (< floor) | instrument `funding` | | 4h trend | +2 BEARISH / +1 NEUTRAL / **disqualify** BULLISH | 4h candles | | RSI overbought | +1 (RSI ≥ `rsiOverbought` 70) | 1h RSI | | 24h roll-over | +1 (24h ≤ 0) / −1 (24h ≥ +5%, still ripping) | instrument ctx | Disqualifies a fresh 4h uptrend — the squeeze risk dwarfs the carry. Shorts only crowded longs that are rolling over. ## PAYOUT book — long the expensive shorts (paid to hold) ### Scoring (raw integer; `minScore` 4) | Component | Pts | Source | |---|---|---| | Funding (annualized, negative) | +3 (≤~−88%/yr) / +2 (≤~−53%) / +1 (≤~−26%) / **disqualify** (> −floor) | instrument `funding` | | 4h trend | +2 BULLISH / +1 NEUTRAL / **disqualify** BEARISH | 4h candles | | RSI oversold | +1 (RSI ≤ `rsiOversold` 30) | 1h RSI | | 24h bounce | +1 (24h ≥ 0) / −1 (24h ≤ −5%, still crashing) | instrument ctx | Disqualifies a fresh 4h downtrend — never longs a knife. Longs only crowded shorts that are capitulating. ## Execution & exit (both books) - slots **4**, `margin_pct` **18%**, tick **300s** - **strict 5x** leverage clamp, then each asset's Hyperliquid venue max - DSL **carry management (tighter than a momentum leg)**: carry P&L per period is small, so a price loss must be cut before it dwarfs the funding — phase1 max_loss **10%** / retrace 6 / 1 breach; `weak_peak_cut` **ON** (4h @ 1.5), `dead_weight_cut` **ON** (8h), `hard_timeout` **3d** (funding regimes decay); phase2 ladder `6%→lock0 / 14%→45 / 28%→65 / 50%→80 / 90%→90` ## Leverage clamping (both books) Desired leverage = the book cap (`maxLeverage` 5). The producer clamps to each asset's Hyperliquid venue max; the runtime gate rejects any leverage above 5. ## XYZ handling Camel ranks the **main-DEX crypto** cross-section only — XYZ funding is sparse. The `main`/`xyz` clearinghouse sections are two VIEWS of ONE cross-margined wallet, so `get_positions()` takes `accountValue` ONCE via `max()` — never sums. ## Risk gates (`risk.guard_rails`) | Gate | harvest | payout | |---|---|---| | daily_loss_limit_pct | 10 | 10 | | max_entries_per_day | 6 | 6 | | max_consecutive_losses | 4 | 4 | | cooldown_minutes | 60 | 60 | | drawdown_halt_pct | 18 | 18 | | per_asset_cooldown_minutes | 180 | 180 | | data_retention_hours | 96 | 96 | | drawdown_reset_on_day_rollover | true | true | Entries and exits both use `FEE_OPTIMIZED_LIMIT` (`ensure_execution_as_taker` true; 45s maker-first window). **Fee note:** carry P&L is small per period — keep turnover modest so fees don't eat the funding collected. ## Files | File | Purpose | |---|---| | `runtime-harvest.yaml` | Harvest-book runtime spec (wallet, DSL, risk, LLM gate) | | `runtime-payout.yaml` | Payout-book runtime spec | | `scripts/camel-producer.py` | Book-aware producer daemon (one script, both books) | | `scripts/camel_config.py` | Leg resolution + SenpiClient wrapper + helpers | | `config/camel-harvest-config.json` | Harvest-book tunables (funding floor/tiers) | | `config/camel-payout-config.json` | Payout-book tunables | ## Operator install See [README.md](README.md) — the two books are two daemons (`CAMEL_LEG=harvest` and `CAMEL_LEG=payout`) on two **equally-funded** wallets, each with its own runtime YAML. ## Hard rule for user-conversation Claude sessions User-conversation Claude sessions MUST NOT call any of: `create_position`, `close_position`, `edit_position`, `ratchet_stop_add`, `ratchet_stop_edit`, `ratchet_stop_delete`, `cancel_order`, `strategy_close`, `strategy_close_positions`. These tools are reserved for the **producer daemon** (entry path) and the **DSL ratchet engine** (exit path). User-conversation sessions are **read-only**. Each producer daemon handles real signals on its next tick. ## License Apache-2.0 — Copyright 2026 Senpi (https://senpi.ai)
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".