Skip to content

Commit

Permalink
1.47.53
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Apr 12, 2021
1 parent c1d8bc4 commit 9ea5145
Show file tree
Hide file tree
Showing 18 changed files with 52 additions and 59 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ console.log (ccxt.exchanges) // print all available exchanges

All-in-one browser bundle (dependencies included), served from a CDN of your choice:

* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].52/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].52/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].53/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].53/dist/ccxt.browser.js

CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.

```HTML
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].52/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].53/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down
2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.47.52'
const version = '1.47.53'

Exchange.ccxtVersion = version

Expand Down
18 changes: 8 additions & 10 deletions dist/ccxt.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.47.52'
const version = '1.47.53'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -35284,6 +35284,7 @@ module.exports = class bitvavo extends Exchange {

const Exchange = require ('./base/Exchange');
const { ExchangeError, ArgumentsRequired, ExchangeNotAvailable, PermissionDenied, InvalidOrder, AuthenticationError, InsufficientFunds, OrderNotFound, DDoSProtection, OnMaintenance, RateLimitExceeded } = require ('./base/errors');
const Precise = require ('./base/Precise');

// ---------------------------------------------------------------------------

Expand Down Expand Up @@ -35886,14 +35887,11 @@ module.exports = class bitz extends Exchange {
if (market !== undefined) {
symbol = market['symbol'];
}
const price = this.safeNumber (trade, 'p');
const amount = this.safeNumber (trade, 'n');
let cost = undefined;
if (price !== undefined) {
if (amount !== undefined) {
cost = this.priceToPrecision (symbol, amount * price);
}
}
const priceString = this.safeString (trade, 'p');
const amountString = this.safeString (trade, 'n');
const price = this.parseNumber (priceString);
const amount = this.parseNumber (amountString);
const cost = this.parseNumber (Precise.stringMul (priceString, amountString));
const side = this.safeString (trade, 's');
return {
'timestamp': timestamp,
Expand Down Expand Up @@ -36583,7 +36581,7 @@ module.exports = class bitz extends Exchange {
}
};

},{"./base/Exchange":6,"./base/errors":9}],46:[function(require,module,exports){
},{"./base/Exchange":6,"./base/Precise":7,"./base/errors":9}],46:[function(require,module,exports){
'use strict';

// ---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.47.52",
"version": "1.47.53",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
Expand Down
4 changes: 2 additions & 2 deletions php/Exchange.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions php/async/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

include 'throttle.php';

$version = '1.47.52';
$version = '1.47.53';

class Exchange extends \ccxt\Exchange {

const VERSION = '1.47.52';
const VERSION = '1.47.53';

public static $loop;
public static $kernel;
Expand Down
14 changes: 6 additions & 8 deletions php/async/bitz.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Exception; // a common import
use \ccxt\ExchangeError;
use \ccxt\ArgumentsRequired;
use \ccxt\Precise;

class bitz extends Exchange {

Expand Down Expand Up @@ -609,14 +610,11 @@ public function parse_trade($trade, $market = null) {
if ($market !== null) {
$symbol = $market['symbol'];
}
$price = $this->safe_number($trade, 'p');
$amount = $this->safe_number($trade, 'n');
$cost = null;
if ($price !== null) {
if ($amount !== null) {
$cost = $this->price_to_precision($symbol, $amount * $price);
}
}
$priceString = $this->safe_string($trade, 'p');
$amountString = $this->safe_string($trade, 'n');
$price = $this->parse_number($priceString);
$amount = $this->parse_number($amountString);
$cost = $this->parse_number(Precise::string_mul($priceString, $amountString));
$side = $this->safe_string($trade, 's');
return array(
'timestamp' => $timestamp,
Expand Down
13 changes: 5 additions & 8 deletions php/bitz.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ console.log (ccxt.exchanges) // print all available exchanges

All-in-one browser bundle (dependencies included), served from a CDN of your choice:

* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].52/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].52/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].53/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].53/dist/ccxt.browser.js

CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.

```HTML
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].52/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].53/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

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

__version__ = '1.47.52'
__version__ = '1.47.53'

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

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

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

__version__ = '1.47.52'
__version__ = '1.47.53'

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

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

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

__version__ = '1.47.52'
__version__ = '1.47.53'

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

Expand Down
12 changes: 6 additions & 6 deletions python/ccxt/async_support/bitz.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from ccxt.base.errors import RateLimitExceeded
from ccxt.base.errors import ExchangeNotAvailable
from ccxt.base.errors import OnMaintenance
from ccxt.base.precise import Precise


class bitz(Exchange):
Expand Down Expand Up @@ -598,12 +599,11 @@ def parse_trade(self, trade, market=None):
symbol = None
if market is not None:
symbol = market['symbol']
price = self.safe_number(trade, 'p')
amount = self.safe_number(trade, 'n')
cost = None
if price is not None:
if amount is not None:
cost = self.price_to_precision(symbol, amount * price)
priceString = self.safe_string(trade, 'p')
amountString = self.safe_string(trade, 'n')
price = self.parse_number(priceString)
amount = self.parse_number(amountString)
cost = self.parse_number(Precise.string_mul(priceString, amountString))
side = self.safe_string(trade, 's')
return {
'timestamp': timestamp,
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.47.52'
__version__ = '1.47.53'

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

Expand Down
12 changes: 6 additions & 6 deletions python/ccxt/bitz.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.47.52",
"version": "1.47.53",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
Expand Down
6 changes: 3 additions & 3 deletions wiki/Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ If that does not help, please, follow here: https://github.com/nodejs/node-gyp#o

All-in-one browser bundle (dependencies included), served from a CDN of your choice:

* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].52/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].52/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].53/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].53/dist/ccxt.browser.js

You can obtain a live-updated version of the bundle by removing the version number from the URL (the `@a.b.c` thing) — however, we do not recommend to do that, as it may break your app eventually. Also, please keep in mind that we are not responsible for the correct operation of those CDN servers.

```HTML
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].52/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].53/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down

0 comments on commit 9ea5145

Please sign in to comment.