Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
This is a node.js wrapper for the private and public methods exposed by the itBit API. You will need have a registered account with itBit and requested API keys to access the private methods.
Please contact help@itbit.com if you are having trouble opening and account and api@itbit.com to request your API key.
npm install itbit
var ItBit = require('itbit');
var userId = "",
walletId = "",
orderId = "";
var itBit = new ItBit({
key: "",
secret: "",
timeout: 20000 // milliseconds
});
itBit.getTicker("XBTUSD").then(function(data) {
console.log('bid ' + data.bid + ' ask ' + data.ask);
});
itBit.getOrderBook("XBTUSD").then(function(data) {
console.log('%s bids and %s asks', data.bids.length, data.asks.length);
});
itBit.getWallets(userId).then(function (wallets) {
// for each wallet
wallets.forEach(function(wallet) {
console.log('wallet id %s, account identifier %s', wallet.id, wallet.accountIdentifier);
// for each currency
wallet.balances.forEach(function(balance) {
console.log('currency %s, total %s, available %s', balance.currency, balance.totalBalance, balance.availableBalance);
});
});
});
itBit.getWallet(walletId).then(function(wallet) {
// for each currency
wallet.balances.forEach(function(balance){
console.log('currency %s, total %s, available %s', balance.currency, balance.totalBalance, balance.availableBalance);
});
});
itBit.getWalletBalance(walletId, "XBT").then(function(balance) {
console.log('total %s, available %s', balance.totalBalance, balance.availableBalance);
});
itBit.addOrder(walletId, "sell", "limit", "0.01", "500", "XBTUSD", null, null).then(function(data) {
console.log('new order id ' + data.id);
});
itBit.getOrder(walletId, orderId).then(function(data) {
console.log(data);
});
itBit.cancelOrder(walletId, orderId).then(function(data) {
console.log(data);
});
FAQs
itbit API client for node.js
The npm package itbit receives a total of 10 weekly downloads. As such, itbit popularity was classified as not popular.
We found that itbit 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.