Git Product home page Git Product logo

node-red-contrib-naver-stock-node's Introduction

node-red-contrib-naver-stock-node

A Node-RED node to get stock information with ticker using Naver Finance API.

Install

Run command below in the root directory of your Node-RED install

npm install node-red-contrib-naver-stock-node

Usage

You'll get stock data in msg.payload with 6 digits string code(ticker).

  • ex) Samsung Electronics: 005930

parameter example

msg.payload = "005930";

sample response

{
  "marketSum": 349829257,
  "per": 8.89,
  "eps": 6593.0,
  "pbr": 1.25,
  "now": 58600,
  "diff": -1400,
  "rate": -2.33,
  "quant": 6223240,
  "amount": 365468,
  "high": 58900,
  "low": 58600,
  "risefall": 5
}

sample flow

[
    {
        "id": "99c82ef3084a307d",
        "type": "tab",
        "label": "Flow 2",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "f3be75a9da6c490e",
        "type": "naver-stock-node",
        "z": "99c82ef3084a307d",
        "name": "",
        "x": 490,
        "y": 240,
        "wires": [
            [
                "5f084630aadceba0"
            ]
        ]
    },
    {
        "id": "b9e50cc3618f65c7",
        "type": "inject",
        "z": "99c82ef3084a307d",
        "name": "삼성전자",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "005930",
        "payloadType": "str",
        "x": 200,
        "y": 240,
        "wires": [
            [
                "f3be75a9da6c490e"
            ]
        ]
    },
    {
        "id": "5f084630aadceba0",
        "type": "debug",
        "z": "99c82ef3084a307d",
        "name": "debug 6",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 760,
        "y": 240,
        "wires": []
    }
]

node-red-contrib-naver-stock-node's People

Contributors

xxxjinjordan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.