SYMBOL INDEX (153 symbols across 21 files) FILE: .pre-commit-hooks/sort-coins-file.py function sort (line 9) | def sort(): FILE: binance_trade_bot/api_server.py function filter_period (line 28) | def filter_period(query, model): # pylint: disable=inconsistent-return-... function value_history (line 50) | def value_history(coin: str = None): function total_value_history (line 66) | def total_value_history(): function trade_history (line 82) | def trade_history(): function scouting_history (line 94) | def scouting_history(): function current_coin (line 113) | def current_coin(): function current_coin_history (line 119) | def current_coin_history(): function coins (line 131) | def coins(): function pairs (line 140) | def pairs(): function handle_my_custom_event (line 148) | def handle_my_custom_event(json): FILE: binance_trade_bot/auto_trader.py class AutoTrader (line 13) | class AutoTrader: method __init__ (line 14) | def __init__( method initialize (line 26) | def initialize(self): method transaction_through_bridge (line 29) | def transaction_through_bridge(self, pair: Pair): method update_trade_threshold (line 57) | def update_trade_threshold(self, coin: Coin, coin_price: float): method initialize_trade_thresholds (line 77) | def initialize_trade_thresholds(self): method scout (line 100) | def scout(self): method _get_ratios (line 106) | def _get_ratios(self, coin: Coin, coin_price): method _jump_to_best_coin (line 139) | def _jump_to_best_coin(self, coin: Coin, coin_price: float): method bridge_scout (line 154) | def bridge_scout(self): method update_values (line 175) | def update_values(self): FILE: binance_trade_bot/backtest.py class MockBinanceManager (line 19) | class MockBinanceManager(BinanceAPIManager): method __init__ (line 20) | def __init__( method setup_websockets (line 33) | def setup_websockets(self): method increment (line 36) | def increment(self, interval=1): method get_fee (line 39) | def get_fee(self, origin_coin: Coin, target_coin: Coin, selling: bool): method get_ticker_price (line 42) | def get_ticker_price(self, ticker_symbol: str): method get_currency_balance (line 65) | def get_currency_balance(self, currency_symbol: str, force=False): method buy_alt (line 71) | def buy_alt(self, origin_coin: Coin, target_coin: Coin): method sell_alt (line 97) | def sell_alt(self, origin_coin: Coin, target_coin: Coin): method collate_coins (line 116) | def collate_coins(self, target_symbol: str): class MockDatabase (line 135) | class MockDatabase(Database): method __init__ (line 136) | def __init__(self, logger: Logger, config: Config): method log_scout (line 139) | def log_scout( function backtest (line 149) | def backtest( FILE: binance_trade_bot/binance_api_manager.py class BinanceAPIManager (line 17) | class BinanceAPIManager: method __init__ (line 18) | def __init__(self, config: Config, db: Database, logger: Logger, testn... method setup_websockets (line 35) | def setup_websockets(self): method get_trade_fees (line 44) | def get_trade_fees(self) -> Dict[str, float]: method get_using_bnb_for_fees (line 59) | def get_using_bnb_for_fees(self): method get_fee (line 62) | def get_fee(self, origin_coin: Coin, target_coin: Coin, selling: bool): method get_account (line 90) | def get_account(self): method get_ticker_price (line 96) | def get_ticker_price(self, ticker_symbol: str): method get_currency_balance (line 113) | def get_currency_balance(self, currency_symbol: str, force=False) -> f... method retry (line 135) | def retry(self, func, *args, **kwargs): method get_symbol_filter (line 146) | def get_symbol_filter(self, origin_symbol: str, target_symbol: str, fi... method get_alt_tick (line 154) | def get_alt_tick(self, origin_symbol: str, target_symbol: str): method get_min_notional (line 161) | def get_min_notional(self, origin_symbol: str, target_symbol: str): method _wait_for_order (line 164) | def _wait_for_order( method wait_for_order (line 220) | def wait_for_order( method _should_cancel_order (line 226) | def _should_cancel_order(self, order_status): method buy_alt (line 249) | def buy_alt(self, origin_coin: Coin, target_coin: Coin) -> BinanceOrder: method _buy_quantity (line 252) | def _buy_quantity( method _buy_alt (line 265) | def _buy_alt(self, origin_coin: Coin, target_coin: Coin): # pylint: d... method sell_alt (line 318) | def sell_alt(self, origin_coin: Coin, target_coin: Coin) -> BinanceOrder: method _sell_quantity (line 321) | def _sell_quantity(self, origin_symbol: str, target_symbol: str, origi... method _sell_alt (line 327) | def _sell_alt(self, origin_coin: Coin, target_coin: Coin): # pylint: ... FILE: binance_trade_bot/binance_stream_manager.py class BinanceOrder (line 15) | class BinanceOrder: # pylint: disable=too-few-public-methods method __init__ (line 16) | def __init__(self, report): method __repr__ (line 27) | def __repr__(self): class BinanceCache (line 31) | class BinanceCache: # pylint: disable=too-few-public-methods method open_balances (line 39) | def open_balances(self): class OrderGuard (line 44) | class OrderGuard: method __init__ (line 45) | def __init__(self, pending_orders: Set[Tuple[str, int]], mutex: thread... method set_order (line 53) | def set_order(self, origin_symbol: str, target_symbol: str, order_id: ... method __enter__ (line 56) | def __enter__(self): method __exit__ (line 64) | def __exit__(self, exc_type, exc_val, exc_tb): class BinanceStreamManager (line 68) | class BinanceStreamManager: method __init__ (line 69) | def __init__( method acquire_order_guard (line 104) | def acquire_order_guard(self): method _fetch_pending_orders (line 107) | def _fetch_pending_orders(self): method _invalidate_balances (line 137) | def _invalidate_balances(self): method _stream_processor (line 141) | def _stream_processor(self): method _process_stream_data (line 163) | def _process_stream_data(self, stream_data): method close (line 189) | def close(self): FILE: binance_trade_bot/config.py class Config (line 11) | class Config: # pylint: disable=too-few-public-methods,too-many-instanc... method __init__ (line 12) | def __init__(self): FILE: binance_trade_bot/crypto_trading.py function main (line 12) | def main(): FILE: binance_trade_bot/database.py class Database (line 18) | class Database: method __init__ (line 19) | def __init__(self, logger: Logger, config: Config, uri="sqlite:///data... method socketio_connect (line 26) | def socketio_connect(self): method db_session (line 39) | def db_session(self): method set_coins (line 48) | def set_coins(self, symbols: List[str]): method get_coins (line 79) | def get_coins(self, only_enabled=True) -> List[Coin]: method get_coin (line 89) | def get_coin(self, coin: Union[Coin, str]) -> Coin: method set_current_coin (line 98) | def set_current_coin(self, coin: Union[Coin, str]): method get_current_coin (line 108) | def get_current_coin(self) -> Optional[Coin]: method get_pair (line 118) | def get_pair(self, from_coin: Union[Coin, str], to_coin: Union[Coin, s... method get_pairs_from (line 127) | def get_pairs_from(self, from_coin: Union[Coin, str], only_enabled=Tru... method get_pairs (line 138) | def get_pairs(self, only_enabled=True) -> List[Pair]: method log_scout (line 148) | def log_scout( method prune_scout_history (line 162) | def prune_scout_history(self): method prune_value_history (line 168) | def prune_value_history(self): method create_database (line 214) | def create_database(self): method start_trade_log (line 217) | def start_trade_log(self, from_coin: Coin, to_coin: Coin, selling: bool): method send_update (line 220) | def send_update(self, model): method migrate_old_state (line 230) | def migrate_old_state(self): class TradeLog (line 261) | class TradeLog: method __init__ (line 262) | def __init__(self, db: Database, from_coin: Coin, to_coin: Coin, selli... method set_ordered (line 274) | def set_ordered(self, alt_starting_balance, crypto_starting_balance, a... method set_complete (line 284) | def set_complete(self, crypto_trade_amount): FILE: binance_trade_bot/logger.py class Logger (line 6) | class Logger: method __init__ (line 10) | def __init__(self, logging_service="crypto_trading", enable_notificati... method log (line 31) | def log(self, message, level="info", notification=True): method info (line 44) | def info(self, message, notification=True): method warning (line 47) | def warning(self, message, notification=True): method error (line 50) | def error(self, message, notification=True): method debug (line 53) | def debug(self, message, notification=False): FILE: binance_trade_bot/models/coin.py class Coin (line 6) | class Coin(Base): method __init__ (line 11) | def __init__(self, symbol, enabled=True): method __add__ (line 15) | def __add__(self, other): method __repr__ (line 22) | def __repr__(self): method info (line 25) | def info(self): FILE: binance_trade_bot/models/coin_value.py class Interval (line 12) | class Interval(enum.Enum): class CoinValue (line 19) | class CoinValue(Base): method __init__ (line 35) | def __init__( method usd_value (line 52) | def usd_value(self): method usd_value (line 58) | def usd_value(self): method btc_value (line 62) | def btc_value(self): method btc_value (line 68) | def btc_value(self): method info (line 71) | def info(self): FILE: binance_trade_bot/models/current_coin.py class CurrentCoin (line 10) | class CurrentCoin(Base): # pylint: disable=too-few-public-methods method __init__ (line 17) | def __init__(self, coin: Coin): method info (line 21) | def info(self): FILE: binance_trade_bot/models/pair.py class Pair (line 8) | class Pair(Base): method __init__ (line 28) | def __init__(self, from_coin: Coin, to_coin: Coin, ratio=None): method __repr__ (line 33) | def __repr__(self): method info (line 36) | def info(self): FILE: binance_trade_bot/models/scout_history.py class ScoutHistory (line 11) | class ScoutHistory(Base): method __init__ (line 25) | def __init__( method current_ratio (line 39) | def current_ratio(self): method info (line 42) | def info(self): FILE: binance_trade_bot/models/trade.py class TradeState (line 11) | class TradeState(enum.Enum): class Trade (line 17) | class Trade(Base): # pylint: disable=too-few-public-methods method __init__ (line 39) | def __init__(self, alt_coin: Coin, crypto_coin: Coin, selling: bool): method info (line 46) | def info(self): FILE: binance_trade_bot/notifications.py class NotificationHandler (line 10) | class NotificationHandler: method __init__ (line 11) | def __init__(self, enabled=True): method start_worker (line 23) | def start_worker(self): method process_queue (line 26) | def process_queue(self): method send_notification (line 36) | def send_notification(self, message, attachments=None): FILE: binance_trade_bot/scheduler.py class SafeScheduler (line 8) | class SafeScheduler(Scheduler): method __init__ (line 17) | def __init__(self, logger: logging.Logger, rerun_immediately=True): method _run_job (line 23) | def _run_job(self, job: Job): FILE: binance_trade_bot/strategies/__init__.py function get_strategy (line 5) | def get_strategy(name): FILE: binance_trade_bot/strategies/default_strategy.py class Strategy (line 8) | class Strategy(AutoTrader): method initialize (line 9) | def initialize(self): method scout (line 13) | def scout(self): method bridge_scout (line 34) | def bridge_scout(self): method initialize_current_coin (line 45) | def initialize_current_coin(self): FILE: binance_trade_bot/strategies/multiple_coins_strategy.py class Strategy (line 6) | class Strategy(AutoTrader): method scout (line 7) | def scout(self):