|
|
|
@ -636,7 +636,7 @@ class IndexController extends ApiController |
|
|
|
|
|
|
|
// 查询最高最交易量 |
|
|
|
$date_height = DataDsp::query()->where($line, 1)->orderBy('Amount', 'desc')->first()->toArray(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询最低最交易量 |
|
|
|
$date_low = DataDsp::query()->where($line, 1)->orderBy('Amount', 'asc')->first()->toArray(); |
|
|
|
@ -657,7 +657,6 @@ class IndexController extends ApiController |
|
|
|
|
|
|
|
public function getkkline(Request $request){ |
|
|
|
|
|
|
|
|
|
|
|
if($request['interval'] == 60){ |
|
|
|
$where['is_1min'] =1; |
|
|
|
$msg = 1; |
|
|
|
@ -682,6 +681,11 @@ class IndexController extends ApiController |
|
|
|
$where['is_day'] =1; |
|
|
|
$msg = 60*24; |
|
|
|
} |
|
|
|
// add weeks |
|
|
|
if($request['interval'] == 604800){ |
|
|
|
$where['is_week'] =1; |
|
|
|
$msg = 7*60*24; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$symbols = config('coin.exchange_symbols'); |
|
|
|
@ -695,8 +699,6 @@ class IndexController extends ApiController |
|
|
|
$symbol = $coins[$request['symbol']]['model']; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// dd($symbol); |
|
|
|
// return $symbol; |
|
|
|
|
|
|
|
@ -727,7 +729,7 @@ class IndexController extends ApiController |
|
|
|
|
|
|
|
return $res; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Notes: 修复过分的最高最低 |
|
|
|
* Method: Interface repairdday |
|
|
|
|