Navigation Menu

Skip to content

Commit

Permalink
1.40.79
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 19, 2021
1 parent 4fa8a8f commit 06a1481
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 24 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -225,13 +225,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.40.78/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.40.78/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.40.79/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.40.79/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.40.78/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.40.79/dist/ccxt.browser.js"></script>
```

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

const version = '1.40.78'
const version = '1.40.79'

Exchange.ccxtVersion = version

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

const version = '1.40.78'
const version = '1.40.79'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -31662,7 +31662,16 @@ module.exports = class bittrex extends Exchange {
const isCeilingMarket = (uppercaseType === 'CEILING_MARKET');
const isCeilingOrder = isCeilingLimit || isCeilingMarket;
if (isCeilingOrder) {
request['ceiling'] = this.priceToPrecision (symbol, price);
let cost = this.safeFloat2 (params, 'ceiling', 'cost');
params = this.omit (params, [ 'ceiling', 'cost' ]);
if (cost === undefined) {
if (price === undefined) {
cost = amount;
} else {
cost = amount * price;
}
}
request['ceiling'] = this.costToPrecision (symbol, cost);
// bittrex only accepts IMMEDIATE_OR_CANCEL or FILL_OR_KILL for ceiling orders
request['timeInForce'] = 'IMMEDIATE_OR_CANCEL';
} else {
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.40.78",
"version": "1.40.79",
"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
Expand Up @@ -36,7 +36,7 @@
use Elliptic\EdDSA;
use BN\BN;

$version = '1.40.78';
$version = '1.40.79';

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

class Exchange {

const VERSION = '1.40.78';
const VERSION = '1.40.79';

private static $base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
private static $base58_encoder = null;
Expand Down
11 changes: 10 additions & 1 deletion php/bittrex.php
Expand Up @@ -767,7 +767,16 @@ public function create_order($symbol, $type, $side, $amount, $price = null, $par
$isCeilingMarket = ($uppercaseType === 'CEILING_MARKET');
$isCeilingOrder = $isCeilingLimit || $isCeilingMarket;
if ($isCeilingOrder) {
$request['ceiling'] = $this->price_to_precision($symbol, $price);
$cost = $this->safe_float_2($params, 'ceiling', 'cost');
$params = $this->omit($params, array( 'ceiling', 'cost' ));
if ($cost === null) {
if ($price === null) {
$cost = $amount;
} else {
$cost = $amount * $price;
}
}
$request['ceiling'] = $this->cost_to_precision($symbol, $cost);
// bittrex only accepts IMMEDIATE_OR_CANCEL or FILL_OR_KILL for ceiling orders
$request['timeInForce'] = 'IMMEDIATE_OR_CANCEL';
} else {
Expand Down
6 changes: 3 additions & 3 deletions python/README.md
Expand Up @@ -225,13 +225,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.40.78/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.40.78/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.40.79/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.40.79/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.40.78/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.40.79/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.40.78'
__version__ = '1.40.79'

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

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

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

__version__ = '1.40.78'
__version__ = '1.40.79'

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

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

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

__version__ = '1.40.78'
__version__ = '1.40.79'

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

Expand Down
9 changes: 8 additions & 1 deletion python/ccxt/async_support/bittrex.py
Expand Up @@ -748,7 +748,14 @@ async def create_order(self, symbol, type, side, amount, price=None, params={}):
isCeilingMarket = (uppercaseType == 'CEILING_MARKET')
isCeilingOrder = isCeilingLimit or isCeilingMarket
if isCeilingOrder:
request['ceiling'] = self.price_to_precision(symbol, price)
cost = self.safe_float_2(params, 'ceiling', 'cost')
params = self.omit(params, ['ceiling', 'cost'])
if cost is None:
if price is None:
cost = amount
else:
cost = amount * price
request['ceiling'] = self.cost_to_precision(symbol, cost)
# bittrex only accepts IMMEDIATE_OR_CANCEL or FILL_OR_KILL for ceiling orders
request['timeInForce'] = 'IMMEDIATE_OR_CANCEL'
else:
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.40.78'
__version__ = '1.40.79'

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

Expand Down
9 changes: 8 additions & 1 deletion python/ccxt/bittrex.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.40.78",
"version": "1.40.79",
"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 @@ -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/ccxt@1.40.78/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.40.78/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.40.79/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.40.79/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.40.78/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.40.79/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down

0 comments on commit 06a1481

Please sign in to comment.