
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
finvasia-extra
Advanced tools
Install via npm
npm install finvasia-extra
const { RestAPI } = require('finvasia-extra');
const api = new RestAPI({ userId: 'user_id' });
api
.login('user_id', 'password', 'factor2', 'vendor_code', 'api_key', 'imei')
.then(console.log)
.then((data) => {
console.log(data.susertoken);
// OR
console.log(api.accessToken);
// fetch order book
return api.getOrders();
})
.then((orders) => {
console.log(orders);
})
.catch((err) => {
console.log(err);
});
If you have already generated access token then
const api = new RestAPI({
userId: 'user_id',
accessToken: 'access_token',
});
api
.getOrders()
.then((orders) => {
console.log(orders);
})
.catch((err) => {
console.log(err);
});
Getting started with WebSocket API
const { WebSocket } = require('finvasia-extra');
const socket = new WebSocket({
userId: 'user_id',
accessToken: 'access_token',
});
socket.on('connect', () => {
console.log('Connected');
socket.subscribeOrderUpdates();
});
socket.on('orderUpdate', (update) => {
console.log('Order Update', update);
});
socket.on('error', (e) => {
console.log('Error', e);
});
socket.on('close', () => {
console.log('Closed');
});
socket.connect();
FAQs
JS client library for Finvasia Shoonya API
The npm package finvasia-extra receives a total of 0 weekly downloads. As such, finvasia-extra popularity was classified as not popular.
We found that finvasia-extra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.