Skip to content

Commit

Permalink
pep8 e265
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Sep 28, 2017
1 parent 56b8643 commit 1ec923e
Show file tree
Hide file tree
Showing 24 changed files with 409 additions and 542 deletions.
255 changes: 121 additions & 134 deletions build/ccxt.php

Large diffs are not rendered by default.

69 changes: 28 additions & 41 deletions ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3961,20 +3961,20 @@ var bithumb = {

createOrder (symbol, type, side, amount, price = undefined, params = {}) {
throw new NotSupported (this.id + ' private API not implemented yet');
// let prefix = '';
// if (type == 'market')
// prefix = 'market_';
// let order = {
// 'pair': this.marketId (symbol),
// 'quantity': amount,
// 'price': price || 0,
// 'type': prefix + side,
// };
// let response = await this.privatePostOrderCreate (this.extend (order, params));
// return {
// 'info': response,
// 'id': response['order_id'].toString (),
// };
// let prefix = '';
// if (type == 'market')
// prefix = 'market_';
// let order = {
// 'pair': this.marketId (symbol),
// 'quantity': amount,
// 'price': price || 0,
// 'type': prefix + side,
// };
// let response = await this.privatePostOrderCreate (this.extend (order, params));
// return {
// 'info': response,
// 'id': response['order_id'].toString (),
// };
},

cancelOrder (id, params = {}) {
Expand Down Expand Up @@ -13018,11 +13018,6 @@ var huobicny = extend (huobi1, {
'www': 'https://www.huobi.com',
'doc': 'https://github.com/huobiapi/API_Docs/wiki/REST_api_reference',
},
// 'markets': {
// 'ETH/CNY': { 'id': 'ethcny', 'symbol': 'ETH/CNY', 'base': 'ETH', 'quote': 'CNY' },
// 'ETC/CNY': { 'id': 'etccny', 'symbol': 'ETC/CNY', 'base': 'ETC', 'quote': 'CNY' },
// 'BCH/CNY': { 'id': 'bcccny', 'symbol': 'BCH/CNY', 'base': 'BCH', 'quote': 'CNY' },
// },
})

//-----------------------------------------------------------------------------
Expand All @@ -13039,12 +13034,6 @@ var huobipro = extend (huobi1, {
'www': 'https://www.huobi.pro',
'doc': 'https://github.com/huobiapi/API_Docs/wiki/REST_api_reference',
},
// 'markets': {
// 'ETH/BTC': { 'id': 'ethbtc', 'symbol': 'ETH/BTC', 'base': 'ETH', 'quote': 'BTC' },
// 'ETC/BTC': { 'id': 'etccny', 'symbol': 'ETC/BTC', 'base': 'ETC', 'quote': 'BTC' },
// 'LTC/BTC': { 'id': 'ltcbtc', 'symbol': 'LTC/BTC', 'base': 'LTC', 'quote': 'BTC' },
// 'BCH/BTC': { 'id': 'bcccny', 'symbol': 'BCH/BTC', 'base': 'BCH', 'quote': 'BTC' },
// },
})

//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -19366,11 +19355,10 @@ var zaif = {
async fetchOpenOrders (symbol = undefined, params = {}) {
await this.loadMarkets ();
let market = undefined;
// let request = {
// 'is_token': false,
// 'is_token_both': false,
// };
let request = {};
let request = {
// 'is_token': false,
// 'is_token_both': false,
};
if (symbol) {
market = this.market (symbol);
request['currency_pair'] = market['id'];
Expand All @@ -19382,17 +19370,16 @@ var zaif = {
async fetchClosedOrders (symbol = undefined, params = {}) {
await this.loadMarkets ();
let market = undefined;
// let request = {
// 'from': 0,
// 'count': 1000,
// 'from_id': 0,
// 'end_id': 1000,
// 'order': 'DESC',
// 'since': 1503821051,
// 'end': 1503821051,
// 'is_token': false,
// };
let request = {};
let request = {
// 'from': 0,
// 'count': 1000,
// 'from_id': 0,
// 'end_id': 1000,
// 'order': 'DESC',
// 'since': 1503821051,
// 'end': 1503821051,
// 'is_token': false,
};
if (symbol) {
market = this.market (symbol);
request['currency_pair'] = market['id'];
Expand Down
2 changes: 1 addition & 1 deletion ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ function __call ($function, $params) {
}
}

//=============================================================================
// ============================================================================

// This comment is a placeholder for transpiled derived exchange implementations
// See https://github.com/kroitor/ccxt/blob/master/CONTRIBUTING.md for details
Expand Down
2 changes: 1 addition & 1 deletion ccxt/async/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ async def fetch_partial_balance(self, part, params={}):
balance = await self.fetch_balance(params)
return balance[part]

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

0 comments on commit 1ec923e

Please sign in to comment.