~luisbg/booty/trunk

« back to all changes in this revision

Viewing changes to src/booty

  • Committer: Luis de Bethencourt
  • Date: 2008-12-28 20:50:19 UTC
  • Revision ID: luisbg@rorschach-20081228205019-704d30tq9x115sjp
init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
import ystockquote
 
4
 
 
5
bsch_quote = float(ystockquote.get_price('SAN.MC'))
 
6
print "Banco Santander: " + str(bsch_quote) + "e"
 
7
 
 
8
num_stocks = 444
 
9
purchase_price = 6.66
 
10
 
 
11
balance = (bsch_quote * num_stocks) - (purchase_price * num_stocks)
 
12
 
 
13
print "Balance: " + str(balance) + "e"