Live Rates

Retrieve live gold and silver buy and sell rates, including purchase GST amounts, with the Live Rates API.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Retrieve live buy and sell rates for gold and silver, along with the goods and services tax (GST) amounts for purchases.

Request

Send a POST request to /digitalgold/rates with your unique client_referenceId. Include your client-id and client-secret headers, and set Content-Type to application/json.

Request example

{
  "client_referenceId": "{{Client Reference ID}}"
}

Response

A successful response returns status: "SUCCESS" and a data object containing six rate and GST fields. The values below are sample values, not current market rates.

Response example

{
  "status": "SUCCESS",
  "statusCode": "200",
  "message": "Rates retrieved successfully.",
  "data": {
    "gold_buy_rate": "8874.56",
    "gold_sell_rate": "8580.40",
    "silver_buy_rate": "99.58",
    "silver_sell_rate": "96.15",
    "gold_buy_gst": "266.24",
    "silver_buy_gst": "2.99"
  },
  "acknowledged": "1"
}

Rate and GST fields

All fields below belong to the data object and return numeric values as strings.

FieldTypeDescription
gold_buy_ratestringGold buy rate.
gold_sell_ratestringGold sell rate.
silver_buy_ratestringSilver buy rate.
silver_sell_ratestringSilver sell rate.
gold_buy_gststringGST amount for gold purchases.
silver_buy_gststringGST amount for silver purchases.

Convert rate and GST strings to a numeric representation before using them in calculations. Use decimal-safe arithmetic to avoid floating-point rounding errors.

Body Params
string
required

Your unique reference ID for this live rates request. Provide this value as a string in the JSON request body.

Headers
string
required

Unique Client ID

string
required

Unique Client Secret

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json