GithubHelp home page GithubHelp logo

haehnchen / node-js-crypto-technical-analysis-candlestick-webserver Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 0.0 17 KB

Candlestick Technical Analysis Http Server based on node.js

License: MIT License

JavaScript 100.00%
nodejs cryptocurrency crypto technical-analysis bitcoin candlestick

node-js-crypto-technical-analysis-candlestick-webserver's Introduction

Candlestick Technical Analysis Http Server

Tools

  • node.js
  • technicalindicators lib

Start

npm install
node index.js

Or change port listen on

node index.js 8080

Start

Download some candles from live market and post them to the webserver

Some Urls:

https://api.bitfinex.com/v2/candles/trade:1m:tBTCUSD/hist?limit=500

Candles must be formatted as the common why in a numeric array whereas newest candles must be given first oldest last

{
[
    1527335700000, // micro timestamp
    7532.5, // open
    7532.5, // close
    7532.5,  // high
    7532.5,  // low
    1.02278819 // volume
],
[
    1527340320000,
    7521.2,
    7522.9,
    7522.9,
    7521.2,
    0.59021799
]
}

Indicators

EMA

curl -H "Content-Type: application/json" --data @candles.json "http://127.0.0.1:8080/ema"
curl -H "Content-Type: application/json" --data @candles.json "http://127.0.0.1:8080/ema?period=200"

SMA

curl -H "Content-Type: application/json" --data @candles.json "http://127.0.0.1:8080/sma"
curl -H "Content-Type: application/json" --data @candles.json "http://127.0.0.1:8080/sma?period=200"

Bollinger Bands

curl -H "Content-Type: application/json" --data @candles.json "http://127.0.0.1:8080/bollinger_bands"

Stochastic RSI

curl -H "Content-Type: application/json" --data @candles.json "http://127.0.0.1:8080/stoch_rsi"

Stochastic

curl -H "Content-Type: application/json" --data @candles.json "http://127.0.0.1:8080/stoch"

MACD

curl -H "Content-Type: application/json" --data @candles.json "http://127.0.0.1:8080/macd"

node-js-crypto-technical-analysis-candlestick-webserver's People

Contributors

haehnchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.