mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
graviex: use the right ticker bid/ask fields
This commit is contained in:
parent
ea59f8a53b
commit
99f1fa9ac0
1 changed files with 2 additions and 2 deletions
|
@ -361,8 +361,8 @@ function updateGraviexMarkets($force = false)
|
|||
$dbpair = $symbol.'btc';
|
||||
foreach ($markets as $pair => $ticker) {
|
||||
if ($pair != $dbpair) continue;
|
||||
$price2 = ($ticker['ticker']['high']+$ticker['ticker']['low'])/2;
|
||||
$market->price = AverageIncrement($market->price, $ticker['ticker']['high']);
|
||||
$price2 = ($ticker['ticker']['buy']+$ticker['ticker']['sell'])/2;
|
||||
$market->price = AverageIncrement($market->price, $ticker['ticker']['buy']);
|
||||
$market->price2 = AverageIncrement($market->price2, $price2);
|
||||
$market->pricetime = time();
|
||||
$market->save();
|
||||
|
|
Loading…
Add table
Reference in a new issue