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.4 to 1.0.5

16

dist/crypto.d.ts
import Api from "./api";
declare class Crypto {
api: Api;
intraday: (symbol: string, market: string) => Promise<any>;
daily: (symbol: string, market: string) => Promise<any>;
weekly: (symbol: string, market: string) => Promise<any>;
monthly: (symbol: string, market: string) => Promise<any>;
constructor(api: Api);

@@ -19,4 +15,16 @@ /**

private series;
intraday: (symbol: string, market: string) => Promise<{
[key: string]: any;
}>;
daily: (symbol: string, market: string) => Promise<{
[key: string]: any;
}>;
weekly: (symbol: string, market: string) => Promise<{
[key: string]: any;
}>;
monthly: (symbol: string, market: string) => Promise<{
[key: string]: any;
}>;
}
export default Crypto;
//# sourceMappingURL=crypto.d.ts.map

@@ -21,3 +21,2 @@ "use strict";

}; };
this.api = api;
this.intraday = this.series("DIGITAL_CURRENCY_INTRADAY");

@@ -27,2 +26,3 @@ this.daily = this.series("DIGITAL_CURRENCY_DAILY");

this.monthly = this.series("DIGITAL_CURRENCY_MONTHLY");
this.api = api;
}

@@ -29,0 +29,0 @@ return Crypto;

@@ -7,3 +7,6 @@ "use strict";

this.rate = function (from_currency, to_currency) {
return _this.api.request("CURRENCY_EXCHANGE_RATE")({ from_currency: from_currency, to_currency: to_currency });
return _this.api.request("CURRENCY_EXCHANGE_RATE")({
from_currency: from_currency,
to_currency: to_currency
});
};

@@ -10,0 +13,0 @@ this.api = api;

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

constructor(api: Api);
performance: (params: {
performance: () => (params: {
[key: string]: string | number;

@@ -8,0 +8,0 @@ }) => Promise<{

@@ -5,3 +5,6 @@ "use strict";

function Forex(api) {
this.performance = this.api.request("SECTOR");
var _this = this;
this.performance = function () {
return _this.api.request("SECTOR");
};
this.api = api;

@@ -8,0 +11,0 @@ }

@@ -11,11 +11,2 @@ import Api from "./api";

api: Api;
intraday: (params: StockSeriesParameters) => Promise<any>;
daily: (params: StockSeriesParameters) => Promise<any>;
daily_adjusted: (params: StockSeriesParameters) => Promise<any>;
weekly: (params: StockSeriesParameters) => Promise<any>;
weekly_adjusted: (params: StockSeriesParameters) => Promise<any>;
monthly: (params: StockSeriesParameters) => Promise<any>;
monthly_adjusted: (params: StockSeriesParameters) => Promise<any>;
quote: (params: StockSeriesParameters) => Promise<any>;
search: (params: StockSeriesParameters) => Promise<any>;
constructor(api: Api);

@@ -37,4 +28,31 @@ batch: (symbols: string | string[]) => Promise<{

private series;
intraday: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
daily: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
daily_adjusted: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
weekly: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
weekly_adjusted: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
monthly: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
monthly_adjusted: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
quote: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
search: ({ symbol, outputsize, datatype, interval, keywords }: StockSeriesParameters) => Promise<{
[key: string]: any;
}>;
}
export default Stocks;
//# sourceMappingURL=stocks.d.ts.map

@@ -40,3 +40,2 @@ "use strict";

}; };
this.api = api;
this.intraday = this.series("TIME_SERIES_INTRADAY");

@@ -51,2 +50,3 @@ this.daily = this.series("TIME_SERIES_DAILY");

this.search = this.series("SYMBOL_SEARCH");
this.api = api;
}

@@ -53,0 +53,0 @@ return Stocks;

{
"name": "alphavantage-ts",
"version": "1.0.4",
"version": "1.0.5",
"description": "A simple interface to the Alpha Vantage API written in Typescript.",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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