mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
kucoin: some tickers may not have a sell field
This commit is contained in:
parent
c5b1a57be2
commit
7e229ab39a
1 changed files with 1 additions and 1 deletions
|
@ -1515,7 +1515,7 @@ function updateKuCoinMarkets()
|
|||
if (objSafeVal($ticker,'buy',-1) == -1) continue;
|
||||
|
||||
$market->price = AverageIncrement($market->price, $ticker->buy);
|
||||
$market->price2 = AverageIncrement($market->price2, $ticker->sell);
|
||||
$market->price2 = AverageIncrement($market->price2, objSafeVal($ticker,'sell',$ticker->buy));
|
||||
if (!empty($coininfo)) foreach ($coininfo->data as $info) {
|
||||
if ($info->coin == $symbol) {
|
||||
//todo: $market->withdrawfee = $info->withdrawMinFee;
|
||||
|
|
Loading…
Add table
Reference in a new issue