@@ -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 }
0 commit comments