Gold Price API

deprecated

This module allows users to get gold data

Quick reference

Resource

Operation

Description

  1. SJC Price

GET /api/gold/sjc

Get SJC Gold Price

POST /api/gold/sjc

Post SJC Gold Price

  1. DOJI Price

GET /api/gold/doji

Get DOJI Gold Price

POST /api/gold/doji

Post DOJI Gold Price

Usage permission

To use this API, please request api_key via contact@vnappmob.com

Details

GET /api/gold/doji

This function allows users to get the latest DOJI Gold price

Request:

GET /api/gold/doji HTTP/1.1
Host: https://vapi.vnappmob.com
Accept: application/json

Response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json

{
    "results": [
        {
            "buy_hcm": 42550000.00,
            "sell_hcm": 42550000.00
        }
    ]
}
Query Parameters
  • api_key – API Key generated by VNAppMob

  • date_from – Set date from query

  • date_to – Set date to query

Response Headers
Response JSON Object
  • buy_hcm (float) – Buy 1L in HCM market

  • sell_hcm (float) – Sell 1L in HCM market

  • buy_hn (float) – Buy 1L in HN market

  • sell_hn (float) – Sell 1L in HN market

Status Codes
POST /api/gold/doji

Limited function that allows data manager to push newest price

Request:

POST /api/gold/doji HTTP/1.1
Host: https://vapi.vnappmob.com
Accept: application/json

Response:

HTTP/1.1 201 Created
Vary: Accept
Response Headers
Request JSON Object
  • buy_hcm (float) – buy_hcm

  • sell_hcm (float) – sell_hcm

  • buy_hn (float) – buy_hn

  • sell_hn (float) – sell_hn

Status Codes
GET /api/gold/sjc

This function allows users to get the latest SJC Gold price

Request:

GET /api/gold/sjc HTTP/1.1
Host: https://vapi.vnappmob.com
Accept: application/json

Response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json

{
    "results": [
        {
            "buy_1l": 42550000.00,
            "sell_1l": 42550000.00
        }
    ]
}
Query Parameters
  • api_key – API Key generated by VNAppMob

  • date_from – Set date from query

  • date_to – Set date to query

Response Headers
Response JSON Object
  • buy_1l (float) – Buy 1L

  • sell_1l (float) – Sell 1L

Status Codes
POST /api/gold/sjc

Limited function that allows data manager to push newest price

Request:

POST /api/gold/sjc HTTP/1.1
Host: https://vapi.vnappmob.com
Accept: application/json

Response:

HTTP/1.1 201 Created
Vary: Accept
Response Headers
Request JSON Object
  • buy_1l (float) – buy_1l

  • sell_1l (float) – sell_1l

  • buy_1c (float) – buy_1c

  • sell_1c (float) – sell_1c

  • buy_nhan1c (float) – buy_nhan1c

  • sell_nhan1c (float) – sell_nhan1c

  • buy_trangsuc49 (float) – buy_trangsuc49

  • sell_trangsuc49 (float) – sell_trangsuc49

Status Codes