API DOCUMENTATION

Welcome to the samzuga Market REST API documentation. This API (Application Programming Interface) will allow you to access the functionality of this exchange by means of HTTP requests, making integration with your own applications possible.

Usage

In order to use a public API method, you must make an HTTP request to the appropriate endpoint for that particular method.

Public API Methods

These methods can be accessed without an account or API key.

The base endpoint is: https://samzuga.exchange/wp-json

Trade Pairs

Link :

GET https://samzuga.exchange/wp-json/rimplenet-trade/v1/pairs

Response :
										
{
  "status": "1",
  "markets": [
    {
      "trading_pairs": "ETH_SZC",
      "last_price": "19047.36000000",
      "lowest_ask": "18548.50000000",
      "highest_bid": "19144.99000000",
      "base_volume": "8670.05643544",
      "quote_volume": "0.45521700",
      "price_change_percent_24h": "+2.73",
      "highest_price_24h": "19144.99000000",
      "lowest_price_24h": "18548.50000000"
    }]
}


						
					

Assets

Link :

GET https://samzuga.exchange/wp-json/rimplenet-trade/v1/assets

Response :
										
{
  "status": "1",
  "message": "success",
  "assets": [
    {
      "name": "Ethereum",
      "unified_cryptoasset_id": "1",
      "can_withdraw": "true",
      "can_deposit": "true",
      "min_withdraw": "0.00010000",
      "max_withdraw": "0.50000000",
      "maker_fee": 0.25,
      "taker_fee": 0.25
    }]
}
						
					

Ticker

Link :

GET https://samzuga.exchange/wp-json/rimplenet-trade/v1/trades

Response :
						
{
    "status": "1",
    "message": "success",
    "tickers": {
        "ETH_SZC": {
            "base_id": "52",
            "quote_id": "1",
            "last_price": "0",
            "quote_volume": "0.00000000",
            "base_volume": "0.00000000",
            "isFrozen": 0
        }
    }
}
						
					

Orderbook

Link :

GET https://samzuga.exchange/wp-json/rimplenet-trade/v1/orderbook?market_pair=ETH_SZC

GET https://samzuga.exchange/wp-json/rimplenet-trade/v1/orderbook?market_pair=ETH_SZC&depth=5

GET https://samzuga.exchange/wp-json/rimplenet-trade/v1/orderbook?market_pair=ETH_SZC&level=1

Params :

market_pair(ETH_SZC) required

depth : [‘5′, ’10’, ’20’, ’50’, ‘100’, ‘500’] optional

level : [‘1’, ‘2’, ‘3’] optional

Note : Level 1 – Only the best bid and ask, Level 2 – Arranged by best bids and asks, Level 3 – Complete order book, no aggregation.

Response :
						
{
"status":"1",
"asks":[
	{"1":"0.20000000","0":"0.03221"}
],
"bids":[
	{"1":"0.20000000","0":"0.0321121"}
	]
}
						
					

Trades

Link :

GET https://samzuga.exchange/wp-json/rimplenet-trade/v1/trades?market_pair=ETH_SZC

Params :

market_pair(ETH_SZC) required

Response :
										
{
  "status": "1",
  "message": "success",
  "data": [
    {
      "trade_id": "22440",
      "price": "16919.02",
      "base_volume": 16919.02,
      "quote_volume": 1,
      "timestamp": 1606557700,
      "type": "sell"
    },
    {
      "trade_id": "38960",
      "price": "19499.49",
      "base_volume": 26668.765,
      "quote_volume": 1.5,
      "timestamp": 1606802067,
      "type": "sell"
    }]
}