API public


You can use the following files that are continuously updated:

https://www.bitmarket.net/json/BTCPLN/ticker.json
https://www.bitmarket.net/json/LTCPLN/ticker.json

The file contains the current account of the status of the exchange as an object with the following fields:

  • last - the amount of the last transaction
  • high - the highest transaction in the last 24 hours
  • low - the lowest transaction in the last 24 hours
  • vwap - the weighted average of the exchange rate in the last 24 hours
  • volume - transaction volume in the last 24 hours
  • bid - he highest purchase order
  • ask - nthe lowest sell order

https://www.bitmarket.net/json/BTCPLN/orderbook.json
https://www.bitmarket.net/json/LTCPLN/orderbook.json

The file contains the list of all offers placed at the stock exchange with the following fields:

  • bids - the list of buy orders stored as a table with two kinds of information: the exchange rate and amount
  • asks - the list of sell orders in analogous format

https://www.bitmarket.net/json/BTCPLN/trades.json
https://www.bitmarket.net/json/LTCPLN/trades.json

The file contains the list of transactions at the stock exchange with the following fields:

  • tid - transaction id
  • price - exchange rate
  • amount - the amount of the exchange
  • date - time of the transaction in Unix timestamp format Unix timestamp.

It is possible to download the list of the previous transactions using the since parameter: since:

https://www.bitmarket.net/json/BTCPLN/trades.json?since=XXX
https://www.bitmarket.net/json/LTCPLN/trades.json?since=XXX

The since parameter identifies transaction id (tid),above which data is to be downloaded. 500 transactions with the id higher than the quoted one will be returned. Therefore, to download the first transactions, you need to type 0; the remaining transactions can be downloaded quoting 500, 1000 etc. If the value entered is too high (higher than the last transaction id in a given market), null value will be returned.

https://www.bitmarket.net/graphs/MARKET/90m.json
https://www.bitmarket.net/graphs/MARKET/6h.json
https://www.bitmarket.net/graphs/MARKET/1d.json
https://www.bitmarket.net/graphs/MARKET/7d.json
https://www.bitmarket.net/graphs/MARKET/1m.json
https://www.bitmarket.net/graphs/MARKET/3m.json
https://www.bitmarket.net/graphs/MARKET/6m.json
https://www.bitmarket.net/graphs/MARKET/1y.json

Each file contains 90 data points, each data point representing an interval and contains the following fields:

  • time - timestamp of the data point
  • open - opening value for the interval represented by the data point
  • high - maximum value for the interval represented by the data point
  • low - minimum value for the interval represented by the data point
  • close - closing value for the interval represented by the data point
  • vol - volume of transactions in the interval represented by the data point

The interval represented by the data points depends upon the time period represented by the file. Currently we have:

  • 90 minutes
  • 6 hours
  • 1 day
  • 7 days
  • 1 month
  • 3 months
  • 6 months
  • 1 year

The following markets are supported:

  • BTCPLN
  • BTCEUR
  • LTCPLN
  • LTCBTC
  • LiteMineXBTC

To get the data for a market, just replace the replace the MARKET by any one of the above market name.

https://www.bitmarket.net/json/ctransfer.json?tx=xxxx&from=aaa&to=bbb

Provide information about some internal transfer type of operation. The parameters are:

  • tx: unique transaction id of the transfer operation
  • from: login name of the sender
  • to: login name of the receiver

All 3 must be specified. If there is a internal transfer type of transaction matching all 3 criteria and the transaction was completed without any error then a JSON string with the following fields are returned:

  • success: y
  • currency: crypto currency code like BTC
  • amount: amount of crypto currency transferred
  • time: UNIX timestamp of the transaction
  • formatted_time: the date time in text format

Otherwise the following is returned

  • success:n

 

Switch to old look