filter_for_stablecoins#

filter_for_stablecoins(pairs, mode)[source]#

Filter dataset so that it only contains data for the trading pairs that are either stablecoin pairs or not.

Trading logic might not be able to deal with or does not want to deal with stable -> stable pairs. Trading stablecoin to another does not make sense, unless you are doing high volume arbitration strategies.

Uses internal stablecoin list from tradingstrategy.stablecoin.

Parameters
Return type

DataFrame