
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
nepse-api-helper
Advanced tools
Nepse has made it really hard to use their API, this library just makes it easier to do stuff i guess. made just for EDUCATIONAL PURPOSE
works as of 2025-03-12
you can install from npm using npm install nepse-api-helper
import { nepseClient } from "nepse-api-helper";
//at first before anything, call initialize() on nepseClient. This is required to get the deobsfucation logic for token.
await nepseClient.initialize();
//now you can use the functions that you need. for example
//this will return a list of all securities including active and inactive, with their status.
const securities = await nepseClient.getSecurities();
//get the detials of a security
const security = await nepseClient.getSecurityDetail("NIFRA");
//if you want to check if market is open or not, you can use, GetMarketStatus
const marketStatus = await nepseClient.getMarketStatus();
//if you want to make your own custom API call for a function that isn't defined in this library, you can just get the token first
const token = await nepseClient.getToken();
//and then you can use this token to call other APIs that you need to like:
const response = await fetch(
`${BASE_URL}/api/nots/securityDailyTradeStat/58`,
{
method: "GET",
headers: createHeaders(token)
}
);
this package is my first and was made rapidly so there might be many bad practices, I am happy to receive constructive criticism and pull requests.
You might get SSL issue, in which case, you will need to make your runtime ignore the SSL error. this can be done in nodejs by exporting this environment variable
export NODE_TLS_REJECT_UNAUTHORIZED='0'
have a look at tests to get basic understanding of how it works
FAQs
a wrapper to use nepse api easily since they set up weird restrictions
The npm package nepse-api-helper receives a total of 13 weekly downloads. As such, nepse-api-helper popularity was classified as not popular.
We found that nepse-api-helper demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.