Skip to content

Commit

Permalink
1.10.1209
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Feb 25, 2018
1 parent e17b758 commit 67243fb
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 9 deletions.
16 changes: 14 additions & 2 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.1208'
const version = '1.10.1209'

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

abstract class Exchange {

Expand Down
12 changes: 12 additions & 0 deletions php/cobinhood.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,18 @@ public function fetch_order ($id, $symbol = null, $params = array ()) {
return $this->parse_order($response['result']['order']);
}

public function fetch_open_orders ($symbol = null, $since = null, $limit = null, $params = array ()) {
$this->load_markets();
$market = null;
if ($symbol !== null)
$market = $this->market ($symbol);
$result = $this->privateGetTradingOrders ($params);
$orders = $this->parse_orders($result['result']['orders'], $market, $since, $limit);
if ($symbol !== null)
return $this->filter_orders_by_symbol($orders, $symbol);
return $orders;
}

public function fetch_order_trades ($id, $symbol = null, $params = array ()) {
$this->load_markets();
$response = $this->privateGetTradingOrdersOrderIdTrades (array_merge (array (
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.1208'
__version__ = '1.10.1209'

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

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.1208'
__version__ = '1.10.1209'

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

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.1208'
__version__ = '1.10.1209'

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

Expand Down
11 changes: 11 additions & 0 deletions python/ccxt/async/cobinhood.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,17 @@ async def fetch_order(self, id, symbol=None, params={}):
}, params))
return self.parse_order(response['result']['order'])

async def fetch_open_orders(self, symbol=None, since=None, limit=None, params={}):
await self.load_markets()
market = None
if symbol is not None:
market = self.market(symbol)
result = await self.privateGetTradingOrders(params)
orders = self.parse_orders(result['result']['orders'], market, since, limit)
if symbol is not None:
return self.filter_orders_by_symbol(orders, symbol)
return orders

async def fetch_order_trades(self, id, symbol=None, params={}):
await self.load_markets()
response = await self.privateGetTradingOrdersOrderIdTrades(self.extend({
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.1208'
__version__ = '1.10.1209'

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

Expand Down
11 changes: 11 additions & 0 deletions python/ccxt/cobinhood.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,17 @@ def fetch_order(self, id, symbol=None, params={}):
}, params))
return self.parse_order(response['result']['order'])

def fetch_open_orders(self, symbol=None, since=None, limit=None, params={}):
self.load_markets()
market = None
if symbol is not None:
market = self.market(symbol)
result = self.privateGetTradingOrders(params)
orders = self.parse_orders(result['result']['orders'], market, since, limit)
if symbol is not None:
return self.filter_orders_by_symbol(orders, symbol)
return orders

def fetch_order_trades(self, id, symbol=None, params={}):
self.load_markets()
response = self.privateGetTradingOrdersOrderIdTrades(self.extend({
Expand Down

0 comments on commit 67243fb

Please sign in to comment.