JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q48585F
  • License mit

data api for stock exchange of thailand

Package Exports

  • stockthai

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stockthai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stockthai

Client api for stock exchang of thailand client api สำหรับ ดึงข้อมูลราคาหุ้นไทย

Installing

  npm install stockthai

How to use

var stockthai = require("stockthai");

var options = {stock_quotes: 'mint' };
stockthai.get(options,function(quote,result){

  console.log( "Current Price of  "+quote+" is ---->"+result.price);
  
  //see other fields  
  console.log(JSON.stringify(result));

});

Return object example

{"name":"MINT","price":"31.75","company":"MINOR INTERNATIONAL PUBLIC COMPANY LIMITED ","prior":"31.00","open":"31.00","valume":"4,914,162","value":"154,433.18","pervalue":"1.00","height":"31.75","low":"31.00","ave  rage_price":"31.40","ceiling":"40.25","floor":"21.70"}

*Get data from settrade.com