MCPcopy Create free account

hub / github.com/conor19w/Binance-Futures-Trading-Bot / functions

Functions234 in github.com/conor19w/Binance-Futures-Trading-Bot

↓ 10 callersFunctionSetSLTP
(stoplossval, takeprofitval,CloseStream,HighStream,LowStream,Trade_Direction,Type,SL=1,TP=1)
old/bot-v1/TradingStrats.py:756
↓ 8 callersFunctionlog_error
(e)
old/bot-v2/Helper.py:122
↓ 8 callersFunctionlog_error
(e)
old/bot-v1/Helper.py:73
↓ 8 callersFunctionlog_error
(e)
back_testing/Helper.py:122
↓ 5 callersMethodopen_trade
(self, symbol, side, order_qty, OP, time)
old/bot-v1/Helper.py:84
↓ 3 callersMethodget_account_balance
Function that returns the USDT balance of the account
TradeManager.py:337
↓ 3 callersMethodopen_trade
Function to open a new trade
TradeManager.py:258
↓ 3 callersMethodplace_tp_sl
Opens TP and SL positions
TradeManager.py:131
↓ 2 callersMethodMake_decision
(self)
old/bot-v2/Bot_Class.py:330
↓ 2 callersMethodMake_decision
(self)
old/bot-v1/Bot_Class.py:137
↓ 2 callersMethodadd_hist
(self, Date_temp: [float], Open_temp: [float], Close_temp: [float], High_temp: [float], Low_temp: [float], Vol
BotClass.py:232
↓ 2 callersMethodadd_hist
(self, Date_temp: [float], Open_temp: [float], Close_temp: [float], High_temp: [float], Low_temp: [float], Vol
old/bot-v2/Bot_Class.py:231
↓ 2 callersMethodadd_hist
(self, Date_temp, Open_temp, Close_temp, High_temp, Low_temp, Volume_temp)
old/bot-v1/Bot_Class.py:39
↓ 2 callersFunctionalign_Datasets
(Date_1min, High_1min, Low_1min, Close_1min, Open_1min, Date, Open, Close, High, Low, Volume)
old/bot-v2/Helper.py:527
↓ 2 callersFunctionalign_Datasets
(Date_1min, High_1min, Low_1min, Close_1min, Open_1min, Date, Open, Close, High, Low, Volume)
back_testing/Helper.py:527
↓ 2 callersMethodcheck_close_pos
(self, Trade_Direction)
old/bot-v2/Bot_Class.py:392
↓ 2 callersMethodcheck_close_pos
(self, current_pos)
old/bot-v1/Bot_Class.py:160
↓ 2 callersMethodclose_position
(self, symbol: str, trade_direction: int, total_position_size: float, time: int)
old/bot-v2/Helper.py:320
↓ 2 callersMethodclose_position
(self, symbol, trade_direction, total_position_size, time)
old/bot-v1/Helper.py:203
↓ 2 callersMethodconsume_new_candle
(self, payload)
BotClass.py:432
↓ 2 callersMethodgenerate_new_heikin_ashi
(self)
BotClass.py:440
↓ 2 callersMethodget_all_open_positions
Gets all open positions from binance
TradeManager.py:159
↓ 2 callersMethodhandle_socket_message
(self, Data, Date=0, Close=0, Volume=0, Open=0, High=0, Low=0)
old/bot-v2/Bot_Class.py:270
↓ 2 callersMethodhandle_socket_message
(self, Data, Date=0, Close=0, Volume=0, Open=0, High=0, Low=0)
old/bot-v1/Bot_Class.py:78
↓ 2 callersMethodmake_decision
(self)
BotClass.py:313
↓ 2 callersMethodopen_trade_check_threshold
(self, symbol: str, trade_direction: int, order_notional: float, CP: int, OP: int, tick_size: float, time: int
old/bot-v2/Helper.py:134
↓ 2 callersMethodprint_vals
(self)
old/bot-v2/Helper.py:118
↓ 2 callersMethodprint_vals
(self)
back_testing/Helper.py:118
↓ 2 callersMethodremove_last_candle
(self)
BotClass.py:408
↓ 2 callersMethodupdate_TP_SL
(self)
BotClass.py:173
↓ 2 callersMethodupdate_TP_SL
(self)
old/bot-v2/Bot_Class.py:180
↓ 2 callersMethodupdate_TP_SL
(self)
back_testing/Bot_Class.py:180
↓ 2 callersMethodupdate_indicators
(self)
BotClass.py:52
↓ 2 callersMethodupdate_indicators
(self)
old/bot-v2/Bot_Class.py:65
↓ 2 callersMethodupdate_indicators
(self)
back_testing/Bot_Class.py:65
↓ 1 callersMethodMake_decision
(self)
back_testing/Bot_Class.py:330
↓ 1 callersMethodadd_hist
(self, Date_temp: [float], Open_temp: [float], Close_temp: [float], High_temp: [float], Low_temp: [float], Vol
back_testing/Bot_Class.py:231
↓ 1 callersFunctionalign_Datasets
(Date_1min, High_1min, Low_1min, Close_1min, Open_1min, Date, Open, Close, High, Low, Volume)
old/bot-v1/Helper.py:409
↓ 1 callersFunctionbacktest_mode
()
old/bot-v2/app.py:95
↓ 1 callersFunctioncalculate_custom_tp_sl
Function for custom TP SL values that need trade information before calculating, may be needed depending on your TP SL Function Otherwise you
TradeManager.py:16
↓ 1 callersMethodcancel_and_remove_trades
Function that removes finished trades from the active_trades list
TradeManager.py:197
↓ 1 callersMethodcheck_close_pos
(self, Trade_Direction)
back_testing/Bot_Class.py:392
↓ 1 callersMethodcheck_margin_sufficient
Checks if we have sufficient margin remaining to open a new trade
TradeManager.py:167
↓ 1 callersMethodcheck_position_and_cancel_orders
Function that checks we haven't entered a position before cancelling it
TradeManager.py:444
↓ 1 callersMethodclose_position
Function for closing an open position, used when something goes wrong with a trade Can also be used to close a position based off a c
TradeManager.py:422
↓ 1 callersFunctioncompare_indicators
Function to compare the indicators for calculating the required buffer size
SharedHelper.py:14
↓ 1 callersFunctionconvert_buffer_to_string
Function that converts the candle number to a String in hours/days to pass to binance
Helper.py:11
↓ 1 callersFunctionget_Klines
(symbol, start_str, end_str, path)
old/bot-v2/Helper.py:366
↓ 1 callersFunctionget_Klines
(symbol, start_str, end_str, path)
old/bot-v1/Helper.py:249
↓ 1 callersFunctionget_Klines
(symbol, start_str, end_str, path)
back_testing/Helper.py:366
↓ 1 callersFunctionget_aligned_candles
(Date_1min, High_1min, Low_1min, Close_1min, Open_1min, Date, Open, Close, High, Low, Volume,
old/bot-v2/Helper.py:653
↓ 1 callersFunctionget_aligned_candles
(Date_1min, High_1min, Low_1min, Close_1min, Open_1min, Date, Open, Close, High, Low, Volume,
back_testing/Helper.py:653
↓ 1 callersMethodget_all_open_or_pending_trades
Gets all opened trades, User opened positions + Bot opened trades + Pending Bot trades
TradeManager.py:149
↓ 1 callersFunctionget_historical
(symbol: str, start_string: str, Interval: str)
old/bot-v2/Helper.py:506
↓ 1 callersFunctionget_historical
(symbol, start_string, Interval)
old/bot-v1/Helper.py:389
↓ 1 callersMethodget_historical
Function that pulls the historical data for a symbol
Helper.py:167
↓ 1 callersFunctionget_logger
()
Logger.py:9
↓ 1 callersMethodhandle_socket_message
(self, Data, Date=0, Close=0, Volume=0, Open=0, High=0, Low=0)
back_testing/Bot_Class.py:270
↓ 1 callersMethodnew_trades_loop
Loop that constantly runs and opens new trades as they come in
TradeManager.py:75
↓ 1 callersMethodplace_SL
Function that places a new SL order
TradeManager.py:392
↓ 1 callersMethodplace_SL
(self, symbol: str, SL: float, trade_direction: int, CP: int, tick_size: float, time: int)
old/bot-v2/Helper.py:281
↓ 1 callersMethodplace_SL
(self, symbol, SL, side, CP, tick_size, time)
old/bot-v1/Helper.py:164
↓ 1 callersMethodplace_TP
Function that places a new TP order
TradeManager.py:349
↓ 1 callersMethodplace_TP
(self, symbol: str, TP: [float, float], trade_direction: int, CP: int, tick_size: float, time: int)
old/bot-v2/Helper.py:235
↓ 1 callersMethodplace_TP
(self, symbol, TP, side, CP, tick_size, time)
old/bot-v1/Helper.py:118
↓ 1 callersMethodprint_vals
(self)
old/bot-v1/Helper.py:69
↓ 1 callersMethodremove_first_candle
(self)
BotClass.py:420
↓ 1 callersFunctionrun_backtester
(account_balance_start, leverage, order_size, start, end, TIME_INTERVAL, Number_Of_Trades,
old/bot-v2/Backtester.py:18
↓ 1 callersFunctionrun_backtester
(account_balance_start, leverage, order_size, start, end, TIME_INTERVAL, Number_Of_Trades,
back_testing/Backtester.py:18
↓ 1 callersMethodset_leverage
Function that sets the leverage for each coin as specified in live_trading_config.py
Helper.py:47
↓ 1 callersMethodsetup_bots
Function that initializes a Bot class for each symbol in our symbols_to_trade list / All symbols if trade_all_coins is True
Helper.py:97
↓ 1 callersMethodstart_websockets
Function that starts the websockets for price data in the bots
Helper.py:62
FunctionCheck_for_signals
(pipe: Pipe, leverage: int, order_Size: float, buffer: str, Interval: str, Max_Number_Of
old/bot-v2/Live_Bot.py:92
FunctionCheck_for_signals
(pipe: Pipe, leverage, order_Size, Max_Number_Of_Trades, client: Client, use_trailing_stop, trailing_stop_call
old/bot-v1/Live_Bot.py:94
FunctionEMA_cross
(Trade_Direction, EMA_short, EMA_long, current_index)
TradingStrats.py:617
FunctionEMA_cross
(Trade_Direction, EMA_short, EMA_long, current_index)
old/bot-v2/TradingStrats.py:626
FunctionEMA_cross
(Trade_Direction, Close, High, Low)
old/bot-v1/TradingStrats.py:908
FunctionEMA_cross
(Trade_Direction, EMA_short, EMA_long, current_index)
back_testing/TradingStrats.py:608
FunctionRSIStochEMA
(Trade_Direction,CloseStream,HighStream,LowStream,signal1,currentPos)
old/bot-v1/TradingStrats.py:521
FunctionRSI_trade
(Trade_Direction,Close,CurrentPos,ClosePos)
old/bot-v1/TradingStrats.py:44
FunctionSetSLTP
(stop_loss_val_arr, take_profit_val_arr, peaks, troughs, Close, High, Low, Trade_Direction, SL, TP, TP_SL_choi
TradingStrats.py:690
FunctionSetSLTP
(stop_loss_val_arr, take_profit_val_arr, peaks, troughs, Close, High, Low, Trade_Direction, SL, TP, TP_SL_choi
old/bot-v2/TradingStrats.py:699
FunctionSetSLTP
(stop_loss_val_arr, take_profit_val_arr, peaks, troughs, Close, High, Low, Trade_Direction, SL, TP, TP_SL_choi
back_testing/TradingStrats.py:681
FunctionStochRSIMACD
(Trade_Direction, fastd, fastk, RSI, MACD, macdsignal, current_index)
TradingStrats.py:282
FunctionStochRSIMACD
(Trade_Direction, fastd, fastk, RSI, MACD, macdsignal, current_index)
old/bot-v2/TradingStrats.py:290
FunctionStochRSIMACD
(Trade_Direction,CloseStream,HighStream,LowStream)
old/bot-v1/TradingStrats.py:302
FunctionStochRSIMACD
(Trade_Direction, fastd, fastk, RSI, MACD, macdsignal, current_index)
back_testing/TradingStrats.py:272
FunctionUSDT_SL_TP
(options)
TradingStrats.py:4
Method__init__
(self, client: Client, new_trades_q, print_trades_q)
TradeManager.py:31
Method__init__
(self, client: Client)
Helper.py:41
Method__init__
(self, index: int, entry_price: float, position_size: float, take_profit_val: float, stop_los
Helper.py:204
Method__init__
(self, symbol: str, Open: [float], Close: [float], High: [float], Low: [float], Volume: [float], Date: [str],
BotClass.py:12
Method__init__
(self, symbol: str, index: int)
old/bot-v2/Helper.py:24
Method__init__
(self, symbol)
old/bot-v2/Helper.py:49
Method__init__
(self)
old/bot-v2/Helper.py:79
Method__init__
(self, symbol, TP_price, SL_price, trade_direction)
old/bot-v2/Helper.py:86
Method__init__
(self, index: int, position_size: float, take_profit_val: float, stop_loss_val: float, trade_direction: int, o
old/bot-v2/Helper.py:100
Method__init__
(self, client: Client, use_trailing_stop: bool, trailing_stop_callback: float, use_market: bool)
old/bot-v2/Helper.py:128
Method__init__
(self, symbol: str, Open: [float], Close: [float], High: [float], Low: [float], Volume: [float], Date: [str],
old/bot-v2/Bot_Class.py:17
Method__init__
(self, symbol, index)
old/bot-v1/Helper.py:17
next →1–100 of 234, ranked by callers