APIs

Here is the list of API can use with MeanXtrade

Return ticker for all markets

https://chart.meanxtrade.com/feed.php

Specific market info

https://chart.meanxtrade.com/info.php?market=LTC_BTC

Gateway API (Beta only)

You need API_KEY and API_PASSWORD for each coin

Send to Address

https://meanxtrade.com/api/sendtoaddress/?address=RECEIVE_ADDRESS∧amount=0.0001

amount must be at least 0.0001 coin

API_KEY and API_PASSWORD must send as POST to variable key and pass

Example in PHP

		
                $url = 'https://meanxtrade.com/api/sendtoaddress/?address=RECEIVE_ADDRESS∧amount=10';
                $post = [
                    'key' => API_KEY,
                    'pass' => API_PASSWORD
                ];
                $ch = curl_init();
                curl_setopt($ch, CURLOPT_URL, $url);
                curl_setopt($ch, CURLOPT_HEADER, FALSE);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
                curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
                $result = curl_exec($ch);
	
	

Send to Account

https://meanxtrade.com/api/sendtoaccount/?account=MEANX_USERNAME∧amount=0.0001

amount must be at least 0.0001 coin

API_KEY and API_PASSWORD must send as POST to variable key and pass

Example in PHP

		
                $url = 'https://meanxtrade.com/api/sendtoaccount/?account=MEANX_USERNAME∧amount=10';
                $post = [
                    'key' => API_KEY,
                    'pass' => API_PASSWORD
                ];
                $ch = curl_init();
                curl_setopt($ch, CURLOPT_URL, $url);
                curl_setopt($ch, CURLOPT_HEADER, FALSE);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
                curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
                $result = curl_exec($ch);
	
	

Get Deposit

https://meanxtrade.com/api/getdeposit/?postback=POSTBACK_URL

POSTBACK_URL is an secure URL where MEANX will send post notification to you

Example in PHP

			
                $url = 'https://meanxtrade.com/api/getdeposit/?postback=https://localhost/in/?user=2';
                $post = [
                    'key' => API_KEY,
                    'pass' => API_PASSWORD
                ];
                $ch = curl_init();
                curl_setopt($ch, CURLOPT_URL, $url);
                curl_setopt($ch, CURLOPT_HEADER, FALSE);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
                curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
                $result = curl_exec($ch);
	
	

Response in JSON

	
{
	"status": "success",
	"data": {
		"network": "BTC",
		"address": "3DKcbkwNqraMy8zLxH7QNGk5G7ciFiyqen",
		"network_id": 1,
		"payment_id": "",
		"postback": "https://localhost/in/?user=2",
		"uap_id": "77"
	}
}	
	
	

Once MeanX recieve any transaction, it will send notification to the given POSTBACK address 10 times.

Notification sample POST as json variable

	{
		"network_id": 1,
		"user_id": 2,
		"tx": TRANSACTION ID,
		"confirm": 1,
		"amount": AMOUNT,
		"address": "3DKcbkwNqraMy8zLxH7QNGk5G7ciFiyqen",
		"uap_id": "77",
		"send_count": 5
	}
	

We are working at the moment to implement security features and other great things so please trade smart and at own risk - Terms of service