Skip to content

Commit

Permalink
1.67.60
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 14, 2022
1 parent a31f026 commit 82b07c7
Show file tree
Hide file tree
Showing 19 changed files with 320 additions and 160 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -221,13 +221,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@1.67.59/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.59/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.60/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.60/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@1.67.59/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.60/dist/ccxt.browser.js"></script>
```

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

const version = '1.67.59'
const version = '1.67.60'

Exchange.ccxtVersion = version

Expand Down
88 changes: 60 additions & 28 deletions dist/ccxt.browser.js
Expand Up @@ -44,7 +44,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.67.59'
const version = '1.67.60'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -17300,17 +17300,35 @@ module.exports = class bitbank extends Exchange {
'countries': [ 'JP' ],
'version': 'v1',
'has': {
'spot': true,
'swap': false,
'future': false,
'option': false,
'cancelOrder': true,
'createOrder': true,
'fetchBalance': true,
'fetchDepositAddress': true,
'fetchFundingHistory': false,
'fetchFundingRate': false,
'fetchFundingRateHistory': false,
'fetchFundingRates': false,
'fetchIndexOHLCV': false,
'fetchIsolatedPositions': false,
'fetchLeverage': false,
'fetchMarkOHLCV': false,
'fetchMyTrades': true,
'fetchOHLCV': true,
'fetchOpenOrders': true,
'fetchOrder': true,
'fetchOrderBook': true,
'fetchPositions': false,
'fetchPositionsRisk': false,
'fetchPremiumIndexOHLCV': false,
'fetchTicker': true,
'fetchTrades': true,
'reduceMargin': false,
'setLeverage': false,
'setPositionMode': false,
'withdraw': true,
},
'timeframes': {
Expand Down Expand Up @@ -17428,47 +17446,61 @@ module.exports = class bitbank extends Exchange {
const quoteId = this.safeString (entry, 'quote_asset');
const base = this.safeCurrencyCode (baseId);
const quote = this.safeCurrencyCode (quoteId);
const symbol = base + '/' + quote;
const maker = this.safeNumber (entry, 'maker_fee_rate_quote');
const taker = this.safeNumber (entry, 'taker_fee_rate_quote');
const pricePrecisionString = this.safeString (entry, 'price_digits');
const priceLimit = this.parsePrecision (pricePrecisionString);
const precision = {
'price': parseInt (pricePrecisionString),
'amount': this.safeInteger (entry, 'amount_digits'),
};
const active = this.safeValue (entry, 'is_enabled');
const minAmountString = this.safeString (entry, 'unit_amount');
const minCost = Precise.stringMul (minAmountString, priceLimit);
const limits = {
'amount': {
'min': this.safeNumber (entry, 'unit_amount'),
'max': this.safeNumber (entry, 'limit_max_amount'),
},
'price': {
'min': this.parseNumber (priceLimit),
'max': undefined,
},
'cost': {
'min': this.parseNumber (minCost),
'max': undefined,
},
};
result.push ({
'info': entry,
'id': id,
'symbol': symbol,
'baseId': baseId,
'quoteId': quoteId,
'symbol': base + '/' + quote,
'base': base,
'quote': quote,
'precision': precision,
'limits': limits,
'settle': undefined,
'baseId': baseId,
'quoteId': quoteId,
'settleId': undefined,
'type': 'spot',
'spot': true,
'active': active,
'margin': false,
'swap': false,
'future': false,
'option': false,
'active': this.safeValue (entry, 'is_enabled'),
'contract': false,
'linear': undefined,
'inverse': undefined,
'maker': maker,
'taker': taker,
'contractSize': undefined,
'expiry': undefined,
'expiryDatetime': undefined,
'strike': undefined,
'optionType': undefined,
'precision': {
'price': parseInt (pricePrecisionString),
'amount': this.safeInteger (entry, 'amount_digits'),
},
'limits': {
'leverage': {
'min': undefined,
'max': undefined,
},
'amount': {
'min': this.safeNumber (entry, 'unit_amount'),
'max': this.safeNumber (entry, 'limit_max_amount'),
},
'price': {
'min': this.parseNumber (priceLimit),
'max': undefined,
},
'cost': {
'min': this.parseNumber (minCost),
'max': undefined,
},
},
'info': entry,
});
}
return result;
Expand Down
6 changes: 3 additions & 3 deletions doc/readme.rst
Expand Up @@ -1957,14 +1957,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@1.67.59/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.59/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.60/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.60/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@1.67.59/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.60/dist/ccxt.browser.js"></script>

Creates a global ``ccxt`` object:

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
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.67.59",
"version": "1.67.60",
"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
Expand Up @@ -28,11 +28,11 @@

include 'Throttle.php';

$version = '1.67.59';
$version = '1.67.60';

class Exchange extends \ccxt\Exchange {

const VERSION = '1.67.59';
const VERSION = '1.67.60';

public static $loop;
public static $kernel;
Expand Down
86 changes: 59 additions & 27 deletions php/async/bitbank.php
Expand Up @@ -19,17 +19,35 @@ public function describe() {
'countries' => array( 'JP' ),
'version' => 'v1',
'has' => array(
'spot' => true,
'swap' => false,
'future' => false,
'option' => false,
'cancelOrder' => true,
'createOrder' => true,
'fetchBalance' => true,
'fetchDepositAddress' => true,
'fetchFundingHistory' => false,
'fetchFundingRate' => false,
'fetchFundingRateHistory' => false,
'fetchFundingRates' => false,
'fetchIndexOHLCV' => false,
'fetchIsolatedPositions' => false,
'fetchLeverage' => false,
'fetchMarkOHLCV' => false,
'fetchMyTrades' => true,
'fetchOHLCV' => true,
'fetchOpenOrders' => true,
'fetchOrder' => true,
'fetchOrderBook' => true,
'fetchPositions' => false,
'fetchPositionsRisk' => false,
'fetchPremiumIndexOHLCV' => false,
'fetchTicker' => true,
'fetchTrades' => true,
'reduceMargin' => false,
'setLeverage' => false,
'setPositionMode' => false,
'withdraw' => true,
),
'timeframes' => array(
Expand Down Expand Up @@ -147,47 +165,61 @@ public function fetch_markets($params = array ()) {
$quoteId = $this->safe_string($entry, 'quote_asset');
$base = $this->safe_currency_code($baseId);
$quote = $this->safe_currency_code($quoteId);
$symbol = $base . '/' . $quote;
$maker = $this->safe_number($entry, 'maker_fee_rate_quote');
$taker = $this->safe_number($entry, 'taker_fee_rate_quote');
$pricePrecisionString = $this->safe_string($entry, 'price_digits');
$priceLimit = $this->parse_precision($pricePrecisionString);
$precision = array(
'price' => intval($pricePrecisionString),
'amount' => $this->safe_integer($entry, 'amount_digits'),
);
$active = $this->safe_value($entry, 'is_enabled');
$minAmountString = $this->safe_string($entry, 'unit_amount');
$minCost = Precise::string_mul($minAmountString, $priceLimit);
$limits = array(
'amount' => array(
'min' => $this->safe_number($entry, 'unit_amount'),
'max' => $this->safe_number($entry, 'limit_max_amount'),
),
'price' => array(
'min' => $this->parse_number($priceLimit),
'max' => null,
),
'cost' => array(
'min' => $this->parse_number($minCost),
'max' => null,
),
);
$result[] = array(
'info' => $entry,
'id' => $id,
'symbol' => $symbol,
'baseId' => $baseId,
'quoteId' => $quoteId,
'symbol' => $base . '/' . $quote,
'base' => $base,
'quote' => $quote,
'precision' => $precision,
'limits' => $limits,
'settle' => null,
'baseId' => $baseId,
'quoteId' => $quoteId,
'settleId' => null,
'type' => 'spot',
'spot' => true,
'active' => $active,
'margin' => false,
'swap' => false,
'future' => false,
'option' => false,
'active' => $this->safe_value($entry, 'is_enabled'),
'contract' => false,
'linear' => null,
'inverse' => null,
'maker' => $maker,
'taker' => $taker,
'contractSize' => null,
'expiry' => null,
'expiryDatetime' => null,
'strike' => null,
'optionType' => null,
'precision' => array(
'price' => intval($pricePrecisionString),
'amount' => $this->safe_integer($entry, 'amount_digits'),
),
'limits' => array(
'leverage' => array(
'min' => null,
'max' => null,
),
'amount' => array(
'min' => $this->safe_number($entry, 'unit_amount'),
'max' => $this->safe_number($entry, 'limit_max_amount'),
),
'price' => array(
'min' => $this->parse_number($priceLimit),
'max' => null,
),
'cost' => array(
'min' => $this->parse_number($minCost),
'max' => null,
),
),
'info' => $entry,
);
}
return $result;
Expand Down

0 comments on commit 82b07c7

Please sign in to comment.