Transparency & Trust

Data Sources & Methodology

How we calculate every price you see — step by step, with full source attribution.

Last reviewed

آخر مراجعة

Overview

نظرة عامة

Gold Ticker Live aggregates live gold spot price data and currency exchange rates to show indicative bullion-equivalent gold prices across 24+ countries and the karat grades listed below. Our goal is to give gold buyers and investors in the UAE, GCC, and wider Arab world a fast, accurate reference price — available in both English and Arabic.

يجمع Gold Ticker Live بيانات السعر الفوري للذهب وأسعار صرف العملات ليعرض أسعاراً استرشادية للذهب تعادل قيمة السبائك في أكثر من 24 دولة وفي عيارات الذهب المذكورة أدناه. هدفنا أن نمنح مشتري الذهب والمستثمرين في الإمارات ودول الخليج والعالم العربي الأوسع سعراً مرجعياً سريعاً ودقيقاً — متاحاً بالعربية والإنجليزية.

This is a reference and education tool, not a trading platform. Prices shown are estimates of the wholesale bullion-equivalent value of gold at the current moment. They should be used for orientation, comparison, and research — not as the basis for executing trades or financial transactions.

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

Historical views combine different source layers depending on the range you choose. Short windows may use live snapshots and browser cache checkpoints, while longer windows can fall back to daily or monthly reference history. We label that resolution in the tracker and in exported files so monthly baselines are never presented as exact intraday history.

تجمع العروض التاريخية بين طبقات مصادر مختلفة حسب النطاق الذي تختاره. قد تعتمد النطاقات القصيرة على لقطات مباشرة ونقاط تخزين في المتصفح، بينما ترجع النطاقات الأطول إلى سجل مرجعي يومي أو شهري. نوضّح هذه الدقة في المتتبع وفي الملفات المُصدَّرة حتى لا يظهر الخط الأساسي الشهري وكأنه سجل لحظي دقيق.

Country pages use the same trust model صفحات الدول تستخدم نموذج الثقة نفسه

Country gold-price pages are not separate retail feeds. They use the same XAU/USD spot-linked reference logic, local-currency conversion, karat purity math, and freshness labels documented here. Retail shop prices can still differ because of making charges, VAT, dealer premium, and local market spread.

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

Gold-API.com
Gold spot price (XAU/USD)
السعر الفوري للذهب (XAU/USD)
Server-side refresh: hourly during market hours · Client re-poll: ~90 s while open
تحديث من الخادم: كل ساعة خلال ساعات السوق · إعادة استعلام من المتصفح: نحو 90 ثانية عند الفتح
↗ gold-api.com
open.er-api.com
Foreign exchange rates (USD base)
أسعار صرف العملات (بالدولار كأساس)
Updated ~every 24 hours
يُحدَّث كل 24 ساعة تقريباً
↗ open.er-api.com

Live price pipeline

مسار السعر المباشر

One chain builds every price, applied identically everywhere — from the global market to a spot-linked reference value for your weight:

سلسلة واحدة تبني كل سعر، وتُطبَّق بالطريقة نفسها في كل مكان — من السوق العالمي إلى قيمة مرجعية مرتبطة بالسعر الفوري لوزنك:

  1. Market XAU/USD spot · USD per troy ounce
  2. Currency × FX rate · AED uses the 3.6725 peg
  3. Troy ounce ÷ 31.1035 · ounce → gram
  4. Karat × (karat ÷ 24) · purity
  5. Weight × grams · your piece
  6. Reference spot-linked value — not a shop quote
  1. السوق سعر XAU/USD الفوري · دولار للأوقية التروية
  2. العملة × سعر الصرف · الدرهم يستخدم ربط 3.6725
  3. الأوقية التروية ÷ 31.1035 · أوقية ← غرام
  4. العيار × (العيار ÷ 24) · النقاء
  5. الوزن × الغرامات · قطعتك
  6. المرجع قيمة مرتبطة بالسعر الفوري — لا سعر محل
The reference value is the pure metal at spot. Shops add making charges, VAT and dealer premium on top — see “What our prices are not”.
القيمة المرجعية هي المعدن الخالص بالسعر الفوري. وتضيف المحلات أجور الصياغة وضريبة القيمة المضافة وهامش التاجر فوقها — راجع «ما لا تمثّله أسعارنا».

And here it is live — a worked example built from the current canonical snapshot this page reads through getCanonicalSpot(), the same value the calculator and homepage show at this instant, resolved to a UAE 22K per-gram reference in dirhams.

وها هي حيّة — مثال مبني على اللقطة المرجعية الحالية التي تقرؤها هذه الصفحة عبر getCanonicalSpot()، القيمة نفسها التي تعرضها الحاسبة والصفحة الرئيسية في هذه اللحظة، محسوبةً إلى سعر مرجعي للغرام من عيار 22 في الإمارات بالدرهم.

مثال حيّ مبني على اللقطة المرجعية الحالية التي تقرؤها هذه الصفحة عبر getCanonicalSpot() — القيمة نفسها التي تعرضها الحاسبة والصفحة الرئيسية في هذه اللحظة. تابِع كيف يتدفّق السعر الفوري العالمي عبر كل خطوة وصولاً إلى سعر مرجعي للغرام من عيار 22 في الإمارات بالدرهم.

Loading live reference values…

Unit Karat USD Value
الوحدة العيار دولار القيمة
Loading…

The canonical resolver

المُحلِّل المرجعي الموحّد

Every price surface on this site — the homepage hero, the karat ladder, the inline calculator, the country pages, and the bottom ticker — reads one value at any instant. That single read point is getCanonicalSpot() (in src/lib/spot-resolver.js). No surface runs its own separate live fetch, so two panels on the page can never quietly disagree about the spot price.

كل سطح يعرض سعراً على هذا الموقع — واجهة الصفحة الرئيسية، وسلّم العيارات، والحاسبة المدمجة، وصفحات الدول، وشريط الأسعار السفلي — يقرأ قيمة واحدة في أي لحظة. نقطة القراءة الموحّدة هذه هي getCanonicalSpot() (في src/lib/spot-resolver.js). لا يُجري أي سطح جلبَه المباشر المنفصل، فلا يمكن أن تتعارض لوحتان على الصفحة بصمت حول السعر الفوري.

  1. One fetch, shared — fetchGold()

    جلب واحد مشترك — fetchGold()

    The resolver reads the hourly-committed data/gold_price.json — the identical source the calculator uses. Concurrent callers share one in-flight request, so the whole page renders from a single snapshot.

    يقرأ المُحلِّل ملف data/gold_price.json المُحدَّث كل ساعة — المصدر نفسه الذي تستخدمه الحاسبة. يتشارك المستدعون المتزامنون طلباً واحداً قيد التنفيذ، فتُعرَض الصفحة كاملة من لقطة واحدة.

  2. Derive every karat — deriveFromSpot()

    اشتقاق كل عيار — deriveFromSpot()

    From the one spot value it derives USD and AED per-gram prices for every karat, applying the immutable invariants: troy ounce 31.1035 g, purity = karat ÷ 24, and the AED peg of 3.6725. These constants are never recomputed here.

    من قيمة الفوري الواحدة يشتقّ أسعار الغرام بالدولار والدرهم لكل عيار، مطبِّقاً الثوابت غير القابلة للتغيير: الأوقية التروية 31.1035 غرام، والنقاء = العيار ÷ 24، وربط الدرهم 3.6725. هذه الثوابت لا يُعاد حسابها هنا أبداً.

  3. Classify freshness — classifyFreshness()

    تصنيف الحداثة — classifyFreshness()

    The snapshot is tagged with one honest state — live, delayed, cached, fallback, or unavailable. It is deliberately conservative: an upstream fallback or an is_fresh:false flag always downgrades the label and never presents a stale value as live.

    تُوسَم اللقطة بحالة واحدة صادقة — مباشر، أو متأخر، أو مخزّن، أو احتياطي، أو غير متاح. والتصنيف متحفّظ عن قصد: أي مصدر احتياطي أعلى السلسلة أو راية is_fresh:false يخفّض الوسم دائماً ولا يعرض قيمة قديمة على أنها مباشرة.

Gold Price Data

بيانات سعر الذهب

Source

المصدر

Live reference prices use a browser-side provider waterfall (no API keys in the client bundle). When healthy, the homepage and tracker poll gold-api.com for XAU/USD spot; failover sources include mintedmetal.com (LBMA-linked JSON), committed data/gold_price.json and data/last_gold_price.json, then recent browser cache. Hourly server-side fetches via .github/workflows/gold-price-fetch.yml keep the committed JSON files current during market hours.

تستخدم الأسعار المرجعية المباشرة سلسلة مزوّدين تتدرّج داخل المتصفح (لا مفاتيح واجهات برمجية في حزمة العميل). عند سلامة المصدر، تستعلم الصفحة الرئيسية والمتتبع من gold-api.com عن سعر XAU/USD الفوري؛ ومصادر التحويل الاحتياطية تشمل mintedmetal.com (بيانات JSON مرتبطة بـ LBMA)، ثم ملفّي data/gold_price.json وdata/last_gold_price.json المُودَعين، ثم ذاكرة المتصفح الحديثة. وتُبقي عمليات الجلب الساعية من الخادم عبر .github/workflows/gold-price-fetch.yml ملفات JSON المُودَعة محدَّثة خلال ساعات السوق.

Update Frequency

معدّل التحديث

Client-side (live lane): when gold-api.com is the active source, the homepage and tracker poll about once per second while the tab is visible; hidden tabs slow down. Static fallbacks (mintedmetal, committed JSON, recent cache) use slower cadences. Server-side: GitHub Actions still commits hourly updates to data/gold_price.json during market hours. Every visible price carries a freshness label (live · delayed · cached · stale · fallback · closed · unavailable) with source and timestamp — we never present stale or cached values as live without that label.

من جانب العميل (المسار المباشر): عندما يكون gold-api.com هو المصدر النشط، تستعلم الصفحة الرئيسية والمتتبع نحو مرة كل ثانية أثناء ظهور التبويب؛ وتتباطأ التبويبات المخفية. أما المصادر الاحتياطية الثابتة (mintedmetal، وملفات JSON المُودَعة، والذاكرة الحديثة) فتستخدم وتيرة أبطأ. من جانب الخادم: لا تزال GitHub Actions تودِع تحديثات كل ساعة في data/gold_price.json خلال ساعات السوق. كل سعر ظاهر يحمل وسم حداثة (مباشر · متأخر · مخزّن · قديم · احتياطي · مغلق · غير متاح) مع المصدر والطابع الزمني — ولا نعرض أبداً قيمة قديمة أو مخزّنة على أنها مباشرة دون ذلك الوسم.

Caching

التخزين المؤقت

The most recently fetched gold price is stored in the browser's localStorage. When you load a page, the cached price is displayed immediately — before a network request is made — so you always see a number rather than a blank. A secondary "fallback" slot stores the previous known price for additional resilience.

يُخزَّن أحدث سعر ذهب مجلوب في ذاكرة المتصفح localStorage. وعند تحميل الصفحة يظهر السعر المخزّن فوراً — قبل إجراء أي طلب شبكة — لترى دائماً رقماً بدل فراغ. وتحتفظ خانة «احتياطية» ثانوية بالسعر المعروف السابق لمزيد من المتانة.

Freshness Indicator

مؤشّر الحداثة

A live countdown timer and "last updated" timestamp are displayed throughout the site. If a live fetch fails, the UI labels the value as "Cached". Once the gold timestamp is older than 30 minutes the UI labels the value as "Delayed", and after 75 minutes as "Stale" (so the site never implies a value is live when it is multiple server refresh windows old).

يُعرض عبر الموقع عدّاد تنازلي حيّ وطابع زمني لـ«آخر تحديث». وإذا فشل الجلب المباشر، تَسِم الواجهة القيمة بـ«مخزّن». وحين يتجاوز عمر الطابع الزمني للذهب 30 دقيقة تَسِمها الواجهة بـ«متأخر»، وبعد 75 دقيقة بـ«قديم» (حتى لا يوحي الموقع أبداً بأن قيمة مباشرة وهي أقدم من عدة نوافذ تحديث للخادم).

Limitation قيد

There is a potential lag of up to 90 seconds versus live institutional trading platforms. This site is for reference only — do not use these prices for executing trades or financial decisions.

قد يوجد تأخّر يصل إلى 90 ثانية مقارنةً بمنصّات التداول المؤسسية المباشرة. هذا الموقع للاسترشاد فقط — لا تستخدم هذه الأسعار لتنفيذ صفقات أو قرارات مالية.

Foreign Exchange Rates

أسعار صرف العملات

Source

المصدر

Currency exchange rates (USD as the base currency) are fetched from open.er-api.com (free tier). This provides rates for all 24+ currencies supported by the tracker.

تُجلب أسعار صرف العملات (بالدولار كعملة أساس) من open.er-api.com (الفئة المجانية). يوفّر هذا أسعاراً لجميع العملات — أكثر من 24 عملة — التي يدعمها المتتبع.

Update Frequency

معدّل التحديث

Exchange rates are updated approximately once per 24 hours by the API provider. We cache the rates locally in localStorage and display an "FX" chip in the tracker showing the last update time. When FX rates are stale (the provider's next_update timestamp has passed), a visual stale indicator is shown.

يحدِّث مزوّد الواجهة أسعار الصرف نحو مرة كل 24 ساعة. ونخزّنها محلياً في localStorage ونعرض شارة «FX» في المتتبع تُظهر وقت آخر تحديث. وعندما تصبح أسعار الصرف قديمة (بعد انقضاء الطابع الزمني next_update لدى المزوّد) يظهر مؤشّر «قديم» مرئي.

Gold spot freshness and FX freshness do not always move together. A gold snapshot can be recent while the FX layer is still daily, so the tracker and exports label each layer separately.

لا تتحرك حداثة سعر الذهب وحداثة الصرف معاً دائماً. فقد تكون لقطة الذهب حديثة بينما طبقة الصرف لا تزال يومية، لذلك يضع المتتبع وملفات التصدير وسماً مستقلاً لكل طبقة.

Important Limitation قيد مهم

Exchange rates are mid-market reference rates. Actual gold trade prices — especially for physical import/export — reflect bid/ask spreads, dealer margins, and local market premiums that are not captured here.

أسعار الصرف هي أسعار مرجعية لمنتصف السوق. أما أسعار تداول الذهب الفعلية — خصوصاً للاستيراد والتصدير المادي — فتعكس فروق العرض والطلب وهوامش التجار وعلاوات السوق المحلية غير المشمولة هنا.

The AED Fixed Peg (Special Case)

ربط الدرهم الثابت (حالة خاصة)

The UAE Dirham has been officially pegged to the US Dollar at a rate of 3.6725 AED per 1 USD since November 1997. This peg is maintained by the UAE Central Bank and has remained unchanged through every market cycle since.

رُبِط الدرهم الإماراتي رسمياً بالدولار الأمريكي بسعر 3.6725 درهم لكل دولار واحد منذ نوفمبر 1997. ويُحافظ مصرف الإمارات المركزي على هذا الربط الذي بقي ثابتاً عبر كل دورة سوق منذ ذلك الحين.

Hardcoded AED Rate
سعر الدرهم المُثبَّت
1 USD = 3.6725 AED (official Central Bank of UAE peg) 1 USD = 3.6725 AED — ربط مصرف الإمارات المركزي الرسمي

Our Approach

نهجنا

We never use the AED rate returned by the open.er-api.com API. Even though the API returns an AED rate, free-tier exchange rate APIs can occasionally return rounded or slightly off values. To keep the USD→AED conversion step exact, we hardcode the official peg rate of 3.6725 and delete any AED value from the API response before processing.

نحن لا نستخدم أبداً سعر الدرهم الذي تُعيده واجهة open.er-api.com. فحتى مع أن الواجهة تُعيد سعراً للدرهم، قد تُعيد الواجهات المجانية أحياناً قيماً مقرَّبة أو منحرفة قليلاً. وللإبقاء على خطوة التحويل من الدولار إلى الدرهم دقيقة، نُثبِّت سعر الربط الرسمي 3.6725 في الكود ونحذف أي قيمة للدرهم من استجابة الواجهة قبل المعالجة.

This means the USD→AED conversion step itself carries no exchange-rate uncertainty — because the peg has held since 1997, the hardcoded value is more reliable than a free-tier API rate for that one step. The AED gold price is still only as fresh and accurate as the XAU/USD spot input it is built on, which is why every AED figure keeps a freshness label and remains a reference estimate, not a guaranteed price.

هذا يعني أن خطوة التحويل من الدولار إلى الدرهم لا تحمل عدم يقين في سعر الصرف — وبما أن الربط ثابت منذ 1997، فالقيمة المُثبتة في الكود أكثر موثوقية من سعر واجهة برمجية مجانية لتلك الخطوة وحدها. ومع ذلك، يبقى سعر الذهب بالدرهم بقدر حداثة ودقة مدخل XAU/USD الذي يُبنى عليه، ولذلك يحتفظ كل رقم بالدرهم بوسم الحداثة ويبقى تقديراً مرجعياً وليس سعراً مضموناً.

Reference: UAE Central Bank official communications and regulatory framework.

المرجع: البلاغات الرسمية والإطار التنظيمي لـمصرف الإمارات المركزي.

Karat Conversion

تحويل العيار

Gold purity is expressed in karats, where 24 karats = pure gold (99.9% fineness). Lower karat grades are alloys — mixtures of gold with other metals such as silver, copper, or palladium. The gold content by weight is a simple fraction:

يُعبَّر عن نقاء الذهب بالعيار، حيث 24 قيراطاً = ذهب خالص (نقاء 99.9%). أما العيارات الأدنى فهي سبائك ممزوجة — خلائط من الذهب مع معادن أخرى كالفضة أو النحاس أو البلاديوم. ومحتوى الذهب بالوزن كسرٌ بسيط:

Karat Grade Purity Fraction Millesimal Fineness
العيار النقاء الكسر النقاء بالألف

The Price Formula

معادلة السعر

All prices displayed on this site are derived from a single formula applied consistently across every country and karat grade:

تُشتق جميع الأسعار المعروضة على هذا الموقع من معادلة واحدة تُطبَّق باتساق عبر كل دولة وكل عيار:

Core Price Formula
المعادلة الأساسية للسعر
Price per gram = (XAU/USD spot ÷ 31.1035) × (karat ÷ 24) × FX rate سعر الغرام = (سعر XAU/USD الفوري ÷ 31.1035) × (العيار ÷ 24) × سعر الصرف
  • XAU/USD spot — Current gold price in US Dollars per troy ounce
  • ÷ 31.1035 — Converts troy ounce to grams (1 troy oz = 31.1035 g, the international standard)
  • × (karat ÷ 24) — Adjusts for purity (e.g., 22/24 = 0.9167 for 22K)
  • × FX rate — Converts USD to the target currency (AED: always 3.6725)
  • سعر XAU/USD الفوري — سعر الذهب الحالي بالدولار للأوقية التروية
  • ÷ 31.1035 — يحوّل الأوقية التروية إلى غرامات (1 أوقية تروية = 31.1035 غرام، المعيار الدولي)
  • × (العيار ÷ 24) — يعدّل حسب النقاء (مثلاً 22/24 = 0.9167 لعيار 22)
  • × سعر الصرف — يحوّل الدولار إلى العملة المستهدفة (الدرهم: دائماً 3.6725)

The troy ounce (31.1035 grams) is the universal standard unit for precious metals pricing worldwide. It is distinct from the avoirdupois ounce (28.35 grams) used for everyday weights.

الأوقية التروية (31.1035 غرام) هي الوحدة المعيارية العالمية لتسعير المعادن الثمينة في العالم. وهي تختلف عن الأوقية الأفوردوبوا (28.35 غرام) المستخدمة للأوزان اليومية.

What Our Prices Are Not

ما لا تمثّله أسعارنا

Our prices are bullion-equivalent spot values. They intentionally exclude several components that affect real-world retail prices. Understanding these exclusions helps you interpret the numbers correctly.

أسعارنا قيم فورية تعادل قيمة السبائك. وهي تستبعد عن قصد عدة مكوّنات تؤثر في أسعار التجزئة الواقعية. وفهم هذه الاستثناءات يساعدك على قراءة الأرقام قراءةً صحيحة.

Not the Dubai Gold & Jewellery Group (DGJG) Daily Rate ليست سعر مجموعة دبي للذهب والمجوهرات (DGJG) اليومي

The DGJG publishes a daily retail floor rate each morning based on the overnight LBMA close. Our price is based on the live international spot price, which updates throughout the day. The two will differ by a small amount depending on how much the market has moved since the DGJG morning fix.

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

Not Inclusive of Making Charges لا تشمل أجور الصياغة

Jewellery prices include fabrication/making charges on top of the gold price. In the Dubai Gold Souk, these typically range from AED 3–12 per gram for machine-made pieces, and up to AED 30+ per gram for handmade or designer jewellery. Investment bars from reputable dealers carry much smaller premiums (typically 0.5–3% over spot).

تشمل أسعار المجوهرات أجور التصنيع/الصياغة فوق سعر الذهب. وفي سوق الذهب بدبي تتراوح عادةً بين 3 و12 درهماً للغرام للقطع المصنوعة آلياً، وتصل إلى أكثر من 30 درهماً للغرام للمجوهرات المصنوعة يدوياً أو المصمَّمة. أما سبائك الاستثمار من تجار موثوقين فتحمل علاوات أصغر بكثير (عادةً 0.5–3% فوق السعر الفوري).

Not Inclusive of VAT لا تشمل ضريبة القيمة المضافة

VAT applies in some countries covered by this tracker. As of 2025: UAE (5%), Saudi Arabia (15%), Bahrain (10%), Oman (5%). Kuwait and Qatar do not currently levy VAT on gold. Our prices do not include any VAT component — add the applicable rate for your jurisdiction to estimate a retail total.

تُطبَّق ضريبة القيمة المضافة في بعض الدول التي يغطيها هذا المتتبع. اعتباراً من 2025: الإمارات (5%)، والسعودية (15%)، والبحرين (10%)، وعُمان (5%). ولا تفرض الكويت وقطر حالياً ضريبة قيمة مضافة على الذهب. ولا تتضمن أسعارنا أي مكوّن ضريبي — أضِف النسبة المطبَّقة في بلدك لتقدير الإجمالي بالتجزئة.

Not Financial Advice ليست نصيحة مالية

Nothing on this site constitutes financial, investment, or legal advice. Gold markets are volatile. Always consult a qualified financial advisor before making investment decisions.

لا شيء على هذا الموقع يشكّل نصيحة مالية أو استثمارية أو قانونية. أسواق الذهب متقلّبة. استشِر دائماً مستشاراً مالياً مؤهلاً قبل اتخاذ قرارات استثمارية.

Before you visit a shop

قبل زيارة المحل

Our reference price gives you a baseline — the pure gold value at current spot. At any shop, you should also ask about: the making charge per gram, the applicable VAT (UAE: 5%, Saudi Arabia: 15%, Bahrain: 10%, Oman: 5%), and any dealer margin or import premium. Together, these additions can raise the final price 5–30% above the reference estimate shown here.

سعرنا المرجعي يمنحك خط أساس — قيمة الذهب الخالص بالسعر الفوري الحالي. وفي أي محل ينبغي أن تسأل أيضاً عن: أجرة الصياغة للغرام، وضريبة القيمة المضافة المطبَّقة (الإمارات: 5%، السعودية: 15%، البحرين: 10%، عُمان: 5%)، وأي هامش تاجر أو علاوة استيراد. ومجتمعةً قد ترفع هذه الإضافات السعر النهائي بنسبة 5–30% فوق التقدير المرجعي المعروض هنا.

Spot vs retail explained in full →  ·  Estimate your total in the calculator →

شرح كامل للفرق بين السعر الفوري والتجزئة ←  ·  قدّر إجماليك في الحاسبة ←

Data Fallback & Reliability

احتياطي البيانات والموثوقية

We implement a multi-tier data fallback system to ensure the site remains useful even when APIs are unavailable or slow.

نطبّق نظام احتياطي متعدد الطبقات للبيانات لضمان بقاء الموقع مفيداً حتى عندما تكون الواجهات غير متاحة أو بطيئة.

Tier 1
الطبقة 1
gold-api.com (live)
gold-api.com (مباشر)
Browser CORS spot feed — ~1 s polling when healthy; labelled with source + age
تغذية فورية عبر CORS في المتصفح — استعلام كل ثانية تقريباً عند السلامة؛ مع وسم المصدر والعمر
Tier 2
الطبقة 2
mintedmetal.com (LBMA JSON)
mintedmetal.com (JSON مرتبط بـ LBMA)
Twice-daily LBMA-linked reference when the live API is unavailable
مرجع مرتبط بـ LBMA مرتين يومياً عند تعذّر الواجهة المباشرة
Tier 3
الطبقة 3
Committed JSON files
ملفات JSON المُودَعة
data/gold_price.json (hourly cron) then data/last_gold_price.json when recent
data/gold_price.json (مهمة ساعية) ثم data/last_gold_price.json عند حداثته
Tier 4
الطبقة 4
localStorage cache
ذاكرة localStorage
Recent browser snapshot only (≤ 75 min) — always labelled fallback
لقطة متصفح حديثة فقط (≤ 75 دقيقة) — تُوسَم دائماً كاحتياطي
Tier 5
الطبقة 5
Error state
حالة خطأ
Clear error banner if every provider fails — no silent blank prices
شريط خطأ واضح إذا فشل كل مزوّد — دون أسعار فارغة صامتة

Stale Data Handling

معالجة البيانات القديمة

If the gold API fails on a refresh attempt, the last known price is kept visible with an amber "stale" indicator. We never show a blank price — but we also never silently pretend stale data is fresh.

إذا فشلت واجهة الذهب في محاولة تحديث، يبقى آخر سعر معروف ظاهراً مع مؤشّر «قديم» كهرماني. لا نعرض أبداً سعراً فارغاً — لكننا أيضاً لا ندّعي بصمت أن بياناتٍ قديمة حديثة.

Offline Mode

وضع عدم الاتصال

Because cached data is stored in localStorage, the site displays cached gold prices and FX rates immediately on load — even without a network connection. Cached data is labelled with its age so you always know what you are looking at.

بما أن البيانات المخزّنة محفوظة في localStorage، يعرض الموقع أسعار الذهب والصرف المخزّنة فور التحميل — حتى دون اتصال بالشبكة. وتُوسَم البيانات المخزّنة بعمرها لتعرف دائماً ما الذي تنظر إليه.

CSV and JSON exports keep that same honesty. Every export includes a generated timestamp, source notes, data-resolution context, and a reminder that values are spot-linked reference prices rather than shop quotes.

تتبع ملفات CSV وJSON هذا الوضوح نفسه، إذ تتضمن وقت الإنشاء وملاحظات المصدر وسياق دقة البيانات وتذكيراً بأن القيم مرجعية مرتبطة بالسعر الفوري وليست أسعار محلات.

The Live Tracker: a deliberate exception

المتتبع المباشر: استثناء مقصود

By design عن قصد

The Tracker runs its own multi-tier live engine — and we keep it that way.

يشغّل المتتبع محرّكه المباشر متعدد الطبقات — ونُبقيه كذلك عمداً.

Almost every surface reads the one canonical committed snapshot through getCanonicalSpot(). The flagship Live Tracker is the one deliberate exception: it drives its own real-time provider engine that races live sources first, because a live ticker's whole job is up-to-the-second movement.

يقرأ معظم الأسطح اللقطةَ المرجعية المُودَعة الواحدة عبر getCanonicalSpot(). أما المتتبع المباشر الرئيسي فهو الاستثناء الوحيد المقصود: إذ يشغّل محرّك مزوّدين لحظياً يسابق المصادر المباشرة أولاً، لأن مهمة الشريط المباشر كلها هي رصد الحركة ثانيةً بثانية.

gold-api minted-metal committed / cached fallback
gold-api minted-metal الاحتياطي المُودَع/المخزّن

This is honest, not a contradiction: the Tracker still labels every value with the same freshness states, still honours the AED peg and troy/karat invariants, and falls back to the same committed snapshot when live sources fail — so it can only ever be as fresh as, or fresher than, the canonical value. We intentionally do not migrate it to the shared resolver.

هذا صادق وليس تناقضاً: فالمتتبع لا يزال يَسِم كل قيمة بحالات الحداثة نفسها، ويحترم ربط الدرهم وثوابت الأوقية والعيار، ويرجع إلى اللقطة المُودَعة نفسها عند فشل المصادر المباشرة — فلا يكون أبداً إلا بحداثة القيمة المرجعية أو أحدث منها. ونحن لا ننقله عمداً إلى المُحلِّل المشترك.

Data-state vocabulary

مفردات حالة البيانات

Every freshness-capable price discloses three things together — the state label, the source, and the UTC timestamp — so a cached or delayed value is never mistaken for a live trading quote. These are the exact states the site can show, from freshest to least certain:

كل سعر قابل للحداثة يُفصح عن ثلاثة أمور معاً — وسم الحالة، والمصدر، والطابع الزمني بتوقيت UTC — حتى لا تُخلَط قيمة مخزّنة أو متأخرة أبداً بسعر تداول مباشر. وهذه هي الحالات الدقيقة التي قد يعرضها الموقع، من الأحدث إلى الأقل يقيناً:

  • Live Fetched from a healthy provider within the live budget (≤ 5 seconds old). The only state ever shown as live.
  • Cached A recent value from the browser / service-worker cache, within the cached budget (≤ 60 seconds).
  • Delayed Older than the cached budget but still recent (≤ 5 minutes), or the FX layer lagging behind gold.
  • Estimated The live provider path is unavailable, so the value is carried forward beyond the delayed budget — shown with cautionary styling, never as live.
  • Stale Older than the stale threshold (gold: 75 minutes; FX: 26 hours).
  • Fallback The last known value kept visible after a fetch failure — never blanked, never relabelled live.
  • Closed The market is in its scheduled closed window; even recent data reads closed until it reopens.
  • Unavailable The timestamp is missing or unreadable, so freshness can't be verified.
  • مباشر مجلوب من مزوّد سليم ضمن نافذة المباشر (أحدث من 5 ثوانٍ). الحالة الوحيدة التي تُعرض على أنها مباشرة.
  • مخزّن قيمة حديثة من ذاكرة المتصفح أو عامل الخدمة، ضمن نافذة التخزين (حتى 60 ثانية).
  • متأخر أقدم من نافذة التخزين لكنها لا تزال حديثة (حتى 5 دقائق)، أو طبقة الصرف متأخرة عن الذهب.
  • مُقدَّر مسار المزوّد المباشر غير متاح، فتُحمَل القيمة إلى ما بعد نافذة التأخير — تُعرض بنمط تحذيري، وليست مباشرة أبداً.
  • قديم أقدم من عتبة القِدَم (الذهب: 75 دقيقة؛ الصرف: 26 ساعة).
  • احتياطي آخر قيمة معروفة تبقى ظاهرة بعد فشل الجلب — لا تُفرَّغ ولا يُعاد وسمها كمباشرة.
  • مغلق السوق في نافذة إغلاقه المجدول؛ حتى البيانات الحديثة تُقرأ كمغلقة حتى يُعاد فتحه.
  • غير متاح الطابع الزمني مفقود أو غير قابل للقراءة، فلا يمكن التحقق من الحداثة.
Offline & recovery عدم الاتصال والتعافي

Offline: if your device loses its connection, the site keeps serving the last cached value with an offline notice — it never blanks out, and never relabels cached data as live. Recovery: after a failed fetch the value stays visible as fallback or cached while the app quietly retries; the moment a fresh value arrives it returns to live. There is no separate "recovering" badge — the honest state you see is always the current one, not an optimistic guess.

عدم الاتصال: إذا فقد جهازك الاتصال، يواصل الموقع عرض آخر قيمة مخزّنة مع إشعار بعدم الاتصال — فلا يظهر فراغاً أبداً، ولا يُعيد وسم البيانات المخزّنة كمباشرة. التعافي: بعد فشل الجلب تبقى القيمة ظاهرة كاحتياطية أو مخزّنة بينما يعيد التطبيق المحاولة بهدوء؛ وفور وصول قيمة جديدة تعود إلى «مباشر». ولا يوجد وسم منفصل لـ«قيد التعافي» — فالحالة الصادقة التي تراها هي الحالية دائماً، وليست تخميناً متفائلاً.

Frequently asked questions

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

Why does my shop quote differ?
Retail prices add making charges, VAT, design premiums, and dealer margins. Our numbers are spot-linked reference metal value — use the spot vs retail guide and calculator to compare transparently.
How fresh is the data?
Gold spot is committed hourly during market hours to data/gold_price.json; the browser re-fetches about every 90 seconds. FX updates roughly daily. Check the freshness chip on each surface.
Why is AED pricing special?
We hardcode the official 3.6725 AED/USD peg — never a floating FX quote — so UAE gram prices move deterministically with XAU/USD.
لماذا يختلف عرض السعر في محلّي؟
تضيف أسعار التجزئة أجور الصياغة وضريبة القيمة المضافة وعلاوات التصميم وهوامش التجار. أما أرقامنا فهي قيمة معدن مرجعية مرتبطة بالسعر الفوري — استخدم دليل الفوري مقابل التجزئة والحاسبة للمقارنة بشفافية.
ما مدى حداثة البيانات؟
يُودَع السعر الفوري للذهب كل ساعة خلال ساعات السوق في data/gold_price.json؛ ويعيد المتصفح الجلب نحو كل 90 ثانية. ويتحدّث الصرف يومياً تقريباً. تحقّق من شارة الحداثة على كل سطح.
لماذا يُعدّ تسعير الدرهم خاصاً؟
نُثبِّت في الكود ربط 3.6725 درهم/دولار الرسمي — لا سعر صرف متغيّر أبداً — لتتحرك أسعار الغرام في الإمارات حتمياً مع XAU/USD.

Disclaimer

إخلاء المسؤولية

Important Disclaimer إخلاء مسؤولية مهم

All gold prices and currency conversions displayed on this website are estimates only. They are calculated from third-party data sources that may contain errors, delays, or inaccuracies. The prices shown represent theoretical bullion-equivalent values and do not reflect actual retail, wholesale, or trade prices available from any specific dealer, exchange, or institution.

جميع أسعار الذهب وتحويلات العملات المعروضة على هذا الموقع تقديرات فقط. وتُحسب من مصادر بيانات خارجية قد تحتوي أخطاءً أو تأخيراً أو عدم دقة. وتمثّل الأسعار المعروضة قيماً نظرية تعادل قيمة السبائك، ولا تعكس أسعار تجزئة أو جملة أو تداول فعلية متاحة من أي تاجر أو بورصة أو مؤسسة بعينها.

Gold Ticker Live is not a financial services firm, investment advisor, or dealer in precious metals. Nothing on this website constitutes financial, investment, tax, or legal advice. Past gold price performance does not guarantee future results. Gold is a volatile asset — its value can fall as well as rise.

Gold Ticker Live ليست شركة خدمات مالية ولا مستشاراً استثمارياً ولا تاجر معادن ثمينة. ولا شيء على هذا الموقع يشكّل نصيحة مالية أو استثمارية أو ضريبية أو قانونية. والأداء السابق لسعر الذهب لا يضمن نتائج مستقبلية. والذهب أصل متقلّب — قد تنخفض قيمته كما قد ترتفع.

Always verify prices with a licensed gold dealer or financial institution before executing any transaction. Consult a qualified financial advisor for investment decisions. For Zakat calculations, consult a qualified Islamic scholar.

تحقّق دائماً من الأسعار مع تاجر ذهب مرخّص أو مؤسسة مالية قبل تنفيذ أي معاملة. واستشِر مستشاراً مالياً مؤهلاً لقرارات الاستثمار. ولحساب الزكاة، استشِر عالماً شرعياً مؤهلاً.