Skip to main content

Cross-sectional funding-carry rankings for Hyperliquid perpetuals, sold per call in USDC.

Project description

carrydesk

Cross-sectional funding-carry rankings for Hyperliquid perpetuals, sold per call in USDC.

Every hour, rank the liquid Hyperliquid perp universe by trailing 14-day mean funding. The most negative names pay you to hold them long; the most positive pay you to short them. The spread between those two legs is the carry — a structural risk premium, not a prediction.

This is the same signal a live market-neutral book trades, published as an API.


Endpoints

Endpoint Price
free GET /v1/free/carry — top 5 each leg, delayed 24h
free GET /v1/method — how it is computed, and the caveats
free GET /health
paid GET /v1/carry/rankings — full live ranking, tunable k $0.05
paid GET /v1/carry/history/{coin} — archived rank + funding $0.02
paid GET /v1/universe — liquid perps by volume, OI, funding $0.01

Paid endpoints are metered with x402: the server answers 402 with payment requirements, your client pays USDC on Base, retries, and gets the data. No account, no API key, no invoice.


Quick start

curl -s https://carry.pelazas.com/v1/free/carry | jq
{
  "carry_spread_annualized": 0.3901,
  "carry_spread_annualized_trimmed": 0.2231,
  "carry_spread_annualized_median": 0.0955,
  "outlier_dominated": false,
  "longs":  [{"coin": "PENGU", "mean_funding_annualized": -0.0636}, ...],
  "shorts": [{"coin": "SAGA",  "mean_funding_annualized":  1.9886}, ...]
}

Three spread numbers, always. The headline mean is what an equal-weighted book earns; the trimmed and median readings tell you whether one illiquid name is carrying it. On the reading above, SAGA alone accounts for most of the gap — that is exactly the kind of thing a single number would hide.


MCP

claude mcp add carrydesk -- uvx --from carrydesk carrydesk-mcp

No clone, no virtualenv — uvx fetches and runs it.

Six tools: carry_snapshot, carry_method, carry_health (free) and carry_rankings, carry_history, carry_universe (paid). It talks to https://carry.pelazas.com by default — override with CARRYDESK_API_BASE.

Set CARRYDESK_PRIVATE_KEY to let the agent pay automatically. Without it the free tools work and paid tools return the price instead of failing, so a wallet-less install is still useful.


Local development

uv venv --python 3.12 && uv pip install -e ".[dev]"
.venv/bin/python -m uvicorn carrydesk.api:app --reload   # open, no paywall
.venv/bin/python -m pytest -q                            # 14 tests, no network

With X402_PAY_TO unset the service runs fully open — that is the dev default. Set it to turn the paywall on. See .env.example.


For agents and crawlers

/llms.txt describes the whole service in plain text. /openapi.json is the full spec, /archive is every snapshot ever published, and the public page carries schema.org Dataset markup. Crawlers are explicitly welcome — the free tier exists to be read, indexed and quoted.

Honest limitations

  • The carry spread can and does go negative. This is compensation for absorbing crowded leverage, not a forecast.
  • All figures are gross of fees, slippage and borrow. Taker fees alone can erase the edge; the reference book is maker-only for that reason.
  • Funding is Hyperliquid's own, with no cross-venue reconciliation yet.
  • Illiquid names dominate the headline spread more often than not. Read the trimmed and median variants before sizing anything.
  • Informational only. Not investment advice.

Repo docs

File What
BACKLOG.md Deliberately deferred work, with the reason for each
AGENTS.md Onboarding for an AI agent picking this up cold — gotchas, rules, what is unverified
STATUS.md Current state, what is blocked, what is next
DECISIONS.md Why each significant choice was made

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carrydesk-0.1.1.tar.gz (60.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carrydesk-0.1.1-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file carrydesk-0.1.1.tar.gz.

File metadata

  • Download URL: carrydesk-0.1.1.tar.gz
  • Upload date:
  • Size: 60.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for carrydesk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 10479abd64d05d4fc1b489ef0bbdae9ff0ec4d7ce7143114c949d208fe8a4ba3
MD5 f2240da8b65ab1656559b9790318bb0d
BLAKE2b-256 be0b254030eb2d97c4be83598f39ca0373cdc7e05b90d7718b8c42fab999f1f2

See more details on using hashes here.

File details

Details for the file carrydesk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: carrydesk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for carrydesk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c0a0bb92f930a2ef9eeb269f951d096c4ccf0ad77abab12bee40c7347403803
MD5 f92dcba0aa6028c12ba1663a378160e2
BLAKE2b-256 4e12ce89157aa8650f4d302cbc177a6d8e45d95a6081774e63a9e2808f2f152b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page