cryptopia: double check orders api result in trading

This commit is contained in:
Tanguy Pruvot 2016-03-31 20:19:34 +02:00
parent d41d5c324b
commit 06f397a357

View file

@ -154,6 +154,7 @@ function doCryptopiaTrading($quick=false)
foreach($list as $db_order)
{
$found = false;
if(is_object($orders) && $orders->Success)
foreach($orders->Data as $order) {
if(stripos($order->Type, 'Sell') === false) continue;
if($order->OrderId == $db_order->uuid) {