Skip to content

Commit

Permalink
2.4.39
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Dec 20, 2022
1 parent 7290565 commit 306ca7b
Show file tree
Hide file tree
Showing 21 changed files with 94 additions and 109 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,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/ccxt@2.4.38/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@2.4.38/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.4.39/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@2.4.39/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/ccxt@2.4.38/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.4.39/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 @@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '2.4.38'
const version = '2.4.39'

Exchange.ccxtVersion = version

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

const version = '2.4.38'
const version = '2.4.39'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -22328,34 +22328,31 @@ module.exports = class bitfinex extends Exchange {
// }
//
const timestamp = this.safeTimestamp (transaction, 'timestamp_created');
const updated = this.safeTimestamp (transaction, 'timestamp');
const currencyId = this.safeString (transaction, 'currency');
const code = this.safeCurrencyCode (currencyId, currency);
const type = this.safeStringLower (transaction, 'type'); // DEPOSIT or WITHDRAWAL
const status = this.parseTransactionStatus (this.safeString (transaction, 'status'));
let feeCost = this.safeString (transaction, 'fee');
if (feeCost !== undefined) {
feeCost = Precise.stringAbs (feeCost);
}
const tag = this.safeString (transaction, 'description');
return {
'info': transaction,
'id': this.safeString2 (transaction, 'id', 'withdrawal_id'),
'txid': this.safeString (transaction, 'txid'),
'type': this.safeStringLower (transaction, 'type'), // DEPOSIT or WITHDRAWAL,
'currency': code,
'network': undefined,
'amount': this.safeNumber (transaction, 'amount'),
'status': this.parseTransactionStatus (this.safeString (transaction, 'status')),
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'network': undefined,
'address': this.safeString (transaction, 'address'), // todo: this is actually the tag for XRP transfers (the address is missing)
'addressTo': undefined,
'addressFrom': undefined,
'tag': tag,
'tagTo': undefined,
'addressTo': undefined,
'tag': this.safeString (transaction, 'description'),
'tagFrom': undefined,
'type': type,
'amount': this.safeNumber (transaction, 'amount'),
'currency': code,
'status': status,
'updated': updated,
'tagTo': undefined,
'updated': this.safeTimestamp (transaction, 'timestamp'),
'comment': undefined,
'fee': {
'currency': code,
'cost': this.parseNumber (feeCost),
Expand Down
6 changes: 3 additions & 3 deletions doc/readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1864,14 +1864,14 @@ JavaScript (for use with the ``<script>`` tag):
All-in-one browser bundle (dependencies included), served from a CDN of your choice:


* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.4.38/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@2.4.38/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.4.39/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@2.4.39/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.

.. code-block:: HTML

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.4.38/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.4.39/dist/ccxt.browser.js"></script>

Creates a global ``ccxt`` object:

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "2.4.38",
"version": "2.4.39",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
Expand Down Expand Up @@ -244,7 +244,7 @@
"ccex",
"C-CEX",
"cex",
"CEX.IO",
"cex.io",
"CHBTC",
"ChileBit",
"chilebit.net",
Expand Down Expand Up @@ -414,7 +414,7 @@
"fybse.se",
"fybsg.com",
"gatecoin.com",
"gate.io",
"Gate.io",
"gdax.com",
"gemini.com",
"getbtc.org",
Expand Down Expand Up @@ -531,8 +531,8 @@
"dsxglobal.com",
"bitvavo.com",
"Bitvavo",
"currency.com",
"waves.exchange",
"Currency.com",
"Waves.Exchange",
"phemex.com",
"Phemex",
"huobi.co.jp",
Expand Down Expand Up @@ -581,7 +581,7 @@
"Binance USDⓈ-M",
"eqonex.com",
"EQONEX",
"fmfw.io",
"FMFW.io",
"mexc.com",
"MEXC Global",
"bitrue.com",
Expand All @@ -595,8 +595,8 @@
"Zonda",
"futures.kucoin.com",
"KuCoin Futures",
"blockchain.com",
"crypto.com",
"Blockchain.com",
"Crypto.com",
"wazirx.com",
"WazirX",
"woo.org",
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 @@ -34,11 +34,11 @@

include 'Throttle.php';

$version = '2.4.38';
$version = '2.4.39';

class Exchange extends \ccxt\Exchange {

const VERSION = '2.4.38';
const VERSION = '2.4.39';

public $browser;
public $marketsLoading = null;
Expand Down
25 changes: 11 additions & 14 deletions php/async/bitfinex.php
Original file line number Diff line number Diff line change
Expand Up @@ -1502,34 +1502,31 @@ public function parse_transaction($transaction, $currency = null) {
// }
//
$timestamp = $this->safe_timestamp($transaction, 'timestamp_created');
$updated = $this->safe_timestamp($transaction, 'timestamp');
$currencyId = $this->safe_string($transaction, 'currency');
$code = $this->safe_currency_code($currencyId, $currency);
$type = $this->safe_string_lower($transaction, 'type'); // DEPOSIT or WITHDRAWAL
$status = $this->parse_transaction_status($this->safe_string($transaction, 'status'));
$feeCost = $this->safe_string($transaction, 'fee');
if ($feeCost !== null) {
$feeCost = Precise::string_abs($feeCost);
}
$tag = $this->safe_string($transaction, 'description');
return array(
'info' => $transaction,
'id' => $this->safe_string_2($transaction, 'id', 'withdrawal_id'),
'txid' => $this->safe_string($transaction, 'txid'),
'type' => $this->safe_string_lower($transaction, 'type'), // DEPOSIT or WITHDRAWAL,
'currency' => $code,
'network' => null,
'amount' => $this->safe_number($transaction, 'amount'),
'status' => $this->parse_transaction_status($this->safe_string($transaction, 'status')),
'timestamp' => $timestamp,
'datetime' => $this->iso8601($timestamp),
'network' => null,
'address' => $this->safe_string($transaction, 'address'), // todo => this is actually the $tag for XRP transfers (the address is missing)
'addressTo' => null,
'address' => $this->safe_string($transaction, 'address'), // todo => this is actually the tag for XRP transfers (the address is missing)
'addressFrom' => null,
'tag' => $tag,
'tagTo' => null,
'addressTo' => null,
'tag' => $this->safe_string($transaction, 'description'),
'tagFrom' => null,
'type' => $type,
'amount' => $this->safe_number($transaction, 'amount'),
'currency' => $code,
'status' => $status,
'updated' => $updated,
'tagTo' => null,
'updated' => $this->safe_timestamp($transaction, 'timestamp'),
'comment' => null,
'fee' => array(
'currency' => $code,
'cost' => $this->parse_number($feeCost),
Expand Down
25 changes: 11 additions & 14 deletions php/bitfinex.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 @@ -208,13 +208,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/ccxt@2.4.38/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@2.4.38/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.4.39/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@2.4.39/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/ccxt@2.4.38/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.4.39/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__ = '2.4.38'
__version__ = '2.4.39'

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

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__ = '2.4.38'
__version__ = '2.4.39'

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

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__ = '2.4.38'
__version__ = '2.4.39'

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

Expand Down
23 changes: 10 additions & 13 deletions python/ccxt/async_support/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -1392,33 +1392,30 @@ def parse_transaction(self, transaction, currency=None):
# }
#
timestamp = self.safe_timestamp(transaction, 'timestamp_created')
updated = self.safe_timestamp(transaction, 'timestamp')
currencyId = self.safe_string(transaction, 'currency')
code = self.safe_currency_code(currencyId, currency)
type = self.safe_string_lower(transaction, 'type') # DEPOSIT or WITHDRAWAL
status = self.parse_transaction_status(self.safe_string(transaction, 'status'))
feeCost = self.safe_string(transaction, 'fee')
if feeCost is not None:
feeCost = Precise.string_abs(feeCost)
tag = self.safe_string(transaction, 'description')
return {
'info': transaction,
'id': self.safe_string_2(transaction, 'id', 'withdrawal_id'),
'txid': self.safe_string(transaction, 'txid'),
'type': self.safe_string_lower(transaction, 'type'), # DEPOSIT or WITHDRAWAL,
'currency': code,
'network': None,
'amount': self.safe_number(transaction, 'amount'),
'status': self.parse_transaction_status(self.safe_string(transaction, 'status')),
'timestamp': timestamp,
'datetime': self.iso8601(timestamp),
'network': None,
'address': self.safe_string(transaction, 'address'), # todo: self is actually the tag for XRP transfers(the address is missing)
'addressTo': None,
'addressFrom': None,
'tag': tag,
'tagTo': None,
'addressTo': None,
'tag': self.safe_string(transaction, 'description'),
'tagFrom': None,
'type': type,
'amount': self.safe_number(transaction, 'amount'),
'currency': code,
'status': status,
'updated': updated,
'tagTo': None,
'updated': self.safe_timestamp(transaction, 'timestamp'),
'comment': None,
'fee': {
'currency': code,
'cost': self.parse_number(feeCost),
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__ = '2.4.38'
__version__ = '2.4.39'

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

Expand Down

0 comments on commit 306ca7b

Please sign in to comment.