aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2012-11-20 22:48:05 -0800
committerAdam Soltys <[email protected]>2012-11-20 22:48:05 -0800
commit0910ced9cce2d1c15858afb4e05dc16e7acab34a (patch)
tree43b1f574170b2b484d3256e41fe30d3277b437b9
parentbef1a973f8e940ad6251732db25a4052abe5a5bd (diff)
downloadcoinos-server-0910ced9cce2d1c15858afb4e05dc16e7acab34a.tar.gz
coinos-server-0910ced9cce2d1c15858afb4e05dc16e7acab34a.zip
Use the buy price not the sell price
-rw-r--r--app.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.coffee b/app.coffee
index f60fdd25..1dca452b 100644
--- a/app.coffee
+++ b/app.coffee
@@ -93,7 +93,7 @@ app.get('/ticker', (req, res) ->
host: 'bitcoincharts.com',
path: '/t/depthcalc.json?symbol=' +
req.query.symbol +
- '&type=bid&amount=1000&currency=true'
+ '&type=ask&amount=1000&currency=true'
require('http').get(options, (r) ->
r.setEncoding('utf-8')