WazirX Public Rest API
Here’s our public API handed to you on a silver platter. You can use it to build tickers, price comparison apps, or anything that helps the crypto community. Use it responsibly. ❤️
General Information
- Base API Endpoint: https://api.wazirx.com
- All public api will return either JSON or Array object.
Public API Endpoints
-
MARKET STATUS
GET
/api/v2/market-status
Live link"Market Status" will give your an overview of markets and assets. This is helpful when you want to track the configuration of our markets, track fees or status of withdrawal deposit, market configuration and more. This response is not recommended for price polling because accurate realtime price is not guaranteed as there could be some delays. We recommend using price ticker API for all price tracking activity.
Response object will have 2 keys
markets
(all market related configs will be in this key) andassets
(all assets related configs will be here).Response:
{ "markets": [ { "baseMarket": "btc", "quoteMarket": "inr", "minBuyAmount": 0.001, "minSellAmount": 0.001, "fee": { "bid": { "maker": 0.001, "taker": 0.0025 }, "ask": { "maker": 0.001, "taker": 0.0025 } }, "basePrecision": 4, "quotePrecision": 2, "low": "460001.01", "high": "505000.0", "last": "480102.0", "open": 505002, "volume": "0.2071", "sell": "490000.0", "buy": "485001.0", "type": "SPOT" "Status": "active" }, ... ], "assets": [ { "type": "inr", "name": "Rupee", "withdrawFee": 0, "minWithdrawAmount": 50, "maxWithdrawAmount": 50000, "minDepositAmount": 500, "confirmation": 5, "deposit": "enabled", "withdrawal": "enabled" }, ... ] }
-
markets
key has multiple market related configuration, and description of every field in market is as below:baseMarket
: ticker code of base assetquoteMarket
: ticker code of quote assetminBuyAmount
: Minimum buy amount of base assetminSellAmount
: Minumum sell amount of base assetfee
: JSON Object consists ofbid
andask
order's maker-taker fee percentagebasePrecision
: Maximum precision of base asset, this the decimal point.quotePrecision
: Maximum precision of quote assetlow
: 24 hrs lowest price of base assethigh
: 24 hrs highest price of base assetlast
: Last traded price in current marketopen
: Market Open price 24hrs agovolume
: Last 24hrs traded volumesell
: Top ask order pricebuy
: Top bid order pricetype
: This defines the type of market, currently we haveSPOT
andP2P
status
: This defines the current state of the market. This can beactive
orsuspended
-
assets
key have multiple asset related configuration as described below:type
: asset codename
: Display name of assetwithdrawFee
: Withdrawal fee of assetminWithdrawAmount
: Minimum withdrawal amount in a single transactionmaxWithdrawAmount
: Maximum withdrawal amount in a single transactionminDepositAmount
: This is the min Deposit amount that will be accepted as depositconfirmations
: Is the min number of block height needed to confirm a block chain deposit transaction.deposit
: Denotes whether deposit is enabled or disabledwithdrawal
: Denotes whether withdrawal is enabled or disabled
-
-
MARKET TICKER
GET
/api/v2/tickers
Live linkGet the latest market heart-beat for all the markets for the last 24hrs.
Returns JSON response which has active market data with all ticker related values.
Response:
{ "btcinr": { "base_unit": "btc", "quote_unit": "inr", "low": "472005.0", "high": "508102.0", "last": "508100.0", "open": 490000, "volume": "0.2709", "sell": "508100.0", "buy": "481000.0", "name": "BTC/INR", "at": 1536732262 }, ... }
Response has multiple key which denotes market data, this is in JSON. Find all the fields below:
base_unit
: ticker code of base marketquote_unit
: ticker code of quote assetlow
: 24 hrs lowest price of base assethigh
: 24 hrs highest price of base assetlast
: Last traded price in current marketopen
: Market Open price 24hrs agovolume
: Last 24hrs traded volumesell
: Top ask order pricebuy
: Top bid order pricename
: Display text of marketat
: Timestamp when ticker information is fetched
-
MARKET DEPTH
GET
/api/v2/depth
Live linkGet market orderbook of any market
Returns JSON response which has order book of a perticular market
Response:
{ "timestamp":1559561187, "asks":[ ["8540.0","1.5"], ["8541.0","0.0042"] ], "bids":[ ["8530.0","0.8814"], ["8524.0","1.4"] ] }
["8540.0","1.5"]
: [ PRICE, VOLUME ]- URL param
market=btcusdt
: Replace this with any market to get the desired order book.
-
MARKET TRADE HISTORY
GET
/api/v2/trades
Live linkGet trade history of a market
Returns JSON response which has trade history of a perticular market
Response:
[ { "id":1302646, "price":"8530.0", "volume":"0.3207", "funds":"2735.571", "market":"btcusdt", "created_at":"2019-06-03T17:03:41+05:30", "side":null } ... ]
- URL param
market=btcusdt
: Replace this with any market to get the desired order book.
- URL param
If you have any questions regarding APIs, please reach out to us at http://support.wazirx.com