The Bitinka API

What is the Bitinka API?

It is the Application Programming Interface (API) that BitInka offers to provide a suite of methods which external applications can use to integrate with our platform.

What can I do with the Bitinka API?

With the Bitinka API, you’ll be able to consult the volume of the Bitcoin supply and demand, check the trade history, create or cancel Bitcoin purchase and sales orders, and more.

The API has public and private methods, which receive data in the JSON format and by default return replies in the XML version 1.0 format with UTF-8 encoding. The replies can be in the JSON format by adding? format=json at the end of every URL.

How do I get started?

Register and create keys that work as credentials for the use of the API

To create it, you need to go to "Wallet" > API Keys”. You need to provide an identifier for every key with which a key will be generated with its unique secret code; this will let you access a set of private functions.

Example:
Key: ZUMAXOZR-R78S017Q-CAS8H8TW-T52RMFSL-58HIJK4F
Secret: 26n28utk4lsmumjnrlfe070bmwiprgjun7xv1q1nf424s3ldw9j52ktsgipmvrt3

Public Functions

Volumen24:

Returns the entire volume of movements for the last 24 hours.

GET https://www.bitinka.com/api/apinka/volumen24

GET https://www.bitinka.com/api/apinka/volumen24?format=json

Volumen24 Extended:

Returns the entire volume of movements for the last 24 hours. showing the percentage by currency.

GET https://www.bitinka.com/api/apinka/volumen24/all

GET https://www.bitinka.com/api/apinka/volumen24/all?format=json

Order_book

Returns all the orders of purchase and sales offers for every currency.

GET https://www.bitinka.com/api/apinka/order_book/{CURRENCY}

GET https://www.bitinka.com/api/apinka/order_book/{CURRENCY}?format=json

Ticker

Returns the values of the last hours, as the volume of every currency, the last offer and the last demand.

GET https://www.bitinka.com/api/apinka/ticker

GET https://www.bitinka.com/api/apinka/ticker?format=json

Ticker by Currency

Returns the values of the last hours, as the volume by currency, the last offer and the last demand.

GET https://www.bitinka.com/api/apinka/ticker/{CURRENCY}

GET https://www.bitinka.com/api/apinka/ticker/{CURRENCY}?format=json


Private Functions

Trade_history

Returns the user’s history of completed transactions.

POST https://www.bitinka.com/api/apinka/trade_history

POST https://www.bitinka.com/api/apinka/trade_history?format=json

Parameters in the JSON format:

{ "key": "ZUMAXOZR-R78S017Q-CAS8H8TW-T52RMFSL-58HIJK4F",
"secret": "26n28utk4lsmumjnrlfe070bmwiprgjun7xv1q1nf424s3ldw9j52ktsgipmvrt3" }

Trans_history:

Returns the user’s transaction history.

The fields shown in the reply are: userId, orderId, type, fromCurrency, toCurrency, amount, askamount, price, total, comment, datetime

POST https://www.bitinka.com/api/apinka/trans_history

POST https://www.bitinka.com/api/apinka/trans_history?format=json

Parameters in the JSON format:

{ "key": "ZUMAXOZR-R78S017Q-CAS8H8TW-T52RMFSL-58HIJK4F",
"secret": "26n28utk4lsmumjnrlfe070bmwiprgjun7xv1q1nf424s3ldw9j52ktsgipmvrt3" }

Orders_user:

Returns all of the user’s orders.

POST https://www.bitinka.com/api/apinka/orders_user

Parameters in the JSON format:

You can search all the orders:

{ "key": "ZUMAXOZR-R78S017Q-CAS8H8TW-T52RMFSL-58HIJK4F",
"secret": "26n28utk4lsmumjnrlfe070bmwiprgjun7xv1q1nf424s3ldw9j52ktsgipmvrt3" }

One order:

{ "key": "ZUMAXOZR-R78S017Q-CAS8H8TW-T52RMFSL-58HIJK4F",
"secret": "26n28utk4lsmumjnrlfe070bmwiprgjun7xv1q1nf424s3ldw9j52ktsgipmvrt3",
"id": "78523" }

Or several:

{ "key": "ZUMAXOZR-R78S017Q-CAS8H8TW-T52RMFSL-58HIJK4F",
"secret": "26n28utk4lsmumjnrlfe070bmwiprgjun7xv1q1nf424s3ldw9j52ktsgipmvrt3",
"id": ["1853","15323","14523"] }

addOrderbroker:

To create a buy or sell order through of instant service. The order is filled at the market price and it returns the result of the transaction.

POST https://www.bitinka.com/api/apinka/addOrderbroker

POST https://www.bitinka.com/api/apinka/addOrderbroker?format=json

Parameters in the JSON format:

{ "key": "ZUMAXOZR-R78S017Q-CAS8H8TW-T52RMFSL-58HIJK4F",
"secret": "26n28utk4lsmumjnrlfe070bmwiprgjun7xv1q1nf424s3ldw9j52ktsgipmvrt3",
"new": {
  "firstCurrency":"BTC",
  "secondCurrency":"USD",
  "amount":"0.01100000",
  "type":"sell"}}