Skip to content

Commit

Permalink
1.10.881
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 28, 2018
1 parent 165e882 commit 6b384c7
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 44 deletions.
41 changes: 20 additions & 21 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.10.880'
const version = '1.10.881'

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.10.880",
"version": "1.10.881",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ 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.10.880';
$version = '1.10.881';

abstract class Exchange {

Expand Down
32 changes: 16 additions & 16 deletions php/lykke.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ public function create_order ($symbol, $type, $side, $amount, $price = null, $pa
'OrderAction' => $this->capitalize ($side),
'Volume' => $amount,
);
if ($type == 'market') {
$query['Asset'] = ($side == 'buy') ? $market['base'] : $market['quote'];
} else if ($type == 'limit') {
if ($type === 'market') {
$query['Asset'] = ($side === 'buy') ? $market['base'] : $market['quote'];
} else if ($type === 'limit') {
$query['Price'] = $price;
}
$method = 'privatePostOrders' . $this->capitalize ($type);
Expand Down Expand Up @@ -209,23 +209,23 @@ public function fetch_ticker ($symbol, $params = array ()) {
}

public function parse_order_status ($status) {
if ($status == 'Pending') {
if ($status === 'Pending') {
return 'open';
} else if ($status == 'InOrderBook') {
} else if ($status === 'InOrderBook') {
return 'open';
} else if ($status == 'Processing') {
} else if ($status === 'Processing') {
return 'open';
} else if ($status == 'Matched') {
} else if ($status === 'Matched') {
return 'closed';
} else if ($status == 'Cancelled') {
} else if ($status === 'Cancelled') {
return 'canceled';
} else if ($status == 'NotEnoughFunds') {
} else if ($status === 'NotEnoughFunds') {
return 'NotEnoughFunds';
} else if ($status == 'NoLiquidity') {
} else if ($status === 'NoLiquidity') {
return 'NoLiquidity';
} else if ($status == 'UnknownAsset') {
} else if ($status === 'UnknownAsset') {
return 'UnknownAsset';
} else if ($status == 'LeadToNegativeSpread') {
} else if ($status === 'LeadToNegativeSpread') {
return 'LeadToNegativeSpread';
}
return $status;
Expand Down Expand Up @@ -341,11 +341,11 @@ public function parse_bid_ask ($bidask, $priceKey = 0, $amountKey = 1) {
public function sign ($path, $api = 'public', $method = 'GET', $params = array (), $headers = null, $body = null) {
$url = $this->urls['api'][$api] . '/' . $this->implode_params($path, $params);
$query = $this->omit ($params, $this->extract_params($path));
if ($api == 'public') {
if ($api === 'public') {
if ($query)
$url .= '?' . $this->urlencode ($query);
} else if ($api == 'private') {
if ($method == 'GET')
} else if ($api === 'private') {
if ($method === 'GET')
if ($query)
$url .= '?' . $this->urlencode ($query);
$this->check_required_credentials();
Expand All @@ -354,7 +354,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
'Accept' => 'application/json',
'Content-Type' => 'application/json',
);
if ($method == 'POST')
if ($method === 'POST')
if ($params)
$body = $this->json ($params);
}
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

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

__version__ = '1.10.880'
__version__ = '1.10.881'

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

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.10.880'
__version__ = '1.10.881'

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

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.10.880'
__version__ = '1.10.881'

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

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.10.880'
__version__ = '1.10.881'

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

Expand Down

0 comments on commit 6b384c7

Please sign in to comment.