Skip to content

Commit

Permalink
1.34.78
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Oct 2, 2020
1 parent 692529d commit 72c6679
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 174 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,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].77/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].77/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].78/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].78/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].77/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].78/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.34.77'
const version = '1.34.78'

Exchange.ccxtVersion = version

Expand Down
48 changes: 4 additions & 44 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.34.77'
const version = '1.34.78'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -26188,20 +26188,7 @@ module.exports = class bitpanda extends Exchange {
//
const timestamp = this.parse8601 (this.safeString (ticker, 'time'));
const marketId = this.safeString (ticker, 'instrument_code');
let symbol = undefined;
if (marketId !== undefined) {
if (marketId in this.markets_by_id) {
market = this.markets_by_id[marketId];
} else if (marketId !== undefined) {
const [ baseId, quoteId ] = marketId.split ('_');
const base = this.safeCurrencyCode (baseId);
const quote = this.safeCurrencyCode (quoteId);
symbol = base + '/' + quote;
}
}
if ((symbol === undefined) && (market !== undefined)) {
symbol = market['symbol'];
}
const symbol = this.safeSymbol (marketId, market, '_');
const last = this.safeFloat (ticker, 'last_price');
const percentage = this.safeFloat (ticker, 'price_change_percentage');
const change = this.safeFloat (ticker, 'price_change');
Expand Down Expand Up @@ -26501,21 +26488,7 @@ module.exports = class bitpanda extends Exchange {
cost = amount * price;
}
const marketId = this.safeString (trade, 'instrument_code');
let symbol = undefined;
if (marketId !== undefined) {
if (marketId in this.markets_by_id) {
market = this.markets_by_id[marketId];
symbol = market['symbol'];
} else {
const [ baseId, quoteId ] = marketId.split ('_');
const base = this.safeCurrencyCode (baseId);
const quote = this.safeCurrencyCode (quoteId);
symbol = base + '/' + quote;
}
}
if ((market !== undefined) && (symbol === undefined)) {
symbol = market['symbol'];
}
const symbol = this.safeSymbol (marketId, market, '_');
const feeCost = this.safeFloat (feeInfo, 'fee_amount');
let takerOrMaker = undefined;
let fee = undefined;
Expand Down Expand Up @@ -26919,21 +26892,8 @@ module.exports = class bitpanda extends Exchange {
const clientOrderId = this.safeString (order, 'client_id');
const timestamp = this.parse8601 (this.safeString (order, 'time'));
let status = this.parseOrderStatus (this.safeString (order, 'status'));
let symbol = undefined;
const marketId = this.safeString (order, 'instrument_code');
if (marketId !== undefined) {
if (marketId in this.markets_by_id) {
market = this.markets_by_id[marketId];
} else {
const [ baseId, quoteId ] = marketId.split ('_');
const base = this.safeCurrencyCode (baseId);
const quote = this.safeCurrencyCode (quoteId);
symbol = base + '/' + quote;
}
}
if ((symbol === undefined) && (market !== undefined)) {
symbol = market['symbol'];
}
const symbol = this.safeSymbol (marketId, market, '_');
const price = this.safeFloat (order, 'price');
const amount = this.safeFloat (order, 'amount');
let cost = undefined;
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.34.77",
"version": "1.34.78",
"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/base/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
use Elliptic\EdDSA;
use BN\BN;

$version = '1.34.77';
$version = '1.34.78';

// rounding mode
const TRUNCATE = 0;
Expand All @@ -55,7 +55,7 @@

class Exchange {

const VERSION = '1.34.77';
const VERSION = '1.34.78';

private static $base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
private static $base58_encoder = null;
Expand Down
46 changes: 3 additions & 43 deletions php/bitpanda.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,20 +500,7 @@ public function parse_ticker($ticker, $market = null) {
//
$timestamp = $this->parse8601($this->safe_string($ticker, 'time'));
$marketId = $this->safe_string($ticker, 'instrument_code');
$symbol = null;
if ($marketId !== null) {
if (is_array($this->markets_by_id) && array_key_exists($marketId, $this->markets_by_id)) {
$market = $this->markets_by_id[$marketId];
} else if ($marketId !== null) {
list($baseId, $quoteId) = explode('_', $marketId);
$base = $this->safe_currency_code($baseId);
$quote = $this->safe_currency_code($quoteId);
$symbol = $base . '/' . $quote;
}
}
if (($symbol === null) && ($market !== null)) {
$symbol = $market['symbol'];
}
$symbol = $this->safe_symbol($marketId, $market, '_');
$last = $this->safe_float($ticker, 'last_price');
$percentage = $this->safe_float($ticker, 'price_change_percentage');
$change = $this->safe_float($ticker, 'price_change');
Expand Down Expand Up @@ -813,21 +800,7 @@ public function parse_trade($trade, $market = null) {
$cost = $amount * $price;
}
$marketId = $this->safe_string($trade, 'instrument_code');
$symbol = null;
if ($marketId !== null) {
if (is_array($this->markets_by_id) && array_key_exists($marketId, $this->markets_by_id)) {
$market = $this->markets_by_id[$marketId];
$symbol = $market['symbol'];
} else {
list($baseId, $quoteId) = explode('_', $marketId);
$base = $this->safe_currency_code($baseId);
$quote = $this->safe_currency_code($quoteId);
$symbol = $base . '/' . $quote;
}
}
if (($market !== null) && ($symbol === null)) {
$symbol = $market['symbol'];
}
$symbol = $this->safe_symbol($marketId, $market, '_');
$feeCost = $this->safe_float($feeInfo, 'fee_amount');
$takerOrMaker = null;
$fee = null;
Expand Down Expand Up @@ -1231,21 +1204,8 @@ public function parse_order($order, $market = null) {
$clientOrderId = $this->safe_string($order, 'client_id');
$timestamp = $this->parse8601($this->safe_string($order, 'time'));
$status = $this->parse_order_status($this->safe_string($order, 'status'));
$symbol = null;
$marketId = $this->safe_string($order, 'instrument_code');
if ($marketId !== null) {
if (is_array($this->markets_by_id) && array_key_exists($marketId, $this->markets_by_id)) {
$market = $this->markets_by_id[$marketId];
} else {
list($baseId, $quoteId) = explode('_', $marketId);
$base = $this->safe_currency_code($baseId);
$quote = $this->safe_currency_code($quoteId);
$symbol = $base . '/' . $quote;
}
}
if (($symbol === null) && ($market !== null)) {
$symbol = $market['symbol'];
}
$symbol = $this->safe_symbol($marketId, $market, '_');
$price = $this->safe_float($order, 'price');
$amount = $this->safe_float($order, 'amount');
$cost = null;
Expand Down
6 changes: 3 additions & 3 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,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].77/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].77/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].78/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].78/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].77/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].78/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.34.77'
__version__ = '1.34.78'

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

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.34.77'
__version__ = '1.34.78'

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

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.34.77'
__version__ = '1.34.78'

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

Expand Down
37 changes: 3 additions & 34 deletions python/ccxt/async_support/bitpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,17 +494,7 @@ def parse_ticker(self, ticker, market=None):
#
timestamp = self.parse8601(self.safe_string(ticker, 'time'))
marketId = self.safe_string(ticker, 'instrument_code')
symbol = None
if marketId is not None:
if marketId in self.markets_by_id:
market = self.markets_by_id[marketId]
elif marketId is not None:
baseId, quoteId = marketId.split('_')
base = self.safe_currency_code(baseId)
quote = self.safe_currency_code(quoteId)
symbol = base + '/' + quote
if (symbol is None) and (market is not None):
symbol = market['symbol']
symbol = self.safe_symbol(marketId, market, '_')
last = self.safe_float(ticker, 'last_price')
percentage = self.safe_float(ticker, 'price_change_percentage')
change = self.safe_float(ticker, 'price_change')
Expand Down Expand Up @@ -792,18 +782,7 @@ def parse_trade(self, trade, market=None):
if (cost is None) and (amount is not None) and (price is not None):
cost = amount * price
marketId = self.safe_string(trade, 'instrument_code')
symbol = None
if marketId is not None:
if marketId in self.markets_by_id:
market = self.markets_by_id[marketId]
symbol = market['symbol']
else:
baseId, quoteId = marketId.split('_')
base = self.safe_currency_code(baseId)
quote = self.safe_currency_code(quoteId)
symbol = base + '/' + quote
if (market is not None) and (symbol is None):
symbol = market['symbol']
symbol = self.safe_symbol(marketId, market, '_')
feeCost = self.safe_float(feeInfo, 'fee_amount')
takerOrMaker = None
fee = None
Expand Down Expand Up @@ -1184,18 +1163,8 @@ def parse_order(self, order, market=None):
clientOrderId = self.safe_string(order, 'client_id')
timestamp = self.parse8601(self.safe_string(order, 'time'))
status = self.parse_order_status(self.safe_string(order, 'status'))
symbol = None
marketId = self.safe_string(order, 'instrument_code')
if marketId is not None:
if marketId in self.markets_by_id:
market = self.markets_by_id[marketId]
else:
baseId, quoteId = marketId.split('_')
base = self.safe_currency_code(baseId)
quote = self.safe_currency_code(quoteId)
symbol = base + '/' + quote
if (symbol is None) and (market is not None):
symbol = market['symbol']
symbol = self.safe_symbol(marketId, market, '_')
price = self.safe_float(order, 'price')
amount = self.safe_float(order, 'amount')
cost = 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.34.77'
__version__ = '1.34.78'

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

Expand Down
37 changes: 3 additions & 34 deletions python/ccxt/bitpanda.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.34.77",
"version": "1.34.78",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
Expand Down
Loading

0 comments on commit 72c6679

Please sign in to comment.