6 online
API v1 documentation

Public market

Public pool

Privat market

Privat pool

Privat account

Method:

GET /api/v1/market_data/

This method allows obtaining market data on spot markets.

Parameters:

pair (market ticker) optional
- multiple markets can be specified separated by commas
- examples: btc_usdt or btc_usdt,eth_usdt
- all markets by default

Example of a PHP request:

$base_url = 'https://mubadil.com';
$method = '/api/v1/market_data/';
$param['pair'] = 'btc_usdt,eth_usdt';
$params = '?'.http_build_query($param);
$ch = curl_init($base_url.$method.$params);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);

The example above will return market data for the BTC/USDT and ETH/USDT markets only.

Response:

{
  "result":"success",
  "list":{
    "btc_usdt":{
      "price":83145,
      "low":83145,
      "hight":,
      "ask":83177,
      "bid":83011,
      "trend":0,
      "offer":0.0087685441,
      "liquidity":719.4701878193,       
      "asset_1_volume":0,
      "asset_2_volume":0,
      "traders":0,
      "trades":0,
      "providers":2,
      "timestamp":1742414844 
    },
    ...
  }            
}

Description:

list - list of markets
price - last price
low - minimum price in 24 hours
hight - maximum price in 24 hours
ask - best ask price
bid - best bid price
trend - price change in 24 hours
offer - total offer
liquidity - total liquidity
asset_1_volume - primary volume in 24 hours
asset_2_volume - secondary volume in 24 hours
traders - active traders in 24 hours
trades - trades executed in 24 hours
providers - liquidity providers
timestamp - data update timestamp
Connection. . .