hitbtc

FREE
By community
Updated 4 months ago
Commerce
7.9/10
Popularity Score
206ms
Latency
98%
Success Rate

hitbtc API Documentation

It’s a place where both newcomers and trading professionals will be able to trade with ease.

hitbtc was built on top of modern technologies to provide fast, secure and reliable service. Customers will appreciate fast order execution, convenient ways to add deposit and withdraw and competitive client service. Newcomers will like intuitive user-friendly interface and easy-to-start platform.

Our key focus is client funds safety. Daily backups of everything, distributed all over the world servers, 2-step authentication based on your mobile device and much more for your security.

For professional traders we have quite a number of features:

  • WebSocket subscription for prices and trades
  • Asynchronous WebSocket-based trading interface
  • FOK and IOC orders
View API Details
GET/api/1/public/:symbol/trades
GET/api/1/public/:symbol/ticker
GET/api/1/public/:symbol/orderbook
GET/api/1/public/time
GET/api/1/public/symbols
GET/api/1/public/:symbol/trades
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
symbolSTRING
REQUIRED
max_resultsSTRING
REQUIRED
fromSTRING
REQUIRED
start_indexSTRING
REQUIRED
bySTRING
REQUIRED
sortSTRING
REQUIRED
Code Snippet
unirest.get("https://community-hitbtc.p.rapidapi.com/api/1/public/BTCUSD/trades?max_results=100&from=0&start_index=0&by=trade_id&sort=desc")
.header("X-RapidAPI-Host", "community-hitbtc.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://community-hitbtc.p.rapidapi.com/api/1/public/{symbol}/trades
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://community-hitbtc.p.rapidapi.com/api/1/public/BTCUSD/trades?max_results=100&from=0&start_index=0&by=trade_id&sort=desc")
.header("X-RapidAPI-Host", "community-hitbtc.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication