मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट37k · #7542

perp-funding-basis

यह क्या करती है

यह स्किल क्रिप्टो परपेचुअल फ़्यूचर्स पर फ़ंडिंग रेट और बेसिस अंतर समझाती है। यह उन ट्रेडरों के लिए है जो बाज़ार की भीड़ आँकना या कैरी ट्रेड टेस्ट करना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप जानना चाहें कि किसी क्रिप्टो बाज़ार में ट्रेडर भारी मात्रा में लॉन्ग हैं या शॉर्ट।
  • ✓जब किसी परपेचुअल कॉन्ट्रैक्ट पर फ़ंडिंग रेट असामान्य रूप से ऊँचा या ऋणात्मक हो गया हो।
  • ✓जब आप कैरी ट्रेड के लिए स्पॉट कीमत और फ़्यूचर्स कीमत की तुलना कर रहे हों।

Skill का लिंक

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/perp-funding-basis/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/perp-funding-basis/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या इस समय बिटकॉइन परपेचुअल पर फ़ंडिंग रेट असामान्य रूप से ऊँचे हैं, और इसका क्या मतलब है?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह फ़ंडिंग रेट को वार्षिक आँकड़े में बदलती है और फ़्यूचर्स कीमतों की तुलना स्पॉट से करती है। ऊँचा सकारात्मक फ़ंडिंग भीड़भाड़ वाली लॉन्ग पोज़िशन दिखाता है, जबकि ऋणात्मक फ़ंडिंग भीड़भाड़ वाली शॉर्ट पोज़िशन।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Perpetual Funding Rate & Basis Trading

Overview

Analyze perpetual futures funding rates and spot-futures basis to identify carry trade opportunities, market positioning extremes, and directional sentiment signals. Funding rates are the single most important microstructure indicator in crypto derivatives — they reveal real-time leverage positioning and crowd sentiment.

Core Concepts

1. Funding Rate Mechanics

Perpetual futures have no expiry date. Instead, a funding rate is exchanged between longs and shorts every 8 hours (on most exchanges) to keep the perpetual price anchored to the spot price.

If perp price > spot price → funding rate positive → longs pay shorts
If perp price < spot price → funding rate negative → shorts pay longs

OKX funding rate schedule: payments at 00:00, 08:00, 16:00 UTC

Annualized funding rate:

# Funding rate is a per-8h DECIMAL, exactly as OKX/Binance return it
# (the API sends "0.0001" for 0.01%). 3 funding windows/day → × 3 × 365.
funding_rate_8h = 0.0001                  # 0.01% per 8h, as a decimal
annualized = funding_rate_8h * 3 * 365    # 0.1095 → 10.95% annualized

Units convention (whole skill): all code treats the funding rate as a per-8h decimal (0.0001 = 0.01%), matching the raw OKX/Binance API value. The tables below show the equivalent percentages for readability — divide a table's % by 100 to get the decimal a comparison expects (+0.05% → 0.0005).

2. Funding Rate Signal Framework

Funding Rate (8h) Annualized Market State Signal
> +0.05% > +54.75% Extreme long crowding Contrarian short / reduce longs
+0.02% to +0.05% +21.9% to +54.75% Elevated long bias Cautious, carry trade viable
+0.005% to +0.02% +5.5% to +21.9% Mild long bias Neutral to mild bullish
-0.005% to +0.005% -5.5% to +5.5% Balanced Neutral
-0.02% to -0.005% -21.9% to -5.5% Mild short bias Neutral to mild bearish
< -0.02% < -21.9% Short squeeze territory Contrarian long / reduce shorts

Funding rate regime detection:

def funding_regime(rates_7d):
    """Classify funding rate regime from 7-day history."""
    avg = sum(rates_7d) / len(rates_7d)
    consecutive_positive = all(r > 0 for r in rates_7d[-3:])
    consecutive_negative = all(r < 0 for r in rates_7d[-3:])

    if avg > 0.0003 and consecutive_positive:       # > +0.03% per 8h
        return "overheated_long"       # High risk of long squeeze
    elif avg > 0.0001 and consecutive_positive:     # > +0.01% per 8h
        return "bullish_carry"          # Good carry trade environment
    elif avg < -0.0002 and consecutive_negative:    # < -0.02% per 8h
        return "overheated_short"       # High risk of short squeeze
    elif avg < -0.00005 and consecutive_negative:   # < -0.005% per 8h
        return "bearish_carry"          # Inverse carry trade
    else:
        return "neutral"

3. Spot-Futures Basis Analysis

Basis = Futures price - Spot price

For dated futures (quarterly), basis reflects cost-of-carry expectations:

# Annualized basis
def annualized_basis(futures_price, spot_price, days_to_expiry):
    basis_pct = (futures_price - spot_price) / spot_price
    annualized = basis_pct * (365 / days_to_expiry)
    return annualized

# Example: BTC spot $65,000, quarterly future $66,500, 45 days to expiry
# Basis: 2.31%, Annualized: 18.7%

Basis signal interpretation:

Annualized Basis Market State Signal
> 30% Extreme contango, euphoric leverage Sell basis (cash-carry), top warning
15-30% Elevated contango, bullish leverage Carry trade attractive
5-15% Normal contango Neutral, mild bullish
0-5% Flat basis Low conviction, wait for direction
< 0% (backwardation) Bearish, forced selling Contrarian long, extreme pessimism

4. Cash-Carry Arbitrage (Delta-Neutral)

Strategy: buy spot + sell perpetual futures → collect funding rate

# Cash-carry trade P&L
def carry_trade_pnl(spot_entry, funding_rates, position_size):
    """
    Delta-neutral carry: long spot + short perp
    P&L comes purely from funding rate collection.
    """
    total_funding_collected = 0
    for rate in funding_rates:
        if rate > 0:  # Longs pay shorts → we collect as short
            total_funding_collected += rate 
अक्सर पूछे जाने वाले सवाल

फ़ंडिंग रेट कौन चुकाता है?

फ़ंडिंग सकारात्मक हो तो लॉन्ग वाले शॉर्ट वालों को चुकाते हैं, और ऋणात्मक हो तो शॉर्ट वाले लॉन्ग वालों को।

फ़ंडिंग कितनी बार दी जाती है?

OKX समेत ज़्यादातर एक्सचेंजों पर हर 8 घंटे में।

कैश-एंड-कैरी ट्रेड क्या है?

यह स्पॉट संपत्ति खरीदता है और फ़्यूचर्स बेचता है, ताकि बेसिस अंतर मिले। इसमें फिर भी कुछ जोखिम रहता है।

जानकारी

लेखक का मूल विवरण

Perpetual futures funding rate analysis and cash-carry basis trading — funding rate regimes, annualized basis signals, carry trade construction, and funding rate arbitrage between exchanges.

repo: HKUDS/Vibe-Trading

लोकप्रियता

GitHub स्टार
37k
रैंकिंग में स्थान
#7542
लाइसेंस
MIT
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

vibe-trading

37k

यह आपके एजेंट को वित्त शोध का पूरा टूलकिट देती है, जिसमें बैकटेस्ट, फ़ैक्टर एनालिसिस, ऑप्शन प्राइसिंग और कई बाज़ारों का डेटा शामिल है।

डेटाएनालिसिस और स्प्रेडशीट

adr-hshare

37k

यह आपके एजेंट को दिखाती है कि कई बाज़ारों में लिस्टेड एक चीनी कंपनी के भाव की तुलना कैसे करें, जैसे अमेरिकी ADR और हॉन्गकॉन्ग शेयर।

डेटाएनालिसिस और स्प्रेडशीट

akshare

37k

यह आपके एजेंट को चीनी और वैश्विक शेयरों, फ़्यूचर्स, फ़ॉरेक्स और आर्थिक संकेतकों का मुफ़्त बाज़ार डेटा लेने देती है, बिना API key के।

डेटाएनालिसिस और स्प्रेडशीट

alpha-zoo

37k

यह आपके एजेंट को बने-बनाए स्टॉक फ़ैक्टरों की लाइब्रेरी देखने और चुने हुए बाज़ार पर उनके पूरे समूह के रिटर्न की भविष्यवाणी की क्षमता जाँचने देती है।

डेटाएनालिसिस और स्प्रेडशीट

मिलती-जुलती skills