Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/50shadesofgwei/funding-rate-arbitrage
/ functions
Functions
502 in github.com/50shadesofgwei/funding-rate-arbitrage
⨍
Functions
502
◇
Types & classes
41
↓ 14 callers
Function
is_transaction_hash
(tx_hash)
GlobalUtils/globalUtils.py:202
↓ 7 callers
Function
get_percentage_away_from_liquidation_price
(position: dict)
PositionMonitor/Master/MasterPositionMonitorUtils.py:37
↓ 5 callers
Method
calculate_new_funding_velocity
(cls, symbol: str, absolute_trade_size_usd: float, is_long: bool, open_interest: dict)
GlobalUtils/MarketDirectories/GMXMarketDirectory.py:116
↓ 5 callers
Function
get_dict_from_database_response
(response)
PositionMonitor/Master/MasterPositionMonitorUtils.py:16
↓ 5 callers
Method
get_funding_rate
(self, position: dict)
PositionMonitor/GMX/GMXPositionMonitor.py:53
↓ 5 callers
Function
get_open_position_for_exchange
(exchange: str)
PositionMonitor/Master/MasterPositionMonitorUtils.py:82
↓ 5 callers
Function
print_stats
Print the statistics in a formatted way. Args: service_name (str): The name of the service. stats (dict): The statistics dic
test/caller_perf.py:88
↓ 5 callers
Function
time_request
Time the request function and return statistics. Args: create_client_func (Callable[[], Any]): The function to create a client.
test/caller_perf.py:23
↓ 4 callers
Function
adjust_trade_size_for_direction
(trade_size: float, is_long: bool)
GlobalUtils/globalUtils.py:139
↓ 4 callers
Function
get_adjusted_size
(size: float, is_long: bool)
MatchingEngine/profitabilityChecks/checkProfitabilityUtils.py:3
↓ 4 callers
Function
get_market_for_symbol
(symbol: str)
TxExecution/HMX/HMXPositionControllerUtils.py:6
↓ 4 callers
Method
get_market_id
(cls, symbol: str)
GlobalUtils/MarketDirectories/SynthetixMarketDirectory.py:82
↓ 4 callers
Method
get_open_positions
(self)
TxExecution/GMX/GMXPositionController.py:191
↓ 4 callers
Method
get_open_positions
(self)
TxExecution/Perennial/PerennialPositionController.py:174
↓ 4 callers
Function
get_target_tokens_for_OKX
()
APICaller/master/MasterUtils.py:77
↓ 4 callers
Method
initialize
(cls)
GlobalUtils/MarketDirectories/GMXMarketDirectory.py:17
↓ 4 callers
Function
normalize_symbol
(symbol: str)
GlobalUtils/globalUtils.py:136
↓ 3 callers
Method
_calculate_average_funding_rate
(self, period_days: int, rates: list, blocks_per_sample=1)
Backtesting/Synthetix/SynthetixBacktester.py:271
↓ 3 callers
Method
_calculate_average_funding_rate_for_period
(self, period_days: int, rates: list)
Backtesting/Binance/binanceBacktester.py:56
↓ 3 callers
Method
close_position_pair
(self, symbol: str, reason: str, exchanges: list)
TxExecution/Master/MasterPositionController.py:82
↓ 3 callers
Method
get_default_account
(self)
TxExecution/Synthetix/SynthetixPositionController.py:274
↓ 3 callers
Method
get_market_key_for_symbol
(cls, symbol: str)
GlobalUtils/MarketDirectories/GMXMarketDirectory.py:252
↓ 3 callers
Method
get_open_position
(self)
PositionMonitor/GMX/GMXPositionMonitor.py:18
↓ 3 callers
Function
get_price_coingecko
(symbol)
GlobalUtils/globalUtils.py:260
↓ 3 callers
Function
get_target_exchanges
()
APICaller/master/MasterUtils.py:38
↓ 3 callers
Function
get_target_tokens_for_binance
()
APICaller/master/MasterUtils.py:69
↓ 3 callers
Method
is_already_position_open
(self)
TxExecution/HMX/HMXPositionController.py:145
↓ 3 callers
Function
set_paths
()
APICaller/GMX/GMXCallerUtils.py:32
↓ 2 callers
Method
_add_collateral
(self, amount: int)
TxExecution/Synthetix/SynthetixPositionController.py:151
↓ 2 callers
Method
_approve_spot_market_to_spend_collateral
(self, token_address: str, amount: int)
TxExecution/Synthetix/SynthetixPositionController.py:188
↓ 2 callers
Method
_was_trade_executed_successfully
(self, order_id: str)
TxExecution/ByBit/ByBitPositionController.py:186
↓ 2 callers
Function
apply_factor
(value, factor)
TxExecution/GMX/GMXGetLiqPrice.py:147
↓ 2 callers
Function
calculate_daily_funding_velocity
(symbol: str, skew_usd: float)
APICaller/HMX/HMXCallerUtils.py:12
↓ 2 callers
Function
calculate_new_funding_velocity_perennial
(symbol: str, trade_size_usd: float, is_long: bool)
MatchingEngine/profitabilityChecks/Perennial/PerennialProfitabilityChecks.py:7
↓ 2 callers
Method
check_for_accounts
(self)
TxExecution/Synthetix/SynthetixPositionController.py:287
↓ 2 callers
Method
create_or_access_database
(self)
PositionMonitor/TradeDatabase/TradeDatabase.py:23
↓ 2 callers
Method
estimate_profit_for_exchange
(self, time_period_hours: float, size_usd: float, opportunity: dict, exchange: str)
MatchingEngine/profitabilityChecks/checkProfitability.py:93
↓ 2 callers
Method
find_delta_neutral_arbitrage_opportunities
(self, funding_rates)
MatchingEngine/MatchingEngine.py:68
↓ 2 callers
Method
find_most_profitable_opportunity
(self, opportunities: list, is_demo: bool)
MatchingEngine/profitabilityChecks/checkProfitability.py:31
↓ 2 callers
Function
get_arbitrum_usdc_balance_global
()
GlobalUtils/globalUtils.py:240
↓ 2 callers
Method
get_available_collateral_for_exchange
(self, exchange: str)
TxExecution/Master/MasterPositionController.py:126
↓ 2 callers
Method
get_available_markets
(self)
APICaller/HMX/HMXCaller.py:86
↓ 2 callers
Function
get_base_block_number
()
GlobalUtils/globalUtils.py:169
↓ 2 callers
Function
get_claimable_funding_amount
(market: str, token: str, account: str)
APICaller/GMX/GMXContractUtils.py:370
↓ 2 callers
Function
get_decimals_for_symbol
(symbol)
GlobalUtils/globalUtils.py:65
↓ 2 callers
Method
get_funding_interval_for_symbol
(self, symbol: str)
APICaller/ByBit/ByBitCaller.py:94
↓ 2 callers
Method
get_funding_rates
(self, symbols: list)
APICaller/GMX/GMXCaller.py:12
↓ 2 callers
Method
get_historical_funding_rate_for_symbol
(self, symbol: str, limit: int)
APICaller/Okx/okxCaller.py:47
↓ 2 callers
Function
get_index_token_address_for_symbol
(symbol)
APICaller/GMX/GMXContractUtils.py:248
↓ 2 callers
Method
get_maker_taker_fee
(cls, symbol: str, skew_usd: float, is_long: bool, absolute_size_usd: float)
GlobalUtils/MarketDirectories/SynthetixMarketDirectory.py:146
↓ 2 callers
Method
get_maker_taker_fee
(cls, symbol: str, skew_usd: float, is_long: bool, absolute_size_usd: float)
GlobalUtils/MarketDirectories/GMXMarketDirectory.py:322
↓ 2 callers
Method
get_market_params
(cls, symbol: str)
GlobalUtils/MarketDirectories/SynthetixMarketDirectory.py:68
↓ 2 callers
Method
get_market_params
(cls, symbol: str)
GlobalUtils/MarketDirectories/GMXMarketDirectory.py:221
↓ 2 callers
Method
get_next_funding_events_for_time_period
(self, symbol: str, time_period_hours: int)
APICaller/Okx/okxCaller.py:59
↓ 2 callers
Function
get_perps_contract
()
Backtesting/Synthetix/SynthetixBacktesterUtils.py:23
↓ 2 callers
Method
get_position_object_from_response
(self, response)
TxExecution/Binance/BinancePositionController.py:119
↓ 2 callers
Method
get_position_object_from_response
(self, response)
TxExecution/OKX/OKXPositionController.py:191
↓ 2 callers
Function
get_positions_for_all_markets
()
TxExecution/Perennial/PerennialPositionControllerUtils.py:21
↓ 2 callers
Function
get_side
(side: str)
TxExecution/OKX/OKXPositionControllerUtils.py:76
↓ 2 callers
Function
get_symbol_for_market_address
(market_address: str)
APICaller/Perennial/perennialCallerUtils.py:17
↓ 2 callers
Function
get_target_tokens_for_synthetix
()
APICaller/master/MasterUtils.py:85
↓ 2 callers
Function
get_threshold_for_decrease_funding
(market: str)
APICaller/GMX/GMXContractUtils.py:331
↓ 2 callers
Method
get_value
(self)
APICaller/ByBit/ByBitUtils.py:12
↓ 2 callers
Method
get_value
(self)
APICaller/Synthetix/SynthetixUtils.py:16
↓ 2 callers
Function
initialise_client
()
GlobalUtils/globalUtils.py:68
↓ 2 callers
Method
is_already_position_open
(self)
TxExecution/Master/MasterPositionController.py:166
↓ 2 callers
Method
is_near_liquidation_price
(self, position: dict)
PositionMonitor/GMX/GMXPositionMonitor.py:40
↓ 2 callers
Method
is_order_filled
(self, order_id: int, symbol: str)
TxExecution/Binance/BinancePositionController.py:155
↓ 2 callers
Method
is_order_filled
(self, order_id: int, symbol: str)
TxExecution/OKX/OKXPositionController.py:230
↓ 2 callers
Method
load_data_from_json
(self, symbol: str)
Backtesting/Binance/binanceBacktester.py:168
↓ 2 callers
Function
minCollateralFactorKey
(market: str)
APICaller/GMX/GMXContractUtils.py:65
↓ 2 callers
Method
search_for_opportunities
(self)
Main/main_class_demo.py:22
↓ 2 callers
Method
search_for_opportunities
(self)
Main/main_class.py:28
↓ 2 callers
Function
setup_topics
()
GlobalUtils/logger.py:26
↓ 2 callers
Function
threshold_for_stable_funding_key
(market: str)
APICaller/GMX/GMXContractUtils.py:89
↓ 1 callers
Method
_analyze_opportunities
(self, sorted_keys: list, nested_dict: dict, open_interest_data: dict)
APICaller/GMX/GMXCaller.py:41
↓ 1 callers
Method
_approve_collateral_for_perps_market_proxy
(self, amount: int)
TxExecution/Synthetix/SynthetixPositionController.py:204
↓ 1 callers
Method
_calculate_net_rates
(self, borrow_data: dict, funding_data: dict)
APICaller/GMX/GMXCaller.py:106
↓ 1 callers
Method
_collect_data_raw
(self)
APICaller/GMX/GMXCaller.py:122
↓ 1 callers
Method
_create_account
(self)
TxExecution/Synthetix/SynthetixPositionController.py:165
↓ 1 callers
Method
_create_nested_dict
(self, available_liquidity: dict, net_rate_dict: dict)
APICaller/GMX/GMXCaller.py:84
↓ 1 callers
Method
_execute_atomic_order
(self, amount: int, side: str)
TxExecution/Synthetix/SynthetixPositionController.py:229
↓ 1 callers
Method
_fetch_funding_rate_data
(self, symbol: str)
APICaller/ByBit/ByBitCaller.py:10
↓ 1 callers
Method
_fetch_funding_rate_for_symbol
(self, symbol: str)
APICaller/Binance/binanceCaller.py:52
↓ 1 callers
Method
_fetch_funding_rate_for_symbol
(self, symbol: str)
APICaller/Okx/okxCaller.py:83
↓ 1 callers
Method
_filter_market_data
(self, all_market_data: dict, symbols: list)
APICaller/HMX/HMXCaller.py:32
↓ 1 callers
Method
_filter_market_data
(self, funding_rate_data: dict, symbols: list, snapshots: dict)
APICaller/Perennial/perennialCaller.py:43
↓ 1 callers
Method
_filter_market_data
(self, markets_by_name, symbols)
APICaller/Synthetix/SynthetixCaller.py:18
↓ 1 callers
Method
_get_average_duration_above_mean
(self, rates: list, mean: float)
Backtesting/Binance/binanceBacktester.py:81
↓ 1 callers
Method
_get_average_duration_above_mean
(self, rates: list, mean: float)
Backtesting/Synthetix/SynthetixBacktester.py:99
↓ 1 callers
Method
_get_current_out_of_bounds_streak
(self, mean: float, data: list)
Backtesting/Binance/binanceBacktester.py:66
↓ 1 callers
Method
_get_current_out_of_bounds_streak
(self, mean: float, rates: list)
Backtesting/Synthetix/SynthetixBacktester.py:133
↓ 1 callers
Method
_get_current_rate_data
(self, rates: list)
Backtesting/Synthetix/SynthetixBacktester.py:81
↓ 1 callers
Method
_get_long_short_ratio
(self, market_summary)
Backtesting/Synthetix/SynthetixBacktester.py:249
↓ 1 callers
Method
_get_open_interest
(self, symbol: str)
Backtesting/Binance/binanceBacktester.py:132
↓ 1 callers
Method
_get_open_interest_usd_with_differential
(self, symbol)
Backtesting/Binance/binanceBacktester.py:113
↓ 1 callers
Method
_get_open_interest_usd_with_differential
(self, symbol)
Backtesting/Synthetix/SynthetixBacktester.py:161
↓ 1 callers
Method
_get_past_month_average_rate
(self, rates: list)
Backtesting/Binance/binanceBacktester.py:48
↓ 1 callers
Method
_get_past_month_average_rate
(self, rates: list)
Backtesting/Synthetix/SynthetixBacktester.py:262
↓ 1 callers
Method
_get_past_week_average_rate
(self, rates: list)
Backtesting/Binance/binanceBacktester.py:44
next →
1–100 of 502, ranked by callers