
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@dxfeed/dxlink-api
Advanced tools
dxLink API provides access to market data from dxFeed services
This package provides access to market data from dxFeed services via dxLink API.
npm install @dxfeed/dxlink-api
Import client and feed into your project.
import { DXLinkWebSocketClient, DXLinkFeed } from '@dxfeed/dxlink-api'
Create instance of the client.
const client = new DXLinkWebSocketClient()
Connect to the server.
client.connect('wss://demo.dxfeed.com/dxlink-ws')
Provide auth token if required by the server.
client.setAuthToken(token)
Create market data feed API with delivery contract AUTO
.
const feed = new DXLinkFeed(client, 'AUTO')
Configure created feed.
feed.configure({
acceptAggregationPeriod: 10,
acceptDataFormat: FeedDataFormat.COMPACT,
acceptEventFields: {
Quote: ['eventSymbol', 'askPrice', 'bidPrice'],
Candle: ['eventSymbol', 'open', 'close', 'high', 'low', 'volume'],
},
})
Add subscription to the feed.
const sub1 = {
type: 'Quote',
symbol: 'AAPL',
}
feed.addSubscriptions(sub1)
Remove subscription from the feed.
feed.removeSubscriptions(sub1)
Receive data from the channel.
feed.addEventListener((events) => {
// do something with events
})
Create Depth Of Market API with desired symbol and sources.
const dom = new DXLinkDepthOfMarket(client, { symbol: 'AAPL', sources: ['ntv'] })
Configure created dom
.
dom.configure({
acceptAggregationPeriod: 10,
acceptDepthLimit: 5,
})
Receive data from the channel.
dom.addSnapshotListener((time, bids, asks) => {
// do something with snapshot
})
FAQs
dxLink API provides access to market data from dxFeed services
The npm package @dxfeed/dxlink-api receives a total of 2,295 weekly downloads. As such, @dxfeed/dxlink-api popularity was classified as popular.
We found that @dxfeed/dxlink-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.