joeldg / bowhead

PHP trading bot framework
Apache License 2.0
801 stars 288 forks source link

Trying to get property of non-object #105

Open kahnle opened 6 years ago

kahnle commented 6 years ago

in Controller.php (line 182)

at HandleExceptions->handleError(8, 'Trying to get property of non-object', '/var/www/bowhead/app/Http/Controllers/Controller.php', 182, array('request' =>object(Request), 'vars' => array('datasource' => 'Coinigy'), 'exhange_links' => array('https://1broker.com', 'https://1btcxe.com', 'https://acx.io', 'https://allcoin.com', 'https://anxpro.com', 'https://binance.com', 'https://www.bit2c.co.il', 'https://bitbay.net', 'https://www.bitcoin.co.id', 'https://www.bitfinex.com/', 'https://www.bitfinex.com', 'https://bitflyer.jp/', 'https://www.bithumb.com', 'https://bitlish.com', 'https://www.bitmarket.pl', 'https://www.bitmex.com/register/S9gj5U', 'https://bitso.com', 'https://www.bitstamp.net/', 'https://www.bitstamp.net', 'https://bittrex.com/', 'https://bl3p.eu', 'https://bleutrade.com', 'https://www.btcbox.co.jp/', 'https://www.btcchina.com', 'https://www.btcexchange.ph', 'https://btcmarkets.net/', 'https://btc-trade.com.ua', 'https://www.btcturk.com', 'https://btc-x.is', 'https://bter.com', 'https://bx.in.th', 'https://c-cex.com', 'https://cex.io', 'https://trade.chbtc.com/api', 'https://chilebit.net/', 'https://coincheck.jp', 'https://www.coinfloor.co.uk', 'https://coingi.com', 'https://coinmarketcap.com', 'https://coinmate.io', 'https://coinsecure.in', 'https://www.coinspot.com.au', 'https://www.cryptopia.co.nz/', 'https://dsx.uk', 'https://exmo.com', 'https://trader.flowbtc.com', 'http://www.foxbit.com.br/', 'https://www.fybse.se', 'https://www.fybsg.com', 'https://gatecoin.com', 'https://gate.io/', 'https://www.gdax.com', 'https://gemini.com/', 'https://getbtc.org', 'https://hitbtc.com/', 'https://hitbtc.com', 'https://www.huobi.com', 'https://www.huobi.com', 'https://www.huobi.pro', 'https://www.independentreserve.com', 'https://www.itbit.com', 'https://www.jubi.com', 'https://www.kraken.com/', 'https://kucoin.com', 'https://kuna.io', 'https://www.lakebtc.com/?ref=385s23', 'https://liqui.io', 'https://www.livecoin.net/', 'https://www.luno.com', 'https://www.mercadobitcoin.com.br', 'https://mixcoins.com', 'https://novaexchange.com', 'https://www.okcoin.cn', 'https://www.okcoin.com', 'https://www.okex.com', 'https://www.paymium.com/', 'https://www.poloniex.com/', 'https://www.qryptos.com', 'http://www.quadrigacx.com/?ref=ifsbwov3gsd1dze8ry5bx1ms', 'https://www.quoine.com', 'https://www.southxchange.com', 'https://surbitcoin.com/', 'https://therocktrading.com', 'https://tidex.com', 'https://urdubit.com/', 'https://www.vaultoro.com/', 'https://vbtc.vn/', 'https://www.virwox.com/', 'https://wex.nz', 'https://www.xbtce.com', 'https://yobit.net', 'https://yunbi.com', 'https://zaif.jp', 'https://trade.zb.com/api', 'https://c-cex.com/', 'https://www.okcoin.com/', 'https://cex.io/r/0/robborden/0/', 'https://www.therocktrading.com', 'https://bitcoin.co.id', 'https://bx.in.th', 'https://www.mercadobitcoin.com.br/', 'https://www.korbit.co.kr', 'https://coinsbank.com', 'https://gdax.com', 'https://liqui.io', 'https://www.btcmarkets.net/', 'https://coinone.co.kr'), '_exhange_links' =>object(Collection), 'exlink' => object(bh_exchanges), 'input' => array('coinigy' => '1', 'apikey' => 'AAAAAA', 'apisecret' => 'AAAAAAA', '_token' => 'AAAAA'), 'preferred_exchanges' => object(Collection), 'pe' =>object(bh_popular_exchanges), 'preferred' => array('https://hitbtc.com/?ref_id=5a4d829c58916', 'https://www.binance.com/?ref=12325729', 'https://www.coinbase.com/join/51950ca286c21b84dd000021', 'https://cex.io/r/0/joeldg/0/', 'https://poloniex.com', 'https://www.kraken.com', 'https://c-cex.com/?rf=2BE2ED2FD83B6FAE', 'https://bleutrade.com/sign_up/148055', 'https://www.cryptopia.co.nz/Register?referrer=joeldg', 'https://yobit.io/?bonus=Vwnof', 'https://gatecoin.com/register?referralCode=WKBPME', 'https://exmo.com/?ref=778749', 'https://livecoin.net/?from=Livecoin-KdJ73s2V', 'https://www.lakebtc.com/?ref=qsvodu'), 'base_url' => 'https://api.coinigy.com/api/v1/', 'headers' => array('X-API-KEY' => 'AAAAAAAAA', 'X-API-SECRET' => 'AAAAAAAAAAA'), 'client' => object(Client), 'response' => array('data' => array(array('exch_id' => '4', 'exch_name' => 'Bitstamp', 'exch_code' => 'BITS', 'exch_fee' => '0.0025', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.bitstamp.net/'),array('exch_id' => '7', 'exch_name' => 'Bitfinex', 'exch_code' => 'BITF', 'exch_fee' => '0.003', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.bitfinex.com/'), array('exch_id' => '11', 'exch_name' => 'Kraken', 'exch_code' => 'KRKN', 'exch_fee' => '0.003', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.kraken.com/'), array('exch_id' => '13', 'exch_name' => 'Poloniex', 'exch_code' => 'PLNX', 'exch_fee' => '0.002', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.poloniex.com/'), array('exch_id' => '15', 'exch_name' => 'Bittrex', 'exch_code' => 'BTRX', 'exch_fee' => '0.0025', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://bittrex.com/'), array('exch_id' => '16', 'exch_name' => 'C-Cex', 'exch_code' => 'CCEX', 'exch_fee' => '0', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://c-cex.com/'), array('exch_id' => '17', 'exch_name' => 'HitBTC', 'exch_code' => 'HITB', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '1', 'exch_url' => 'https://hitbtc.com/'), array('exch_id' => '19', 'exch_name' => 'OKCoin Futures', 'exch_code' => 'OKFT', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.okcoin.com/'), array('exch_id' => '27', 'exch_name' => 'LakeBTC', 'exch_code' => 'LAKE', 'exch_fee' => '0.03', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.lakebtc.com/?ref=385s23'), array('exch_id' => '30', 'exch_name' => 'QuadrigaCX', 'exch_code' => 'QCX', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '1', 'exch_url' => 'http://www.quadrigacx.com/?ref=ifsbwov3gsd1dze8ry5bx1ms'), array('exch_id' => '31', 'exch_name' => 'CEX.IO', 'exch_code' => 'CXIO', 'exch_fee' => '0.002', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://cex.io/r/0/robborden/0/'), array('exch_id' => '32', 'exch_name' => 'BitMEX', 'exch_code' => 'BMEX', 'exch_fee' => '0.03', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.bitmex.com/register/S9gj5U'), array('exch_id' => '35', 'exch_name' => 'Gemini', 'exch_code' => 'GMNI', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '1', 'exch_url' => 'https://gemini.com/'),array('exch_id' => '37', 'exch_name' => 'ItBit', 'exch_code' => 'ITBT', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.itbit.com'), array('exch_id' => '38', 'exch_name' => 'The Rock', 'exch_code' => 'ROCK', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.therocktrading.com'), array('exch_id' => '40', 'exch_name' => 'Gatecoin', 'exch_code' => 'GATE', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://gatecoin.com'), array('exch_id' => '41', 'exch_name' => 'Bitcoin Indonesia', 'exch_code' => 'BIND', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://bitcoin.co.id'), array('exch_id' => '42', 'exch_name' => 'Bitcoin Exchange Thailand', 'exch_code' => 'BXTH', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://bx.in.th'), array('exch_id' => '43', 'exch_name' => 'Coinmate', 'exch_code' => 'MATE', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://coinmate.io'), array('exch_id' => '44', 'exch_name' => 'Bleutrade', 'exch_code' => 'BLEU', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://bleutrade.com'), array('exch_id' => '45', 'exch_name' => 'Virwox', 'exch_code' => 'VWOX', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.virwox.com/'), array('exch_id' => '46', 'exch_name' => 'Yobit', 'exch_code' => 'YOBT', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://yobit.net'),array('exch_id' => '47', 'exch_name' => 'Vaultoro', 'exch_code' => 'GOLD', 'exch_fee' => '0', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.vaultoro.com/'), array('exch_id' => '48', 'exch_name' => 'Cryptopia', 'exch_code' => 'CPIA', 'exch_fee' => '0.002', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://www.cryptopia.co.nz/'), array('exch_id' => '53', 'exch_name' => 'MercadoBitcoin', 'exch_code' => 'MERC', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.mercadobitcoin.com.br/'), array('exch_id' => '55', 'exch_name' => 'Korbit', 'exch_code' => 'KBIT', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.korbit.co.kr'), array('exch_id' => '58', 'exch_name' => 'Coinsbank', 'exch_code' => 'CBNK', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://coinsbank.com'), array('exch_id' => '59', 'exch_name' => 'Exmo', 'exch_code' => 'EXMO', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://exmo.com'), array('exch_id' => '60', 'exch_name' => 'Coincheck', 'exch_code' => 'CCJP', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://coincheck.jp'), array('exch_id' => '62', 'exch_name' => 'Global Digital Asset Exchange', 'exch_code' => 'GDAX', 'exch_fee' => '0.0025', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://gdax.com'), array('exch_id' => '64', 'exch_name' => 'Paymium', 'exch_code' => 'PAYM', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.paymium.com/'), array('exch_id' => '65', 'exch_name' => 'Liqui.io', 'exch_code' => 'LIQU', 'exch_fee' => '0', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://liqui.io'), array('exch_id' => '66', 'exch_name' => 'BTC Markets', 'exch_code' => 'BTCM', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.btcmarkets.net/'), array('exch_id' => '67', 'exch_name' => 'Livecoin', 'exch_code' => 'LIVE', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.livecoin.net/'), array('exch_id' => '69', 'exch_name' => 'BitFlyer', 'exch_code' => 'FLYR', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://bitflyer.jp/'), array('exch_id' => '70', 'exch_name' => 'Binance', 'exch_code' => 'BINA', 'exch_fee' => '0', 'exch_trade_enabled' => '1', 'exch_balance_enabled' => '1', 'exch_url' => 'https://binance.com'), array('exch_id' => '71', 'exch_name' => 'OKEX', 'exch_code' => 'OKEX', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.okex.com'), array('exch_id' => '72', 'exch_name' => 'Bithumb', 'exch_code' => 'BTHM', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://www.bithumb.com'),array('exch_id' => '73', 'exch_name' => 'Coinone', 'exch_code' => 'CONE', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://coinone.co.kr'), array('exch_id' => '76', 'exch_name' => 'KUCOIN', 'exch_code' => 'KUCN', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://kucoin.com')), 'notifications' => array()), 'code' => 200, 'coinigy_accounts' => array(), 'coinigy' =>object(Coinigy), 'accounts' => array(), 'exhange_model' => null, 'exchdata' => array('Bitstamp', 'Bitfinex', 'Kraken', 'Poloniex', 'Bittrex', 'C-Cex', 'HitBTC', 'OKCoin Futures', 'LakeBTC', 'QuadrigaCX', 'CEX.IO', 'BitMEX', 'Gemini', 'ItBit', 'The Rock', 'Gatecoin', 'Bitcoin Indonesia', 'Bitcoin Exchange Thailand', 'Coinmate', 'Bleutrade', 'Virwox', 'Yobit', 'Vaultoro', 'Cryptopia', 'MercadoBitcoin', 'Korbit', 'Coinsbank', 'Exmo', 'Coincheck', 'Global Digital Asset Exchange', 'Paymium', 'Liqui.io', 'BTC Markets', 'Livecoin', 'BitFlyer', 'Binance', 'OKEX', 'Bithumb', 'Coinone'), 'exch' => array('exch_id' => '76', 'exch_name' => 'KUCOIN', 'exch_code' => 'KUCN', 'exch_fee' => '0', 'exch_trade_enabled' => '0', 'exch_balance_enabled' => '0', 'exch_url' => 'https://kucoin.com')))in Controller.php (line 182)

at Controller->setup2(object(Request)) at call_user_func_array(array(object(Controller), 'setup2'), array(object(Request)))in Controller.php (line 54) at Controller->callAction('setup2', array(object(Request)))in ControllerDispatcher.php (line 45) at ControllerDispatcher->dispatch(object(Route), object(Controller), 'setup2')in Route.php (line 212) at Route->runController()in Route.php (line 169) at Route->run()in Router.php (line 659) at Router->Illuminate\Routing{closure}(object(Request))in Pipeline.php (line 30) at Pipeline->Illuminate\Routing{closure}(object(Request))in SubstituteBindings.php (line 41) at SubstituteBindings->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in VerifyCsrfToken.php (line 67) at VerifyCsrfToken->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in ShareErrorsFromSession.php (line 49) at ShareErrorsFromSession->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in StartSession.php (line 63) at StartSession->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in AddQueuedCookiesToResponse.php (line 37) at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in EncryptCookies.php (line 59) at EncryptCookies->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in Before.php (line 30) at Before->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in Pipeline.php (line 102) at Pipeline->then(object(Closure))in Router.php (line 661) at Router->runRouteWithinStack(object(Route), object(Request))in Router.php (line 636) at Router->runRoute(object(Request), object(Route))in Router.php (line 602) at Router->dispatchToRoute(object(Request))in Router.php (line 591) at Router->dispatch(object(Request))in Kernel.php (line 176) at Kernel->Illuminate\Foundation\Http{closure}(object(Request))in Pipeline.php (line 30) at Pipeline->Illuminate\Routing{closure}(object(Request))in TransformsRequest.php (line 30) at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in TransformsRequest.php (line 30) at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in ValidatePostSize.php (line 27) at ValidatePostSize->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in CheckForMaintenanceMode.php (line 46) at CheckForMaintenanceMode->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in Request.php (line 111) at Request->handle(object(Request), object(Closure))in Pipeline.php (line 149) at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request))in Pipeline.php (line 102) at Pipeline->then(object(Closure))in Kernel.php (line 151) at Kernel->sendRequestThroughRouter(object(Request))in Kernel.php (line 116) at Kernel->handle(object(Request))in index.php (line 53)