Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
nepse-api-helper
Advanced tools
a wrapper to use nepse api easily since they set up weird restrictions
Nepse has made it really hard to use their API, this library just makes it easier to do stuff i guess
works as of 2023-06-25
you can install from npm using npm install nepse-api-helper
import { get_access_token, get_valid_token, get_market_status, instantiate_nepse_helper, get_security_detail, get_security_briefs } from "nepse-api-helper";
//at first before anything, call instantiate_nepse_helper(). This is required to get the deobsfucation logic for token.
await instantiate_nepse_helper();
//now you can use the functions that you need. for example
const securityLists = await get_security_briefs(); //this will return a list of all securities including active and inactive, with their status.
//get the detials of a security
const securityDetail = await get_security_detail('NIFRA');
//if you want to check if market is open or not, you can use, GetMarketStatus
const marketStatus = await get_market_status();
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
We found that nepse-api-helper 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.