Skip to content

Commit

Permalink
1.47.41
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Apr 11, 2021
1 parent 88cd6bb commit 9343159
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 @@ -223,13 +223,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].40/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].40/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].41/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].41/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].40/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].41/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.40'
const version = '1.47.41'

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.40'
const version = '1.47.41'

Exchange.ccxtVersion = version

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

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

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

Expand Down Expand Up @@ -38883,14 +38884,11 @@ module.exports = class btcbox extends Exchange {
symbol = market['symbol'];
}
const id = this.safeString (trade, 'tid');
const price = this.safeNumber (trade, 'price');
const amount = this.safeNumber (trade, 'amount');
let cost = undefined;
if (amount !== undefined) {
if (price !== undefined) {
cost = price * amount;
}
}
const priceString = this.safeString (trade, 'price');
const amountString = this.safeString (trade, 'amount');
const price = this.parseNumber (priceString);
const amount = this.parseNumber (amountString);
const cost = this.parseNumber (Precise.stringMul (priceString, amountString));
const type = undefined;
const side = this.safeString (trade, 'type');
return {
Expand Down Expand Up @@ -39150,7 +39148,7 @@ module.exports = class btcbox extends Exchange {
}
};

},{"./base/Exchange":6,"./base/errors":9}],51:[function(require,module,exports){
},{"./base/Exchange":6,"./base/Precise":7,"./base/errors":9}],51:[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.40",
"version": "1.47.41",
"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.40';
$version = '1.47.41';

class Exchange extends \ccxt\Exchange {

const VERSION = '1.47.40';
const VERSION = '1.47.41';

public static $loop;
public static $kernel;
Expand Down
14 changes: 6 additions & 8 deletions php/async/btcbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

use Exception; // a common import
use \ccxt\ExchangeError;
use \ccxt\Precise;

class btcbox extends Exchange {

Expand Down Expand Up @@ -160,14 +161,11 @@ public function parse_trade($trade, $market = null) {
$symbol = $market['symbol'];
}
$id = $this->safe_string($trade, 'tid');
$price = $this->safe_number($trade, 'price');
$amount = $this->safe_number($trade, 'amount');
$cost = null;
if ($amount !== null) {
if ($price !== null) {
$cost = $price * $amount;
}
}
$priceString = $this->safe_string($trade, 'price');
$amountString = $this->safe_string($trade, 'amount');
$price = $this->parse_number($priceString);
$amount = $this->parse_number($amountString);
$cost = $this->parse_number(Precise::string_mul($priceString, $amountString));
$type = null;
$side = $this->safe_string($trade, 'type');
return array(
Expand Down
13 changes: 5 additions & 8 deletions php/btcbox.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 @@ -223,13 +223,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].40/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].40/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].41/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].41/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].40/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].41/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.40'
__version__ = '1.47.41'

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

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.40'
__version__ = '1.47.41'

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

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.40'
__version__ = '1.47.41'

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

Expand Down
12 changes: 6 additions & 6 deletions python/ccxt/async_support/btcbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from ccxt.base.errors import OrderNotFound
from ccxt.base.errors import DDoSProtection
from ccxt.base.errors import InvalidNonce
from ccxt.base.precise import Precise


class btcbox(Exchange):
Expand Down Expand Up @@ -163,12 +164,11 @@ def parse_trade(self, trade, market=None):
if market is not None:
symbol = market['symbol']
id = self.safe_string(trade, 'tid')
price = self.safe_number(trade, 'price')
amount = self.safe_number(trade, 'amount')
cost = None
if amount is not None:
if price is not None:
cost = price * amount
priceString = self.safe_string(trade, 'price')
amountString = self.safe_string(trade, 'amount')
price = self.parse_number(priceString)
amount = self.parse_number(amountString)
cost = self.parse_number(Precise.string_mul(priceString, amountString))
type = None
side = self.safe_string(trade, 'type')
return {
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.40'
__version__ = '1.47.41'

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

Expand Down
12 changes: 6 additions & 6 deletions python/ccxt/btcbox.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.40",
"version": "1.47.41",
"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].40/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].40/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].41/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].41/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].40/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].41/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down

0 comments on commit 9343159

Please sign in to comment.