Skip to main content

Lock purchase/sellback quote

Generates a quotation for the purchase or buy back of gold grams, which projects the holdings and balances if the sale is completed. Also indicates the premiums that will be collected from the sale. Take note that the quotation is active for a short duration of time (around 30 seconds)

Request Body

JSON Object to provide when getting a sales quotation

operation

Possible values: [Purchase, Sellback]

purchaseCurrency string

The currency to work with when performing the sales operation.

goldAmount double

The amount of gold involved in the sales operation.

Responses
200

The sale is completed successfully.

Schema
ID Guid

An identifier for the generated quotation for the given customer. This will be in a Guid format.

Amount double

Amount of gold

Chg array

A list of additional charges. Key = product ID, value = charged amount

Cur string

The currency that will be used to buy gold grams.

EncToken string

The confirmation token that will be used to perform the purchase based on the responses of this API call.

Exp date-time

The time where the lock/previewed price will be deemed invalid.

Fx double

The FX Currency rate from the Currency that the transaction will be done in, against the system currency. (Usually SGD)

PostBalance double

The amount of cash holdings of the customer if the sale is confirmed.

PostHoldings double

The amount of gold holdings of the customer (in grams) if the sale is confirmed.

PreBalance double

The amount of cash holdings of the customer before the sale is confirmed.

PreHoldings double

The amount of gold holdings of the customer (in grams) before the sale.

Premium double

The amount of premium that will be collected for the purchase.

Product string

The name of the product that's involved in the sale.

Spot double

The spot price of the product (in this case gold) against the currency at the time of sale.

Total double

The total amount that will be deducted from existing cash holdings if the sale is completed. (In the event this is a sellback, this value will be negative)

UID string

Account identifier

UPrice double

Cost of 1 unit of the product in the stated currency (in this case, the cost of 1g of gold, with fees factored in.)

Use string

Possible values: [P, S]

Used to denote if the transaction is meant for purchase or sellback.