Ratemint — Automated Gold & Silver Pricing
   AUTO SYNC ACTIVE  ·  Gold 22k: ₹5,958/g  ·  Silver: ₹84/g  ·  Last sync: Today 6:00 AM  ·  124 products updated  ·  ratemint.in        AUTO SYNC ACTIVE  ·  Gold 22k: ₹5,958/g  ·  Silver: ₹84/g  ·  Last sync: Today 6:00 AM  ·  124 products updated  ·  ratemint.in   
Ratemint — Live & Running

Gold prices that
update themselves.

100+ products. Zero manual work. Every morning at 6 AM your Shopify store prices recalculate automatically using live gold & silver rates — powered by Ratemint.

0
Products
₹0
Monthly cost
6 AM
Auto-sync
 The Problem

What we were doing before

Manual updates daily

Someone had to check the gold rate every day and update 100+ products manually. Hours of repetitive, error-prone work.

Prices always outdated

If we forgot, customers saw wrong prices. We risked selling at a loss when gold rates spiked overnight.

No time for real work

Valuable team time wasted on a task a computer can do perfectly, every single day, for free.

 The Solution

What we built

A custom app on our existing Hostinger hosting. Every morning at 6 AM it wakes up, fetches the live gold rate, recalculates every product, and pushes prices to Shopify — completely on its own.

Fetches live gold & silver rates

International metals market → converted to ₹/gram instantly.

Calculates every product's price

Weight × Rate + Making Charges + 3% GST = Final Price.

Updates Shopify automatically

Via official Admin API. Zero human involvement needed.

 Price Formula
Gold Rate (22k / gram)₹5,958
Weight of item× 5g
Metal value= ₹29,792
Making charges+ ₹500
GST 3%+ ₹909
Final Price₹31,210

Recalculated daily at 6:00 AM

 Live Interactive Demo

Test the Pricing Engine

Change the inputs below to see how Ratemint instantly recalculates the final Shopify price.

g

Simulates the 6:00 AM API rate fetch.

Shopify Price Preview
Metal Value ₹29,790.00
Making Charges ₹500.00
GST (3%) ₹908.70
Final Price ₹31,198.70
Sync Engine Ready
 Every Morning

What happens at 6:00 AM

1
6:00 AM

Cron job triggers automatically

Hostinger server calls the sync script. No human needed. Runs 365 days a year.

2
6:00 AM

Fetch live gold & silver rates

Calls metals.live free API → gets international spot price in USD per troy ounce.

3
6:00 AM

Convert USD → INR per gram

Live exchange rate fetched → converted to ₹/gram for 24k, 22k, 18k, 14k.

4
6:01 AM

Calculate price for every product

Metal Value + Making Charges + GST = Final Price. Each product uses its own weight & making charges.

5
6:02 AM

Push new prices to Shopify

All prices pushed via Admin API. Old prices automatically backed up before every sync.

6:05 AM — Done

Customers see correct prices all day

Sync logged. Dashboard updated. ~5 minutes total. Zero human involvement.

 Safety First

Nothing can go wrong

Multiple safeguards protect your prices at every step.

Zero price guard

If API returns ₹0 — sync cancelled. No price is touched.

Automatic backup

All prices saved before every sync. Last 10 backups kept.

One-click restore

All original prices restored in one click from dashboard.

80% drop protection

Price drops more than 80%? Product is skipped automatically.

Full sync logs

Every run logged — products updated, gold rate, errors.

Manual override

Enter rates manually anytime — for IBJA or API downtime.

 Under The Hood

Built for reliability

A glimpse into the core JavaScript logic powering the Ratemint engine.

// Calculate product price based on Shopify product metafields
function calculatePrice(weight, rate, makingCharges) {
  // 1. Metal value
  const metalValue = weight * rate;

  // 2. Subtotal (Metal value + Making charges)
  const subtotal = metalValue + makingCharges;

  // 3. GST Amount (3% of subtotal)
  const gstAmount = subtotal * 0.03;

  // 4. Final calculated Price
  const finalPrice = subtotal + gstAmount;

  return { metalValue, subtotal, gstAmount, finalPrice };
}

// Execute calculation for Shopify sync payload
const newPrice = calculatePrice(5, 5958, 500);
console.log(`Calculated Price: ₹${newPrice.finalPrice.toFixed(2)}`);
// Failsafe checks performed before updating Shopify API
function performSafetyCheck(currentPrice, referencePrice) {
  // Zero Price Guard
  if (currentPrice <= 0) {
    return { status: "Blocked", reason: "Zero Price Guard" };
  }

  // Calculate percentage drop vs. last sync price
  const dropThreshold = 80;
  const dropPercentage = ((referencePrice - currentPrice) / referencePrice) * 100;

  // Drop Protection Guard
  if (dropPercentage > dropThreshold) {
    return { status: "Blocked", reason: `Drop > ${dropThreshold}%` };
  }

  return { status: "SAFE", message: "Proceed with Shopify API update" };
}
 Cost

Zero extra monthly cost

Built on free APIs and existing Hostinger hosting.

metals.live API (gold & silver rates) Free
exchangerate-api.com (USD → INR) Free
Hostinger hosting Already paid
Shopify Admin API Included in plan
Total Monthly Cost₹0 / month
 Summary

From manual to
fully automatic.

100+ product prices update every morning by themselves — accurately, safely, and for free.

Open Dashboard

jagjeetsingh.in/metal-sync  ·  ratemint.in

Ratemint v1.1  ·  Built for shopakaari.in  ·  April 2026