zheng-hao / ga-bitbot

Automatically exported from code.google.com/p/ga-bitbot
GNU General Public License v3.0
0 stars 0 forks source link

bcbookie.py - Keyerror: 'Target' #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. invoke bfceed_synch.py -d 
2. invoke gal.py
3. Load archived gene database? (y/n) y

What is the expected output? What do you see instead?
Expected:
    update: current price 6.770 @ Fri Jan  6 15:15:22 2012
checking open orders
checking held positions
main: Availble Funds (USDS,BTCS) :(u'100.0093', u'50')
main: No GA order available.
sleeping...

Seen:
    update: current price 6.750 @ Fri Jan  6 14:58:07 2012
checking open orders
checking held positions
main: Availble Funds (USDS,BTCS) :(u'100.0093', u'50')
Traceback (most recent call last):
  File "bcbookie.py", line 482, in <module>
    commit = ((t['target'] - t['buy']) * 0.8) + t['buy'] #commit sell order at 80% to target
KeyError: 'target'

What version of the product are you using? On what operating system?
Version: Git Clone w/ revisions
OS: Ubuntu 10.4_x86_64 w/ python2.7

Please provide any additional information below.

If you load archived gene database files previous to bcfeed_synch.py -d data, 
this error pops up. Boot strapping data and selecting no on load archived gene 
database stops the error from happening.

Original issue reported on code.google.com by dgravi...@gmail.com on 6 Jan 2012 at 10:28

GoogleCodeExporter commented 8 years ago
target order validation added to bcbookie. In repo, will be included in next 
software release.

Original comment by brian.mo...@gmail.com on 8 Jan 2012 at 3:15