项目作者: izzuddinfz

项目描述 :
Gold Price (RM) form Kijang Emas Bank Negara Malaysia (BNM)
高级语言: PHP
项目地址: git://github.com/izzuddinfz/bnm-goldprice.git
创建时间: 2019-04-22T07:42:47Z
项目社区:https://github.com/izzuddinfz/bnm-goldprice

开源协议:

下载


Gold Price (RM) form Kijang Emas Bank Negara Malaysia (BNM)

Gold Price data is pulled from Kijang Emas. This code is only for demo on BNM API usage.

Result Example

Please refer http://gold.decoweb.space/ for live code execution.

  1. <p><strong>Price for date:</strong> 2019-04-19</br><strong>Last update:</strong> 2019-04-19 10:00:02</p><p><strong>BNM Data</strong><br>1g (Buying): RM190.00<br>1g (Sell): RM205.00</p><p><strong>Adjusted Data</strong><br>1g (Buying): RM136.80 (-28%)<br>1g (Sell): RM172.20 (-16%)</p><p><strong>API Response</strong><br><pre>{
  2. "data": {
  3. "effective_date": "2019-04-19",
  4. "one_oz": {
  5. "buying": 5391,
  6. "selling": 5609
  7. },
  8. "half_oz": {
  9. "buying": 2696,
  10. "selling": 2858
  11. },
  12. "quarter_oz": {
  13. "buying": 1348,
  14. "selling": 1455
  15. }
  16. },
  17. "meta": {
  18. "last_updated": "2019-04-19 10:00:02",
  19. "total_result": 1
  20. }
  21. }</pre></p><p><small><a href="https://api.bnm.gov.my/portal#operation/KELatest">Source BNM API Kijang Emas</a></small></p>