API

Walkex Market REST API Documentation

Welcome to the Walkex 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, sending the appropriate GET or POST parameters for that method. You can also send them in the PAYLOAD of the request in JSON format.

Public API Methods

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

Private API Methods

These methods cannot be accessed without an account or API key and secret key, Needed parameters(api_key,api_secret).

You are permited to make up to 20 requests a minute.

Tickers
The summary is to provide an overview of market data for all tickers and all market pairs on the exchange.

GET https://liqapi.walkex.com/api/summary

Response :
	
		{
		  "status": "1",
		  "message": "Success",
		  "data": [
		    {
		      "trading_pair": "LTC_BTC",
		      "last_price": "12.00000000",
		      "lowest_ask": "0.00900000",
		      "highest_bid": "12.00000000",
		      "base_volume": "0.00000000",
		      "quote_volume": "0.00000000",
		      "price_change_percent_24h": "0.00000000",
		      "highest_price_24h": "0.00000000",
		      "lowest_price_24h": "0.00000000"
		    }
		  ]
		}

Summary response descriptions:
Name Type Status Description
trading_pairs string Mandatory Identifier of a ticker with delimiter to separate base/quote, eg. BTC-USD (Price of BTC is quoted in USD)
base_currency string Recommended Symbol/currency code of base currency, eg. BTC
quote_currency string Recommended Symbol/currency code of quote currency, eg. USD
last_price decimal Mandatory Last transacted price of base currency based on given quote currency
lowest_ask decimal Mandatory Lowest Ask price of base currency based on given quote currency
highest_bid decimal Mandatory Highest bid price of base currency based on given quote currency
base_volume decimal Mandatory 24-hr volume of market pair denoted in BASE currency
quote_volume decimal Mandatory 24-hr volume of market pair denoted in QUOTE currency
price_change_percent_24h decimal Mandatory 24-hr % price change of market pair
highest_price_24h decimal Mandatory Highest price of base currency based on given quote currency in the last 24-hrs
lowest_price_24h decimal Mandatory Lowest price of base currency based on given quote currency in the last 24-hrs
Trade Assets
The assets endpoint is to provide a detailed summary for each currency available on the exchange.

GET https://liqapi.walkex.com/api/assets

Response :
	
		{
	  "data": {
	    "BTC": {
	      "name": "Bitcoin",
	      "unified_cryptoasset_id": 1,
	      "min_withdraw": "0.00000000",
	      "max_withdraw": "15.00000000",
	      "maker_fee": "0.10000000",
	      "taker_fee": "0.10000000",
	      "can_withdraw": "true",
	      "can_deposit": "true"
	    }
	  }
	}

Assets response descriptions :
Name Type Status Description
name string Recommended Full name of cryptocurrency.
unified_cryptoasset_id string Recommended Unique ID of cryptocurrency assigned by Unified Cryptoasset ID.
can_withdraw boolean Recommended Identifies whether withdrawals are enabled or disabled.
can_deposit boolean Recommended Identifies whether deposits are enabled or disabled.
min_withdraw decimal Recommended Identifies the single minimum withdrawal amount of a cryptocurrency.
max_withdraw decimal Recommended Identifies the single maximum withdrawal amount of a cryptocurrency.
maker_fee decimal Recommended Fees applied when liquidity is added to the order book.
taker_fee decimal Recommended Fees applied when liquidity is removed from the order book.
Trade Tickers
returns the tickers for all the supported trading pairs at once, cached in 10 seconds

GET https://liqapi.walkex.com/api/tickers

Response :
	
		"result":

		{
		 "LTC_BTC": {
		    "base_id": 1,
		    "last_price": "12.00000000",
		    "quote_volume": "0.00000000",
		    "base_volume": "0.00000000",
		    "lowest_ask": "0.00000000",
		    "highest_bid": "0.00000000",
		    "twenty_four_volume": "0.00320000",
		    "twenty_four_change": "1333233.33",
		    "isFrozen": "0"
		  }
		}

Ticker response descriptions:
Name Type Status Description
base_id integer Recommended The quote pair Unified Cryptoasset ID.
last_price decimal Mandatory Last transacted price of base currency based on given quote currency
base_volume decimal Mandatory 24-hour trading volume denoted in BASE currency
quote_volume decimal Mandatory 24 hour trading volume denoted in QUOTE currency
lowest_ask decimal Mandatory 24 hour Current lowest ask price
highest_bid decimal Mandatory Current highest bid price
twenty_four_volume decimal Mandatory 24 hour trading volume denoted in QUOTE currency
twenty_four_change decimal Mandatory 24 hour trading change denoted in QUOTE currency
isFrozen integer Recommended Indicates if the market is currently enabled (0) or disabled (1).
Market Pair
The trades endpoint is to return data on all recently completed trades for a given market pair.

GET https://liqapi.walkex.com/api/recenttrade/ETH_BTC

Response :
	
		"result":

			{
			  "pair": "ETH_BTC",
			  "ledger_id": "TC552I5-IJ5Q2M-X0FADU",
			  "trade_id": 15304,
			  "tradetime": "2020-09-08 14:52:44",
			  "type": "Buy",
			  "price": "0.00001000",
			  "base_volume": "1.00000000",
			  "quote_volume": "0.00001001"
			}

Market Pair response descriptions:
Name Type Status Description
trade_id string Mandatory A unique ID associated with the trade for the currency pair transaction
ledger_id integer Mandatory Unique ID of cryptocurrency assigned by Unified Cryptoasset ID.
price decimal Mandatory Last transacted price of base currency based on given quote currency
base_volume decimal Mandatory Transaction amount in BASE currency.
quote_volume decimal Mandatory Transaction amount in QUOTE currency.
timestamp Integer Mandatory Unix timestamp in milliseconds for when the transaction occurred.
type string Mandatory Used to determine whether or not the transaction originated as a buy or sell. Buy – Identifies an ask was removed from the order book. Sell – Identifies a bid was removed from the order book.
Trade Pairs API
Wakex Pairs.

GET https://liqapi.walkex.com/api/pairs

Response :
				
{"status":"1","message":"Success","data":
["LTC_BTC","USDT_BTC","ETH_BTC","WAVES_BTC","WKX_BTC","AGLC_BTC","TORUSCASH_BTC","XRP_BTC","BCH_BTC","BTC_ETH",
"WAVES_ETH","WKX_ETH","AGLC_ETH","TORUSCASH_ETH","LTC_ETH","USDT_ETH","BCH_ETH","XRP_ETH","XRP_WKX","XRP_AGLC",
"LTC_WKX","LTC_AGLC","USDT_WKX","USDT_AGLC","ETH_AGLC","ETH_WKX","WAVES_WKX","WAVES_AGLC","WKX_AGLC","AGLC_WKX",
"BCH_WKX","BCH_AGLC","BTC_WKX","BTC_AGLC","USD_BTC","EUR_BTC","BTCV_BTC","BTC_BTCV","ETH_BTCV","USDT_BTCV",
"EUR_BTCV","USD_BTCV","WKX_BTCV","AGLC_BTCV","XRP_BTCV","BCH_BTCV","LTC_BTCV","WAVES_BTCV","WAVES_USD",
"BTC_USD","USDT_USD","ETH_USD","WKX_USD","AGLC_USD","XRP_USD","BCH_USD","LTC_USD","BTCV_USD","ETH_EUR",
"BTC_EUR","USDT_EUR","WKX_EUR","AGLC_EUR","XRP_EUR","BCH_EUR","LTC_EUR","WAVES_EUR","EUR_AGLC"
,"USD_AGLC","BTCV_AGLC","EUR_WKX","BTCV_WKX","USD_WKX"]
}
			
			
Market Info API
Returns all markets' fee, minimum order total amount, price decimal places.

GET https://liqapi.walkex.com/api/market_info

Response :

	{"status":"1","message":"Success","data":[
	{
		"name":"Litecoin",
		"min_buy":0.0001,
		"min_sell":0.0001,
		"fee":"0.10000000"
	},
	{
		"name":"Tether",
		"min_buy":0.0001,
		"min_sell":0.0001,
		"fee":"0.10000000"
	}...

 

			
Market info descriptions::
Name Type Status Description
name string Mandatory Full name of cryptocurrency.
min_buy decimal Mandatory Minimum ask amount
min_sell decimal Mandatory Minimum bid amount
fee decimal Mandatory Fee amount in BASE currency.
Ticker API
returns the current ticker for the selected currency, cached in 10 seconds.

GET https://liqapi.walkex.com/api/custom_ticker/ETH_BTC

Depth API
Return the market depth including ask and bid orders.

GET https://liqapi.walkex.com/api/orderbook/ETH_BTC

Trade History API
Return the most recent 80 trade history records:

GET https://liqapi.walkex.com/api/tradehistory/ETH_BTC

Updated Order Book
This API gets the order book of a specified market. Both asks and bids are sorted from highest price to lowest.

GET https://liqapi.walkex.com/api/order_book?market=ETH_BTC&limit=5

Market Data endpoints
This API gets the order book of a specified market. Both asks and bids are sorted from highest price to lowest with Last updated Id.

GET https://liqapi.walkex.com/api/market_data?market=ETH_BTC&limit=5

Error code
Error codes details from system :
Market info descriptions::
Error codes Details
1 Success
2 Invalid request
3 Invalid currency
4 Empty params
5 Internal error, please contact administrator
Open Orders
Link :

POST https://walkex.com/api/getActiveOrders

Params :

api_key, api_secret, pair(BTC_WKX)

Response :
	
		{
			"status": 1,
			"message": "suceess",
			"orders": [
			{
				"datetime": "2020-06-27 16:24:23",
				"type": "Buy",
				"amount": "3.00000000",
				"price": "3.00000000",
				"total": "9.00000000",
				"orderid": "VGx6NnhMSDFkUmxnU2ZTc0FqMDdUZz09"
			}
			]
		}
	
Stop Orders
Link :

POST https://walkex.com/api/getStopOrders

Params :

api_key, api_secret, pair(BTC_WKX)

Response :
	
		{
			"status": 1,
			"message": "suceess",
			"orders": [
			{
				"datetime": "2020-06-27 16:25:09",
				"type": "Buy",
				"amount": "3.00000000",
				"price": "4.00000000",
				"total": "12.00000000",
				"orderid": "ZG1XWU9KNU05UitDQVZNMzBlckhhdz09"
			}
			]
		}
	
My Trade History
Link :

POST https://walkex.com/api/getMyhistory

Params :

api_key, api_secret, pair(BTC_WKX)

Response :
	
		{
			"status": 1,
			"message": "suceess",
			"orders": [
			{
				"datetime": "2020-06-27 17:08:58",
				"type": "Buy",
				"amount": "3.00000000",
				"price": "3.00000000",
				"total": "9.00000000",
				"fees": "0.00750000 BTC",
				"status": "Filled"
			}
			]
		}
	
Create Order
Link :

POST https://walkex.com/api/createOrder

Params :

api_key, api_secret, order(limit,market,stoporder), amount, price, pair(BTC/WKX), type(Buy/Sell)

Response :
	
		{
			"status": "true",
			"message": "Buy/Sell Order Placed Successfully"
		}
	
Cancel Order
Link :

POST https://walkex.com/api/cancelOrder

Params :

api_key, api_secret, orderid

Response :
	
		{
			"status": "true",
			"msg": "Order cancelled successfully"
		}