New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

awesomebot-fmp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesomebot-fmp - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

1

lib/stock.js

@@ -14,2 +14,3 @@ 'use strict'

current_price: () => makeRequest('stock/real-time-price', generateJson(stock)),
recent_histroy: ({ time_range } = {}) => makeRequest('historical-chart/'+time_range, generateJson(stock)),

@@ -16,0 +17,0 @@ history: ({ start_date, end_date, data_type, limit } = {}) => makeRequest('historical-price-full', generateJson(stock, { from: start_date, to: end_date, serietype: data_type, timeseries: limit })),

2

package.json
{
"name": "awesomebot-fmp",
"version": "1.2.5",
"version": "1.2.6",
"description": "",

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

@@ -40,2 +40,16 @@ 'use strict'

it('Apple stock should return valid data in past 10 minutes', (done) => {
chai.request('https://financialmodelingprep.com/api/v3')
.get('/historical-chart/15min/AAPL?&apikey=d4266e03ec14c5ad6c6d8886d2956980')
.end((err, res) => {
stock('AAPL').recent_histroy({'time_range':'15min'})
.then((response) => {
expect(res.body).to.eql(response);
done();
})
.catch(done);
})
});
it('\'aapl\' in lowercase should return valid data', (done) => {

@@ -42,0 +56,0 @@ chai.request('https://financialmodelingprep.com/api/v3')

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc