diff --git a/extensions/exchanges/kraken/exchange.js b/extensions/exchanges/kraken/exchange.js index a7b3e093a4..e5f9db0837 100644 --- a/extensions/exchanges/kraken/exchange.js +++ b/extensions/exchanges/kraken/exchange.js @@ -363,4 +363,4 @@ module.exports = function container(get, set, clear) { } } return exchange -} \ No newline at end of file +} diff --git a/extensions/exchanges/kraken/products.json b/extensions/exchanges/kraken/products.json index 3477647823..03b0042898 100644 --- a/extensions/exchanges/kraken/products.json +++ b/extensions/exchanges/kraken/products.json @@ -2,217 +2,217 @@ { "asset": "BCH", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "0.002", "increment": "0.01", "label": "BCH/EUR" }, { "asset": "BCH", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "0.002", "increment": "0.01", "label": "BCH/USD" }, { "asset": "BCH", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.002", "increment": "0.01", "label": "BCH/XBT" }, { "asset": "DASH", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "0.03", "increment": "0.01", "label": "DASH/EUR" }, { "asset": "DASH", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "0.03", "increment": "0.01", "label": "DASH/USD" }, { "asset": "DASH", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.03", "increment": "0.01", "label": "DASH/XBT" }, { "asset": "EOS", "currency": "XETH", - "min_size": "0.01", + "min_size": "3.0", "increment": "0.01", "label": "EOS/ETH" }, { "asset": "EOS", "currency": "XXBT", - "min_size": "0.01", + "min_size": "3.0", "increment": "0.01", "label": "EOS/XBT" }, { "asset": "GNO", "currency": "XETH", - "min_size": "0.01", + "min_size": "0.03", "increment": "0.01", "label": "GNO/ETH" }, { "asset": "GNO", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.03", "increment": "0.01", "label": "GNO/XBT" }, { "asset": "USDT", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "5", "increment": "0.01", "label": "USDT/USD" }, { "asset": "XETC", "currency": "XETH", - "min_size": "0.01", + "min_size": "0.3", "increment": "0.01", "label": "ETC/ETH" }, { "asset": "XETC", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.3", "increment": "0.01", "label": "ETC/XBT" }, { "asset": "XETC", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "0.3", "increment": "0.01", "label": "ETC/EUR" }, { "asset": "XETC", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "0.3", "increment": "0.01", "label": "ETC/USD" }, { "asset": "XETH", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.02", "increment": "0.01", "label": "ETH/XBT" }, { "asset": "XETH", "currency": "ZCAD", - "min_size": "0.01", + "min_size": "0.02", "increment": "0.01", "label": "ETH/CAD" }, { "asset": "XETH", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "0.02", "increment": "0.01", "label": "ETH/EUR" }, { "asset": "XETH", "currency": "ZGBP", - "min_size": "0.01", + "min_size": "0.02", "increment": "0.01", "label": "ETH/GBP" }, { "asset": "XETH", "currency": "ZJPY", - "min_size": "0.01", + "min_size": "0.02", "increment": "0.01", "label": "ETH/JPY" }, { "asset": "XETH", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "0.02", "increment": "0.01", "label": "ETH/USD" }, { "asset": "XICN", "currency": "XETH", - "min_size": "0.01", + "min_size": "2.0", "increment": "0.01", "label": "ICN/ETH" }, { "asset": "XICN", "currency": "XXBT", - "min_size": "0.01", + "min_size": "2.0", "increment": "0.01", "label": "ICN/XBT" }, { "asset": "XLTC", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.1", "increment": "0.01", "label": "LTC/XBT" }, { "asset": "XLTC", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "0.1", "increment": "0.01", "label": "LTC/EUR" }, { "asset": "XLTC", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "0.1", "increment": "0.01", "label": "LTC/USD" }, { "asset": "XMLN", "currency": "XETH", - "min_size": "0.01", + "min_size": "0.1", "increment": "0.01", "label": "MLN/ETH" }, { "asset": "XMLN", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.1", "increment": "0.01", "label": "MLN/XBT" }, { "asset": "XREP", "currency": "XETH", - "min_size": "0.01", + "min_size": "0.3", "increment": "0.01", "label": "REP/ETH" }, { "asset": "XREP", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.3", "increment": "0.01", "label": "REP/XBT" }, { "asset": "XREP", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "0.3", "increment": "0.01", "label": "REP/EUR" }, @@ -261,70 +261,70 @@ { "asset": "XXLM", "currency": "XXBT", - "min_size": "0.01", + "min_size": "300", "increment": "0.01", "label": "XLM/XBT" }, { "asset": "XXMR", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.1", "increment": "0.01", "label": "XMR/XBT" }, { "asset": "XXMR", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "0.1", "increment": "0.01", "label": "XMR/EUR" }, { "asset": "XXMR", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "0.1", "increment": "0.01", "label": "XMR/USD" }, { "asset": "XXRP", "currency": "XXBT", - "min_size": "0.01", + "min_size": "30", "increment": "0.01", "label": "XRP/XBT" }, { "asset": "XXRP", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "30", "increment": "0.01", "label": "XRP/EUR" }, { "asset": "XXRP", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "30", "increment": "0.01", "label": "XRP/USD" }, { "asset": "XZEC", "currency": "XXBT", - "min_size": "0.01", + "min_size": "0.03", "increment": "0.01", "label": "ZEC/XBT" }, { "asset": "XZEC", "currency": "ZEUR", - "min_size": "0.01", + "min_size": "0.03", "increment": "0.01", "label": "ZEC/EUR" }, { "asset": "XZEC", "currency": "ZUSD", - "min_size": "0.01", + "min_size": "0.03", "increment": "0.01", "label": "ZEC/USD" } diff --git a/extensions/exchanges/kraken/update-products.sh b/extensions/exchanges/kraken/update-products.sh index 1c2598a96c..3542a2f2e4 100755 --- a/extensions/exchanges/kraken/update-products.sh +++ b/extensions/exchanges/kraken/update-products.sh @@ -7,10 +7,66 @@ var mapping var products = [] function addProduct(base, quote, altname) { + var min_size = '0.01' + switch (base) { + case 'XREP': + min_size = '0.3' + break; + case 'XBT': + min_size = '0.002' + break; + case 'BCH': + min_size = '0.002' + break; + case 'DASH': + min_size = '0.03' + break; + case 'EOS': + min_size = '3.0' + break; + case 'XETH': + min_size = '0.02' + break; + case 'XETC': + min_size = '0.3' + break; + case 'GNO': + min_size = '0.03' + break; + case 'XICN': + min_size = '2.0' + break; + case 'XLTC': + min_size = '0.1' + break; + case 'XMLN': + min_size = '0.1' + break; + case 'XLTC': + min_size = '0.1' + break; + case 'XXMR': + min_size = '0.1' + break; + case 'XXRP': + min_size = '30' + break; + case 'XXLM': + min_size = '300' + break; + case 'XZEC': + min_size = '0.03' + break; + case 'USDT': + min_size = '5' + break; + default: + break; + } products.push({ asset: base, currency: quote, - min_size: '0.01', + min_size: min_size, increment: '0.01', label: getPair(base) + '/' + getPair(quote) })