Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ccxt/binance-trade-bot
/ functions
Functions
126 in github.com/ccxt/binance-trade-bot
⨍
Functions
126
◇
Types & classes
24
↳
Endpoints
8
↓ 48 callers
Method
info
(self, message, notification=True)
binance_trade_bot/logger.py:44
↓ 26 callers
Method
db_session
Creates a context with an open SQLAlchemy session.
binance_trade_bot/database.py:39
↓ 14 callers
Method
get_ticker_price
Get ticker price of a specific coin
binance_trade_bot/backtest.py:42
↓ 11 callers
Method
debug
(self, message, notification=False)
binance_trade_bot/logger.py:53
↓ 9 callers
Method
get_currency_balance
Get balance of a specific coin
binance_trade_bot/binance_api_manager.py:113
↓ 8 callers
Method
error
(self, message, notification=True)
binance_trade_bot/logger.py:50
↓ 8 callers
Method
get_currency_balance
Get balance of a specific coin
binance_trade_bot/backtest.py:65
↓ 8 callers
Method
get_current_coin
(self)
binance_trade_bot/database.py:108
↓ 6 callers
Method
open_balances
(self)
binance_trade_bot/binance_stream_manager.py:39
↓ 6 callers
Method
send_update
(self, model)
binance_trade_bot/database.py:220
↓ 5 callers
Function
filter_period
(query, model)
binance_trade_bot/api_server.py:28
↓ 5 callers
Method
get_coin
(self, coin: Union[Coin, str])
binance_trade_bot/database.py:89
↓ 5 callers
Method
get_ticker_price
Get ticker price of a specific coin
binance_trade_bot/binance_api_manager.py:96
↓ 5 callers
Method
info
(self)
binance_trade_bot/models/pair.py:36
↓ 5 callers
Method
set_current_coin
(self, coin: Union[Coin, str])
binance_trade_bot/database.py:98
↓ 5 callers
Method
warning
(self, message, notification=True)
binance_trade_bot/logger.py:47
↓ 4 callers
Method
_sell_quantity
(self, origin_symbol: str, target_symbol: str, origin_balance: float = None)
binance_trade_bot/binance_api_manager.py:321
↓ 4 callers
Method
buy_alt
(self, origin_coin: Coin, target_coin: Coin)
binance_trade_bot/backtest.py:71
↓ 4 callers
Method
get_fee
(self, origin_coin: Coin, target_coin: Coin, selling: bool)
binance_trade_bot/backtest.py:39
↓ 4 callers
Method
get_min_notional
(self, origin_symbol: str, target_symbol: str)
binance_trade_bot/binance_api_manager.py:161
↓ 4 callers
Method
log
(self, message, level="info", notification=True)
binance_trade_bot/logger.py:31
↓ 3 callers
Method
_buy_quantity
( self, origin_symbol: str, target_symbol: str, target_balance: float = None,
binance_trade_bot/binance_api_manager.py:252
↓ 3 callers
Method
close
(self)
binance_trade_bot/binance_stream_manager.py:189
↓ 3 callers
Method
create_database
(self)
binance_trade_bot/database.py:214
↓ 2 callers
Method
_get_ratios
Given a coin, get the current price ratio for every other enabled coin
binance_trade_bot/auto_trader.py:106
↓ 2 callers
Method
_jump_to_best_coin
Given a coin, search for a coin to jump to
binance_trade_bot/auto_trader.py:139
↓ 2 callers
Method
acquire_order_guard
(self)
binance_trade_bot/binance_stream_manager.py:104
↓ 2 callers
Method
collate_coins
(self, target_symbol: str)
binance_trade_bot/backtest.py:116
↓ 2 callers
Method
get_account
Get account information
binance_trade_bot/binance_api_manager.py:90
↓ 2 callers
Method
get_alt_tick
(self, origin_symbol: str, target_symbol: str)
binance_trade_bot/binance_api_manager.py:154
↓ 2 callers
Method
get_coins
(self, only_enabled=True)
binance_trade_bot/database.py:79
↓ 2 callers
Function
get_strategy
(name)
binance_trade_bot/strategies/__init__.py:5
↓ 2 callers
Method
get_symbol_filter
(self, origin_symbol: str, target_symbol: str, filter_type: str)
binance_trade_bot/binance_api_manager.py:146
↓ 2 callers
Method
initialize
(self)
binance_trade_bot/auto_trader.py:26
↓ 2 callers
Method
retry
(self, func, *args, **kwargs)
binance_trade_bot/binance_api_manager.py:135
↓ 2 callers
Method
set_coins
(self, symbols: List[str])
binance_trade_bot/database.py:48
↓ 2 callers
Method
set_complete
(self, crypto_trade_amount)
binance_trade_bot/database.py:284
↓ 2 callers
Method
set_order
(self, origin_symbol: str, target_symbol: str, order_id: int)
binance_trade_bot/binance_stream_manager.py:53
↓ 2 callers
Method
set_ordered
(self, alt_starting_balance, crypto_starting_balance, alt_trade_amount)
binance_trade_bot/database.py:274
↓ 2 callers
Method
start_trade_log
(self, from_coin: Coin, to_coin: Coin, selling: bool)
binance_trade_bot/database.py:217
↓ 2 callers
Method
wait_for_order
( self, order_id, origin_symbol: str, target_symbol: str, order_guard: OrderGuard )
binance_trade_bot/binance_api_manager.py:220
↓ 1 callers
Method
__init__
(self, logger: Logger, config: Config)
binance_trade_bot/backtest.py:136
↓ 1 callers
Method
_fetch_pending_orders
(self)
binance_trade_bot/binance_stream_manager.py:107
↓ 1 callers
Method
_invalidate_balances
(self)
binance_trade_bot/binance_stream_manager.py:137
↓ 1 callers
Method
_process_stream_data
(self, stream_data)
binance_trade_bot/binance_stream_manager.py:163
↓ 1 callers
Method
_should_cancel_order
(self, order_status)
binance_trade_bot/binance_api_manager.py:226
↓ 1 callers
Method
_wait_for_order
( self, order_id, origin_symbol: str, target_symbol: str )
binance_trade_bot/binance_api_manager.py:164
↓ 1 callers
Function
backtest
:param config: Configuration object to use :param start_date: Date to backtest from :param end_date: Date to backtest up to :param
binance_trade_bot/backtest.py:149
↓ 1 callers
Method
bridge_scout
(self)
binance_trade_bot/strategies/default_strategy.py:34
↓ 1 callers
Method
get_pair
(self, from_coin: Union[Coin, str], to_coin: Union[Coin, str])
binance_trade_bot/database.py:118
↓ 1 callers
Method
get_pairs_from
(self, from_coin: Union[Coin, str], only_enabled=True)
binance_trade_bot/database.py:127
↓ 1 callers
Method
get_trade_fees
(self)
binance_trade_bot/binance_api_manager.py:44
↓ 1 callers
Method
get_using_bnb_for_fees
(self)
binance_trade_bot/binance_api_manager.py:59
↓ 1 callers
Method
increment
(self, interval=1)
binance_trade_bot/backtest.py:36
↓ 1 callers
Method
initialize_current_coin
Decide what is the current coin, and set it up in the DB.
binance_trade_bot/strategies/default_strategy.py:45
↓ 1 callers
Method
initialize_trade_thresholds
Initialize the buying threshold of all the coins for trading between them
binance_trade_bot/auto_trader.py:77
↓ 1 callers
Method
log_scout
( self, pair: Pair, target_ratio: float, current_coin_price: float, ot
binance_trade_bot/database.py:148
↓ 1 callers
Function
main
()
binance_trade_bot/crypto_trading.py:12
↓ 1 callers
Method
migrate_old_state
For migrating from old dotfile format to SQL db. This method should be removed in the future.
binance_trade_bot/database.py:230
↓ 1 callers
Method
scout
Scout for potential jumps from the current coin to another coin
binance_trade_bot/auto_trader.py:100
↓ 1 callers
Method
sell_alt
(self, origin_coin: Coin, target_coin: Coin)
binance_trade_bot/backtest.py:97
↓ 1 callers
Method
send_notification
(self, message, attachments=None)
binance_trade_bot/notifications.py:36
↓ 1 callers
Method
setup_websockets
(self)
binance_trade_bot/binance_api_manager.py:35
↓ 1 callers
Method
socketio_connect
(self)
binance_trade_bot/database.py:26
↓ 1 callers
Method
start_worker
(self)
binance_trade_bot/notifications.py:23
↓ 1 callers
Method
transaction_through_bridge
Jump from the source coin to the destination coin through bridge coin
binance_trade_bot/auto_trader.py:29
↓ 1 callers
Method
update_trade_threshold
Update all the coins with the threshold of buying the current held coin
binance_trade_bot/auto_trader.py:57
Method
__add__
(self, other)
binance_trade_bot/models/coin.py:15
Method
__enter__
(self)
binance_trade_bot/binance_stream_manager.py:56
Method
__exit__
(self, exc_type, exc_val, exc_tb)
binance_trade_bot/binance_stream_manager.py:64
Method
__init__
(self)
binance_trade_bot/config.py:12
Method
__init__
(self, logger: Logger, config: Config, uri="sqlite:///data/crypto_trading.db")
binance_trade_bot/database.py:19
Method
__init__
(self, db: Database, from_coin: Coin, to_coin: Coin, selling: bool)
binance_trade_bot/database.py:262
Method
__init__
(self, enabled=True)
binance_trade_bot/notifications.py:11
Method
__init__
(self, logger: logging.Logger, rerun_immediately=True)
binance_trade_bot/scheduler.py:17
Method
__init__
( self, binance_manager: BinanceAPIManager, database: Database, logger: Logger
binance_trade_bot/auto_trader.py:14
Method
__init__
(self, config: Config, db: Database, logger: Logger, testnet = False)
binance_trade_bot/binance_api_manager.py:18
Method
__init__
(self, logging_service="crypto_trading", enable_notifications=True)
binance_trade_bot/logger.py:10
Method
__init__
(self, report)
binance_trade_bot/binance_stream_manager.py:16
Method
__init__
(self, pending_orders: Set[Tuple[str, int]], mutex: threading.Lock)
binance_trade_bot/binance_stream_manager.py:45
Method
__init__
( self, cache: BinanceCache, config: Config, binance_client: binance.client.Cl
binance_trade_bot/binance_stream_manager.py:69
Method
__init__
( self, config: Config, db: Database, logger: Logger, start_date: date
binance_trade_bot/backtest.py:20
Method
__init__
(self, from_coin: Coin, to_coin: Coin, ratio=None)
binance_trade_bot/models/pair.py:28
Method
__init__
( self, coin: Coin, balance: float, usd_price: float, btc_price: float
binance_trade_bot/models/coin_value.py:35
Method
__init__
(self, alt_coin: Coin, crypto_coin: Coin, selling: bool)
binance_trade_bot/models/trade.py:39
Method
__init__
(self, symbol, enabled=True)
binance_trade_bot/models/coin.py:11
Method
__init__
(self, coin: Coin)
binance_trade_bot/models/current_coin.py:17
Method
__init__
( self, pair: Pair, target_ratio: float, current_coin_price: float, ot
binance_trade_bot/models/scout_history.py:25
Method
__repr__
(self)
binance_trade_bot/binance_stream_manager.py:27
Method
__repr__
(self)
binance_trade_bot/models/pair.py:33
Method
__repr__
(self)
binance_trade_bot/models/coin.py:22
Method
_buy_alt
Buy altcoin
binance_trade_bot/binance_api_manager.py:265
Method
_run_job
(self, job: Job)
binance_trade_bot/scheduler.py:23
Method
_sell_alt
Sell altcoin
binance_trade_bot/binance_api_manager.py:327
Method
_stream_processor
(self)
binance_trade_bot/binance_stream_manager.py:141
Method
bridge_scout
If we have any bridge coin leftover, buy a coin with it that we won't immediately trade out of
binance_trade_bot/auto_trader.py:154
Method
btc_value
(self)
binance_trade_bot/models/coin_value.py:62
Method
buy_alt
(self, origin_coin: Coin, target_coin: Coin)
binance_trade_bot/binance_api_manager.py:249
Function
coins
()
binance_trade_bot/api_server.py:131
Function
current_coin
()
binance_trade_bot/api_server.py:113
next →
1–100 of 126, ranked by callers