Skip to content

Commit

Permalink
bitstamp api v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bluppfisk committed Jan 30, 2018
1 parent 4d0157b commit 7160e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coin/exchanges/bitstamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Bitstamp(Exchange):
CONFIG = {
'name': 'Bitstamp',
'ticker': 'https://www.bitstamp.net/api/ticker/',
'ticker': 'https://www.bitstamp.net/api/v2/ticker/',
'discovery': 'https://www.bitstamp.net/api/v2/trading-pairs-info/',
'asset_pairs': [
{
Expand Down Expand Up @@ -45,7 +45,7 @@ def _parse_discovery(self, result):
return asset_pairs

def get_ticker(self):
return self.config['ticker']
return self.config.get('ticker') + self.pair

def _parse_result(self, asset):
cur = asset.get('last')
Expand Down

0 comments on commit 7160e87

Please sign in to comment.