MCPcopy Create free account

hub / github.com/LeonardoBerti00/DeepMarket / functions

Functions739 in github.com/LeonardoBerti00/DeepMarket

↓ 232 callersFunctionlog_print
(str, *args)
ABIDES/util/util.py:21
↓ 44 callersMethodlogEvent
(self, eventType, event = '', appendSummaryLog = False)
ABIDES/agent/Agent.py:101
↓ 42 callersMethodsendMessage
(self, recipientID, msg, delay = 0)
ABIDES/agent/Agent.py:150
↓ 42 callersMethodsetWakeup
(self, requestedTime)
ABIDES/agent/Agent.py:153
↓ 25 callersMethodplaceLimitOrder
(self, symbol, quantity, is_buy_order, limit_price)
ABIDES/agent/examples/ShockAgent.py:134
↓ 23 callersMethodrunner
(self, agents = [], startTime = None, stopTime = None, num_simulations = 1, defaultComputationDel
ABIDES/Kernel.py:53
↓ 19 callersMethodsetComputationDelay
(self, requestedDelay)
ABIDES/agent/Agent.py:159
↓ 18 callersMethodto_dict
(self)
ABIDES/util/order/Order.py:53
↓ 17 callersMethodcancelOrder
Used by any Trading Agent subclass to cancel any order. The order must currently appear in the agent's open orders list.
ABIDES/agent/WorldAgent.py:340
↓ 16 callersMethodgetKnownBidAsk
(self, symbol, best=True)
ABIDES/agent/TradingAgent.py:531
↓ 14 callersMethodfmtTime
(simulationTime)
ABIDES/Kernel.py:558
↓ 14 callersMethodgetCurrentSpread
(self)
ABIDES/agent/examples/ShockAgent.py:163
↓ 10 callersMethodgetHoldings
(self, symbol)
ABIDES/agent/TradingAgent.py:609
↓ 10 callersMethodplaceLimitOrder
(self, symbol, quantity, is_buy_order, limit_price, order_id=None, ignore_risk=True, tag=None)
ABIDES/agent/WorldAgent.py:326
↓ 9 callersMethodsendMessage
(self, recipientID, msg)
ABIDES/agent/ExchangeAgent.py:395
↓ 8 callersMethodgetCurrentSpread
(self, symbol, depth=1)
ABIDES/agent/TradingAgent.py:276
↓ 8 callersFunctionget_rand_obj
(seed_obj)
ABIDES/config/loop_obi.py:23
↓ 8 callersMethodhist
(self, simulated, title="Simulation data histogram", xlabel="Values", log=False, bins=75, clip=None)
ABIDES/realism/metrics/metric.py:16
↓ 8 callersFunctionpreprocess_data
(dataframes, n_lob_levels, chosen_model)
utils/utils_data.py:237
↓ 8 callersMethodrequestDataSubscription
(self, symbol, levels)
ABIDES/agent/WorldAgent.py:92
↓ 7 callersMethodfindAgentByType
(self, type)
ABIDES/Kernel.py:482
↓ 6 callersMethodgenerateNewOrderId
Generate a _Order object for a particular price level :param price: :type price: int
ABIDES/agent/market_makers/SpreadBasedMarketMakerAgent.py:264
↓ 6 callersMethodget_transacted_volume
Used by any trading agent subclass to query the total transacted volume in a given lookback period
ABIDES/agent/TradingAgent.py:286
↓ 6 callersMethodinitialiseState
Returns variables that keep track of whether spread and transacted volume have been observed.
ABIDES/agent/market_makers/AdaptiveMarketMakerAgent.py:69
↓ 6 callersMethodmarkToMarket
(self, holdings, use_midpoint=False)
ABIDES/agent/TradingAgent.py:579
↓ 6 callersMethodobservePrice
(self, symbol, currentTime, sigma_n = 0.0001, random_state = None)
ABIDES/util/oracle/DataOracle.py:122
↓ 5 callersMethod_extract
Internal function to extract correct values for a sender->recipient pair from parameters that can be specified as scalar, 1-D ndarray, or 2-D
ABIDES/model/LatencyModel.py:148
↓ 5 callersMethodgetInsideAsks
(self, depth=sys.maxsize)
ABIDES/util/OrderBook.py:390
↓ 5 callersMethodgetInsideBids
(self, depth=sys.maxsize)
ABIDES/util/OrderBook.py:378
↓ 5 callersMethodgetLastTrade
(self, symbol)
ABIDES/agent/etf/EtfPrimaryAgent.py:157
↓ 5 callersFunctionget_plot_colors
(symbols, start_idx=0)
ABIDES/realism/realism_utils.py:307
↓ 5 callersFunctionget_rand_obj
(seed_obj)
ABIDES/config/qlearning.py:19
↓ 5 callersMethodinitialiseState
Returns variables that keep track of whether spread and transacted volume have been observed.
ABIDES/agent/market_makers/POVMarketMakerAgent.py:46
↓ 5 callersFunctionreset_indexes
(dataframes)
utils/utils_data.py:230
↓ 4 callersFunctioncompute_correlation_by_lag
(log_returns, max_lag)
evaluation/visualizations/comparison_core_coef_lags.py:69
↓ 4 callersFunctiondollarize
(cents)
ABIDES/agent/FinancialAgent.py:27
↓ 4 callersMethoddollarize
(self, cents)
ABIDES/agent/FinancialAgent.py:18
↓ 4 callersMethodfmtHoldings
(self, holdings)
ABIDES/agent/TradingAgent.py:631
↓ 4 callersFunctionignored
Context manager that wraps the code block in a try except statement, catching specified exceptions and printing warning supplied by user.
ABIDES/util/util.py:89
↓ 4 callersMethodisEqualPrice
(self, order, o)
ABIDES/util/OrderBook.py:490
↓ 4 callersFunctionis_wide_book
Checks if orderbook dataframe is in wide or skinny format.
ABIDES/util/formatting/convert_order_book.py:112
↓ 4 callersFunctionload_and_compute_correlation
(file_path, window=30, lag=1)
evaluation/visualizations/comparison_correlation_coefficient.py:8
↓ 4 callersFunctionload_and_compute_log_returns
(file_path)
evaluation/visualizations/comparison_core_coef_lags.py:9
↓ 4 callersFunctionmake_orderbook_for_analysis
Make orderbook amenable to mid-price + liquidity plots from ABIDES input. :param stream_path: path to ABIDES Exchange output, e.g. Exchang
ABIDES/realism/realism_utils.py:102
↓ 4 callersFunctionnormalize_messages
(data, mean_size=None, mean_prices=None, std_size=None, std_prices=None, mean_time=None, std_time=None, mean_
utils/utils_data.py:124
↓ 4 callersMethodplaceBasketOrder
(self, quantity, is_create_order)
ABIDES/agent/etf/EtfMarketMakerAgent.py:231
↓ 4 callersMethodplaceMarketOrder
Place a market order at the exchange. :param quantity (int): order quantity :param is_buy_order (bool): True if Buy else Fal
ABIDES/agent/examples/ExampleExperimentalAgent.py:57
↓ 4 callersFunctionprocess_df
(df)
evaluation/visualizations/comparison_distribution_market_spread.py:18
↓ 4 callersMethodpublishOrderBookData
The exchange agents sends an order book update to the agents using the subscription API if one of the following conditions are met: 1) ag
ABIDES/agent/ExchangeAgent.py:294
↓ 4 callersFunctionseconds_since_midnight
Converts a pandas Series object of datetime64[ns] timestamps to Series of seconds from midnight on that day. Inspired by https://stackoverfl
ABIDES/util/formatting/convert_order_stream.py:38
↓ 4 callersMethodwriteLog
(self, dfLog, filename=None)
ABIDES/agent/Agent.py:165
↓ 3 callersFunctionaggregate_data
Aggregates cached experimental data. :param data_to_process: output of __name__.load_cached :return:
ABIDES/realism/impact_multiday_pov.py:357
↓ 3 callersMethodaugment
(self, x_t: torch.Tensor, cond_orders: torch.Tensor, cond_lob: torch.Tensor)
models/diffusers/gaussian_diffusion.py:216
↓ 3 callersMethodcancelOrders
cancels all resting limit orders placed by the market maker
ABIDES/agent/market_makers/MarketMakerAgent.py:124
↓ 3 callersFunctionclip_times
Keep only rows within certain time bounds of dataframe. :param df: DataFrame with DatetimeIndex :param start: lower bound :p
ABIDES/realism/realism_utils.py:57
↓ 3 callersFunctionconvert_stream_to_format
Converts imported ABIDES DataFrame into LOBSTER FORMAT.
ABIDES/util/formatting/convert_order_stream.py:48
↓ 3 callersFunctionfind_nearest_ts_idx
https://stackoverflow.com/a/42266882
ABIDES/realism/realism_utils.py:191
↓ 3 callersFunctionfirst_elem
Extracts first element of pandas Series s, or returns s if not a series.
ABIDES/realism/realism_utils.py:200
↓ 3 callersMethodgetWakeFrequency
Get time increment corresponding to wakeup period.
ABIDES/agent/market_makers/AdaptiveMarketMakerAgent.py:291
↓ 3 callersMethodget_average_transaction_price
Calculates the average price paid (weighted by the order size)
ABIDES/agent/TradingAgent.py:623
↓ 3 callersFunctionget_start_end_time
Returns first and last timestamp of pandas DataFrame in plot-scripts format or LOBSTER format.
ABIDES/util/formatting/convert_order_stream.py:106
↓ 3 callersFunctionget_year_month_day
Returns date as string from pandas series of timestamps. :param s: :type s: pandas.Series(datetime64[ns]) :return s_date_st
ABIDES/util/formatting/convert_order_stream.py:93
↓ 3 callersMethodinit_losses
(self)
models/diffusers/gaussian_diffusion.py:350
↓ 3 callersFunctionload_and_compute_log_returns
(file_path)
evaluation/visualizations/comparison_log_return_frequency.py:8
↓ 3 callersFunctionload_cached
Loads cached execution experiment data from __name__.make_cached into memory :return:
ABIDES/realism/impact_multiday_pov.py:339
↓ 3 callersMethodmodifyOrder
Used by any Trading Agent subclass to modify any existing limit order. The order must currently appear in the agent's open orders list.
ABIDES/agent/WorldAgent.py:351
↓ 3 callersFunctionnormalize_order_cgan
(data, mean_size=None, mean_depth=None, mean_cancel_depth=None, mean_size_100=None, std_size=None, std_depth=N
utils/utils_data.py:50
↓ 3 callersMethodplaceOrder
(self, currentTime, order)
ABIDES/agent/WorldAgent.py:225
↓ 3 callersMethodpost_process_order
(self, generated_order)
models/gan/gan_engine.py:162
↓ 3 callersFunctionprocess_orderbook
Method takes orderbook log and transforms into format amenable to "LOBSTER-ification" :param df: pd.DataFrame orderbook output by ABIDES :pa
ABIDES/util/formatting/convert_order_book.py:120
↓ 3 callersMethodupdate_losses
(self, ts, losses)
models/diffusers/TRADES/Sampler.py:63
↓ 3 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
models/diffusers/TRADES/Sampler.py:18
↓ 3 callersFunctionz_score_market_features
(data, mean_spread=None, mean_returns=None, mean_vol_imb=None, mean_abs_vol=None, std_spread=None, std_returns
utils/utils_data.py:9
↓ 3 callersFunctionz_score_orderbook
DONE: remember to use the mean/std of the training set, to z-normalize the test set.
utils/utils_data.py:93
↓ 2 callersMethod__init__
(self, num_heads: int, d_model: int, num_layers: int,
models/diffusers/TRADES/Transformer.py:7
↓ 2 callersMethod_adaptive_update_spread
Update internal spread estimate with exponentially weighted moving average :param spread: :return:
ABIDES/agent/market_makers/AdaptiveMarketMakerAgent.py:201
↓ 2 callersMethod_approx_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
models/diffusers/gaussian_diffusion.py:337
↓ 2 callersMethod_generate_order
(self, currentTime)
ABIDES/agent/WorldAgent.py:274
↓ 2 callersMethod_mean_flat
Take the mean over all non-batch dimensions.
models/diffusers/gaussian_diffusion.py:344
↓ 2 callersMethod_preprocess_orders_for_diff_cond
(self, orders, lob_snapshots)
ABIDES/agent/WorldAgent.py:636
↓ 2 callersMethodadvance_fundamental_value_series
(self, currentTime, symbol)
ABIDES/util/oracle/SparseMeanRevertingOracle.py:131
↓ 2 callersFunctionbundled_stream_binned_trade_counts
(bundled_interarrivals_dict, binwidth)
ABIDES/realism/order_flow_stylized_facts.py:183
↓ 2 callersMethodcancelOrders
(self)
ABIDES/agent/etf/EtfArbAgent.py:188
↓ 2 callersMethodcancelOrders
Given a list of _Order objects, remove the corresponding orders from ExchangeAgent's orderbook :param orders_to_cancel: orders to remove fro
ABIDES/agent/market_makers/SpreadBasedMarketMakerAgent.py:151
↓ 2 callersMethodcancelOrders
(self)
ABIDES/agent/execution/POVExecutionAgent.py:91
↓ 2 callersFunctioncheck_date_in_string
Check if date in format YYYY-MM-DD in a string.
ABIDES/realism/impact_single_day_pov.py:97
↓ 2 callersMethodcomputeOrdersToCancel
Given a mid price, computes the orders that need to be removed from orderbook, and pops these orders from bid and ask deques. :p
ABIDES/agent/market_makers/SpreadBasedMarketMakerAgent.py:119
↓ 2 callersMethodcompute_fundamental_at_timestamp
(self, ts, v_adj, symbol, pt, pv)
ABIDES/util/oracle/SparseMeanRevertingOracle.py:88
↓ 2 callersMethodcompute_manifold
(self, feats)
utils/utils.py:317
↓ 2 callersFunctioncompute_metric
(manifold_ref, feats_subject, desc='')
utils/utils.py:366
↓ 2 callersFunctioncompute_nearest_neighbour_distances
Args: input_features: numpy.ndarray([N, feature_dim], dtype=np.float32) nearest_k: int Returns: Distances to kth near
utils/utils.py:414
↓ 2 callersFunctioncompute_pairwise_distance
Args: data_x: numpy.ndarray([N, feature_dim], dtype=np.float32) data_y: numpy.ndarray([N, feature_dim], dtype=np.float32) Ret
utils/utils.py:385
↓ 2 callersFunctioncompute_pairwise_distances
args: X: np.array of shape N x dim Y: np.array of shape N x dim returns: N x N symmetric np.array
utils/utils.py:322
↓ 2 callersFunctioncreate_bins
(tao, start_time, end_time, orders_df, is_buy)
ABIDES/realism/market_impact/abm_market_impact.py:27
↓ 2 callersFunctioncreate_bins
(tao, start_time, end_time, orders_df, is_buy)
ABIDES/realism/market_impact/marketreplay_market_impact.py:49
↓ 2 callersFunctioncreate_conv_layers
Creates a sequential model of convolutional layers to progressively reduce the input size and the number of channels to 1, followed b
utils/utils_gan.py:5
↓ 2 callersMethodddpm_single_step
Compute the reverse diffusion process for the current time step
models/diffusers/gaussian_diffusion.py:148
↓ 2 callersMethoddeaugment
(self, noise: torch.Tensor, v: torch.Tensor)
models/diffusers/gaussian_diffusion.py:224
↓ 2 callersFunctiondedup_index
Deduplicate index values of pd.Series
ABIDES/realism/realism_utils.py:338
↓ 2 callersFunctionextract_seed_date_from_path
Extracts random seed and date from path of ABIDES output file :param p: path from which to extract seed and date :param yes_base: regex patt
ABIDES/realism/impact_multiday_pov.py:38
next →1–100 of 739, ranked by callers