Skip to content

Commit

Permalink
1.67.61
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 14, 2022
1 parent bc32146 commit 2f28a9d
Show file tree
Hide file tree
Showing 19 changed files with 60 additions and 63 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.60/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.60/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.61/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.61/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.60/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.61/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.60'
const version = '1.67.61'

Exchange.ccxtVersion = version

Expand Down
17 changes: 8 additions & 9 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.60'
const version = '1.67.61'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -107322,14 +107322,13 @@ module.exports = class mexc extends Exchange {

async fetchTickers (symbols = undefined, params = {}) {
await this.loadMarkets ();
const defaultType = this.safeString2 (this.options, 'fetchTickers', 'defaultType', 'spot');
const type = this.safeString (params, 'type', defaultType);
const query = this.omit (params, 'type');
let method = 'spotPublicGetMarketTicker';
if (type === 'swap') {
method = 'contractPublicGetTicker';
}
const response = await this[method] (this.extend (query));
let marketType = undefined;
[ marketType, params ] = this.handleMarketTypeAndParams ('fetchTickers', undefined, params);
const method = this.getSupportedMapping (marketType, {
'spot': 'spotPublicGetMarketTicker',
'swap': 'contractPublicGetTicker',
});
const response = await this[method] (this.extend (params));
//
// {
// "success":true,
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.60/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.60/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.61/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.61/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.60/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.61/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.60",
"version": "1.67.61",
"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.60';
$version = '1.67.61';

class Exchange extends \ccxt\Exchange {

const VERSION = '1.67.60';
const VERSION = '1.67.61';

public static $loop;
public static $kernel;
Expand Down
15 changes: 7 additions & 8 deletions php/async/mexc.php
Expand Up @@ -658,14 +658,13 @@ public function fetch_spot_markets($params = array ()) {

public function fetch_tickers($symbols = null, $params = array ()) {
yield $this->load_markets();
$defaultType = $this->safe_string_2($this->options, 'fetchTickers', 'defaultType', 'spot');
$type = $this->safe_string($params, 'type', $defaultType);
$query = $this->omit($params, 'type');
$method = 'spotPublicGetMarketTicker';
if ($type === 'swap') {
$method = 'contractPublicGetTicker';
}
$response = yield $this->$method (array_merge($query));
$marketType = null;
list($marketType, $params) = $this->handle_market_type_and_params('fetchTickers', null, $params);
$method = $this->get_supported_mapping($marketType, array(
'spot' => 'spotPublicGetMarketTicker',
'swap' => 'contractPublicGetTicker',
));
$response = yield $this->$method (array_merge($params));
//
// {
// "success":true,
Expand Down
15 changes: 7 additions & 8 deletions php/mexc.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
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.60/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.60/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.61/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.61/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.60/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.61/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Expand Up @@ -22,7 +22,7 @@

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

__version__ = '1.67.60'
__version__ = '1.67.61'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async_support/__init__.py
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.67.60'
__version__ = '1.67.61'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async_support/base/exchange.py
Expand Up @@ -2,7 +2,7 @@

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

__version__ = '1.67.60'
__version__ = '1.67.61'

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

Expand Down
14 changes: 7 additions & 7 deletions python/ccxt/async_support/mexc.py
Expand Up @@ -646,13 +646,13 @@ async def fetch_spot_markets(self, params={}):

async def fetch_tickers(self, symbols=None, params={}):
await self.load_markets()
defaultType = self.safe_string_2(self.options, 'fetchTickers', 'defaultType', 'spot')
type = self.safe_string(params, 'type', defaultType)
query = self.omit(params, 'type')
method = 'spotPublicGetMarketTicker'
if type == 'swap':
method = 'contractPublicGetTicker'
response = await getattr(self, method)(self.extend(query))
marketType = None
marketType, params = self.handle_market_type_and_params('fetchTickers', None, params)
method = self.get_supported_mapping(marketType, {
'spot': 'spotPublicGetMarketTicker',
'swap': 'contractPublicGetTicker',
})
response = await getattr(self, method)(self.extend(params))
#
# {
# "success":true,
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.67.60'
__version__ = '1.67.61'

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

Expand Down
14 changes: 7 additions & 7 deletions python/ccxt/mexc.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
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.67.60",
"version": "1.67.61",
"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
Expand Up @@ -40,13 +40,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.60/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.60/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.61/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.61/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/ccxt@1.67.60/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.61/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down

0 comments on commit 2f28a9d

Please sign in to comment.