Skip to content

Commit

Permalink
1.9.231
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Oct 23, 2017
1 parent e24e264 commit 9277e0f
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 7 deletions.
15 changes: 13 additions & 2 deletions build/ccxt.browser.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion build/ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DDoSProtection extends NetworkError {}
class RequestTimeout extends NetworkError {}
class ExchangeNotAvailable extends NetworkError {}

$version = '1.9.230';
$version = '1.9.231';

$curl_errors = array (
0 => 'CURLE_OK',
Expand Down Expand Up @@ -4618,6 +4618,17 @@ public function fetch_trades ($symbol, $params = array ()) {
return $this->parse_trades ($response, $market);
}

public function parse_ohlcv ($ohlcv, $market = null, $timeframe = '1m', $since = null, $limit = null) {
return [
$ohlcv[0],
$ohlcv[1],
$ohlcv[3],
$ohlcv[4],
$ohlcv[2],
$ohlcv[5],
];
}

public function fetch_ohlcv ($symbol, $timeframe = '1m', $since = null, $limit = null, $params = array ()) {
$market = $this->market ($symbol);
$request = array (
Expand Down
2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const CryptoJS = require ('crypto-js')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.9.230'
const version = '1.9.231'

//-----------------------------------------------------------------------------
// platform detection
Expand Down
2 changes: 1 addition & 1 deletion ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DDoSProtection extends NetworkError {}
class RequestTimeout extends NetworkError {}
class ExchangeNotAvailable extends NetworkError {}

$version = '1.9.230';
$version = '1.9.231';

$curl_errors = array (
0 => 'CURLE_OK',
Expand Down
10 changes: 10 additions & 0 deletions ccxt/async/exchanges.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions ccxt/exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -3261,6 +3261,16 @@ def fetch_trades(self, symbol, params={}):
}, params))
return self.parse_trades(response, market)

def parse_ohlcv(self, ohlcv, market=None, timeframe='1m', since=None, limit=None):
return [
ohlcv[0],
ohlcv[1],
ohlcv[3],
ohlcv[4],
ohlcv[2],
ohlcv[5],
]

def fetch_ohlcv(self, symbol, timeframe='1m', since=None, limit=None, params={}):
market = self.market(symbol)
request = {
Expand Down
2 changes: 1 addition & 1 deletion ccxt/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
SOFTWARE.
"""

__version__ = '1.9.230'
__version__ = '1.9.231'
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.9.230",
"version": "1.9.231",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 85+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down

0 comments on commit 9277e0f

Please sign in to comment.