
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
data-monitor-javascript-sdk
Advanced tools
This package is the browser based javascript SDK for the FactSet Data Monitor API.
This package is the browser based javascript SDK for the FactSet Data Monitor API.
Data Monitor is an SDK that provides access to the same, trusted, information available within FactSet's Workstation and Web offerings. Our Javascript SDK enables you to receive market data, fundamentals, and other financial data on a streaming or point in time frequency.
An overview of the SDK is available on the FactSet Developer Portal
yarn:
yarn add data-monitor-javascript-sdk
npm:
npm install data-monitor-javascript-sdk
See CONTRIBUTING.md
import {init, on} from 'data-monitor-javascript-sdk';
let subscriptionCollection;
const myCompanyIdpid = 'asda34-asd123-asdasd123';
subscribe(['FDS-USA', 'AAPL-USA', 'VOD-LON'], ['COMPANY_NAME', 'LAST_PRICE', 'LAST_TIME', 'LAST_DATE']);
async function subscribe(symbols, fields) {
// initialize the sdk
await init({idpid: myCompanyIdpid});
if (subscriptionCollection) {
cancel();
}
// make data subscriptions
subscriptionCollection = on({
symbols,
fields,
options: {
britishCurrencyInPence: true,
currency: 'LOCAL',
timezone: 'America/Los_Angeles'
},
success: (message, subscription) => {
console.log(message, subscription);
}
});
}
// pause/resume realtime data updates based on page visibility
document.addEventListener('visibilitychange', isVisible => {
if (!subscriptionCollection) return;
if (isVisible) {
subscriptionCollection.resume();
} else {
subscriptionCollection.pause();
}
});
function updateCurrency(newOutputCurrencyISO = 'USD') {
if (subscriptionCollection) {
subscriptionCollection.update({currency: newOutputCurrencyISO});
}
}
function cancel() {
if (subscriptionCollection) {
subscriptionCollection.cancel();
subscriptionCollection = null;
}
}
FAQs
This package is the browser based javascript SDK for the FactSet Data Monitor API.
We found that data-monitor-javascript-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.