Skip to main content

Spot Price

Provides spot price movement over a defined interval, together with information on the products offered and system variables. When defining parameters, note that this works in the concept of querying for [Spot price of gold in {currency} for the last {qtyIntervals} x {intervalSize}{interval}]. Also note that the call here does not require "spotPriceType" as we are concerned only with the price of Gold for this app.

Query Parameters
interval int32

Possible values: [1, 60, 1440, 10080, -1]

Time intervals, expressed in minutes. Integer value represents the member's equivalent number of minutes (except for Month (-1) and Year (-2)

Accepts "Minute"/"Hour"/"Day"(-1) or the equivalent no. of minutes unless otherwise bracketed. Determines the interval between spots we are concerned with.

qtyIntervals int32

Number of most-recent Intervals that we will like to query on.

currency string

The fiat currency that we want to query for gold prices in (e.g. SGD). Defaults to system defined base currency if not provided.

intervalSize int32

The gap between each intervals. (e.g. X minutes, X hours, X days)

Responses
200

Success

Schema
products object

Used to describe

AuGrams object

Product Description

purchaseNoDisc double

The sale/purchase price for a unit of gold grams (on the product level), expressed in the currency that was being queried on.

purchase double

The sale/purchase price for a unit of gold grams (on the product level), factoring in discounts and user tiers, expressed in the currency that was being queried on.

sellback double

The pricing that customers can perform a sellback on.

variables object
fxToBase double
lockTokenExpiry int32

The maximum amount of time in seconds that a quotation remains \'Valid\'.

maxDepositAmount double

The maximum amount of cash funds that the account is allowed to have.

maxTransactionAmount double

Maximum amount the customer can purchase daily

maxUnfundedAmount double

amount that the customer can be short of when purchasing tokens

maxWithdrawalAmount double

Maximum amount of gold grams the customer can sell back daily

400

Invalid values exist (e.g. valid provided for [interval], or [six] for [qtyIntervals]), or the value provided for [qtyInterval] or [interval] is too high.