bmino / binance-triangle-arbitrage

Detect in-market cryptocurrency arbitrage
MIT License
1.07k stars 338 forks source link

BlackList Crypts #165

Open nevesrangel opened 3 years ago

nevesrangel commented 3 years ago

Hey Good afternoon ,

Is there a possibility to remove ETH from trades? Any place where blacklist crypts are placed?

Thanks

bmino commented 3 years ago

There is currently only a whitelist, but a blacklist is possible as a feature request

bmino commented 3 years ago

I'm not actively working on anything for this project anymore. It would make sense to implement such a thing when initially creating trades and only pass in tokens that are not on a blacklist

alastyrcom commented 2 years ago

Hello, make this little changes for blacklist;

In config.json file

"SCANNING": { "DEPTH": 50, "WHITELIST": [] },

changed to

"SCANNING": { "DEPTH": 50, "WHITELIST": [], "BLACKLIST": ["BUST", "ETH"] },

In MarketCache.js file line 100 add;

    if (CONFIG.SCANNING.BLACKLIST.length > 0) {
        if (CONFIG.SCANNING.BLACKLIST.includes(a)) return;
        if (CONFIG.SCANNING.BLACKLIST.includes(b)) return;
        if (CONFIG.SCANNING.BLACKLIST.includes(c)) return;
    }