Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
bitmart-api
Advanced tools
Readme
Complete JavaScript & Node.js SDK for BitMart REST APIs & WebSockets:
npm install --save bitmart-api
Most methods pass values as-is into HTTP requests. These can be populated using parameters specified by BitMart's API documentation, or check the type definition in each class within this repository.
const { RestClient } = require('bitmart-api');
const client = new RestClient({
apiKey: "yourAPIKeyHere",
apiSecret: "yourAPISecretHere",
apiMemo: "yourAPIMemoHere
});
client.getAccountBalancesV1()
.then((result) => {
console.log('getAccountBalancesV1 result: ', result);
})
.catch((err) => {
console.error('getAccountBalancesV1 error: ', err);
});
This can be set two levels:
Authentication involves HMAC signing on the request, using API credentials. Internally, this SDK uses the Web Crypto API. The REST client also supports injecting a custom sign function, should you wish to use an alternative (such as node's native & faster createHmac).
Refer to the fasterHmacSign.ts example for a demonstration.
Check out my related projects:
This connector is fully compatible with both TypeScript and pure JavaScript projects, while the connector is written in TypeScript. A pure JavaScript version can be built using npm run build
, which is also the version published to npm.
The version on npm is the output from the build
command and can be used in projects without TypeScript (although TypeScript is definitely recommended).
Note: The build will output both ESM and CJS, although node should automatically import the correct entrypoint for your environment.
If you found this project interesting or useful, do consider sponsoring me on github. Thank you!
Contributions are encouraged, I will review any incoming pull requests. See the issues tab for todo items.
FAQs
Complete & robust Node.js SDK for BitMart's REST APIs and WebSockets, with TypeScript declarations.
The npm package bitmart-api receives a total of 28 weekly downloads. As such, bitmart-api popularity was classified as not popular.
We found that bitmart-api 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.