Skip to content

Commit

Permalink
1.13.139
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed May 13, 2018
1 parent 6cbd90a commit 92c592c
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions build/ccxt.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.13.138'
const version = '1.13.139'

Exchange.ccxtVersion = version

Expand Down
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.13.138",
"version": "1.13.139",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
2 changes: 1 addition & 1 deletion php/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.13.138';
$version = '1.13.139';

// rounding mode
const TRUNCATE = 0;
Expand Down
8 changes: 4 additions & 4 deletions php/bithumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,16 @@ public function create_order ($symbol, $type, $side, $amount, $price = null, $pa
}

public function cancel_order ($id, $symbol = null, $params = array ()) {
$side = (is_array ($params) && array_key_exists ('side', $params));
if (!$side)
$side_in_params = (is_array ($params) && array_key_exists ('side', $params));
if (!$side_in_params)
throw new ExchangeError ($this->id . ' cancelOrder requires a $side parameter (sell or buy) and a $currency parameter');
$side = ($side === 'buy') ? 'purchase' : 'sales';
$currency = (is_array ($params) && array_key_exists ('currency', $params));
if (!$currency)
throw new ExchangeError ($this->id . ' cancelOrder requires a $currency parameter');
$side = ($params['side'] === 'buy') ? 'bid' : 'ask';
return $this->privatePostTradeCancel (array (
'order_id' => $id,
'type' => $params['side'],
'type' => $side,
'currency' => $params['currency'],
));
}
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.13.138'
__version__ = '1.13.139'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.13.138'
__version__ = '1.13.139'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

__version__ = '1.13.138'
__version__ = '1.13.139'

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

Expand Down
8 changes: 4 additions & 4 deletions python/ccxt/async/bithumb.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,16 @@ async def create_order(self, symbol, type, side, amount, price=None, params={}):
}

async def cancel_order(self, id, symbol=None, params={}):
side = ('side' in list(params.keys()))
if not side:
side_in_params = ('side' in list(params.keys()))
if not side_in_params:
raise ExchangeError(self.id + ' cancelOrder requires a side parameter(sell or buy) and a currency parameter')
side = 'purchase' if (side == 'buy') else 'sales'
currency = ('currency' in list(params.keys()))
if not currency:
raise ExchangeError(self.id + ' cancelOrder requires a currency parameter')
side = 'bid' if (params['side'] == 'buy') else 'ask'
return await self.privatePostTradeCancel({
'order_id': id,
'type': params['side'],
'type': side,
'currency': params['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.13.138'
__version__ = '1.13.139'

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

Expand Down
8 changes: 4 additions & 4 deletions python/ccxt/bithumb.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,16 @@ def create_order(self, symbol, type, side, amount, price=None, params={}):
}

def cancel_order(self, id, symbol=None, params={}):
side = ('side' in list(params.keys()))
if not side:
side_in_params = ('side' in list(params.keys()))
if not side_in_params:
raise ExchangeError(self.id + ' cancelOrder requires a side parameter(sell or buy) and a currency parameter')
side = 'purchase' if (side == 'buy') else 'sales'
currency = ('currency' in list(params.keys()))
if not currency:
raise ExchangeError(self.id + ' cancelOrder requires a currency parameter')
side = 'bid' if (params['side'] == 'buy') else 'ask'
return self.privatePostTradeCancel({
'order_id': id,
'type': params['side'],
'type': side,
'currency': params['currency'],
})

Expand Down

0 comments on commit 92c592c

Please sign in to comment.