Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3dfd0de

Browse files
author
Travis CI
committed
1.17.79
[ci skip]
1 parent edda617 commit 3dfd0de

74 files changed

Lines changed: 85 additions & 228 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎build/ccxt.browser.js‎

Lines changed: 20 additions & 59 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.17.78'
40+
const version = '1.17.79'
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.17.78",
3+
"version": "1.17.79",
44
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges",
55
"main": "./ccxt.js",
66
"unpkg": "build/ccxt.browser.js",

‎php/Exchange.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
use kornrunner\Secp256k1;
3535
use kornrunner\Solidity;
3636

37-
$version = '1.17.78';
37+
$version = '1.17.79';
3838

3939
// rounding mode
4040
const TRUNCATE = 0;
@@ -50,7 +50,7 @@
5050

5151
class Exchange {
5252

53-
const VERSION = '1.17.78';
53+
const VERSION = '1.17.79';
5454

5555
public static $eth_units = array (
5656
'wei' => '1',

‎php/bibox.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ public function fetch_markets ($params = array ()) {
129129
'quoteId' => $quote,
130130
'active' => true,
131131
'info' => $market,
132-
'lot' => pow (10, -$precision['amount']),
133132
'precision' => $precision,
134133
'limits' => array (
135134
'amount' => array (

‎php/binance.php‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ public function fetch_markets () {
321321
'price' => $market['quotePrecision'],
322322
);
323323
$active = ($market['status'] === 'TRADING');
324-
// $lot size is deprecated as of 2018年02月06日
325-
$lot = -1 * log10 ($precision['amount']);
326324
$entry = array (
327325
'id' => $id,
328326
'symbol' => $symbol,
@@ -331,7 +329,6 @@ public function fetch_markets () {
331329
'baseId' => $baseId,
332330
'quoteId' => $quoteId,
333331
'info' => $market,
334-
'lot' => $lot, // $lot size is deprecated as of 2018年02月06日
335332
'active' => $active,
336333
'precision' => $precision,
337334
'limits' => array (
@@ -344,7 +341,7 @@ public function fetch_markets () {
344341
'max' => null,
345342
),
346343
'cost' => array (
347-
'min' => $lot,
344+
'min' => -1 * log10 ($precision['amount']),
348345
'max' => null,
349346
),
350347
),
@@ -360,7 +357,6 @@ public function fetch_markets () {
360357
if (is_array ($filters) && array_key_exists ('LOT_SIZE', $filters)) {
361358
$filter = $filters['LOT_SIZE'];
362359
$entry['precision']['amount'] = $this->precision_from_string($filter['stepSize']);
363-
$entry['lot'] = $this->safe_float($filter, 'stepSize'); // $lot size is deprecated as of 2018年02月06日
364360
$entry['limits']['amount'] = array (
365361
'min' => $this->safe_float($filter, 'minQty'),
366362
'max' => $this->safe_float($filter, 'maxQty'),
@@ -915,7 +911,7 @@ public function handle_errors ($code, $reason, $url, $method, $headers, $body) {
915911
if (mb_strpos ($body, 'Price * QTY is zero or less') !== false)
916912
throw new InvalidOrder ($this->id . ' order cost = amount * price is zero or less ' . $body);
917913
if (mb_strpos ($body, 'LOT_SIZE') !== false)
918-
throw new InvalidOrder ($this->id . ' order amount should be evenly divisible by lot size, use $this->amount_to_lots(symbol, amount) ' . $body);
914+
throw new InvalidOrder ($this->id . ' order amount should be evenly divisible by lot size ' . $body);
919915
if (mb_strpos ($body, 'PRICE_FILTER') !== false)
920916
throw new InvalidOrder ($this->id . ' order price exceeds allowed price precision or invalid, use $this->price_to_precision(symbol, amount) ' . $body);
921917
}

‎php/bitfinex2.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ public function fetch_markets () {
215215
'active' => true,
216216
'precision' => $precision,
217217
'limits' => $limits,
218-
'lot' => pow (10, -$precision['amount']),
219218
'info' => $market,
220219
);
221220
}

‎php/bithumb.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public function fetch_markets () {
8888
'base' => $base,
8989
'quote' => $quote,
9090
'info' => $market,
91-
'lot' => null,
9291
'active' => true,
9392
'precision' => array (
9493
'amount' => null,

‎php/bitsane.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ public function fetch_markets () {
150150
'amount' => intval ($market['precision']),
151151
'price' => 8,
152152
);
153-
$lot = pow (10, -$precision['amount']);
154153
$result[] = array (
155154
'id' => $id,
156155
'symbol' => $symbol,
@@ -159,7 +158,6 @@ public function fetch_markets () {
159158
'baseId' => $market['base'],
160159
'quoteId' => $market['quote'],
161160
'active' => true,
162-
'lot' => $lot,
163161
'precision' => $precision,
164162
'limits' => array (
165163
'amount' => array (

‎php/bitso.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,12 @@ public function fetch_markets () {
115115
'amount' => $this->precision_from_string($market['minimum_amount']),
116116
'price' => $this->precision_from_string($market['minimum_price']),
117117
);
118-
$lot = $limits['amount']['min'];
119118
$result[] = array (
120119
'id' => $id,
121120
'symbol' => $symbol,
122121
'base' => $base,
123122
'quote' => $quote,
124123
'info' => $market,
125-
'lot' => $lot,
126124
'limits' => $limits,
127125
'precision' => $precision,
128126
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /