New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bitx

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitx

A simple wrapper for the BitX API.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44
decreased by-10.2%
Maintainers
1
Weekly downloads
 
Created
Source

node-bitx

Build Status

A simple wrapper for the BitX API.

Usage

Add bitx as a dependency:

$ npm install --save bitx

BitX([keyId, keySecret, ][options])

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: 'bitx.co.za',
  port: 443,
  ca: undefined
}

Methods

For details about the API endpoints see https://bitx.co.za/api.

getTicker(callback)

GET https://bitx.co.za/api/1/BTCZAR/ticker

getOrderBook(callback)

GET https://bitx.co.za/api/1/BTCZAR/orderbook

getTrades(callback)

GET https://bitx.co.za/api/1/BTCZAR/trades

getOrderList(callback)

GET https://bitx.co.za/api/1/BTCZAR/listorders

getLimits(callback)

GET https://bitx.co.za/api/1/BTCZAR/listorders

postBuyOrder(volume, price, callback)

POST https://bitx.co.za/api/1/BTCZAR/postorder

postSellOrder(volume, price, callback)

POST https://bitx.co.za/api/1/BTCZAR/postorder

stopOrder(orderId, callback)

POST https://bitx.co.za/api/1/BTCZAR/stoporder

Contributing

Like my work? Please donate 1E1sebnWax5Br2mp8y9dox6oX9Snmf42uz.

Don't like it? Open a pull request or create an issue and help me improve it.

Keywords

FAQs

Package last updated on 06 Jan 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc