Gold Price API¶
- deprecated
This module allows users to get gold data
Quick reference¶
Resource |
Operation |
Description |
---|---|---|
|
Get SJC Gold Price |
|
Post SJC Gold Price |
||
|
Get DOJI Gold Price |
|
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
Content-Type – application/json
- 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
200 OK – results
-
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
Authorization – API Key generated by VNAppMob
Content-Type – application/json
- 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
201 Created – Successful update data
403 Forbidden – Invalid api_key
400 Bad Request – Error
-
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
Content-Type – application/json
- Response JSON Object
buy_1l (float) – Buy 1L
sell_1l (float) – Sell 1L
- Status Codes
200 OK – results
-
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
Authorization – API Key generated by VNAppMob
Content-Type – application/json
- 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
201 Created – Successful update data
403 Forbidden – Invalid api_key
400 Bad Request – Error