Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ccxt-dev/ccxt
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Feb 27, 2018
2 parents a868e35 + efdb108 commit 586189a
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 21 deletions.
15 changes: 10 additions & 5 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.1230'
const version = '1.10.1231'

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.1230",
"version": "1.10.1231",
"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.1230';
$version = '1.10.1231';

abstract class Exchange {

Expand Down
11 changes: 8 additions & 3 deletions php/binance.php
Original file line number Diff line number Diff line change
Expand Up @@ -700,10 +700,15 @@ public function fetch_order ($id, $symbol = null, $params = array ()) {
throw new ExchangeError ($this->id . ' fetchOrder requires a $symbol param');
$this->load_markets();
$market = $this->market ($symbol);
$response = $this->privateGetOrder (array_merge (array (
$origClientOrderId = $this->safe_value($params, 'origClientOrderId');
$request = array (
'symbol' => $market['id'],
'orderId' => intval ($id),
), $params));
);
if ($origClientOrderId !== null)
$request['origClientOrderId'] = $origClientOrderId;
else
$request['orderId'] = intval ($id);
$response = $this->privateGetOrder (array_merge ($request, $params));
return $this->parse_order($response, $market);
}

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.1230'
__version__ = '1.10.1231'

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

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.1230'
__version__ = '1.10.1231'

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

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.1230'
__version__ = '1.10.1231'

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

Expand Down
11 changes: 8 additions & 3 deletions python/ccxt/async/binance.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,15 @@ async def fetch_order(self, id, symbol=None, params={}):
raise ExchangeError(self.id + ' fetchOrder requires a symbol param')
await self.load_markets()
market = self.market(symbol)
response = await self.privateGetOrder(self.extend({
origClientOrderId = self.safe_value(params, 'origClientOrderId')
request = {
'symbol': market['id'],
'orderId': int(id),
}, params))
}
if origClientOrderId is not None:
request['origClientOrderId'] = origClientOrderId
else:
request['orderId'] = int(id)
response = await self.privateGetOrder(self.extend(request, params))
return self.parse_order(response, market)

async def fetch_orders(self, symbol=None, since=None, limit=None, params={}):
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.1230'
__version__ = '1.10.1231'

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

Expand Down
11 changes: 8 additions & 3 deletions python/ccxt/binance.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,15 @@ def fetch_order(self, id, symbol=None, params={}):
raise ExchangeError(self.id + ' fetchOrder requires a symbol param')
self.load_markets()
market = self.market(symbol)
response = self.privateGetOrder(self.extend({
origClientOrderId = self.safe_value(params, 'origClientOrderId')
request = {
'symbol': market['id'],
'orderId': int(id),
}, params))
}
if origClientOrderId is not None:
request['origClientOrderId'] = origClientOrderId
else:
request['orderId'] = int(id)
response = self.privateGetOrder(self.extend(request, params))
return self.parse_order(response, market)

def fetch_orders(self, symbol=None, since=None, limit=None, params={}):
Expand Down

0 comments on commit 586189a

Please sign in to comment.