Skip to content

Commit

Permalink
1.10.899
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 29, 2018
1 parent 337cbc7 commit b12702b
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 23 deletions.
16 changes: 9 additions & 7 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 Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.10.898'
const version = '1.10.899'

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.898",
"version": "1.10.899",
"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.898';
$version = '1.10.899';

abstract class Exchange {

Expand Down
3 changes: 2 additions & 1 deletion php/dsx.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public function parse_ticker ($ticker, $market = null) {
$symbol = $market['symbol'];
$average = $this->safe_float($ticker, 'avg');
if ($average !== null)
$average = 1 / $average;
if ($average > 0)
$average = 1 / $average;
return array (
'symbol' => $symbol,
'timestamp' => $timestamp,
Expand Down
5 changes: 3 additions & 2 deletions php/okcoinusd.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ public function describe () {
),
),
'exceptions' => array (
'1009' => '\\ccxt\\OrderNotFound',
'1013' => '\\ccxt\\InvalidOrder', // no order type
'1009' => '\\ccxt\\OrderNotFound', // for spot markets
'20015' => '\\ccxt\\OrderNotFound', // for future markets
'1013' => '\\ccxt\\InvalidOrder', // no contract type (PR-1101)
'1027' => '\\ccxt\\InvalidOrder', // createLimitBuyOrder(symbol, 0, 0) => Incorrect parameter may exceeded limits
'1002' => '\\ccxt\\InsufficientFunds', // The transaction amount exceed the balance
'10000' => '\\ccxt\\ExchangeError', // createLimitBuyOrder(symbol, null, null)
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.898'
__version__ = '1.10.899'

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

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.898'
__version__ = '1.10.899'

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

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.898'
__version__ = '1.10.899'

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

Expand Down
3 changes: 2 additions & 1 deletion python/ccxt/async/dsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def parse_ticker(self, ticker, market=None):
symbol = market['symbol']
average = self.safe_float(ticker, 'avg')
if average is not None:
average = 1 / average
if average > 0:
average = 1 / average
return {
'symbol': symbol,
'timestamp': timestamp,
Expand Down
5 changes: 3 additions & 2 deletions python/ccxt/async/okcoinusd.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ def describe(self):
},
},
'exceptions': {
'1009': OrderNotFound,
'1013': InvalidOrder, # no order type
'1009': OrderNotFound, # for spot markets
'20015': OrderNotFound, # for future markets
'1013': InvalidOrder, # no contract type(PR-1101)
'1027': InvalidOrder, # createLimitBuyOrder(symbol, 0, 0): Incorrect parameter may exceeded limits
'1002': InsufficientFunds, # The transaction amount exceed the balance
'10000': ExchangeError, # createLimitBuyOrder(symbol, None, None)
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.898'
__version__ = '1.10.899'

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

Expand Down
3 changes: 2 additions & 1 deletion python/ccxt/dsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def parse_ticker(self, ticker, market=None):
symbol = market['symbol']
average = self.safe_float(ticker, 'avg')
if average is not None:
average = 1 / average
if average > 0:
average = 1 / average
return {
'symbol': symbol,
'timestamp': timestamp,
Expand Down
5 changes: 3 additions & 2 deletions python/ccxt/okcoinusd.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ def describe(self):
},
},
'exceptions': {
'1009': OrderNotFound,
'1013': InvalidOrder, # no order type
'1009': OrderNotFound, # for spot markets
'20015': OrderNotFound, # for future markets
'1013': InvalidOrder, # no contract type(PR-1101)
'1027': InvalidOrder, # createLimitBuyOrder(symbol, 0, 0): Incorrect parameter may exceeded limits
'1002': InsufficientFunds, # The transaction amount exceed the balance
'10000': ExchangeError, # createLimitBuyOrder(symbol, None, None)
Expand Down

0 comments on commit b12702b

Please sign in to comment.