Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@fugle/marketdata
Advanced tools
Fugle MarketData API client library for Node.js
$ npm install --save @fugle/marketdata
// Using Node.js `require()`
const { RestClient, WebSocketClient } = require('@fugle/marketdata');
// Using ES6 imports
import { RestClient, WebSocketClient } from '@fugle/marketdata';
The library is an isomorphic JavaScript client that supports REST API and WebSocket.
const client = new RestClient({ apiKey: 'YOUR_API_KEY' });
const stock = client.stock; // Stock REST API client
const futopt = client.futopt; // Futures & Options REST API client
stock.intraday.quote({ symbol: '2330' })
.then(data => console.log(data));
const client = new WebSocketClient({ apiKey: 'YOUR_API_KEY' });
const stock = client.stock; // Stock WebSocket API client
const futopt = client.futopt; // Futures & Options WebSocket API client
// open the WebSocket connection and authenticate
stock.connect().then(() => {
// subscribe the channel to receive streaming data
stock.subscribe({ channel: 'trades', symbol: '2330' });
});
stock.on('message', (message) => {
const data = JSON.parse(message);
console.log(data);
});
FAQs
Fugle MarketData API client library for Node.js
The npm package @fugle/marketdata receives a total of 206 weekly downloads. As such, @fugle/marketdata popularity was classified as not popular.
We found that @fugle/marketdata demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.