freqtrade / freqtrade

Free, open source crypto trading bot
https://www.freqtrade.io
GNU General Public License v3.0
28.69k stars 6.15k forks source link

Exclude/Include tokens to be analysed/buy #3595

Closed gaugau3000 closed 3 years ago

gaugau3000 commented 4 years ago

As a trader I want to exclude/include leveraged token to be buy So that i am sure my strategy don't mix markets with different volatility/behavior.

I don't know how it can be implemented.

Maybe allow regex in pair_whitelist, pair_blacklist and do smt like "BULL,BEAR,UP,DOWN"

When i ask the question in ccxt repo there was no unify way to filter that : https://github.com/ccxt/ccxt/issues/6481

Have a nice day

xmatthias commented 4 years ago

there ain't one here either - as the names will be different per exchange (just look at FTX- which also has a "Half" (without bear / bull / up / down though).

Best search for them on the exchange, and add each of the ones to your blacklist. It' won't be too many as they'll usually be for BTC and ETH only (haven't seen many others, at least not on binance).

I do the same with the "FIAT/FIAT" pairs (like USDC/USDT) - as they have virtually no movement - so be "forever open" trades (obviously depending on the config).

gaugau3000 commented 4 years ago

Hi,

Best search for them on the exchange, and add each of the ones to your blacklist.

The problem is that binance and ftx had new tokens and i used volumePairList :-) and i don't want to reload config. Yes in can list all crypto coins and make a blacklist but if there is new ones i have no solution.

-> it is why allow a wildcard (regex) can manage this like (*BULL, ...) (the asterisk has been removed by github in previous message)

Have a nice day.

xmatthias commented 4 years ago

You cant predict the name of new coins, and assuming all leveraged tokens will be called xxxBULL (or something else youre suspecting) is dangerous amd will fail eventually.

You could however use Agefilter, so you only have to deal with new tokens every few 100 days.

gaugau3000 commented 4 years ago

You cant predict the name of new coins, and assuming all leveraged tokens will be called xxxBULL (or something else youre suspecting) is dangerous amd will fail eventually.

I know binance use UP/DOWN so i put UP/USDT and DOWN/USDT in my backlist for binance. I know that FTX use BULL/USD and /BEAR/USD so i put in my blacklist for ftx etc. that's all. So i don't make hypothesis :-).

You could however use Agefilter, so you only have to deal with new tokens every few 100 days.

yes but it is a workaround from what i tried to achieve and i don't want to wait 100 days to trade a new market only not to introduce new leveraged token.

Have a nice day.

hroff-1902 commented 4 years ago

not achievable till ccxt will provide this info in a unified way (which is also not achievable I guess)

xmatthias commented 4 years ago

well, ccxt will most likely not provide this info (as exchanges don't provide this info ...).

However, i think this can be solved by allowing wildcards (also in blacklist) - which somehow makes this a duplicate of #3240 - more specifically of https://github.com/freqtrade/freqtrade/issues/3240#issuecomment-629653991.

hroff-1902 commented 4 years ago

I'm working on it btw (allow wildchars in the pair names, including informative pairs)

gaugau3000 commented 1 year ago

Coin be done using coingecko :

https://github.com/ccxt/ccxt/issues/6481#issuecomment-1491040022