Skip to content

Commit

Permalink
1.84.19
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed May 27, 2022
1 parent a68140f commit 4a4b2bb
Show file tree
Hide file tree
Showing 19 changed files with 55 additions and 65 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
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/[email protected].18/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].18/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].19/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].19/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].18/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].19/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 @@ -36,7 +36,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.84.18'
const version = '1.84.19'

Exchange.ccxtVersion = version

Expand Down
10 changes: 4 additions & 6 deletions dist/ccxt.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.84.18'
const version = '1.84.19'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -59817,8 +59817,6 @@ module.exports = class bybit extends Exchange {
await this.loadMarkets ();
const market = this.market (symbol);
symbol = market['symbol'];
amount = this.amountToPrecision (symbol, amount);
price = (price !== undefined) ? this.priceToPrecision (symbol, price) : undefined;
const isUsdcSettled = (market['settle'] === 'USDC');
if (market['spot']) {
return await this.createSpotOrder (symbol, type, side, amount, price, params);
Expand Down Expand Up @@ -59849,7 +59847,7 @@ module.exports = class bybit extends Exchange {
'side': this.capitalize (side),
'type': type.toUpperCase (), // limit, market or limit_maker
'timeInForce': 'GTC', // FOK, IOC
'qty': amount,
'qty': this.amountToPrecision (symbol, amount),
// 'orderLinkId': 'string', // unique client order id, max 36 characters
};
if (type === 'limit' || type === 'limit_maker') {
Expand Down Expand Up @@ -59907,7 +59905,7 @@ module.exports = class bybit extends Exchange {
'side': this.capitalize (side),
'orderType': this.capitalize (type), // limit or market
'timeInForce': 'GoodTillCancel', // ImmediateOrCancel, FillOrKill, PostOnly
'orderQty': amount,
'orderQty': this.amountToPrecision (symbol, amount),
// 'takeProfit': 123.45, // take profit price, only take effect upon opening the position
// 'stopLoss': 123.45, // stop loss price, only take effect upon opening the position
// 'reduceOnly': false, // reduce only, required for linear orders
Expand All @@ -59923,7 +59921,7 @@ module.exports = class bybit extends Exchange {
// 'mmp': false // market maker protection
};
if (price !== undefined) {
request['orderPrice'] = price;
request['orderPrice'] = this.priceToPrecision (symbol, price);
}
if (market['swap']) {
const stopPx = this.safeValue2 (params, 'stopPrice', 'triggerPrice');
Expand Down
6 changes: 3 additions & 3 deletions doc/readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2056,14 +2056,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/[email protected].18/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].18/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].19/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].19/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/[email protected].18/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].19/dist/ccxt.browser.js"></script>

Creates a global ``ccxt`` object:

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.84.18",
"version": "1.84.19",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
Expand Down Expand Up @@ -215,7 +215,7 @@
"ccex",
"C-CEX",
"cex",
"CEX.IO",
"cex.io",
"CHBTC",
"ChileBit",
"chilebit.net",
Expand Down Expand Up @@ -385,7 +385,7 @@
"fybse.se",
"fybsg.com",
"gatecoin.com",
"gate.io",
"Gate.io",
"gdax.com",
"gemini.com",
"getbtc.org",
Expand Down Expand Up @@ -502,8 +502,8 @@
"dsxglobal.com",
"bitvavo.com",
"Bitvavo",
"currency.com",
"waves.exchange",
"Currency.com",
"Waves.Exchange",
"phemex.com",
"Phemex",
"huobi.co.jp",
Expand Down Expand Up @@ -552,7 +552,7 @@
"Binance USDⓈ-M",
"eqonex.com",
"EQONEX",
"fmfw.io",
"FMFW.io",
"mexc.com",
"MEXC Global",
"bitrue.com",
Expand All @@ -566,8 +566,8 @@
"Zonda",
"futures.kucoin.com",
"KuCoin Futures",
"blockchain.com",
"crypto.com",
"Blockchain.com",
"Crypto.com",
"wazirx.com",
"WazirX",
"woo.org",
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.84.18';
$version = '1.84.19';

class Exchange extends \ccxt\Exchange {

const VERSION = '1.84.18';
const VERSION = '1.84.19';

public static $loop;
public static $kernel;
Expand Down
8 changes: 3 additions & 5 deletions php/async/bybit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2667,8 +2667,6 @@ public function create_order($symbol, $type, $side, $amount, $price = null, $par
yield $this->load_markets();
$market = $this->market($symbol);
$symbol = $market['symbol'];
$amount = $this->amount_to_precision($symbol, $amount);
$price = ($price !== null) ? $this->price_to_precision($symbol, $price) : null;
$isUsdcSettled = ($market['settle'] === 'USDC');
if ($market['spot']) {
return yield $this->create_spot_order($symbol, $type, $side, $amount, $price, $params);
Expand Down Expand Up @@ -2699,7 +2697,7 @@ public function create_spot_order($symbol, $type, $side, $amount, $price = null,
'side' => $this->capitalize($side),
'type' => strtoupper($type), // limit, $market or limit_maker
'timeInForce' => 'GTC', // FOK, IOC
'qty' => $amount,
'qty' => $this->amount_to_precision($symbol, $amount),
// 'orderLinkId' => 'string', // unique client $order id, max 36 characters
);
if ($type === 'limit' || $type === 'limit_maker') {
Expand Down Expand Up @@ -2757,7 +2755,7 @@ public function create_usdc_order($symbol, $type, $side, $amount, $price = null,
'side' => $this->capitalize($side),
'orderType' => $this->capitalize($type), // limit or $market
'timeInForce' => 'GoodTillCancel', // ImmediateOrCancel, FillOrKill, PostOnly
'orderQty' => $amount,
'orderQty' => $this->amount_to_precision($symbol, $amount),
// 'takeProfit' => 123.45, // take profit $price, only take effect upon opening the position
// 'stopLoss' => 123.45, // stop loss $price, only take effect upon opening the position
// 'reduceOnly' => false, // reduce only, required for linear orders
Expand All @@ -2773,7 +2771,7 @@ public function create_usdc_order($symbol, $type, $side, $amount, $price = null,
// 'mmp' => false // $market maker protection
);
if ($price !== null) {
$request['orderPrice'] = $price;
$request['orderPrice'] = $this->price_to_precision($symbol, $price);
}
if ($market['swap']) {
$stopPx = $this->safe_value_2($params, 'stopPrice', 'triggerPrice');
Expand Down
8 changes: 3 additions & 5 deletions php/bybit.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 @@ -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/[email protected].18/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].18/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/[email protected].19/dist/ccxt.browser.js
* unpkg: https://unpkg.com/[email protected].19/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].18/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].19/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.84.18'
__version__ = '1.84.19'

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

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.84.18'
__version__ = '1.84.19'

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

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.84.18'
__version__ = '1.84.19'

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

Expand Down
8 changes: 3 additions & 5 deletions python/ccxt/async_support/bybit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2569,8 +2569,6 @@ async def create_order(self, symbol, type, side, amount, price=None, params={}):
await self.load_markets()
market = self.market(symbol)
symbol = market['symbol']
amount = self.amount_to_precision(symbol, amount)
price = self.price_to_precision(symbol, price) if (price is not None) else None
isUsdcSettled = (market['settle'] == 'USDC')
if market['spot']:
return await self.create_spot_order(symbol, type, side, amount, price, params)
Expand All @@ -2596,7 +2594,7 @@ async def create_spot_order(self, symbol, type, side, amount, price=None, params
'side': self.capitalize(side),
'type': type.upper(), # limit, market or limit_maker
'timeInForce': 'GTC', # FOK, IOC
'qty': amount,
'qty': self.amount_to_precision(symbol, amount),
# 'orderLinkId': 'string', # unique client order id, max 36 characters
}
if type == 'limit' or type == 'limit_maker':
Expand Down Expand Up @@ -2647,7 +2645,7 @@ async def create_usdc_order(self, symbol, type, side, amount, price=None, params
'side': self.capitalize(side),
'orderType': self.capitalize(type), # limit or market
'timeInForce': 'GoodTillCancel', # ImmediateOrCancel, FillOrKill, PostOnly
'orderQty': amount,
'orderQty': self.amount_to_precision(symbol, amount),
# 'takeProfit': 123.45, # take profit price, only take effect upon opening the position
# 'stopLoss': 123.45, # stop loss price, only take effect upon opening the position
# 'reduceOnly': False, # reduce only, required for linear orders
Expand All @@ -2663,7 +2661,7 @@ async def create_usdc_order(self, symbol, type, side, amount, price=None, params
# 'mmp': False # market maker protection
}
if price is not None:
request['orderPrice'] = price
request['orderPrice'] = self.price_to_precision(symbol, price)
if market['swap']:
stopPx = self.safe_value_2(params, 'stopPrice', 'triggerPrice')
params = self.omit(params, ['stopPrice', 'triggerPrice'])
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.84.18'
__version__ = '1.84.19'

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

Expand Down
8 changes: 3 additions & 5 deletions python/ccxt/bybit.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4a4b2bb

Please sign in to comment.