Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
A simple wrapper for the BitX API.
Add bitx as a dependency:
$ npm install --save bitx
To access the private BitX API methods you must supply your key id and key secret as the first two arguments. If you are only accessing the public API endpoints you can leave these two arguments out.
The optional options argument can be used to override the default options. The default options are equivalent to:
{
hostname: 'api.mybitx.com',
port: 443,
ca: undefined,
pair: 'XBTZAR'
}
For details about the API endpoints see https://api.mybitx.com/api.
The arguments passed to the callback function for each method are:
null
if no error occurred.GET https://api.mybitx.com/api/1/ticker
Default options:
{
pair: bitx.pair
}
Example:
bitx.getTicker(function(err, ticker) {});
GET https://api.mybitx.com/api/1/tickers
Example:
bitx.getAllTickers(function(err, tickers) {});
GET https://api.mybitx.com/api/1/orderbook
Default options:
{
pair: bitx.pair
}
Example:
bitx.getOrderBook(function(err, orderBook) {});
GET https://api.mybitx.com/api/1/trades
Default options:
{
pair: bitx.pair
}
Example:
bitx.getTrades(function(err, trades) {});
GET https://api.mybitx.com/api/1/listorders
Default options:
{
pair: bitx.pair,
state: undefined
}
Example:
bitx.getOrderList({state: 'PENDING'}, function(err, orderList) {});
GET https://api.mybitx.com/api/1/balance
Example:
bitx.getBalance('ZAR', function(err, balance) {});
GET https://api.mybitx.com/api/1/funding_address
Default options:
{
address: undefined
}
Example:
bitx.getFundingAddress('XBT', {address: 'B1tC0InExAMPL3fundIN6AdDreS5t0Use'}, function(err, fundingAddress) {});
POST https://api.mybitx.com/api/1/funding_address
Example:
bitx.createFundingAddress('XBT', function(err, fundingAddress) {});
POST https://api.mybitx.com/api/1/postorder
Example:
bitx.postBuyOrder(9999.99, 0.01, function(err, order) {});
POST https://api.mybitx.com/api/1/postorder
Example:
bitx.postSellOrder(0.01, 9999.99, function(err, order) {});
POST https://api.mybitx.com/api/1/marketorder
Example:
bitx.postMarketBuyOrder(0.01, function(err, order) {});
POST https://api.mybitx.com/api/1/marketorder
Example:
bitx.postMarketSellOrder(0.01, function(err, order) {});
POST https://api.mybitx.com/api/1/stoporder
Example:
bitx.stopOrder('BXMC2CJ7HNB88U4', function(err, result) {});
GET https://api.mybitx.com/api/1/orders/{orderId}
Example:
bitx.getOrder('BXHW6PFRRXKFSB4', function(err, result) {});
GET https://api.mybitx.com/api/1/transactions
Default options:
{
offset: 0,
limit: 10
}
Example:
bitx.getTransactions('XBT', {offset: 5, limit: 20}, function(err, transactions) {});
GET https://api.mybitx.com/api/1/withdrawals
Example:
bitx.getWithdrawals(function(err, withdrawals) {});
GET https://api.mybitx.com/api/1/withdrawals/{withdrawalId}
Example:
bitx.getWithdrawal('1212', function(err, withdrawal) {});
POST https://api.mybitx.com/api/1/withdrawals
Example:
bitx.requestWithdrawal('ZAR_EFT', 1000, function(err, withdrawal) {});
DELETE https://api.mybitx.com/api/1/withdrawals/{withdrawalId}
Example:
bitx.cancelWithdrawal('1212', function(err, withdrawal) {});
Like my work? Please donate 1E1sebnWax5Br2mp8y9dox6oX9Snmf42uz.
Don't like it? Open a pull request or create an issue and help me improve it.
FAQs
A simple wrapper for the BitX API.
The npm package bitx receives a total of 27 weekly downloads. As such, bitx popularity was classified as not popular.
We found that bitx 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.