APPPATH/classes/MongoDB/functions.php [ 431 ]
426 if (! $readPreference instanceof ReadPreference) {
427 // TODO: PHPLIB-476: Read transaction read preference once PHPC-1439 is implemented
428 $readPreference = new ReadPreference(ReadPreference::RP_PRIMARY);
429 }
430
431 return $manager->selectServer($readPreference);
432 }
-
APPPATH/classes/MongoDB/functions.php [ 431 ] » MongoDB\Driver\Manager->selectServer(arguments)
0
object MongoDB\Driver\ReadPreference(1)
{ public mode => string(7) "primary" }
426 if (! $readPreference instanceof ReadPreference) { 427 // TODO: PHPLIB-476: Read transaction read preference once PHPC-1439 is implemented 428 $readPreference = new ReadPreference(ReadPreference::RP_PRIMARY); 429 } 430 431 return $manager->selectServer($readPreference); 432 }
-
APPPATH/classes/MongoDB/Collection.php [ 651 ] » MongoDB\select_server(arguments)
manager
object MongoDB\Driver\Manager(0)
{ }
options
array(3) ( "typeMap" => array(2) ( "root" => string(5) "array" "document" => string(5) "array" ) "sort" => array(1) ( "time" => integer 1 ) "readPreference" => object MongoDB\Driver\ReadPreference(1)
{ public mode => string(7) "primary" }
)646 { 647 if (! isset($options['readPreference']) && ! is_in_transaction($options)) { 648 $options['readPreference'] = $this->readPreference; 649 } 650 651 $server = select_server($this->manager, $options); 652 653 if (! isset($options['readConcern']) && server_supports_feature($server, self::$wireVersionForReadConcern) && ! is_in_transaction($options)) { 654 $options['readConcern'] = $this->readConcern; 655 } 656
-
APPPATH/classes/Model/Mongo.php [ 41 ] » MongoDB\Collection->find(arguments)
0
array(2) ( "stock_id" => integer 1 "time" => array(1) ( "$gte" => integer -3600 ) )
1
array(3) ( "typeMap" => array(2) ( "root" => string(5) "array" "document" => string(5) "array" ) "sort" => array(1) ( "time" => integer 1 ) "readPreference" => object MongoDB\Driver\ReadPreference(1)
{ public mode => string(7) "primary" }
)36 } 37 $options['sort'] = $sort == 'DESC' ? ['time' => -1] : ['time' => 1]; 38 if($limit) 39 $options['limit'] = $limit; 40 41 $result = $collection->find($select,$options)->toArray(); 42 43 return $result; 44 } 45 46 public function getPrice($stock_id,$exch='moex',$tf='D',$all=false)
-
APPPATH/classes/Model/Robot.php [ 182 ] » Model_Mongo->getData(arguments)
0
string(1) "1"
1
string(4) "moex"
2
string(1) "h"
3
integer -3600
4
bool FALSE
5
string(3) "ASC"
6
integer 0
177 } 178 elseif($db == 'mongo') 179 { 180 $table = $amer == "" && $tw == "" ? "moex" : ($amer == "" ? "crypto" : "nyse"); 181 $table = $amer == 'alor' ? $amer : $table; 182 $data = Model::factory('Mongo')->getData($stock_id,$table,$tf,$mintime,$maxtime,$sort,$limit); 183 } 184 185 foreach($data as $k=>$d) 186 { 187 if(isset($data[$k-1]) && $data[$k-1]['time'] == $data[$k]['time']){
-
APPPATH/classes/Model/Robot.php [ 254 ] » Model_Robot->getBarsData(arguments)
0
string(5) "mongo"
1
string(1) "1"
2
string(1) "h"
3
string(0) ""
4
string(0) ""
5
integer -3600
249 $graphs = array(); 250 $graphs[$stock['code']] = array('tf'=>$tf); 251 252 //бары 253 //$graphs[$stock['code']]['data'] = Model::factory('Content')->getAll($table,0,array(array('time','>=',($mintime - $tfs)),array('stock_id','=',$stock['id'])),DB::expr('t.`date`,t.time')); 254 $graphs[$stock['code']]['data'] = $this->getBarsData($db,$stock['id'],$tf,$amer,$tw,($mintime - $tfs)); 255 256 //рассчитываем спред между нашими ценами и западом 257 $spred = 0; 258 if(!empty($tw) && $stock['type']!='crypto') 259 {
-
APPPATH/classes/Model/Robot.php [ 515 ] » Model_Robot->getChannelData(arguments)
0
array(36) ( "id" => string(1) "1" "type" => string(7) "futures" "category" => string(0) "" "subcategory" => string(0) "" "name" => string(19) "Индекс РТС" "name_short" => string(2) "Ri" "code" => string(4) "RIH4" "codeFut" => string(9) "RTS-12.23" "codeTW" => string(4) "RI1!" "codeTS" => string(2) "Ri" "codeNFT" => string(2) "Ri" "symbol" => NULL "moexIndex" => string(0) "" "lot" => string(1) "1" "min_lot" => string(1) "1" "round" => string(2) "10" "stop" => string(3) "0.5" "is_amer" => string(1) "0" "investing" => string(0) "" "twwidget" => NULL "coingecko" => NULL "coinmarketcap_id" => NULL "nameRA" => string(0) "" "title" => string(6) "РТС" "exchange" => string(4) "MOEX" "setka" => string(2) "-4" "setka_base" => string(1) "1" "setka_level" => string(1) "1" "fut_id" => string(1) "0" "from_tw" => string(1) "0" "invest" => string(1) "0" "invest_level" => string(1) "0" "adviser" => string(1) "1" "create" => string(19) "2020-01-01 10:00:00" "update" => string(19) "2020-01-01 10:00:00" "active" => string(1) "1" )
1
string(1) "h"
2
bool TRUE
3
string(0) ""
4
string(0) ""
5
string(3) "P1D"
6
string(5) "mongo"
7
string(4) "MAIN"
510 } 511 else 512 { 513 $stock = Model::factory('Content')->getByParams('stocks'.$amer,array('id'=>$stock_id)); 514 515 $graphs = Model::factory('Robot')->getChannelData($stock, $tf, true, $tw, $amer, $PT, $db, $graph); 516 517 $levels = []; 518 $channels = !empty($graphs[$stock['code']]['channels']) ? $graphs[$stock['code']]['channels'] : null; 519 if(!empty($channels)) 520 foreach($channels as $chan)
-
APPPATH/classes/Controller/Posts.php [ 756 ] » Model_Robot->getSetkaLevels(arguments)
0
string(1) "1"
1
string(1) "h"
2
bool FALSE
3
string(3) "P1D"
4
string(0) ""
5
string(0) ""
6
integer 0
7
string(5) "mongo"
8
string(4) "MAIN"
751 if($lv['slug']=='setka_D_'.$stock['code']){ 752 $levelsD['levels'] = array_merge($levelsD['levels'],$arr); 753 } 754 }*/ 755 756 $lvls = Model::factory('Robot')->getSetkaLevels($stock['id'],($stock['type']=='futures'?'h':'D'),false,"P1D",($stock['type']=='crypto'?'TW':''),"",0,($stock['type']=='crypto'?'sql':'mongo'),"MAIN"); 757 } 758 759 sort($lvls); 760 761 //текущая цена
-
SYSPATH/classes/Kohana/Controller.php [ 85 ] » Controller_Posts->action_intraday_sr()
80 array(':uri' => $this->request->uri()) 81 )->request($this->request);*/ 82 } 83 84 // Execute the action itself 85 $this->{$action}(); 86 87 // Execute the "after action" method 88 $this->after(); 89 90 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 98 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Posts(12)
{ private time => string(32) "на закрытии 29.03.2024" private titles => array(23) ( "situation" => string(16) "Ситуация" "situation_crypto" => string(33) "Обзор криптовалют" "systemauto" => string(33) "Системная позиция" "intraday" => string(25) "Сетка уровней" "intraday_sr" => string(25) "Сетка уровней" "intraday_amer" => string(32) "Сетка уровней США" "intraday_crypto" => string(50) "Сетка уровней Криптовалюты" "intraday_plan" => string(25) "Торговый план" "futures_plan_ra" => string(25) "Торговый план" "crypto_plan_ra" => string(25) "Торговый план" "invest" => string(33) "Уровни Среднесрок" "marcovic" => string(60) "Портфель Марковица (агрессивный)" "marcovic_balance" => string(66) "Портфель Марковица (консервативный)" "pension" => string(37) "Пенсионный портфель" "obzor" => string(49) "Ситуация на текущий момент" "calendar" => string(35) "Торговый календарь" "dividends" => string(18) "Дивиденды" "beta" => string(19) "Сила рынка" "sectors" => string(25) "Сектора рынка" "sector_info" => string(43) "Фундаментальный анализ" "info" => string(18) "Аналитика" "roboanalitycs" => string(37) "Аналитический обзор" "sentiment" => string(31) "Настроение рынка" ) private tags => array(23) ( "situation" => string(92) "#Ситуация 👉 <a href='https://sowatrends.ru/situation'>sowatrends.ru/situation</a>" "situation_crypto" => string(102) "#ОбзорКриптовалют 👉 <a href='https://sowatrends.ru/crypto'>sowatrends.ru/crypto</a>" "systemauto" => string(371) "#Система #Сова 👉 <a href='https://sowatrends.ru/systemauto'>sowatrends.ru/systemauto</a> ❓ <a href='https://t.me/SowaInvests/15' …" "intraday" => string(116) "#СеткаУровней #Интрадей 👉 <a href='https://sowatrends.ru/intraday'>sowatrends.ru/intraday</a>" "intraday_sr" => string(180) "#СеткаУровней #Интрадей 👉 <a href='https://sowatrends.ru/intraday'>sowatrends.ru/intraday</a> ❗️ КУПИТЬ ПРЕМИУМ ДОСТУП: @SowaTre …" "intraday_amer" => string(218) "#СеткаУровней #Америка #Среднесрок #США 👉 <a href='https://sowatrends.ru/intraday_amer'>sowatrends.ru/intraday_amer</a> ❗️ КУПИТ …" "intraday_crypto" => string(216) "#СеткаУровней #Крипта #Криптовалюты 👉 <a href='https://sowatrends.ru/intraday_crypto'>sowatrends.ru/intraday_crypto</a> ❗️ КУПИТ …" "intraday_plan" => string(37) "#ТорговыйПлан #Акции" "futures_plan_ra" => string(43) "#ТорговыйПлан #Фьючерсы" "crypto_plan_ra" => string(51) "#ТорговыйПлан #Криптовалюты" "invest" => string(163) "#Среднесрок 👉 <a href='https://sowatrends.ru/invest'>sowatrends.ru/invest</a> ❓ <a href='https://t.me/SowaInvests/18'>КАК ТОРГОВ …" "marcovic" => string(114) "#Марковиц #Агрессивный 👉 <a href='https://sowatrends.ru/marcovic'>sowatrends.ru/marcovic</a>" "marcovic_balance" => string(120) "#Марковиц #Консервативный 👉 <a href='https://sowatrends.ru/marcovic'>sowatrends.ru/marcovic</a>" "pension" => string(148) "#Пенсионный #Проект5000 👉 Собрать портфель: <a href='https://sowatrends.ru/pension#calc'>sowatrends.ru/pension</a>" "obzor" => string(106) "#Ситуация #ОбзорРынка 👉 <a href='https://sowatrends.ru/obzor'>sowatrends.ru/obzor</a>" "calendar" => string(19) "#Календарь" "dividends" => string(94) "#Дивиденды 👉 <a href='https://sowatrends.ru/dividends'>sowatrends.ru/dividends</a>" "beta" => string(94) "#СилаРынка #Бета 👉 <a href='https://sowatrends.ru/beta'>sowatrends.ru/beta</a>" "sectors" => string(96) "#СектораРынка 👉 <a href='https://sowatrends.ru/sectors'>sowatrends.ru/sectors</a>" "sector_info" => string(43) "#ФундаментальныйАнализ" "info" => string(19) "#Аналитика" "roboanalitycs" => string(30) "#Аналитика#Обзор" "sentiment" => string(31) "#НастроениеРынка" ) private sizes => array(22) ( "situation" => array(3) ( 0 => integer 1000 1 => integer 900 2 => bool TRUE ) "situation_crypto" => array(3) ( 0 => integer 800 1 => integer 720 2 => bool FALSE ) "systemauto" => array(3) ( 0 => integer 800 1 => integer 1000 2 => bool TRUE ) "intraday" => array(3) ( 0 => integer 800 1 => integer 850 2 => bool TRUE ) "intraday_sr" => array(3) ( 0 => integer 1000 1 => integer 900 2 => bool TRUE ) "intraday_amer" => array(3) ( 0 => integer 800 1 => integer 450 2 => bool FALSE ) "intraday_crypto" => array(3) ( 0 => integer 800 1 => integer 650 2 => bool FALSE ) "intraday_plan" => array(3) ( 0 => integer 800 1 => integer 800 2 => bool FALSE ) "futures_plan_ra" => array(3) ( 0 => integer 800 1 => integer 800 2 => bool FALSE ) "crypto_plan_ra" => array(3) ( 0 => integer 800 1 => integer 800 2 => bool FALSE ) "invest" => array(3) ( 0 => integer 800 1 => integer 1100 2 => bool TRUE ) "marcovic" => array(3) ( 0 => integer 800 1 => integer 850 2 => bool FALSE ) "marcovic_balance" => array(3) ( 0 => integer 800 1 => integer 850 2 => bool FALSE ) "pension" => array(3) ( 0 => integer 800 1 => integer 700 2 => bool FALSE ) "obzor" => array(3) ( 0 => integer 800 1 => integer 800 2 => bool FALSE ) "dividends" => array(3) ( 0 => integer 800 1 => integer 850 2 => bool FALSE ) "beta" => array(3) ( 0 => integer 800 1 => integer 800 2 => bool FALSE ) "sectors" => array(3) ( 0 => integer 800 1 => integer 1000 2 => bool FALSE ) "sector_info" => array(3) ( 0 => integer 800 1 => integer 1000 2 => bool FALSE ) "info" => array(3) ( 0 => integer 800 1 => integer 950 2 => bool FALSE ) "roboanalitycs" => array(3) ( 0 => integer 1000 1 => integer 500 2 => bool FALSE ) "sentiment" => array(3) ( 0 => integer 1000 1 => integer 500 2 => bool FALSE ) ) private crons => array(0) private chars => array(2) ( "long" => string(8) "F09F9388" "short" => string(8) "F09F9389" ) private sectors => array(7) ( "bank" => string(33) "Финансовый сектор" "oil" => string(37) "Нефтегазовый сектор" "metall" => string(45) "Сектор металлов и добычи" "energo" => string(41) "Энергетический сектор" "phone" => string(45) "Сектор телекоммуникаций" "shop" => string(43) "Потребительский сектор" "tech" => string(47) "Технологические компании" ) private sector_icons => array(7) ( "bank" => string(8) "F09F92B0" "oil" => string(6) "E29BBD" "metall" => string(8) "F09F91B7" "energo" => string(6) "E29AA1" "phone" => string(8) "F09F939E" "shop" => string(8) "F09F919C" "tech" => string(8) "F09F93B2" ) public auto_render => bool TRUE public template => object Kotwig_View(2)
{ protected _file => string(25) "posts/intraday_tabler.php" protected _data => array(14) ( "menu" => bool TRUE "randBot" => integer 5 "mobile" => string(2) "lg" "tguser" => bool FALSE "auth_bot" => string(13) "SRS_AuthRUBot" "test" => NULL "lic_date" => bool FALSE "updinterval" => integer 900000 "lic_key" => bool FALSE "pretitle" => string(25) "Сетка уровней" "pagetitle" => string(31) "Российский рынок" "minimize" => bool FALSE "mobview" => integer 0 "notshowed" => NULL ) }
public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(15) "intraday(/<id>)" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(5) "posts" "action" => string(11) "intraday_sr" "menu" => bool TRUE ) protected _route_regex => string(40) "#^intraday(?:/(?P<id>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Posts" protected _action => string(11) "intraday_sr" protected _uri => string(8) "intraday" protected _external => bool FALSE protected _params => array(1) ( "menu" => bool TRUE ) protected _get => array(1) ( "theme" => string(5) "light" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }93 94 // Create a new instance of the controller 95 $controller = $class->newInstance($request, $response); 96 97 // Run the controller's execute() method 98 $response = $class->getMethod('execute')->invoke($controller); 99 100 if ( ! $response instanceof Response) 101 { 102 // Controller failed to return a Response. 103 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(15) "intraday(/<id>)" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(5) "posts" "action" => string(11) "intraday_sr" "menu" => bool TRUE ) protected _route_regex => string(40) "#^intraday(?:/(?P<id>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Posts" protected _action => string(11) "intraday_sr" protected _uri => string(8) "intraday" protected _external => bool FALSE protected _params => array(1) ( "menu" => bool TRUE ) protected _get => array(1) ( "theme" => string(5) "light" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(15) "intraday(/<id>)" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(5) "posts" "action" => string(11) "intraday_sr" "menu" => bool TRUE ) protected _route_regex => string(40) "#^intraday(?:/(?P<id>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Posts" protected _action => string(11) "intraday_sr" protected _uri => string(8) "intraday" protected _external => bool FALSE protected _params => array(1) ( "menu" => bool TRUE ) protected _get => array(1) ( "theme" => string(5) "light" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 989 ':uri' => $this->_uri, 990 )); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 110 ] » Kohana_Request->execute()
105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */ 108 //try{ 109 echo Request::factory() 110 ->execute() 111 ->send_headers() 112 ->body(); 113 //} catch(Exception $e) { 114 // echo Request::factory('/')->execute()->send_headers()->body(); 115 //}