GajarX application programming interface (API) allows our clients to access and control their accounts, using custom written software.

Request
URL : https://www.gajarx.com/api/ticker
Returns all open market daily statistics as json.

Response
pair : Currency pair
last : Last BTC price.
high : Last 24 hours price high.
low : Last 24 hours price low.
volume : Last 24 hours volume.
bid : Highest buy order.
ask : Lowest sell order.
open : First price of the day.
timestamp : Unix timestamp date and time for the request.

[
{
“pair”: “jaagbtc”,
“result”: {
“ask”: 0.0,
“bid”: 0.0,
“last”: 0.0,
“high”: 0.0,
“low”: 0.0,
“open”: 0.0,
“volume”: 0.0,
“timestamp”: 1551383596
}
}
]

Request
URL : https://www.gajarx.com/api/ticker/{pair}
Pair : Currency pair of the selected market. Use currency abbreviation. Example: JAAG / BITCOIN  -> jaagbtc
Returns selected market daily statistics as json.

Response
last : Last BTC price.
high : Last 24 hours price high.
low : Last 24 hours price low.
volume : Last 24 hours volume.
bid : Highest buy order.
ask : Lowest sell order.
open : First price of the day.
timestamp : Unix timestamp date and time for the request.

{
“ask”: 0.0,
“bid”: 0.0,
“last”: 0.0,
“high”: 0.0,
“low”: 0.0,
“open”: 0.0,
“volume”: 0.0,
“timestamp”: 1551383650
}

Request
URL : https://www.gajarx.com/api/orderbook

Returns data for the jaagbtc currency pair.
URL : https://www.gajarx.com/api/orderbook/{pair}
pair : Currency pair of the selected market. Use currency abbreviation. Example: JAAG / BITCOIN -> jaagbtc
Request Parameters
group (Optional) : 0 (orders are not grouped at same price), 1 (default – orders are grouped at same price)
Returns selected market’s order list as json.
Response
timestamp : Unix timestamp date and time for the request.
bids : Buy orders contains two values. First value is price and the other one is amount.
asks : Sell orders contains two values. First value is price and the other one is amount.
{
“timestamp”: 1551383687,
“bids”: [],
“asks”: []
}

Request
URL : https://www.gajarx.com/api/trade

Returns data for the jaagbtc currency pair.
URL : https://www.gajarx.com/api/trade/{pair}
pair : Currency pair of the selected market. Use currency abbreviation. Example: JAAG / BITCOIN -> jaagbtc
Request Parameters
time (Optional) : minute (last a minute trades), hour (default – last a hour trades) ), day (last a day trades)
Returns selected market’s trade list as json.
Response
date : Unix timestamp date and time for the trade.
id : Trade ID.
price : Trade price.
amount : Trade amount
type : 0 (buy), 1 (sell)
[
{
“date”: 1545934027,
“id”: “558e4785-9947-48ca-9ef8-ed4ee1ae84a1”,
“price”: 0.01000000,
“amount”: 0.01000000,
“type”: 1
},
{
“date”: 1545933917,
“id”: “e00d6251-1791-474f-8c0f-76680134d876”,
“price”: 0.01000000,
“amount”: 0.01000000,
“type”: 1
},
{
“date”: 1545933640,
“id”: “c531a039-0d8d-438c-93e8-cd96efdd4933”,
“price”: 0.01000000,
“amount”: 0.10000000,
“type”: 0
}
]

Request
URL : https://www.gajarx.com/api/tradepairs
Returns all market informations as json.

Response
name : Trading market name.
description : Trading market description.
pair : Currency pair.
status : true (market is open), false (market is close)
leftdigits : The number of digits of the currency on the left side of the currency pair.
rightdigits : The number of digits of the currency on the RİGHT side of the currency pair.
minimumamount : Minimum order size (currency unit is on the left side of the currency pair)
[
{
“name”: “JAAG/BTC”,
“description”: “JAAG/Bitcoin”,
“pair”: “jaagbtc”,
“status”: true,
“leftdigits”: 8,
“rightdigits”: 8,
“minimumamount”: 0.01000000
}
]