Skip to content

wolf-mtwo/monkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MONKEY MONEY

Install

npm install
gulp serve

usage

Retrieves premarket information

GET <BASE_URL>/symbol/:SYMBOL/premarket OBJECT

  • BASE_URL = server base path
  • SYMBOL = market stock symbol

Examples:

http://localhost:3000/symbol/jd/premarket
http://localhost:3000/symbol/tsla/premarket
http://localhost:3000/symbol/amd/premarket

Response:

{
    "name": "Tesla, Inc. Pre-Market Trading",
    "sale": "$314.57",
    "net": "-0.83",
    "pct": "-0.83"
}

Yahoo statistics parser retrieves stocks fundamentals

GET <BASE_URL>/symbol/:SYMBOL/fundamental ARRAY

  • BASE_URL = server base path
  • SYMBOL = market stock symbol

Examples:

http://localhost:3000/symbol/jd/fundamental
http://localhost:3000/symbol/tsla/fundamental
http://localhost:3000/symbol/amd/fundamental

Response:

[
    {
        "key": "Market Cap (intraday) 5",
        "value": "483.66B"
    },
    {
        "key": "Enterprise Value 3",
        "value": "467.88B"
    },
    {
        "key": "Trailing P/E ",
        "value": "46.37"
    }
    // data...
]

Note: Use valid symbols

Retrieves current RSI of a predefined list of stock

GET <BASE_URL>/oportunidades ARRAY

NOTE: please change your apikey on //src/stock/config.json Claim your API Key please change your list of stoks on //src/stock/symbol.json

Response:

[
    {
        "symbol": "GE",
        "rsi": "28.1159"
    },
    {
        "symbol": "AAPL",
        "rsi": "28.2566"
    },
    {
        "symbol": "AA",
        "rsi": "33.8401"
    }
]

Running your application with Gulp

It's time to use Gulp tasks:

  • $ gulp serve to start server on your source files with live reload

License

The MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published