Snapshots
This commit is contained in:
1 parent
e91125801d
commit
6368221937
75 files changed
+8943
-4332
No files matched your search
-1
@@ -17,7 +17,6 @@ module.exports = async (exchange, symbol) => {
|
||||
'btcalpha', // issue with 404 on a documented endpoint https://travis-ci.org/ccxt/ccxt/builds/643930431#L2213
|
||||
'bitmex', // an issue with null values,to be resolved later
|
||||
'cex',
|
||||
'mandala',
|
||||
]
|
||||
|
||||
if (skippedExchanges.includes (exchange.id)) {
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ const log = require ('ololog')
|
||||
|
||||
module.exports = async (exchange) => {
|
||||
|
||||
const randomSymbols = exchange.symbols.sort (() => 0.5 - Math.random ()).slice (0, 2)
|
||||
const randomSymbols = exchange.symbols.slice ().sort (() => 0.5 - Math.random ()).slice (0, 2)
|
||||
const customExchangeParams = ([
|
||||
'yobit',
|
||||
'tidex',
|
||||
|
||||
-1
@@ -14,7 +14,6 @@ const log = require ('ololog')
|
||||
module.exports = async (exchange, symbol) => {
|
||||
|
||||
const skippedExchanges = [
|
||||
'mandala',
|
||||
'rightbtc',
|
||||
]
|
||||
|
||||
|
||||
-1
@@ -76,7 +76,6 @@ module.exports = (exchange, ticker, method, symbol) => {
|
||||
'xbtce',
|
||||
'coss',
|
||||
'idex',
|
||||
'mandala',
|
||||
'mercado',
|
||||
'okex',
|
||||
'southxchange', // https://user-images.githubusercontent.com/1294454/59953532-314bea80-9489-11e9-85b3-2a711ca49aa7.png
|
||||
|
||||
+5
@@ -25,6 +25,8 @@ assert (toWei ('0.001', 18) === '1000000000000000');
|
||||
assert (toWei (0.1, 18) === '100000000000000000');
|
||||
assert (toWei (0.01, 18) === '10000000000000000');
|
||||
assert (toWei (0.001, 18) === '1000000000000000');
|
||||
assert (toWei ('0.3323340739', 18) === '332334073900000000');
|
||||
assert (toWei (0.3323340739, 18) === '332334073900000000');
|
||||
|
||||
// let us test that we get the inverse for all these test
|
||||
assert (fromWei ('1000000000000000000', 18) === 1.0);
|
||||
@@ -43,6 +45,8 @@ assert (fromWei ('1000000000000000', 18) === 0.001);
|
||||
assert (fromWei (100000000000000000, 18) === 0.1);
|
||||
assert (fromWei (10000000000000000, 18) === 0.01);
|
||||
assert (fromWei (1000000000000000, 18) === 0.001);
|
||||
assert (fromWei ('332334073900000000', 18) === 0.3323340739);
|
||||
assert (fromWei (332334073900000000, 18) === 0.3323340739);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// numberToString
|
||||
@@ -58,6 +62,7 @@ assert (numberToString (7.9e27) === '7900000000000000000000000000');
|
||||
assert (numberToString (-12.345) === '-12.345');
|
||||
assert (numberToString (12.345) === '12.345');
|
||||
assert (numberToString (0) === '0');
|
||||
assert (numberToString (7.35946e21) === '7359460000000000000000');
|
||||
// the following line breaks the test
|
||||
// see https://github.com/ccxt/ccxt/issues/5744
|
||||
// assert (numberToString (0.00000001) === '0.00000001');
|
||||
|
||||
+3
@@ -370,9 +370,12 @@ let tryAllProxies = async function (exchange, proxies) {
|
||||
;(async function test () {
|
||||
|
||||
if (exchangeSymbol) {
|
||||
|
||||
await loadExchange (exchange)
|
||||
await testSymbol (exchange, exchangeSymbol)
|
||||
|
||||
} else {
|
||||
|
||||
await tryAllProxies (exchange, proxies)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user