Thursday, January 16, 2020

Intra Exchange Arbitrage for Hitbtc in XRP-ETH-BTC

<html>
<head>
<title>Free Arbutrage scanner for hitbtc in XRP-ETH-BTC</title>
<meta name="description" content="scan best arbitrage possibility in hitbtc for XRP-ETH-BTC " />
</head><?php
//include "connect.php";
//bid-ask xrpbtc price
$url = "https://api.hitbtc.com/api/2/public/ticker/XRPBTC";
$dataXRPBTC = json_decode(file_get_contents($url), true);
$symbol=$dataXRPBTC['symbol'];
$bid=$dataXRPBTC['bid'];
$ask=$dataXRPBTC['ask'];

//bid-ask xrpeth price
$url1 = "https://api.hitbtc.com/api/2/public/ticker/XRPETH";
$dataXRPETH = json_decode(file_get_contents($url1), true);
$symbol1=$dataXRPETH['symbol'];
$bid1=$dataXRPETH['bid'];
$ask1=$dataXRPETH['ask'];

//bid-ask dogeeth price
$url2 = "https://api.hitbtc.com/api/2/public/ticker/ETHBTC";
$dataETHBTC = json_decode(file_get_contents($url2), true);
$symbol2=$dataETHBTC['symbol'];
$bid2=$dataETHBTC['bid'];
$ask2=$dataETHBTC['ask'];
?>
<center>
<table><tr><td width="30%"><h3>
<?php
echo "symbol : "; echo $symbol; echo "<br>";
echo "xrpbtc bid : "; echo $bid; echo "<br>";
echo "xrpbtc ask :"; echo $ask; echo "<br>";
?></h3>
</td><td width="30%"><h3>
<?php
echo "symbol : "; echo $symbol1; echo "<br>";
echo "xrpeth bid : "; echo $bid1; echo "<br>";
echo "xrpeth ask :"; echo $ask1; echo "<br>";
?></h3>
</td><td width="30%"><h3>
<?php
echo "symbol : "; echo $symbol2; echo "<br>";
echo "ethbtc bid : "; echo $bid2; echo "<br>";
echo "ethbtc ask :"; echo $ask2; echo "<br>";
?></h3></td></tr></table>
<h2>calculate now </h2><br>
<table><tr><td width="30%">
XRPBTC -- XRPETH -- ETHBTC <br><font size="4px">
buy on ask <?php $a=$ask*1; ?><?php $a1=number_format($a,11); echo "1 xrp from btc "; echo $a1; ?> <br>
sell on bid <?php $b=$bid1*1; ?><?php $b1=number_format($b,4); echo "ETH after xrp selling "; echo $b1; ?> <br>
sell on bid <?php $c=$b1*$bid2; ?><?php $c1=number_format($c,11); echo "BTC after eth selling "; echo $c1; ?> <br>
<?php $d=$c1-$a1; ?><?php $d1=number_format($d,11); echo "total profit "; echo $d1; ?> BTC</font><br>
<H3>suggested for order</H3><br>
<?php
$e="$a1";
$f="$d1";
$output=$f-$e;
if ($output >= 0) {
echo "<B>buy XRPBTC -- XRPETH -- ETHBTC</B>" ; echo"<br><br>";
echo "<B>buy 1 XRP in BTC at </B>" ; echo "<b>";echo $ask; echo " ask price</b>"; echo"<br>";
echo "<B>sell 1 XRP in ETH at </B>" ; echo "<b>";echo $bid1; echo " bid price</b>"; echo"<br>";
echo "<B>sell "; echo $b1 ; echo " ETH in BTC at </B>" ; echo "<b>";echo $bid2; echo " bid price </b>"; echo"<br>";
}
else // +
{
echo "<B>NO Arbitrage Match <br> FOR XRPBTC -- XRPETH -- ETHBTC</B>"; echo"<br>";
}
?>
</td><td width="30%">
XRPETH -- XRPBTC -- ETHBTC <br><font size="4px">
buy on ask <?php $a1=$ask1*1; ?><?php $a11=number_format($a1,11); echo "1 xrp from eth "; echo $a11; ?> <br>
sell on bid <?php $b1=$bid*1; ?><?php $b11=number_format($b1,11); echo "BTC after xrp selling "; echo $b11; ?> <br>
sell on bid <?php $c1=$b11/$bid2; ?><?php $c11=number_format($c1,11); echo "ETH after btc selling "; echo $c11; ?> <br>
<?php $d1=$c11-$a11; ?><?php $d11=number_format($d1,11); echo "total profit "; echo $d11; ?> ETH</font><br>
<H3>suggested for order</H3><br>
<?php
$e1="$a11";
$f1="$d11";
$output1=$f1-$e1;
if ($output1 >= 0) {
echo "<B>buy XRPETH -- XRPBTC -- ETHBTC</B>" ; echo"<br><br>";
echo "<B>buy 1 XRP in ETH at </B>" ; echo "<b>";echo $ask1; echo " ask price</b>"; echo"<br>";
echo "<B>sell 1 XRP in BTC at </B>" ; echo "<b>";echo $bid; echo " bid price</b>"; echo"<br>";
echo "<B>sell "; echo $b11 ; echo " ETH in BTC at </B>" ; echo "<b>";echo $bid2; echo " bid price </b>"; echo"<br>";
}
else // +
{
echo "<B>NO Arbitrage Match <br> FOR XRPETH -- XRPBTC -- ETHBTC</B>"; echo"<br>";
}

?>
</td><td width="30%">
BTCETH -- XRPETH -- XRPBTC <br><font size="4px">
buy on ask <?php $a2=$ask2*0.0014; ?><?php $a12=number_format($a2,11); echo "0.0014 eth from btc "; echo $a12; ?> <br>
sell on bid <?php $b2=$bid1/0.0014; ?><?php $b12=number_format($b2,2); echo "XRP after eth selling "; echo $b12; ?> <br>
sell on bid <?php $c2=$b12*$bid; ?><?php $c12=number_format($c2,11); echo "BTC after xrp selling "; echo $c12; ?> <br>
<?php $d2=$c12-$a12; ?><?php $d12=number_format($d2,11); echo "total profit "; echo $d12; ?> BTC</font><br>
<H3>suggested for order</H3><br>
<?php
$e2="$a2";
$f2="$d2";
$output2=$f2-$e2;
if ($output2 >= 0) {
echo "<B>buy BTCETH -- XRPETH -- XRPBTC</B>" ; echo"<br><br>";
echo "<B>buy 0.0014 ETH in BTC at </B>" ; echo "<b>";echo $ask2; echo " ask price</b>"; echo"<br>";
echo "<B>sell 0.0014 ETH in XRP at </B>" ; echo "<b>";echo $bid1; echo " bid price</b>"; echo"<br>";
echo "<B>sell "; echo $b12 ; echo " XRP in BTC at </B>" ; echo "<b>";echo $bid; echo " bid price </b>"; echo"<br>";
}
else // +
{
echo "<B>NO Arbitrage Match <br> FOR BTCETH -- XRPETH -- XRPBTC</B>"; echo"<br>";
}

?>
</td></tr></table>
</center>