Skip to content

Commit

Permalink
pep8 e222 fixes ccxt#244
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Sep 28, 2017
1 parent 36ba64e commit c156c74
Show file tree
Hide file tree
Showing 10 changed files with 171 additions and 170 deletions.
6 changes: 3 additions & 3 deletions build/ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -8741,7 +8741,7 @@ public function fetch_balance ($params = array ()) {

public function fetch_order_book ($symbol, $params = array ()) {
$this->load_markets ();
$orderbook = $this->publicGetOrderBookPair (array_merge (array (
$orderbook = $this->publicGetOrderBookPair (array_merge (array (
'pair' => $this->market_id ($symbol),
), $params));
$timestamp = $orderbook['timestamp'] * 1000;
Expand Down Expand Up @@ -9241,7 +9241,7 @@ public function fetch_balance ($params = array ()) {
public function fetch_order_book ($symbol, $params = array ()) {
if ($symbol != 'BTC/JPY')
throw new NotSupported ($this->id . ' fetchOrderBook () supports BTC/JPY only');
$orderbook = $this->publicGetOrderBooks ($params);
$orderbook = $this->publicGetOrderBooks ($params);
return $this->parse_order_book ($orderbook);
}

Expand Down Expand Up @@ -15662,7 +15662,7 @@ public function request ($path, $api = 'public', $method = 'GET', $params = arra
$url = $this->urls['api'][$api];
$query = $this->omit ($params, $this->extract_params ($path));
if ($api == 'public') {
$url .= '/' . $this->version . '/' . $this->implode_params ($path, $params);
$url .= '/' . $this->version . '/' . $this->implode_params ($path, $params);
if ($query)
$url .= '?' . $this->urlencode ($query);
} else {
Expand Down
6 changes: 3 additions & 3 deletions ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -8396,7 +8396,7 @@ var cex = {

async fetchOrderBook (symbol, params = {}) {
await this.loadMarkets ();
let orderbook = await this.publicGetOrderBookPair (this.extend ({
let orderbook = await this.publicGetOrderBookPair (this.extend ({
'pair': this.marketId (symbol),
}, params));
let timestamp = orderbook['timestamp'] * 1000;
Expand Down Expand Up @@ -8882,7 +8882,7 @@ var coincheck = {
async fetchOrderBook (symbol, params = {}) {
if (symbol != 'BTC/JPY')
throw new NotSupported (this.id + ' fetchOrderBook () supports BTC/JPY only');
let orderbook = await this.publicGetOrderBooks (params);
let orderbook = await this.publicGetOrderBooks (params);
return this.parseOrderBook (orderbook);
},

Expand Down Expand Up @@ -15179,7 +15179,7 @@ var liqui = {
let url = this.urls['api'][api];
let query = this.omit (params, this.extractParams (path));
if (api == 'public') {
url += '/' + this.version + '/' + this.implodeParams (path, params);
url += '/' + this.version + '/' + this.implodeParams (path, params);
if (Object.keys (query).length)
url += '?' + this.urlencode (query);
} else {
Expand Down
4 changes: 2 additions & 2 deletions ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@

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

from ccxt.exchange import * # noqa: F403
from ccxt.exchange import * # noqa: F403
from ccxt.exchanges import * # noqa: F403

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

__all__ = exchange.__all__ + exchanges + errors.__all__
__all__ = exchange.__all__ + exchanges + errors.__all__

#==============================================================================
Loading

0 comments on commit c156c74

Please sign in to comment.