Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
bittrex-api-wrapper
Advanced tools
This is a simple Bittrex API wrapper. It gives you the ability to send any request to Bittrex's API, or to send known requests via a simple class.
I recommend to read the official API in order to better understand and use this module.
npm install bittrex-api-wrapper
const bittrex = require('bittrex-api-wrapper')('<API_KEY>', '<API_SECRET>');
This wrapper provides the entire Bittrex API. It follows a very simple nomenclature:
bittrex.<public|market|account>.<methodCamelCase>(parameters);
Each method returns a promise. Bittrex responses are pre-treated, meaning that
any method will throw an error if the response does not contain success:true
As an example:
const bittrex = require('bittrex-api-wrapper')('<API_KEY>', '<API_SECRET>');
bittrex.account.getBalance('ETH').then(res=>{
console.log(res)
}).catch(e=>{
console.error(e)
});
Every parameter is in the order the API documentation gives it
You can also use #request
to perform manual requests:
bittrex.request('/path', {currency: 'ETH', quantity: 0.45});
Which will also return a Promise
In the test/test.js file you will find some simple tests. You can just enter your api_key
and api_secret
to be able to launch them.
FAQs
A simple wrapper around bittrex api
The npm package bittrex-api-wrapper receives a total of 1 weekly downloads. As such, bittrex-api-wrapper popularity was classified as not popular.
We found that bittrex-api-wrapper 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.