MCPcopy Create free account

hub / github.com/LeonardoBerti00/DeepMarket / functions

Functions739 in github.com/LeonardoBerti00/DeepMarket

↓ 2 callersMethodforward
(self, cond_orders, x_0, cond_lob, is_train, batch_idx=None)
models/diffusers/diffusion_engine.py:69
↓ 2 callersMethodforward
(self, x)
evaluation/visualizations/PCA_plots.py:19
↓ 2 callersFunctionforward_fill_series
For two pandas series with DateTimeIndex , return corresponding series with the same numer of entries, forward-filled. :type s1: pd.Series
ABIDES/realism/realism_utils.py:331
↓ 2 callersMethodforward_reparametrized
(self, x_0: torch.Tensor, t: int)
models/diffusers/gaussian_diffusion.py:144
↓ 2 callersMethodgetBookLiquidity
(self, book, within)
ABIDES/agent/TradingAgent.py:564
↓ 2 callersMethodgetDailyOpenPrice
(self, symbol, mkt_open, cents=True)
ABIDES/util/oracle/DataOracle.py:73
↓ 2 callersMethodgetKnownLiquidity
(self, symbol, within=0.00)
ABIDES/agent/TradingAgent.py:552
↓ 2 callersMethodgetPriceAtTime
Get the true price of a symbol at the requested time. :param symbol: which symbol to query :type symbol: str :par
ABIDES/util/oracle/ExternalFileOracle.py:46
↓ 2 callersMethodgetPriceEstimates
(self)
ABIDES/agent/etf/EtfArbAgent.py:119
↓ 2 callersFunctionget_kth_value
(np_array, k)
utils/utils.py:374
↓ 2 callersMethodhandleLimitOrder
(self, order)
ABIDES/util/OrderBook.py:46
↓ 2 callersMethodisBetterPrice
(self, order, o)
ABIDES/util/OrderBook.py:475
↓ 2 callersMethodline
(self, simulated, title="Simulation data", xlabel="X", ylabel="Y", logy=False)
ABIDES/realism/metrics/metric.py:35
↓ 2 callersMethodloss
(self)
models/diffusers/diffusion_engine.py:118
↓ 2 callersMethodma
(a, n=20)
ABIDES/agent/examples/MomentumAgent.py:77
↓ 2 callersFunctionmake_cache_and_visualisation_dir
()
ABIDES/realism/realism_utils.py:366
↓ 2 callersFunctionmake_cached
Process ABIDES output data into format suitable for aggregation and cache. :param params: Data structure constructed by __name__.generate_plot_d
ABIDES/realism/impact_multiday_pov.py:328
↓ 2 callersFunctionmake_numeric
(s)
ABIDES/util/simulation_run_stats.py:19
↓ 2 callersMethodmodel_checkpointing
(self, loss)
models/gan/gan_engine.py:231
↓ 2 callersFunctionnp_predict_all
(X, weight)
ABIDES/util/crypto/logReg.py:73
↓ 2 callersMethodplaceOrders
Momentum Agent actions logic
ABIDES/agent/examples/MomentumAgent.py:59
↓ 2 callersMethodplaceOrders
Given a mid-price, compute new orders that need to be placed, then send the orders to the Exchange. :param mid: mid-price :t
ABIDES/agent/market_makers/POVMarketMakerAgent.py:171
↓ 2 callersMethodplaceOrders
Given a mid-price, compute new orders that need to be placed, then send the orders to the Exchange. :param mid: mid-price :t
ABIDES/agent/market_makers/AdaptiveMarketMakerAgent.py:263
↓ 2 callersMethodplaceOrders
Given a mid-price, compute new orders that need to be placed, then send the orders to the Exchange. :param mid: mid-price :t
ABIDES/agent/market_makers/SpreadBasedMarketMakerAgent.py:225
↓ 2 callersFunctionplot_binned_trade_counts
Plot binned counts of trade volume.
ABIDES/realism/order_flow_stylized_facts.py:214
↓ 2 callersFunctionpredict_all
(trainX, weight)
ABIDES/util/crypto/logReg.py:94
↓ 2 callersFunctionprep_data
Prepares and caches POV market impact experiment output files for further aggregation and processing. :param plot_data: Data structure holding p
ABIDES/realism/impact_single_day_pov.py:124
↓ 2 callersMethodpreprocess
(self)
evaluation/quantitative_eval/predictive_lstm.py:34
↓ 2 callersFunctionpreprocess_data
(df)
evaluation/visualizations/PCA_plots.py:47
↓ 2 callersMethodprettyPrint
(self, silent=False)
ABIDES/util/OrderBook.py:533
↓ 2 callersMethodqueryLastTrade
(self, symbol, price)
ABIDES/agent/TradingAgent.py:469
↓ 2 callersFunctionread_simulated_quotes
(file, symbol)
ABIDES/cli/midpoint_plot.py:33
↓ 2 callersFunctionread_simulated_quotes
(file)
ABIDES/cli/intraday_index.py:40
↓ 2 callersFunctionread_simulated_quotes
(file, symbol)
ABIDES/cli/sparse_midpoint.py:33
↓ 2 callersFunctionread_simulated_quotes
(file, symbol)
ABIDES/cli/event_midpoint.py:32
↓ 2 callersFunctionread_simulated_trades
(file, symbol)
ABIDES/cli/event_ticker.py:32
↓ 2 callersFunctionread_simulated_trades
(file, symbol)
ABIDES/cli/ticker_plot.py:47
↓ 2 callersFunctionread_simulated_trades
(file, symbol)
ABIDES/cli/sparse_ticker.py:48
↓ 2 callersFunctionread_trades
(trade_file, symbols)
ABIDES/util/oracle/DataOracle.py:23
↓ 2 callersFunctionrun_wandb
(config: Configuration, accelerator)
run.py:115
↓ 2 callersMethodsample
(self, **kwargs)
models/gan/gan_engine.py:112
↓ 2 callersMethodsingle_step
(self, cond_orders, x_0, cond_lob, batch_idx=None)
models/diffusers/diffusion_engine.py:93
↓ 2 callersFunctionsinusoidal_positional_embedding
(token_sequence_size, token_embedding_dim, n=10000.0)
utils/utils.py:42
↓ 2 callersFunctiontrain
(config: Configuration, trainer: L.Trainer)
run.py:25
↓ 2 callersMethodtype_embedding
(self, x_0, cond)
models/diffusers/diffusion_engine.py:108
↓ 2 callersMethodupdateEstimates
(self)
ABIDES/agent/ValueAgent.py:126
↓ 1 callersMethod__critic_step
(self, y: torch.Tensor, market_orders: torch.Tensor, optimizer: Union[torch.optim.Optimizer,Lion])
models/gan/gan_engine.py:138
↓ 1 callersMethod__generator_step
(self, y: torch.Tensor, market_orders: torch.Tensor, optimizer: Union[torch.optim.Optimizer, Lion])
models/gan/gan_engine.py:118
↓ 1 callersMethod__init__
:param args: superclass args :param wake_freq: Frequency of wakeup -- str to be parsed by pd.Timedelta :param order_size: siz
ABIDES/agent/examples/ExampleExperimentalAgent.py:74
↓ 1 callersMethod__init__
(self, seq_len: int = 256, lstm_input_dim: int = 9, order_f
models/gan/cgan.py:8
↓ 1 callersMethod__init__
(self, hidden_size, frequency_embedding_size, num_diffusionsteps)
models/diffusers/TRADES/Embedders.py:10
↓ 1 callersMethod__init__
(self, model, train_loader, test_loader, criterion, optimizer, device)
evaluation/quantitative_eval/predictive_lstm.py:89
↓ 1 callersMethod__str__
(self)
ABIDES/util/order/LimitOrder.py:25
↓ 1 callersMethod__str__
(self)
ABIDES/util/order/MarketOrder.py:16
↓ 1 callersMethod__str__
(self)
ABIDES/util/order/etf/BasketOrder.py:21
↓ 1 callersMethod_adaptive_update_window_and_tick_size
Update window size and tick size relative to internal spread estimate. :return:
ABIDES/agent/market_makers/AdaptiveMarketMakerAgent.py:210
↓ 1 callersMethod_binarization
(self)
evaluation/quantitative_eval/predictive_lstm.py:64
↓ 1 callersMethod_check_inf
(self)
evaluation/quantitative_eval/predictive_lstm.py:67
↓ 1 callersFunction_cluster_into_bins
Clusters the union of the data points and returns the cluster distribution. Clusters the union of eval_data and ref_data into num_clusters using mi
utils/utils.py:134
↓ 1 callersMethod_create_dataframes_splitted
(self, path, split_days, COLUMNS_NAMES)
preprocessing/LOBSTERDataBuilder.py:71
↓ 1 callersMethod_define_log_metrics
(self)
models/diffusers/diffusion_engine.py:260
↓ 1 callersMethod_gaussian_log_likelihood
It computes the log-likelihood log(p(x_0)) that is the probability that x was generated by the predicted distribution. We need it whe
models/diffusers/gaussian_diffusion.py:310
↓ 1 callersMethod_get_data
Loads the data.
preprocessing/LOBDataset.py:46
↓ 1 callersMethod_get_recent_history
Gets portion of self.history that has arrived since last call of self.get_transacted_volume. Also updates self._transacted_volume[self.h
ABIDES/util/OrderBook.py:401
↓ 1 callersMethod_load_orders_lob
(self, symbol, data_dir, date, date_trading_days)
ABIDES/agent/WorldAgent.py:701
↓ 1 callersMethod_mse_loss
(self, noise_t, noise_true)
models/diffusers/gaussian_diffusion.py:229
↓ 1 callersMethod_normal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars
models/diffusers/gaussian_diffusion.py:300
↓ 1 callersMethod_normalize_dataframes_TRADES
(self)
preprocessing/LOBSTERDataBuilder.py:145
↓ 1 callersMethod_normalize_dataframes_gan
(self)
preprocessing/LOBSTERDataBuilder.py:165
↓ 1 callersMethod_one_hot_encode
(self)
evaluation/quantitative_eval/predictive_lstm.py:53
↓ 1 callersMethod_p_mean
Get the mean of the prior p(x_{t-1} | x_t).
models/diffusers/gaussian_diffusion.py:274
↓ 1 callersMethod_postprocess_generated_TRADES
we need to go from the output of the diffusion model to an actual order
ABIDES/agent/WorldAgent.py:493
↓ 1 callersMethod_postprocess_generated_gan
we need to go from the output of the cgan model to an actual order
ABIDES/agent/WorldAgent.py:360
↓ 1 callersMethod_prepare_dataframes
(self, path)
preprocessing/LOBSTERDataBuilder.py:48
↓ 1 callersMethod_preprocess_events_for_market_replay
(self, events, lob)
ABIDES/agent/WorldAgent.py:739
↓ 1 callersMethod_preprocess_market_features_for_cgan
(self, lob_snapshots)
ABIDES/agent/WorldAgent.py:796
↓ 1 callersMethod_q_posterior_mean_var
Get the mean and variance of the posterior q(x_{t-1} | x_t, x_0). :param x_0: the initial image. :param x_t: the image at ti
models/diffusers/gaussian_diffusion.py:281
↓ 1 callersMethod_remove_columns
(self)
evaluation/quantitative_eval/predictive_lstm.py:60
↓ 1 callersMethod_save
(self, path_where_to_save)
preprocessing/LOBSTERDataBuilder.py:180
↓ 1 callersMethod_split_days
(self)
preprocessing/LOBSTERDataBuilder.py:191
↓ 1 callersMethod_unrolled_transactions_from_order_history
Returns a DataFrame with columns ['execution_time', 'quantity'] from a dictionary with same format as self.history, describing executed t
ABIDES/util/OrderBook.py:428
↓ 1 callersMethod_update_active_limit_orders
(self)
ABIDES/agent/WorldAgent.py:617
↓ 1 callersMethod_update_lob_snapshot
(self, msg)
ABIDES/agent/WorldAgent.py:766
↓ 1 callersMethod_update_unrolled_transactions
Updates self._transacted_volume["unrolled_transactions"] with data from recent_history :return:
ABIDES/util/OrderBook.py:418
↓ 1 callersMethod_vlb_loss
Get a term for the variational lower-bound. The resulting units are bits. This allows for comparison to other papers.
models/diffusers/gaussian_diffusion.py:242
↓ 1 callersMethod_warmed_up
(self)
models/diffusers/TRADES/Sampler.py:75
↓ 1 callersMethod_z_score_orderbook
(self, orderbook)
ABIDES/agent/WorldAgent.py:629
↓ 1 callersFunctionaggregate_orderbook_stats
Compute quantiles for mid-price and liquidity measures. :param saved_orderbooks: output of __name__.process_orderbooks_for_liquidity_plots
ABIDES/realism/impact_multiday_pov.py:223
↓ 1 callersMethodappendSummaryLog
(self, sender, eventType, event)
ABIDES/Kernel.py:524
↓ 1 callersFunctionaugment_with_VWAP
Method augments orderbook with volume weighted average price.
ABIDES/realism/realism_utils.py:83
↓ 1 callersFunctionbin_and_sum
Sums the values of a pandas Series indexed by Datetime according to specific binwidth. :param s: series of values to process :type s
ABIDES/util/plotting/liquidity_telemetry.py:58
↓ 1 callersMethodbook_log_to_df
Returns a pandas DataFrame constructed from the order book log, to be consumed by agent.ExchangeAgent.logOrderbookSnapshots.
ABIDES/util/OrderBook.py:496
↓ 1 callersFunctionbundled_stream_interarrival_times
From bundled streams return dict with interarrival times collated by symbol.
ABIDES/realism/order_flow_stylized_facts.py:88
↓ 1 callersFunctioncalculate_market_impact
(orders_df, ob_df, start_time, end_time, tao)
ABIDES/realism/market_impact/abm_market_impact.py:25
↓ 1 callersFunctioncalculate_market_impact
(orders_df, ob_df, start_time, end_time, tao)
ABIDES/realism/market_impact/marketreplay_market_impact.py:47
↓ 1 callersMethodcancelAllOrders
Cancels all resting limit orders placed by the market maker
ABIDES/agent/market_makers/POVMarketMakerAgent.py:192
↓ 1 callersMethodcancelAllOrders
Cancels all resting limit orders placed by the market maker
ABIDES/agent/market_makers/AdaptiveMarketMakerAgent.py:295
↓ 1 callersMethodcancelAllOrders
Cancels all resting limit orders placed by the market maker
ABIDES/agent/market_makers/SpreadBasedMarketMakerAgent.py:279
↓ 1 callersMethodcancelDataSubscription
(self)
ABIDES/agent/WorldAgent.py:101
↓ 1 callersMethodcancelOrders
(self)
ABIDES/agent/ValueAgent.py:251
← previousnext →101–200 of 739, ranked by callers