Skip to content

Commit

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

Exchange.ccxtVersion = version

Expand Down
25 changes: 14 additions & 11 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.3'
const version = '1.34.4'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -69408,17 +69408,19 @@ module.exports = class hitbtc extends Exchange {
//
// [
// {
// "id":"DDF",
// "fullName":"DDF",
// "id":"XPNT",
// "fullName":"pToken",
// "crypto":true,
// "payinEnabled":false,
// "payinEnabled":true,
// "payinPaymentId":false,
// "payinConfirmations":20,
// "payinConfirmations":9,
// "payoutEnabled":true,
// "payoutIsPaymentId":false,
// "transferEnabled":true,
// "delisted":false,
// "payoutFee":"646.000000000000"
// "payoutFee":"26.510000000000",
// "precisionPayout":18,
// "precisionTransfer":8
// }
// ]
//
Expand All @@ -69429,7 +69431,8 @@ module.exports = class hitbtc extends Exchange {
// todo: will need to rethink the fees
// to add support for multiple withdrawal/deposit methods and
// differentiated fees for each particular method
const precision = 8; // default precision, todo: fix "magic constants"
const decimals = this.safeInteger (currency, 'precisionTransfer', 8);
const precision = 1 / Math.pow (10, decimals);
const code = this.safeCurrencyCode (id);
const payin = this.safeValue (currency, 'payinEnabled');
const payout = this.safeValue (currency, 'payoutEnabled');
Expand Down Expand Up @@ -69459,12 +69462,12 @@ module.exports = class hitbtc extends Exchange {
'precision': precision,
'limits': {
'amount': {
'min': Math.pow (10, -precision),
'max': Math.pow (10, precision),
'min': 1 / Math.pow (10, decimals),
'max': Math.pow (10, decimals),
},
'price': {
'min': Math.pow (10, -precision),
'max': Math.pow (10, precision),
'min': 1 / Math.pow (10, decimals),
'max': Math.pow (10, decimals),
},
'cost': {
'min': 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.3",
"version": "1.34.4",
"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.3';
$version = '1.34.4';

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

class Exchange {

const VERSION = '1.34.3';
const VERSION = '1.34.4';

private static $base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
private static $base58_encoder = null;
Expand Down
23 changes: 13 additions & 10 deletions php/hitbtc.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,17 +259,19 @@ public function fetch_currencies($params = array ()) {
//
// array(
// {
// "$id":"DDF",
// "fullName":"DDF",
// "$id":"XPNT",
// "fullName":"pToken",
// "crypto":true,
// "payinEnabled":false,
// "payinEnabled":true,
// "payinPaymentId":false,
// "payinConfirmations":20,
// "payinConfirmations":9,
// "payoutEnabled":true,
// "payoutIsPaymentId":false,
// "transferEnabled":true,
// "delisted":false,
// "payoutFee":"646.000000000000"
// "payoutFee":"26.510000000000",
// "precisionPayout":18,
// "precisionTransfer":8
// }
// )
//
Expand All @@ -280,7 +282,8 @@ public function fetch_currencies($params = array ()) {
// todo => will need to rethink the fees
// to add support for multiple withdrawal/deposit methods and
// differentiated fees for each particular method
$precision = 8; // default $precision, todo => fix "magic constants"
$decimals = $this->safe_integer($currency, 'precisionTransfer', 8);
$precision = 1 / pow(10, $decimals);
$code = $this->safe_currency_code($id);
$payin = $this->safe_value($currency, 'payinEnabled');
$payout = $this->safe_value($currency, 'payoutEnabled');
Expand Down Expand Up @@ -310,12 +313,12 @@ public function fetch_currencies($params = array ()) {
'precision' => $precision,
'limits' => array(
'amount' => array(
'min' => pow(10, -$precision),
'max' => pow(10, $precision),
'min' => 1 / pow(10, $decimals),
'max' => pow(10, $decimals),
),
'price' => array(
'min' => pow(10, -$precision),
'max' => pow(10, $precision),
'min' => 1 / pow(10, $decimals),
'max' => pow(10, $decimals),
),
'cost' => array(
'min' => null,
Expand Down
32 changes: 32 additions & 0 deletions php/test/test_ohlv.php

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

41 changes: 41 additions & 0 deletions php/test/test_transaction.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 @@ -226,13 +226,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].3/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].3/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].4/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].4/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].3/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].4/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.3'
__version__ = '1.34.4'

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

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.3'
__version__ = '1.34.4'

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

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.3'
__version__ = '1.34.4'

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

Expand Down
23 changes: 13 additions & 10 deletions python/ccxt/async_support/hitbtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,19 @@ async def fetch_currencies(self, params={}):
#
# [
# {
# "id":"DDF",
# "fullName":"DDF",
# "id":"XPNT",
# "fullName":"pToken",
# "crypto":true,
# "payinEnabled":false,
# "payinEnabled":true,
# "payinPaymentId":false,
# "payinConfirmations":20,
# "payinConfirmations":9,
# "payoutEnabled":true,
# "payoutIsPaymentId":false,
# "transferEnabled":true,
# "delisted":false,
# "payoutFee":"646.000000000000"
# "payoutFee":"26.510000000000",
# "precisionPayout":18,
# "precisionTransfer":8
# }
# ]
#
Expand All @@ -285,7 +287,8 @@ async def fetch_currencies(self, params={}):
# todo: will need to rethink the fees
# to add support for multiple withdrawal/deposit methods and
# differentiated fees for each particular method
precision = 8 # default precision, todo: fix "magic constants"
decimals = self.safe_integer(currency, 'precisionTransfer', 8)
precision = 1 / math.pow(10, decimals)
code = self.safe_currency_code(id)
payin = self.safe_value(currency, 'payinEnabled')
payout = self.safe_value(currency, 'payoutEnabled')
Expand All @@ -312,12 +315,12 @@ async def fetch_currencies(self, params={}):
'precision': precision,
'limits': {
'amount': {
'min': math.pow(10, -precision),
'max': math.pow(10, precision),
'min': 1 / math.pow(10, decimals),
'max': math.pow(10, decimals),
},
'price': {
'min': math.pow(10, -precision),
'max': math.pow(10, precision),
'min': 1 / math.pow(10, decimals),
'max': math.pow(10, decimals),
},
'cost': {
'min': 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.3'
__version__ = '1.34.4'

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

Expand Down
Loading

0 comments on commit e91df05

Please sign in to comment.