شعار Commodity Futures Storage And Carry Cost Modeling

Commodity Futures Storage And Carry Cost Modeling

المجتمع
HimanshuJ16
commodity-futures-storage-and-carry-cost-modeling

استخدم هذه المهارة لتسعير العقود الآجلة للسلع المادية أو تصميم استراتيجيات ترحيل العقود، وربط السعر الفوري بالعقود الآجلة عبر التمويل والتخزين والتأمين، واستخراج عائد الملاءمة الضمني وتصنيف حالة السوق إلى كونتانغو أو باكواردشن.

Add to TypingMind

نظرة عامة

الناشرHimanshuJ16
المستودعAlgo-Trading-Skills
اسم المهارةcommodity-futures-storage-and-carry-cost-modeling
النجوم
50
التفريعات
7
الملفات المرفقة
5
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها HimanshuJ16 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Commodity Futures Storage And Carry Cost Modeling في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/commodity-futures-storage-and-carry-cost-modeling
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HimanshuJ16/Algo-Trading-Skills.git /tmp/Algo-Trading-Skills
mkdir -p .claude/skills
cp -r /tmp/Algo-Trading-Skills/skills/commodity-futures-storage-and-carry-cost-modeling .claude/skills/commodity-futures-storage-and-carry-cost-modeling
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Commodity Futures Storage And Carry Cost Modeling في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Commodity Futures Storage And Carry Cost Modeling تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Commodity Futures Storage And Carry Cost Modeling بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

When to Use

Use this skill when pricing physical commodity futures (Crude Oil CL, Natural Gas NG, Gold GC, Agriculture ZC) or designing term-structure roll strategies. The Cost of Carry model links spot prices ($S_0$) to futures prices ($F_T$) using financing costs ($r$), physical storage/insurance costs ($c$ proportional and/or $U$ per unit), and implied convenience yield ($y$). High convenience yield causes Backwardation ($F_T < S_0$), signaling physical inventory scarcity, whereas high storage costs relative to convenience yield lead to Contango ($F_T > S_0$).

When NOT to Use

  • As an arbitrage signal generator on the cheap side of the curve. For a consumption commodity the cost-of-carry relation is an inequality, $F_0 \le (S_0 + U)e^{(r+c)T}$, not an equality. Only the rich side is enforceable. A futures price below your fair-value estimate is a view about convenience yield, not a riskless trade, because you cannot generally borrow and sell short a physical commodity.
  • For non-storable commodities (electricity, most weather and freight underlyings). Storage arbitrage is the entire basis of this model; without storability the futures price is a risk-neutral expectation, not a carry relation. See weather-derivatives-and-niche-instrument-handling.
  • When spot and futures are not the same deliverable. A refiner's local crude assessment is not the contract-grade deliverable at the delivery point. A basis difference between grades or locations shows up here as a spurious convenience yield or a spurious arbitrage.
  • At sub-daily maturities. The implied-yield inversion divides by $T$, so within a day or two of expiry ordinary quote noise annualises into implausible yields.

Prerequisites

  • Spot price $S_0$ and futures contract price $F_{market}$ sampled at the same timestamp, for the contract-deliverable grade and delivery point.
  • Time to maturity $T$ in years, on a stated day-count basis.
  • A continuously compounded annual financing rate $r$ on that same day-count basis. Money-market quotes (e.g. SOFR, ACT/360, simple) must be converted before use.
  • Storage cost as a proportional annual rate $c$, a fixed currency amount per unit per year $U$, or both.

Workflow

  1. Full-Carry Price (the no-arbitrage bound):
    • $F_{full} = (S_0 + U_{PV}) \cdot e^{(r + c) T}$, where $U_{PV}$ is the present value of the fixed per-unit storage charge accruing over $[0, T]$.
    • This is the upper bound on the futures price, and equals the price at $y = 0$.
  2. Theoretical Futures Price at an Assumed Yield:
    • $F_{theoretical} = F_{full} \cdot e^{-yT}$. Because $y$ is unobservable, this is a view, not a fair value that arbitrage enforces.
  3. Implied Convenience Yield Extraction:
    • $y = \frac{1}{T}\ln\left(\frac{F_{full}}{F_{market}}\right)$.
    • If $y < 0$ the bound is violated. Before treating it as profit, re-check timestamp synchronisation, grade/location deliverability, and whether storage and financing costs are understated — those explain the great majority of apparent violations.
  4. Regime Identification:
    • $F_{market} > S_0$ is CONTANGO; $F_{market} < S_0$ is BACKWARDATION; equality is FLAT. Do not fold the equality case into either regime — a flat curve is a distinct, informative state.
  5. Arbitrage Audit (Cash-and-Carry only):
    • Raise a CASH_AND_CARRY signal only when $F_{market} > F_{full} \cdot (1 + \text{round-trip costs})$: buy spot, pay financing and storage, sell futures, deliver. This leg is executable by anyone with capital and storage capacity.
    • Do not raise an arbitrage on the other side. A cheap futures price is surfaced separately as a reverse-carry candidate, actionable only by an existing inventory holder (who is really monetising their own convenience yield) or in a commodity with a genuine lease/borrow market such as gold.

Full procedure: see references/workflows.md. Standards reference: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Treating backwardation as a reverse cash-and-carry arbitrage: Crude oil routinely trades at implied convenience yields of tens of percent annualised during tight-inventory periods. A model that compares the market price to a fixed "baseline" convenience yield and flags every deviation will fire a false arbitrage on essentially every backwardated market, because the short-physical leg needed to capture it does not exist.
  • Ignoring Convenience Yield ($y$): Assuming futures prices are purely driven by $r + c$. In tight physical markets, convenience yield surges, causing deep backwardation that pure storage models fail to explain.
  • Fixed vs. Proportional Storage Costs: Exchanges regulate physical storage as a fixed charge per unit per day, not as a percentage of spot — CBOT caps grain storage in fractions of a cent per bushel per day and adjusts that cap through the Variable Storage Rate mechanism. Modelling a fixed charge as a percentage of spot silently makes storage cheap when the commodity is cheap, which is exactly backwards.
  • Day-Count / Compounding Misalignment: $T$ and $r$ must share a day-count basis, and $r$ must be continuously compounded. Pairing an ACT/360 simple money-market quote with an ACT/365 $T$ biases the implied yield by roughly 1.4% of the rate before any market signal is present.
  • Silent NaN propagation: nan <= 0 is False, so a naive positivity check passes NaN straight through to math.log and returns a NaN price alongside a confidently wrong regime string. Validate for finiteness, not just sign.
  • Non-synchronous quotes: A settlement-price futures quote against a live spot tick manufactures basis out of nothing. At short maturities the $1/T$ factor amplifies it into a headline-grade convenience yield.

Verification

  • Instantiate CommodityCarryCostModel(risk_free_rate=0.05, storage_cost_rate=0.02). With $S_0 = 100$, $T = 1.0$, $y = 0.01$, verify the theoretical price is $100 \cdot e^{0.06} \approx 106.1837$; with $y = 0.10$, verify $100 \cdot e^{-0.03} \approx 97.0446$. The full-carry price ($y = 0$) must be $100 \cdot e^{0.07} \approx 107.2508$.
  • Feed a WTI-like backwardated curve ($S_0 = 80$, $F = 76$, $T = 0.5$). Confirm the regime is BACKWARDATION, the implied convenience yield is roughly 17%, and is_arbitrage_opportunity is False — this is a normal market, not a trade.
  • Feed $F_{market} = 115$ against $S_0 = 100$, $T = 1.0$. Confirm CASH_AND_CARRY, a negative implied yield, and convenience_yield_bound_violated.
  • Feed $F_{market} = S_0$ and confirm the regime is FLAT, not BACKWARDATION.
  • Run python -m unittest discover -s skills/commodity-futures-storage-and-carry-cost-modeling/scripts and confirm 100% pass rate.

Related Skills

  • synthetic-continuous-futures-contract-construction
  • calendar-spread-and-multi-leg-order-atomicity
  • futures-contract-roll-automation
  • physical-vs-cash-settlement-handling

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Commodity Futures Storage And Carry Cost Modeling؟

استخدم هذه المهارة لتسعير العقود الآجلة للسلع المادية أو تصميم استراتيجيات ترحيل العقود، وربط السعر الفوري بالعقود الآجلة عبر التمويل والتخزين والتأمين، واستخراج عائد الملاءمة الضمني وتصنيف حالة السوق إلى كونتانغو أو باكواردشن.

لماذا تستخدم Commodity Futures Storage And Carry Cost Modeling على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Commodity Futures Storage And Carry Cost Modeling عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Commodity Futures Storage And Carry Cost Modeling في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/commodity-futures-storage-and-carry-cost-modeling. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Commodity Futures Storage And Carry Cost Modeling؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Commodity Futures Storage And Carry Cost Modeling؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Commodity Futures Storage And Carry Cost Modeling معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Commodity Futures Storage And Carry Cost Modeling مجانية؟

نعم. نشرها HimanshuJ16 على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل
شعار nexu-io

Replit Deck

nexu-io
مؤسسةشائع

لأعمال إدارة المنتجات والجوانب التقنية: حوّل مستندات PRD وخرائط الطريق وRFC ومراجعات البنية التقنية والمراجعات الختامية إلى مستندات لاتخاذ القرار. ترتكز على الاستعلام الأساسي "pm-feature-business-case-deck"، وتستند إلى…

11.5K
98.9K
الملفات: 9
عرض
شعار nexu-io

Dcf Valuation

nexu-io
مؤسسةشائع

تحليل تقييم الشركات العامة باستخدام التدفقات النقدية المخصومة وتقدير القيمة الجوهرية. استخدمه عندما يطلب الوصف DCF أو القيمة العادلة أو القيمة الجوهرية أو السعر المستهدف أو تحليلًا لتحديد ما إذا كانت الشركة مقوّمة بأقل من قيمتها أو بأكثر منها…

11.2K
96.7K
الملفات: 1
عرض
شعار nexu-io

Html Ppt Zhangzara Block Frame

nexu-io
مؤسسةشائع

تحويل عرض فوضوي لشركة ناشئة إلى منظومة تليق بمجلس الإدارة — التشخيص، وقواعد تنسيق الصفحات، وصفحات الإثبات المعاد بناؤها. صُمم كعرض عن الحِرفة التصميمية لاتخاذ القرار للمؤسسين والمسؤول التنفيذي عن العرض.

11.2K
96.7K
الملفات: 2
عرض
شعار nexu-io

Html Ppt Zhangzara Cartesian

nexu-io
مؤسسةشائع

أطروحة تخرج في الاقتصاد حول آثار رفع الحد الأدنى للأجور محليًا على التوظيف — استراتيجية تحديد الأثر، والأدلة، والقيود. صُممت كعرض لمناقشة مشروع دراسي واتخاذ القرار أمام لجنة الأطروحة…

11.2K
96.7K
الملفات: 2
عرض

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇