Skip to content

Commit

Permalink
Updated Kraken symbols without useless altnames.
Browse files Browse the repository at this point in the history
████ ███  To request new features or in case this commit breaks something for you,
████ ███  please, create a new github issue with all possible information for me,
▓███▀█▄   but never share your API Keys!
▒▓██ ███
░▒▓█ ███  Signed-off-by: Carles Tubio <ctubio@users.noreply.github.com>
 _______________________________
/ Hello, WORLD!                 \
|                               |
\ pssst.. 1 BTC = 28203.50 EUR. /
 -------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
  • Loading branch information
ctubio committed Jul 1, 2021
1 parent 06ef018 commit a931824
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ K ?= K.sh
MAJOR = 0
MINOR = 6
PATCH = 4
BUILD = 3
BUILD = 4

OBLIGATORY = DISCLAIMER: This is strict non-violent software: \n$\
if you hurt other living creatures, please stop; \n$\
Expand Down
3 changes: 2 additions & 1 deletion src/bin/+portfolios/+portfolios.data.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,14 @@ namespace analpaper {
if (portfolio.at(last).prices.find(settings.currency) != portfolio.at(last).prices.end())
return portfolio.at(last).prices.at(settings.currency);
else for (const auto &it : portfolio.at(last).prices)
if (portfolio.find(it.first) != portfolio.end())
if (portfolio.find(it.first) != portfolio.end()) {
if (portfolio.at(it.first).prices.find(settings.currency) != portfolio.at(it.first).prices.end())
return it.second * portfolio.at(it.first).prices.at(settings.currency);
else for (const auto &_it : portfolio.at(it.first).prices)
if (portfolio.find(_it.first) != portfolio.end()
and portfolio.at(_it.first).prices.find(settings.currency) != portfolio.at(_it.first).prices.end()
) return it.second * _it.second * portfolio.at(_it.first).prices.at(settings.currency);
}
return 0;
};
void refresh() {
Expand Down
16 changes: 8 additions & 8 deletions src/bin/trading-bot/trading-bot.main.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ class TradingBot: public KryptoNinja {
};
arguments = {
{
{"maker-fee", "AMOUNT", "0", "set custom percentage of maker fee, like '0.1'"},
{"taker-fee", "AMOUNT", "0", "set custom percentage of taker fee, like '0.1'"},
{"min-size", "AMOUNT", "0", "set custom minimum order size, like '0.01'"},
{"leverage", "AMOUNT", "1", "set between '0.01' and '100' to enable isolated margin,"
"\n" "or use '0' for cross margin; default AMOUNT is '1'"},
{"wallet-limit", "AMOUNT", "0", "set AMOUNT in base currency to limit the balance,"
"\n" "otherwise the full available balance can be used"},
{"debug-wallet", "1", nullptr, "print detailed output about target base position"}
{"maker-fee", "AMOUNT", "0", "set custom percentage of maker fee, like '0.1'"},
{"taker-fee", "AMOUNT", "0", "set custom percentage of taker fee, like '0.1'"},
{"min-size", "AMOUNT", "0", "set custom minimum order size, like '0.01'"},
{"leverage", "AMOUNT", "1", "set between '0.01' and '100' to enable isolated margin,"
"\n" "or use '0' for cross margin; default AMOUNT is '1'"},
{"wallet-limit", "AMOUNT", "0", "set AMOUNT in base currency to limit the balance,"
"\n" "otherwise the full available balance can be used"},
{"debug-wallet", "1", nullptr, "print detailed output about target base position"}
},
[&](MutableUserArguments &args) {
if (arg<int>("debug"))
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Krypto.ninja-apis.h
Original file line number Diff line number Diff line change
Expand Up @@ -1104,8 +1104,8 @@ namespace ₿ {
break;
}
return {
{ "base", reply.value("base", "") },
{ "quote", reply.value("quote", "") },
{ "base", base },
{ "quote", quote },
{ "symbol", reply.value("wsname", "") },
{"webMarket", webMarket },
{"webOrders", webOrders },
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Krypto.ninja-client/www/js/Shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,5 @@ export function currencyHeaders(api: GridApi, base: string, quote: string) {

api.setColumnDefs(colDef);

setTimeout(() => {api.sizeColumnsToFit();}, 5);
setTimeout(() => { api.sizeColumnsToFit(); }, 100);
};

0 comments on commit a931824

Please sign in to comment.