Skip to content

Commit

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

Exchange.ccxtVersion = version

Expand Down
72 changes: 36 additions & 36 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.45.42'
const version = '1.45.43'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -140156,8 +140156,8 @@ module.exports = class xena extends Exchange {
'price': pricePrecision,
'amount': 0,
};
const maxCost = this.safeFloat (market, 'maxOrderQty');
const minCost = this.safeFloat (market, 'minOrderQuantity');
const maxCost = this.safeNumber (market, 'maxOrderQty');
const minCost = this.safeNumber (market, 'minOrderQuantity');
const limits = {
'amount': {
'min': undefined,
Expand Down Expand Up @@ -140242,7 +140242,7 @@ module.exports = class xena extends Exchange {
'info': currency,
'name': name,
'active': active,
'fee': this.safeFloat (withdraw, 'commission'),
'fee': this.safeNumber (withdraw, 'commission'),
'precision': precision,
'limits': {
'amount': {
Expand All @@ -140258,7 +140258,7 @@ module.exports = class xena extends Exchange {
'max': undefined,
},
'withdraw': {
'min': this.safeFloat (withdraw, 'minAmount'),
'min': this.safeNumber (withdraw, 'minAmount'),
'max': undefined,
},
},
Expand Down Expand Up @@ -140286,8 +140286,8 @@ module.exports = class xena extends Exchange {
const timestamp = this.milliseconds ();
const marketId = this.safeString (ticker, 'symbol');
const symbol = this.safeSymbol (marketId, market);
const last = this.safeFloat (ticker, 'lastPx');
const open = this.safeFloat (ticker, 'firstPx');
const last = this.safeNumber (ticker, 'lastPx');
const open = this.safeNumber (ticker, 'firstPx');
let percentage = undefined;
let change = undefined;
let average = undefined;
Expand All @@ -140298,18 +140298,18 @@ module.exports = class xena extends Exchange {
percentage = change / open * 100;
}
}
const buyVolume = this.safeFloat (ticker, 'buyVolume');
const sellVolume = this.safeFloat (ticker, 'sellVolume');
const buyVolume = this.safeNumber (ticker, 'buyVolume');
const sellVolume = this.safeNumber (ticker, 'sellVolume');
const baseVolume = this.sum (buyVolume, sellVolume);
return {
'symbol': symbol,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'high': this.safeFloat (ticker, 'highPx'),
'low': this.safeFloat (ticker, 'lowPx'),
'bid': this.safeFloat (ticker, 'bid'),
'high': this.safeNumber (ticker, 'highPx'),
'low': this.safeNumber (ticker, 'lowPx'),
'bid': this.safeNumber (ticker, 'bid'),
'bidVolume': undefined,
'ask': this.safeFloat (ticker, 'ask'),
'ask': this.safeNumber (ticker, 'ask'),
'askVolume': undefined,
'vwap': undefined,
'open': open,
Expand Down Expand Up @@ -140486,8 +140486,8 @@ module.exports = class xena extends Exchange {
const currencyId = this.safeString (balance, 'currency');
const code = this.safeCurrencyCode (currencyId);
const account = this.account ();
account['free'] = this.safeFloat (balance, 'available');
account['used'] = this.safeFloat (balance, 'onHold');
account['free'] = this.safeNumber (balance, 'available');
account['used'] = this.safeNumber (balance, 'onHold');
result[code] = account;
}
return this.parseBalance (result);
Expand Down Expand Up @@ -140544,20 +140544,20 @@ module.exports = class xena extends Exchange {
const orderId = this.safeString (trade, 'orderId');
const marketId = this.safeString (trade, 'symbol');
const symbol = this.safeSymbol (marketId, market);
const price = this.safeFloat2 (trade, 'lastPx', 'mdEntryPx');
const amount = this.safeFloat2 (trade, 'lastQty', 'mdEntrySize');
const price = this.safeNumber2 (trade, 'lastPx', 'mdEntryPx');
const amount = this.safeNumber2 (trade, 'lastQty', 'mdEntrySize');
let cost = undefined;
if (price !== undefined) {
if (amount !== undefined) {
cost = price * amount;
}
}
let fee = undefined;
const feeCost = this.safeFloat (trade, 'commission');
const feeCost = this.safeNumber (trade, 'commission');
if (feeCost !== undefined) {
const feeCurrencyId = this.safeString (trade, 'commCurrency');
const feeCurrencyCode = this.safeCurrencyCode (feeCurrencyId);
const feeRate = this.safeFloat (trade, 'commRate');
const feeRate = this.safeNumber (trade, 'commRate');
fee = {
'cost': feeCost,
'rate': feeRate,
Expand Down Expand Up @@ -140672,15 +140672,15 @@ module.exports = class xena extends Exchange {
//
const transactTime = this.safeInteger (ohlcv, 'transactTime');
const timestamp = parseInt (transactTime / 1000000);
const buyVolume = this.safeFloat (ohlcv, 'buyVolume');
const sellVolume = this.safeFloat (ohlcv, 'sellVolume');
const buyVolume = this.safeNumber (ohlcv, 'buyVolume');
const sellVolume = this.safeNumber (ohlcv, 'sellVolume');
const volume = this.sum (buyVolume, sellVolume);
return [
timestamp,
this.safeFloat (ohlcv, 'firstPx'),
this.safeFloat (ohlcv, 'highPx'),
this.safeFloat (ohlcv, 'lowPx'),
this.safeFloat (ohlcv, 'lastPx'),
this.safeNumber (ohlcv, 'firstPx'),
this.safeNumber (ohlcv, 'highPx'),
this.safeNumber (ohlcv, 'lowPx'),
this.safeNumber (ohlcv, 'lastPx'),
volume,
];
}
Expand Down Expand Up @@ -140805,10 +140805,10 @@ module.exports = class xena extends Exchange {
const status = this.parseOrderStatus (this.safeString (order, 'ordStatus'));
const marketId = this.safeString (order, 'symbol');
const symbol = this.safeSymbol (marketId, market);
const price = this.safeFloat (order, 'price');
const amount = this.safeFloat (order, 'orderQty');
const filled = this.safeFloat (order, 'cumQty');
const remaining = this.safeFloat (order, 'leavesQty');
const price = this.safeNumber (order, 'price');
const amount = this.safeNumber (order, 'orderQty');
const filled = this.safeNumber (order, 'cumQty');
const remaining = this.safeNumber (order, 'leavesQty');
let side = this.safeStringLower (order, 'side');
if (side === '1') {
side = 'buy';
Expand Down Expand Up @@ -140900,7 +140900,7 @@ module.exports = class xena extends Exchange {
request['price'] = this.priceToPrecision (symbol, price);
}
if ((type === 'stop') || (type === 'stop-limit')) {
const stopPx = this.safeFloat (params, 'stopPx');
const stopPx = this.safeNumber (params, 'stopPx');
if (stopPx === undefined) {
throw new InvalidOrder (this.id + ' createOrder() requires a stopPx param for order type ' + type);
}
Expand Down Expand Up @@ -140979,12 +140979,12 @@ module.exports = class xena extends Exchange {
if (price !== undefined) {
request['price'] = this.priceToPrecision (symbol, price);
}
const stopPx = this.safeFloat (params, 'stopPx');
const stopPx = this.safeNumber (params, 'stopPx');
if (stopPx !== undefined) {
request['stopPx'] = this.priceToPrecision (symbol, stopPx);
params = this.omit (params, 'stopPx');
}
const capPrice = this.safeFloat (params, 'capPrice');
const capPrice = this.safeNumber (params, 'capPrice');
if (capPrice !== undefined) {
request['capPrice'] = this.priceToPrecision (symbol, capPrice);
params = this.omit (params, 'capPrice');
Expand Down Expand Up @@ -141339,7 +141339,7 @@ module.exports = class xena extends Exchange {
const address = this.safeString (transaction, 'address');
const addressFrom = undefined;
const addressTo = address;
const amount = this.safeFloat (transaction, 'amount');
const amount = this.safeNumber (transaction, 'amount');
const status = this.parseTransactionStatus (this.safeString (transaction, 'status'));
const fee = undefined;
return {
Expand Down Expand Up @@ -141436,7 +141436,7 @@ module.exports = class xena extends Exchange {
const referenceAccount = undefined;
const type = this.parseLedgerEntryType (this.safeString (item, 'kind'));
const code = this.safeCurrencyCode (this.safeString (item, 'currency'), currency);
let amount = this.safeFloat (item, 'amount');
let amount = this.safeNumber (item, 'amount');
if (amount < 0) {
direction = 'out';
amount = Math.abs (amount);
Expand All @@ -141448,11 +141448,11 @@ module.exports = class xena extends Exchange {
timestamp = parseInt (timestamp / 1000000);
}
const fee = {
'cost': this.safeFloat (item, 'commission'),
'cost': this.safeNumber (item, 'commission'),
'currency': code,
};
const before = undefined;
const after = this.safeFloat (item, 'balance');
const after = this.safeNumber (item, 'balance');
const status = 'ok';
return {
'info': item,
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.45.42",
"version": "1.45.43",
"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/async/base/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

include 'throttle.php';

$version = '1.45.42';
$version = '1.45.43';

class Exchange extends \ccxt\Exchange {

const VERSION = '1.45.42';
const VERSION = '1.45.43';

public static $loop;
public static $kernel;
Expand Down
Loading

0 comments on commit 4c30e9e

Please sign in to comment.