Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Undefined index btc when running watchdog #7

Closed
haikalfouzi opened this issue May 1, 2017 · 1 comment
Closed

Undefined index btc when running watchdog #7

haikalfouzi opened this issue May 1, 2017 · 1 comment

Comments

@haikalfouzi
Copy link

haikalfouzi commented May 1, 2017

I got this error of undefined index when running simulation of watchdog function

------                                                                                                                  
[i] Currently watching 1 transactions                                                                                   
[i] Buy price: 79.37 USD                                                                                                
[i] Sell price: 77.67 USD                                                                                               
[i] Spot price: 78.6 USD                                                                                                
[i] Difference buy/sell: 1.7 USD                                                                                        
                                                                                                                        
PHP Notice:  Undefined index: btc in /home/pi/Development/phptrader/trader.php on line 435                              
 [#1] Watching BUY order for    160 USD. Will buy when ETH price reaches 78.                                            
------  
@geek-at
Copy link
Owner

geek-at commented May 12, 2017

It's just a notice since I didn't initialize the variables. No biggy ;D

@geek-at geek-at closed this as completed May 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants