Skip to content

Commit 0bf5726

Browse files
author
Travis CI
committed
1.11.126
[ci skip]
1 parent ffcbad1 commit 0bf5726

35 files changed

Lines changed: 189 additions & 93 deletions

build/ccxt.browser.js

Lines changed: 47 additions & 23 deletions
Large diffs are not rendered by default.

ccxt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
3737
//-----------------------------------------------------------------------------
3838
// this is updated by vss.js when building
3939

40-
const version = '1.11.125'
40+
const version = '1.11.126'
4141

4242
Exchange.ccxtVersion = version
4343

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ccxt",
3-
"version": "1.11.125",
3+
"version": "1.11.126",
44
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges",
55
"main": "./ccxt.js",
66
"unpkg": "build/ccxt.browser.js",

php/Exchange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
namespace ccxt;
3232

33-
$version = '1.11.125';
33+
$version = '1.11.126';
3434

3535
abstract class Exchange {
3636

php/btctradeua.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ public function fetch_ticker ($symbol, $params = array ()) {
142142
'high' => null,
143143
'low' => null,
144144
'bid' => null,
145+
'bidVolume' => null,
145146
'ask' => null,
147+
'askVolume' => null,
146148
'vwap' => null,
147149
'open' => null,
148150
'close' => null,

php/btcturk.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,22 @@ public function parse_ticker ($ticker, $market = null) {
9191
if ($market)
9292
$symbol = $market['symbol'];
9393
$timestamp = intval ($ticker['timestamp']) * 1000;
94+
$last = floatval ($ticker['last']);
9495
return array (
9596
'symbol' => $symbol,
9697
'timestamp' => $timestamp,
9798
'datetime' => $this->iso8601 ($timestamp),
9899
'high' => floatval ($ticker['high']),
99100
'low' => floatval ($ticker['low']),
100101
'bid' => floatval ($ticker['bid']),
102+
'bidVolume' => null,
101103
'ask' => floatval ($ticker['ask']),
104+
'askVolume' => null,
102105
'vwap' => null,
103106
'open' => floatval ($ticker['open']),
104-
'close' => null,
105-
'first' => null,
106-
'last' => floatval ($ticker['last']),
107+
'close' => $last,
108+
'last' => $last,
109+
'previousClose' => null,
107110
'change' => null,
108111
'percentage' => null,
109112
'average' => floatval ($ticker['average']),

php/cex.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,14 @@ public function parse_ticker ($ticker, $market = null) {
235235
'high' => $high,
236236
'low' => $low,
237237
'bid' => $bid,
238+
'bidVolume' => null,
238239
'ask' => $ask,
240+
'askVolume' => null,
239241
'vwap' => null,
240242
'open' => null,
241-
'close' => null,
242-
'first' => null,
243+
'close' => $last,
243244
'last' => $last,
245+
'previousClose' => null,
244246
'change' => null,
245247
'percentage' => null,
246248
'average' => null,

php/coincheck.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,22 @@ public function fetch_ticker ($symbol, $params = array ()) {
125125
throw new NotSupported ($this->id . ' fetchTicker () supports BTC/JPY only');
126126
$ticker = $this->publicGetTicker ($params);
127127
$timestamp = $ticker['timestamp'] * 1000;
128+
$last = floatval ($ticker['last']);
128129
return array (
129130
'symbol' => $symbol,
130131
'timestamp' => $timestamp,
131132
'datetime' => $this->iso8601 ($timestamp),
132133
'high' => floatval ($ticker['high']),
133134
'low' => floatval ($ticker['low']),
134135
'bid' => floatval ($ticker['bid']),
136+
'bidVolume' => null,
135137
'ask' => floatval ($ticker['ask']),
138+
'askVolume' => null,
136139
'vwap' => null,
137140
'open' => null,
138-
'close' => null,
139-
'first' => null,
140-
'last' => floatval ($ticker['last']),
141+
'close' => $last,
142+
'last' => $last,
143+
'previousClose' => null,
141144
'change' => null,
142145
'percentage' => null,
143146
'average' => null,

php/coinegg.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,19 +205,22 @@ public function fetch_markets () {
205205
public function parse_ticker ($ticker, $market = null) {
206206
$symbol = $market['symbol'];
207207
$timestamp = $this->milliseconds ();
208+
$last = floatval ($ticker['last']);
208209
return array (
209210
'symbol' => $symbol,
210211
'timestamp' => $timestamp,
211212
'datetime' => $this->iso8601 ($timestamp),
212213
'high' => floatval ($ticker['high']),
213214
'low' => floatval ($ticker['low']),
214215
'bid' => floatval ($ticker['buy']),
216+
'bidVolume' => null,
215217
'ask' => floatval ($ticker['sell']),
218+
'askVolume' => null,
216219
'vwap' => null,
217220
'open' => null,
218-
'close' => null,
219-
'first' => null,
220-
'last' => floatval ($ticker['last']),
221+
'close' => $last,
222+
'last' => $last,
223+
'previousClose' => null,
221224
'change' => $this->safe_float($ticker, 'change'),
222225
'percentage' => null,
223226
'average' => null,

php/coinexchange.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,19 +626,22 @@ public function parse_ticker ($ticker, $market = null) {
626626
if ($market)
627627
$symbol = $market['symbol'];
628628
$timestamp = $this->milliseconds ();
629+
$last = $this->safe_float($ticker, 'LastPrice');
629630
return array (
630631
'symbol' => $symbol,
631632
'timestamp' => $timestamp,
632633
'datetime' => $this->iso8601 ($timestamp),
633634
'high' => $this->safe_float($ticker, 'HighPrice'),
634635
'low' => $this->safe_float($ticker, 'LowPrice'),
635636
'bid' => $this->safe_float($ticker, 'BidPrice'),
637+
'bidVolume' => null,
636638
'ask' => $this->safe_float($ticker, 'AskPrice'),
639+
'askVolume' => null,
637640
'vwap' => null,
638641
'open' => null,
639-
'close' => null,
640-
'first' => null,
641-
'last' => $this->safe_float($ticker, 'LastPrice'),
642+
'close' => $last,
643+
'last' => $last,
644+
'previousClose' => null,
642645
'change' => $this->safe_float($ticker, 'Change'),
643646
'percentage' => null,
644647
'average' => null,

0 commit comments

Comments
 (0)