| Schema |
|---|
spots objectxau objectThe latest spot record for Gold encSpotToken stringThe token to be provided for referencing "this" spot-record | expiry date-timeThe time where this record will expires. (Time shown is in UTC) | metalCode stringThe ISO-4271 Alpha-3 Code of the Precious Metal (e.g. XAG, XAU, XPT) | asOfTime date-timeThe as-of time for the spot record. The time displayed is shared across different metals, and is reflected in SGT. | currency stringThe ISO-4271(alpha-3) Currency code of the currency for the spot record | spot doubleThe spot value, rounded to 8 decimal places. | sellback doubleThe rate used when performing a sellback to us, rounded to 4 decimal places. | purchase doubleThe rate used when purchasing from us, rounded to 4 decimal places. | fx doubleThe conversion rate from 1 USD to 'this' currency. |
| xag objectThe latest spot record for Silver encSpotToken stringThe token to be provided for referencing "this" spot-record | expiry date-timeThe time where this record will expires. (Time shown is in UTC) | metalCode stringThe ISO-4271 Alpha-3 Code of the Precious Metal (e.g. XAG, XAU, XPT) | asOfTime date-timeThe as-of time for the spot record. The time displayed is shared across different metals, and is reflected in SGT. | currency stringThe ISO-4271(alpha-3) Currency code of the currency for the spot record | spot doubleThe spot value, rounded to 8 decimal places. | sellback doubleThe rate used when performing a sellback to us, rounded to 4 decimal places. | purchase doubleThe rate used when purchasing from us, rounded to 4 decimal places. | fx doubleThe conversion rate from 1 USD to 'this' currency. |
| xpt objectThe latest spot record for Platinum encSpotToken stringThe token to be provided for referencing "this" spot-record | expiry date-timeThe time where this record will expires. (Time shown is in UTC) | metalCode stringThe ISO-4271 Alpha-3 Code of the Precious Metal (e.g. XAG, XAU, XPT) | asOfTime date-timeThe as-of time for the spot record. The time displayed is shared across different metals, and is reflected in SGT. | currency stringThe ISO-4271(alpha-3) Currency code of the currency for the spot record | spot doubleThe spot value, rounded to 8 decimal places. | sellback doubleThe rate used when performing a sellback to us, rounded to 4 decimal places. | purchase doubleThe rate used when purchasing from us, rounded to 4 decimal places. | fx doubleThe conversion rate from 1 USD to 'this' currency. |
|
| variables objectmarket stringThe market status, used to indicate whether the market is open or closed. |
|
|
400
Failed to retrieve spot records due to a validation error. | Schema |
|---|
errors object[]Provides specific details about the errors encountered and on which underlying records. Shown only for validation done on business levels. (invalid inputs are not reflected through this field/object) errorCode stringA brief set of characters that describe the error. Valid values include [UnsupportedCurrency] and [SearchTermsContainsInvalidMetal] | errorMessage stringA human readable version of what went wrong during the validation process. | recordIdentifierName stringThe name of the identifier (known to the caller) which will be used to display the errorneous records relating to this error. | records undefined[]The list of transaction identifiers (mentioned in [recordIdentifierName] that had a hit with this error. |
| errorCount integerThe number of failing points which caused the call to be rejected. | type url | title stringShort, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence. | status numberThe advisory status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. This is the same status code returned from this API call. | detail stringBy convention, this should provide a human-readable explanation specific to this occurrence of the problem and ought to focus on helping the client correct the problem, rather than giving debugging information. In the event there are seveal errors, a reference to another field will be made. | instance stringA URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. | traceId stringUsed mainly for error tracing purposes. |
|