Skip to content

Commit

Permalink
1.48.68
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Apr 25, 2021
1 parent e399b18 commit c025cae
Show file tree
Hide file tree
Showing 18 changed files with 182 additions and 32 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,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].67/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].67/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].68/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].68/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].67/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].68/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.48.67'
const version = '1.48.68'

Exchange.ccxtVersion = version

Expand Down
36 changes: 33 additions & 3 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.48.67'
const version = '1.48.68'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -30221,8 +30221,38 @@ module.exports = class bitso extends Exchange {
async fetchBalance (params = {}) {
await this.loadMarkets ();
const response = await this.privateGetBalance (params);
const balances = this.safeValue (response['payload'], 'balances');
const result = { 'info': response };
//
// {
// "success": true,
// "payload": {
// "balances": [
// {
// "currency": "bat",
// "available": "0.00000000",
// "locked": "0.00000000",
// "total": "0.00000000",
// "pending_deposit": "0.00000000",
// "pending_withdrawal": "0.00000000"
// },
// {
// "currency": "bch",
// "available": "0.00000000",
// "locked": "0.00000000",
// "total": "0.00000000",
// "pending_deposit": "0.00000000",
// "pending_withdrawal": "0.00000000"
// },
// ],
// },
// }
//
const payload = this.safeValue (response, 'payload', {});
const balances = this.safeValue (payload, 'balances');
const result = {
'info': response,
'timestamp': undefined,
'datetime': undefined,
};
for (let i = 0; i < balances.length; i++) {
const balance = balances[i];
const currencyId = this.safeString (balance, 'currency');
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.48.67",
"version": "1.48.68",
"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
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

include 'throttle.php';

$version = '1.48.67';
$version = '1.48.68';

class Exchange extends \ccxt\Exchange {

const VERSION = '1.48.67';
const VERSION = '1.48.68';

public static $loop;
public static $kernel;
Expand Down
34 changes: 32 additions & 2 deletions php/async/bitso.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,38 @@ public function fetch_markets($params = array ()) {
public function fetch_balance($params = array ()) {
yield $this->load_markets();
$response = yield $this->privateGetBalance ($params);
$balances = $this->safe_value($response['payload'], 'balances');
$result = array( 'info' => $response );
//
// {
// "success" => true,
// "$payload" => array(
// "$balances" => array(
// array(
// "currency" => "bat",
// "available" => "0.00000000",
// "locked" => "0.00000000",
// "total" => "0.00000000",
// "pending_deposit" => "0.00000000",
// "pending_withdrawal" => "0.00000000"
// ),
// array(
// "currency" => "bch",
// "available" => "0.00000000",
// "locked" => "0.00000000",
// "total" => "0.00000000",
// "pending_deposit" => "0.00000000",
// "pending_withdrawal" => "0.00000000"
// ),
// ),
// ),
// }
//
$payload = $this->safe_value($response, 'payload', array());
$balances = $this->safe_value($payload, 'balances');
$result = array(
'info' => $response,
'timestamp' => null,
'datetime' => null,
);
for ($i = 0; $i < count($balances); $i++) {
$balance = $balances[$i];
$currencyId = $this->safe_string($balance, 'currency');
Expand Down
34 changes: 32 additions & 2 deletions php/bitso.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 @@ -224,13 +224,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].67/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].67/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].68/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].68/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].67/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].68/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.48.67'
__version__ = '1.48.68'

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

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.48.67'
__version__ = '1.48.68'

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

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.48.67'
__version__ = '1.48.68'

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

Expand Down
34 changes: 32 additions & 2 deletions python/ccxt/async_support/bitso.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,38 @@ async def fetch_markets(self, params={}):
async def fetch_balance(self, params={}):
await self.load_markets()
response = await self.privateGetBalance(params)
balances = self.safe_value(response['payload'], 'balances')
result = {'info': response}
#
# {
# "success": True,
# "payload": {
# "balances": [
# {
# "currency": "bat",
# "available": "0.00000000",
# "locked": "0.00000000",
# "total": "0.00000000",
# "pending_deposit": "0.00000000",
# "pending_withdrawal": "0.00000000"
# },
# {
# "currency": "bch",
# "available": "0.00000000",
# "locked": "0.00000000",
# "total": "0.00000000",
# "pending_deposit": "0.00000000",
# "pending_withdrawal": "0.00000000"
# },
# ],
# },
# }
#
payload = self.safe_value(response, 'payload', {})
balances = self.safe_value(payload, 'balances')
result = {
'info': response,
'timestamp': None,
'datetime': None,
}
for i in range(0, len(balances)):
balance = balances[i]
currencyId = self.safe_string(balance, 'currency')
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.48.67'
__version__ = '1.48.68'

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

Expand Down
34 changes: 32 additions & 2 deletions python/ccxt/bitso.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.48.67",
"version": "1.48.68",
"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
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ If that does not help, please, follow here: https://github.com/nodejs/node-gyp#o

All-in-one browser bundle (dependencies included), served from a CDN of your choice:

* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].67/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].67/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].68/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].68/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/[email protected].67/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].68/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down

0 comments on commit c025cae

Please sign in to comment.