Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix-16 #24

Closed
wants to merge 2 commits into from
Closed

Fix-16 #24

wants to merge 2 commits into from

Conversation

howdyAnkit
Copy link
Collaborator

@howdyAnkit howdyAnkit commented Aug 7, 2020

Fixes #16

  • 🚀 Added Feature
  • 🐛 Fixed Bug
  • 🚩 Other

Check everything

  • I have added the issue number for which this pull request is created.
  • I have selected the TradeByte Project in Projects

Description

The requested pull is for getting the real-time live stocks from alpha vantage API

.catch((err) => {
// Handle the error
console.log(err);
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrecoverable syntax error. (95% scanned).

}
);
})
.catch((err) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

closing,
highs,
lows,
volumes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

opening,
closing,
highs,
lows,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

dates,
opening,
closing,
highs,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

let closing = [];
let highs = [];
let lows = [];
let volumes = [];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

let opening = [];
let closing = [];
let highs = [];
let lows = [];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

let dates = [];
let opening = [];
let closing = [];
let highs = [];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

const intraDay = data["Time Series (1min)"];
let dates = [];
let opening = [];
let closing = [];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

.then((data) => {
const intraDay = data["Time Series (1min)"];
let dates = [];
let opening = [];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

.intraday(symbol)
.then((data) => {
const intraDay = data["Time Series (1min)"];
let dates = [];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

alpha.data
.intraday(symbol)
.then((data) => {
const intraDay = data["Time Series (1min)"];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).


alpha.data
.intraday(symbol)
.then((data) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

// @access Private
router.get("/:symbol", ensureAuth, async (req, res) => {
const symbol = req.params.symbol;
let data = await getOverview(symbol);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Missing semicolon.

// @route GET /view/:symbol
// @access Private
router.get("/:symbol", ensureAuth, async (req, res) => {
const symbol = req.params.symbol;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
Expected ')' and instead saw 'req'.
Expected ')' to match '{' from line 17 and instead saw 'symbol'.
Expected an assignment or function call and instead saw an expression.
Expected an identifier and instead saw '='.
Expected an identifier and instead saw 'const' (a reserved word).

key: process.env.ALPHA_VANTAGE_KEY
});

const getOverview = require("../../helpers/getOverview");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

//jshint esversion:8
const express = require("express");
const router = express.Router();
const alpha = require("alphavantage")({
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

// View Routes
//jshint esversion:8
const express = require("express");
const router = express.Router();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

@@ -0,0 +1,67 @@
// View Routes
//jshint esversion:8
const express = require("express");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

@@ -0,0 +1,67 @@
// View Routes
//jshint esversion:8
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad option value.

@howdyAnkit howdyAnkit added add feature Want a new feature enhancement New feature or request labels Aug 7, 2020
@howdyAnkit howdyAnkit added this to the Week 1 milestone Aug 7, 2020
@howdyAnkit howdyAnkit closed this Aug 9, 2020
@howdyAnkit howdyAnkit deleted the feature-add-alphavantageMarket-stocks branch August 9, 2020 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add feature Want a new feature enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make View Stock Section
2 participants