Socket
Socket
Sign inDemoInstall

alphavantage-ts

Package Overview
Dependencies
57
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

15

lib/crypto.ts

@@ -6,14 +6,4 @@ import Api from "./api";

public intraday: (symbol: string, market: string) => Promise<any>;
public daily: (symbol: string, market: string) => Promise<any>;
public weekly: (symbol: string, market: string) => Promise<any>;
public monthly: (symbol: string, market: string) => Promise<any>;
constructor(api: Api) {
this.api = api;
this.intraday = this.series("DIGITAL_CURRENCY_INTRADAY");
this.daily = this.series("DIGITAL_CURRENCY_DAILY");
this.weekly = this.series("DIGITAL_CURRENCY_WEEKLY");
this.monthly = this.series("DIGITAL_CURRENCY_MONTHLY");
}

@@ -36,4 +26,9 @@

};
public intraday = this.series("DIGITAL_CURRENCY_INTRADAY");
public daily = this.series("DIGITAL_CURRENCY_DAILY");
public weekly = this.series("DIGITAL_CURRENCY_WEEKLY");
public monthly = this.series("DIGITAL_CURRENCY_MONTHLY");
}
export default Crypto;

@@ -10,6 +10,10 @@ import Api from "./api";

public rate = (from_currency: string, to_currency: string) =>
this.api.request("CURRENCY_EXCHANGE_RATE")({ from_currency, to_currency });
public rate = (from_currency: string, to_currency: string) => {
return this.api.request("CURRENCY_EXCHANGE_RATE")({
from_currency,
to_currency
});
};
}
export default Forex;

@@ -10,5 +10,7 @@ import Api from "./api";

public performance = this.api.request("SECTOR");
public performance = () => {
return this.api.request("SECTOR");
};
}
export default Forex;

@@ -14,24 +14,4 @@ import Api from "./api";

public intraday: (params: StockSeriesParameters) => Promise<any>;
public daily: (params: StockSeriesParameters) => Promise<any>;
public daily_adjusted: (params: StockSeriesParameters) => Promise<any>;
public weekly: (params: StockSeriesParameters) => Promise<any>;
public weekly_adjusted: (params: StockSeriesParameters) => Promise<any>;
public monthly: (params: StockSeriesParameters) => Promise<any>;
public monthly_adjusted: (params: StockSeriesParameters) => Promise<any>;
public quote: (params: StockSeriesParameters) => Promise<any>;
public search: (params: StockSeriesParameters) => Promise<any>;
constructor(api: Api) {
this.api = api;
this.intraday = this.series("TIME_SERIES_INTRADAY");
this.daily = this.series("TIME_SERIES_DAILY");
this.daily_adjusted = this.series("TIME_SERIES_DAILY_ADJUSTED");
this.weekly = this.series("TIME_SERIES_WEEKLY");
this.weekly_adjusted = this.series("TIME_SERIES_WEEKLY_ADJUSTED");
this.monthly = this.series("TIME_SERIES_MONTHLY");
this.monthly_adjusted = this.series("TIME_SERIES_MONTHLY_ADJUSTED");
this.quote = this.series("GLOBAL_QUOTE");
this.search = this.series("SYMBOL_SEARCH");
}

@@ -71,4 +51,14 @@

};
public intraday = this.series("TIME_SERIES_INTRADAY");
public daily = this.series("TIME_SERIES_DAILY");
public daily_adjusted = this.series("TIME_SERIES_DAILY_ADJUSTED");
public weekly = this.series("TIME_SERIES_WEEKLY");
public weekly_adjusted = this.series("TIME_SERIES_WEEKLY_ADJUSTED");
public monthly = this.series("TIME_SERIES_MONTHLY");
public monthly_adjusted = this.series("TIME_SERIES_MONTHLY_ADJUSTED");
public quote = this.series("GLOBAL_QUOTE");
public search = this.series("SYMBOL_SEARCH");
}
export default Stocks;
{
"name": "alphavantage-ts",
"version": "1.0.3",
"version": "1.0.4",
"description": "A simple interface to the Alpha Vantage API written in Typescript.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc