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

Stocks is not a constructor #22

Open
giovabiancia opened this issue Nov 14, 2020 · 3 comments
Open

Stocks is not a constructor #22

giovabiancia opened this issue Nov 14, 2020 · 3 comments

Comments

@giovabiancia
Copy link

giovabiancia commented Nov 14, 2020

var Stocks = require("stocks.js");
const stocks = new Stocks("J4AUAHBUZ1DQDSA0");

export default function Form() {
  const [stock, setStock] = useState("");
  const callApi = async () => {
    var result = await stocks.timeSeries(options);
    var options = {
      symbol: "AAPL",
      interval: "daily",
      start: new Date("2020-07-01"),
      end: new Date("2020-09-09"),
    };
    console.log(result);
  }
@Stryder91
Copy link

Got the same error +1

@realjas
Copy link

realjas commented May 5, 2021

I'm also getting the same error. Did you ever figure out a solution to this problem?

@KishanYern
Copy link

getting the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants