Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheFourGreatErrors/alpha-rptr
/ functions
Functions
922 in github.com/TheFourGreatErrors/alpha-rptr
⨍
Functions
922
◇
Types & classes
61
↓ 3 callers
Function
crossunder
(a, b)
src/indicators.py:999
↓ 3 callers
Function
ct
(e)
html/js/moment.min.js:1
↓ 3 callers
Function
en
(e,t)
html/js/moment.min.js:1
↓ 3 callers
Method
entry
Places an entry order with various options, working as an equivalent to TradingView Pine script implementation: https://tradingview.c
src/exchange/bitmex/bitmex.py:582
↓ 3 callers
Function
escape_html
(value)
html/js/main.js:363
↓ 3 callers
Method
fetch_ohlcv
fetch OHLCV data :param start_time: start time :param end_time: end time :return:
src/exchange/ftx/ftx.py:843
↓ 3 callers
Method
filled_qty
(self)
src/exchange/binance_futures/binance_futures.py:1014
↓ 3 callers
Method
filled_qty
(self)
src/exchange/bybit/bybit.py:1441
↓ 3 callers
Function
g
(e)
html/js/moment.min.js:1
↓ 3 callers
Method
get_account_info
(self)
src/exchange/ftx/ftx_api.py:77
↓ 3 callers
Method
get_leverage
Get the leverage :return:
src/exchange/ftx/ftx_stub.py:82
↓ 3 callers
Method
get_open_order
Returns the order of the first open order that starts with the given order ID. Args: id (str): Order id. Returns only the
src/exchange/bybit/bybit.py:1682
↓ 3 callers
Method
get_open_order
Get order or all orders by id :param id: order id :param: return_all: return all orders that start with queried "id"
src/exchange/ftx/ftx.py:603
↓ 3 callers
Method
get_open_orders
Get all orders or only all conditional orders or only all active orders. Args: id (str, optional): If provided, returns o
src/exchange/bybit/bybit.py:1697
↓ 3 callers
Method
get_pnl
Calculate the profit and loss percentage for the current position. Returns: float: The profit and loss percentage.
src/exchange/binance_futures/binance_futures.py:437
↓ 3 callers
Method
get_position_avg_price
Get the current market price of the trading pair. Returns: float: The current market price.
src/exchange/binance_futures/binance_futures.py:414
↓ 3 callers
Method
get_position_avg_price
Get the average price of the current position. Returns: float: The average price of the current position.
src/exchange/bybit/bybit.py:501
↓ 3 callers
Method
get_prices
(self)
src/exchange/bitmex/orderbook.py:52
↓ 3 callers
Method
get_profit
Calculate the profit of the current position. Args: close (float, optional): The current price. If not provided, the inst
src/exchange/binance_futures/binance_futures.py:447
↓ 3 callers
Function
get_series_value
(series_data, series)
html/js/main.js:127
↓ 3 callers
Function
highest
(source, period)
src/indicators.py:1038
↓ 3 callers
Function
l
(e)
html/js/moment.min.js:1
↓ 3 callers
Method
load
(self, dict)
src/bot.py:31
↓ 3 callers
Method
load_ohlcv
Load the historical OHLCV data. This function loads the historical OHLCV data from a CSV file or API based on the specified bin size
src/exchange/backtest.py:393
↓ 3 callers
Method
order
(self, retry, id, long, qty, limit, stop, post_only, reduce_only, trigger_by, callback)
src/exchange/bybit/bybit.py:1537
↓ 3 callers
Method
override_strategy
A decorator to override the behavior of a target function with the provided custom strategy. args: strategy(funct
src/exchange/stub.py:778
↓ 3 callers
Function
rci
Calculate the Rolling Coefficient of Inefficiency (RCI) indicator for a given data series. Args: src (list or numpy array): The input
src/indicators.py:666
↓ 3 callers
Method
remove_ob_callback
Remove a previously added callback for order book changes. This function allows removing a callback function that was previously add
src/exchange/binance_futures/binance_futures.py:2091
↓ 3 callers
Method
remove_ob_callback
Remove a previously added callback for order book changes. This function allows removing a callback function that was previously add
src/exchange/bybit/bybit.py:2523
↓ 3 callers
Method
set_paths
Sets the paths for OHLC (Open, High, Low, Close) data directory and filename. Args: exchange (str): The exchange name.
src/exchange/backtest.py:101
↓ 3 callers
Method
set_trail_price
Set the trail price to the specified value. Args: value (float): The value to set as the trail price. Returns:
src/exchange/binance_futures/binance_futures.py:491
↓ 3 callers
Method
set_trail_price
Set the trail price to the specified value. Args: value (float): The value to set as the trail price. Returns:
src/exchange/bitmex/bitmex.py:333
↓ 3 callers
Method
set_trail_price
Set the trail price. Args: value (float): The trail price value. Returns: None
src/exchange/bybit/bybit.py:627
↓ 3 callers
Function
set_unrealized_series_visibility
(visible)
html/js/main.js:158
↓ 3 callers
Method
sub_order_id
(self)
src/exchange/bybit/bybit.py:1438
↓ 3 callers
Function
update_unrealized_series_visibility
(range)
html/js/main.js:165
↓ 3 callers
Function
v
(e,t)
html/js/moment.min.js:1
↓ 3 callers
Function
w
(e)
html/js/moment.min.js:1
↓ 3 callers
Function
wma
Calculate the Weighted Moving Average (WMA) of a given dataset. (TA-lib) Args: src (list or numpy array): The input data. len
src/indicators.py:812
↓ 2 callers
Function
$t
(e,t)
html/js/moment.min.js:1
↓ 2 callers
Function
Bt
(e,t,n,s)
html/js/moment.min.js:1
↓ 2 callers
Function
Ce
(e,t)
html/js/moment.min.js:1
↓ 2 callers
Function
D
(e)
html/js/moment.min.js:1
↓ 2 callers
Function
Dn
(e,t,n)
html/js/moment.min.js:1
↓ 2 callers
Function
Dt
(e)
html/js/moment.min.js:1
↓ 2 callers
Function
Ee
(e,t,n,s,i)
html/js/moment.min.js:1
↓ 2 callers
Function
Ft
(e,n)
html/js/moment.min.js:1
↓ 2 callers
Function
H
(e,t)
html/js/moment.min.js:1
↓ 2 callers
Function
Ke
(e,t)
html/js/moment.min.js:1
↓ 2 callers
Function
On
(e,t,n,s)
html/js/moment.min.js:1
↓ 2 callers
Function
Rt
(e,t)
html/js/moment.min.js:1
↓ 2 callers
Function
Xt
(e)
html/js/moment.min.js:1
↓ 2 callers
Function
Y
(e,t)
html/js/moment.min.js:1
↓ 2 callers
Method
__close_socket
(self, channel)
src/exchange/binance_futures/binance_futures_websocket.py:198
↓ 2 callers
Method
__create_private
(self)
src/exchange/bybit/bybit_websocket.py:109
↓ 2 callers
Method
__create_public
(self)
src/exchange/bybit/bybit_websocket.py:99
↓ 2 callers
Method
__get_auth
get auth info
src/exchange/bitmex/bitmex_websocket.py:70
↓ 2 callers
Method
__new_order
Create a new order (do not use directly). Args: ord_id (str): The order ID (user ID). side (str): 'Buy' for
src/exchange/binance_futures/binance_futures.py:566
↓ 2 callers
Method
__new_order
Create an order. Args: ord_id (str): Order ID. side (str): Order side (Buy or Sell). ord_qty (flo
src/exchange/bitmex/bitmex.py:403
↓ 2 callers
Method
__new_order
create an order
src/exchange/ftx/ftx.py:352
↓ 2 callers
Method
__restart_private_socket
(self)
src/exchange/binance_futures/binance_futures_websocket.py:203
↓ 2 callers
Method
__start_socket
(self, channel)
src/exchange/binance_futures/binance_futures_websocket.py:151
↓ 2 callers
Method
_normalize_algo_orders_list
Normalize a list of algo orders to match regular order field names. Args: orders (list or tuple): List of algo o
src/exchange/binance_futures/binance_futures_api.py:314
↓ 2 callers
Method
_order_params
Convert params to list with signature as last element :param data: :return:
src/exchange/binance_futures/binance_futures_api.py:177
↓ 2 callers
Function
at
(e)
html/js/moment.min.js:1
↓ 2 callers
Function
bin_size_converter
Converts a bin size string to a dictionary with "bin_size" and "seconds" keys. Args: bin_size (str): A string representing the bin si
src/__init__.py:89
↓ 2 callers
Function
bitmex_api
(test=True, config=None, api_key=None, api_secret=None)
src/exchange/bitmex/bitmex_api.py:53
↓ 2 callers
Function
bn
(e)
html/js/moment.min.js:1
↓ 2 callers
Function
bt
(e)
html/js/moment.min.js:1
↓ 2 callers
Method
cancel
cancel an order :param long: Long or short? :return success
src/exchange/ftx/ftx_stub.py:142
↓ 2 callers
Method
cancel_active_order
Cancel a specific active order by order ID. This function cancels a specific active order by its order ID. To use this funct
src/exchange/bybit/bybit.py:808
↓ 2 callers
Method
cancel_all
Cancel all the current orders. This function cancels all the open orders associated with the stub trading account for backtesting pu
src/exchange/stub.py:139
↓ 2 callers
Method
cancel_all
Cancel all open orders for the trading pair.
src/exchange/bitmex/bitmex.py:351
↓ 2 callers
Method
cancel_all_conditional
cancel opened conditional orders for this pair
src/exchange/ftx/ftx.py:284
↓ 2 callers
Method
cancel_conditional_order
Cancel a specific conditional order by order ID. This function cancels a specific conditional order by its order ID. To use
src/exchange/bybit/bybit.py:756
↓ 2 callers
Method
cancel_order
(self, id)
src/exchange/binance_futures/binance_futures.py:1098
↓ 2 callers
Method
cancel_order
(self, id)
src/exchange/bybit/bybit.py:1527
↓ 2 callers
Method
cancel_orders
(self, market_name: str = None, conditional_orders: bool = False, limit_orders: bool = F
src/exchange/ftx/ftx_api.py:174
↓ 2 callers
Method
close
close websocket
src/exchange/binance_futures/binance_futures_websocket.py:373
↓ 2 callers
Function
d
(e,t)
html/js/moment.min.js:1
↓ 2 callers
Method
download_data
download or get the data and set variables related to ohlcv data
src/exchange/bitmex/bitmex_backtest.py:72
↓ 2 callers
Method
end
(self)
src/exchange/binance_futures/binance_futures.py:1051
↓ 2 callers
Method
end
(self)
src/exchange/bybit/bybit.py:1480
↓ 2 callers
Method
entry_position_size
(self, balance)
src/strategies/MACDLongOnly.py:38
↓ 2 callers
Method
entry_position_size
(self, balance)
src/strategies/SAR.py:37
↓ 2 callers
Method
entry_position_size
(self, balance)
src/strategies/SupertrendStrat.py:38
↓ 2 callers
Method
eval_exit
Evaluate the profit target, stop loss, and trailing conditions for triggering an exit.
src/exchange/bitmex/bitmex.py:913
↓ 2 callers
Method
eval_exit
Evaluate the profit target, stop loss, and trailing conditions for triggering an exit.
src/exchange/bybit/bybit.py:1861
↓ 2 callers
Method
eval_sltp
Evaluate and execute the simple take profit and stop loss implementation. - Sends a reduce-only stop loss order upon entering a posit
src/exchange/bitmex/bitmex.py:945
↓ 2 callers
Method
eval_sltp
Evaluate and execute the simple take profit and stop loss implementation. - Sends a reduce-only stop loss order upon entering a posit
src/exchange/bybit/bybit.py:1909
↓ 2 callers
Method
fetch_ohlcv
Fetch OHLCV data within the specified time range. Args: bin_size (str): Time frame to fetch (e.g., "1m", "1h", "1d").
src/exchange/binance_futures/binance_futures.py:1588
↓ 2 callers
Method
fetch_ohlcv
Fetch OHLCV data within the specified time range. Args: bin_size (str): Time frame to fetch (e.g., "1m", "1h", "1d").
src/exchange/bybit/bybit.py:2016
↓ 2 callers
Function
find_index
Find the index in source list of the targeted ID.
src/exchange/bybit/bybit.py:70
↓ 2 callers
Function
fit_chart_to_equity_range
()
html/js/main.js:524
↓ 2 callers
Function
format_metric_percent
(value)
html/js/main.js:630
↓ 2 callers
Function
format_percent
(value)
html/js/main.js:139
↓ 2 callers
Method
futures_get_open_orders
Get all open orders on a symbol. Combines both regular and algo open orders. https://binance-docs.github.io/apidocs/futures/en/#curren
src/exchange/binance_futures/binance_futures_api.py:654
↓ 2 callers
Method
get_all_balances
Get all balances. Returns: dict: A dictionary containing all balances.
src/exchange/bybit/bybit.py:399
↓ 2 callers
Method
get_balance
get balance :return:
src/exchange/bitmex/bitmex.py:210
↓ 2 callers
Method
get_leverage
Get the current leverage. Returns: float: The current leverage.
src/exchange/binance_futures/binance_futures.py:336
← previous
next →
201–300 of 922, ranked by callers