Skip to content

Commit

Permalink
1.10.705
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 14, 2018
1 parent 872ff79 commit b01117e
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 45 deletions.
23 changes: 12 additions & 11 deletions build/ccxt.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const errors = require ('./js/base/errors')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.10.704'
const version = '1.10.705'

Exchange.ccxtVersion = version

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.10.704",
"version": "1.10.705",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
2 changes: 1 addition & 1 deletion php/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.10.704';
$version = '1.10.705';

abstract class Exchange {

Expand Down
1 change: 1 addition & 0 deletions php/bitfinex.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public function common_currency_code ($currency) {
'BCC' => 'CST_BCC',
'BCU' => 'CST_BCU',
'IOT' => 'IOTA',
'DAT' => 'DATA',
);
return (is_array ($currencies) && array_key_exists ($currency, $currencies)) ? $currencies[$currency] : $currency;
}
Expand Down
18 changes: 9 additions & 9 deletions php/bitfinex2.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ public function describe () {
}

public function common_currency_code ($currency) {
// issue #4 Bitfinex names Dash as DSH, instead of DASH
if ($currency == 'DSH')
return 'DASH';
if ($currency == 'QTM')
return 'QTUM';
// issue #796
if ($currency == 'IOT')
return 'IOTA';
return $currency;
$currencies = array (
'DSH' => 'DASH', // Bitfinex names Dash as DSH, instead of DASH
'QTM' => 'QTUM',
'BCC' => 'CST_BCC',
'BCU' => 'CST_BCU',
'IOT' => 'IOTA',
'DAT' => 'DATA',
);
return (is_array ($currencies) && array_key_exists ($currency, $currencies)) ? $currencies[$currency] : $currency;
}

public function fetch_balance ($params = array ()) {
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# ----------------------------------------------------------------------------

__version__ = '1.10.704'
__version__ = '1.10.705'

# ----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.10.704'
__version__ = '1.10.705'

# -----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.10.704'
__version__ = '1.10.705'

# -----------------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions python/ccxt/async/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def common_currency_code(self, currency):
'BCC': 'CST_BCC',
'BCU': 'CST_BCU',
'IOT': 'IOTA',
'DAT': 'DATA',
}
return currencies[currency] if (currency in list(currencies.keys())) else currency

Expand Down
18 changes: 9 additions & 9 deletions python/ccxt/async/bitfinex2.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ def describe(self):
})

def common_currency_code(self, currency):
# issue #4 Bitfinex names Dash as DSH, instead of DASH
if currency == 'DSH':
return 'DASH'
if currency == 'QTM':
return 'QTUM'
# issue #796
if currency == 'IOT':
return 'IOTA'
return currency
currencies = {
'DSH': 'DASH', # Bitfinex names Dash as DSH, instead of DASH
'QTM': 'QTUM',
'BCC': 'CST_BCC',
'BCU': 'CST_BCU',
'IOT': 'IOTA',
'DAT': 'DATA',
}
return currencies[currency] if (currency in list(currencies.keys())) else currency

async def fetch_balance(self, params={}):
response = await self.privatePostAuthRWallets()
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.10.704'
__version__ = '1.10.705'

# -----------------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions python/ccxt/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def common_currency_code(self, currency):
'BCC': 'CST_BCC',
'BCU': 'CST_BCU',
'IOT': 'IOTA',
'DAT': 'DATA',
}
return currencies[currency] if (currency in list(currencies.keys())) else currency

Expand Down
18 changes: 9 additions & 9 deletions python/ccxt/bitfinex2.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ def describe(self):
})

def common_currency_code(self, currency):
# issue #4 Bitfinex names Dash as DSH, instead of DASH
if currency == 'DSH':
return 'DASH'
if currency == 'QTM':
return 'QTUM'
# issue #796
if currency == 'IOT':
return 'IOTA'
return currency
currencies = {
'DSH': 'DASH', # Bitfinex names Dash as DSH, instead of DASH
'QTM': 'QTUM',
'BCC': 'CST_BCC',
'BCU': 'CST_BCU',
'IOT': 'IOTA',
'DAT': 'DATA',
}
return currencies[currency] if (currency in list(currencies.keys())) else currency

def fetch_balance(self, params={}):
response = self.privatePostAuthRWallets()
Expand Down

0 comments on commit b01117e

Please sign in to comment.