Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LeonardoBerti00/DeepMarket
/ functions
Functions
739 in github.com/LeonardoBerti00/DeepMarket
⨍
Functions
739
◇
Types & classes
97
↓ 1 callers
Function
main
Processes orderbook from files, creates the liquidity telemetry plot and (optionally) prints statistics.
ABIDES/util/plotting/liquidity_telemetry.py:266
↓ 1 callers
Function
main
(real_data_path, generated_data_path)
evaluation/quantitative_eval/predictive_lstm.py:133
↓ 1 callers
Function
main
(real_path=None, TRADES_path=None, iabs_path=None, cgan_path=None)
evaluation/visualizations/comparison_distribution_market_spread.py:58
↓ 1 callers
Function
main
(real_path, TRADES_path, iabs_path, cgan_path)
evaluation/visualizations/comparison_distribution_order_type.py:7
↓ 1 callers
Function
main
(real_path, TRADES_path, iabs_path, cgan_path)
evaluation/visualizations/comparison_correlation_coefficient.py:7
↓ 1 callers
Function
main
(real_path, TRADES_path, iabs_path, cgan_path)
evaluation/visualizations/comparison_distribution_log_interarrival_times.py:8
↓ 1 callers
Function
main
(real_path, TRADES_path, iabs_path, cgan_path)
evaluation/visualizations/comparison_core_coef_lags.py:76
↓ 1 callers
Function
main
(path)
evaluation/visualizations/comparison_volume_distribution.py:25
↓ 1 callers
Function
main
(real_path, TRADES_path, cgan_path)
evaluation/visualizations/comparison_log_return_frequency.py:7
↓ 1 callers
Function
main
(real_path, generated_path)
evaluation/visualizations/comparison_midprice.py:8
↓ 1 callers
Function
main
(days_paths)
evaluation/visualizations/comparison_multiple_days_midprice.py:8
↓ 1 callers
Function
main
(real_path, generated_path)
evaluation/visualizations/PCA_plots.py:105
↓ 1 callers
Function
make_liquidity_dropout_events
Return index series corresponding to liquidity dropout point events for bids and asks.
ABIDES/util/plotting/liquidity_telemetry.py:92
↓ 1 callers
Function
make_plots
Draw and save plot from preprocessed data. :param plot_data: Data structure processed by __name__.prep_data :param plot_params_dict: dict ho
ABIDES/realism/impact_single_day_pov.py:35
↓ 1 callers
Function
make_plots
Produce a plot with three subplots: 1. Mid-price over time. 2. Liquidity dropout events over time 3. Transacted volume
ABIDES/util/plotting/liquidity_telemetry.py:142
↓ 1 callers
Method
marketClosed
(self)
ABIDES/agent/TradingAgent.py:458
↓ 1 callers
Method
measureFundamental
Saves the fundamental value at self.currentTime to self.fundamental_series.
ABIDES/agent/FundamentalTrackingAgent.py:38
↓ 1 callers
Function
mid_price_cutoff
Removes outliers for mid-price induced by no liquidity.
ABIDES/realism/realism_utils.py:72
↓ 1 callers
Method
model_checkpointing
(self, loss)
models/diffusers/diffusion_engine.py:264
↓ 1 callers
Function
noise_scheduler
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
utils/utils.py:15
↓ 1 callers
Function
np_bar_plot_hist_input
Constructs the required input for np.bar to produce a histogram plot of the output provided from __name__.bin_and_sum :param counted
ABIDES/util/plotting/liquidity_telemetry.py:73
↓ 1 callers
Function
np_train
(weight, trainX, trainY, lr, n)
ABIDES/util/crypto/logReg.py:79
↓ 1 callers
Method
orderAccepted
(self, order)
ABIDES/agent/TradingAgent.py:430
↓ 1 callers
Method
orderCancelled
(self, order)
ABIDES/agent/TradingAgent.py:442
↓ 1 callers
Method
orderExecuted
(self, order)
ABIDES/agent/TradingAgent.py:390
↓ 1 callers
Function
parse_cli
()
ABIDES/util/grid_search.py:6
↓ 1 callers
Function
parse_cli
()
ABIDES/util/random_search.py:14
↓ 1 callers
Function
parse_cli
()
ABIDES/util/make_grid.py:32
↓ 1 callers
Function
pick_augmenter
(augmenter_name, input_size, augment_dim, cond_size, cond_type, cond_augmenter, cond_method, chosen_model)
utils/utils_models.py:8
↓ 1 callers
Method
placeLimitOrder
(self, symbol, quantity, is_buy_order, limit_price)
ABIDES/agent/examples/ImpactAgent.py:124
↓ 1 callers
Method
placeMarketOrder
The market order is created as multiple limit orders crossing the spread walking the book until all the quantities are matched.
ABIDES/agent/WorldAgent.py:332
↓ 1 callers
Method
placeOrder
(self)
ABIDES/agent/ValueAgent.py:191
↓ 1 callers
Method
placeOrder
(self)
ABIDES/agent/NoiseAgent.py:114
↓ 1 callers
Method
placeOrder
(self)
ABIDES/agent/ZeroIntelligenceAgent.py:249
↓ 1 callers
Method
placeOrder
(self)
ABIDES/agent/etf/EtfArbAgent.py:143
↓ 1 callers
Method
placeOrder
(self)
ABIDES/agent/examples/QLearningAgent.py:99
↓ 1 callers
Method
placeOrder
(self, currentTime, order)
ABIDES/agent/examples/MarketReplayAgent.py:47
↓ 1 callers
Method
placeOrders
(self, bids, asks)
ABIDES/agent/market_makers/MarketMakerAgent.py:101
↓ 1 callers
Method
placeOrders
(self, currentTime)
ABIDES/agent/execution/ExecutionAgent.py:83
↓ 1 callers
Function
plot_aggregated
Make aggregated mid-price and liquidity plots. :param aggregated: output of __name__.aggregate_orderbook_stats :param plot_params_di
ABIDES/realism/impact_multiday_pov.py:272
↓ 1 callers
Function
plot_all_aggregated
Draw plots of aggregated data. :param aggregated_data: output of __name__.aggregate_data :param params: output of __name__.generate_plot_dat
ABIDES/realism/impact_multiday_pov.py:383
↓ 1 callers
Function
plot_data
(pca, pca2, generated_path)
evaluation/visualizations/PCA_plots.py:70
↓ 1 callers
Function
plot_fundamental
(fundamentals_df_list, legend_labels, plot_title, output_dir)
ABIDES/util/plotting/chart_fundamental.py:31
↓ 1 callers
Function
plot_graphs
(real_data_path=None, TRADES_data_path=None, iabs_data_path=None, cgan_data_path=None)
main.py:36
↓ 1 callers
Function
plot_interarrival_times
Plots histogram of the interarrival times for symbols.
ABIDES/realism/order_flow_stylized_facts.py:119
↓ 1 callers
Function
plot_intraday_seasonality
Plots intraday order volume over a day for multiple symbols.
ABIDES/realism/order_flow_stylized_facts.py:276
↓ 1 callers
Function
plot_metrics
(sim_dirs, sim_colors, output_dir, ohclv_dict, recompute)
ABIDES/realism/asset_returns_stylized_facts.py:69
↓ 1 callers
Method
precision_and_recall
Compute precision and recall for given subject reference should be precomputed by IPR.compute_manifold_ref() args:
utils/utils.py:296
↓ 1 callers
Function
prepare_histogram
(df_hist)
ABIDES/cli/book_plot.py:64
↓ 1 callers
Method
prepare_save_datasets
(self)
preprocessing/LOBSTERDataBuilder.py:25
↓ 1 callers
Function
prepare_shade_dates
Helper method for prep_data. Formats date string in correct for compute_impact_statistics method
ABIDES/realism/impact_single_day_pov.py:106
↓ 1 callers
Function
print_liquidity_stats
Print statistics about liquidity to STDERR.
ABIDES/util/plotting/liquidity_telemetry.py:102
↓ 1 callers
Function
print_setup
(config: Configuration)
run.py:229
↓ 1 callers
Method
processEndTime
Make end time of POV order sensible, i.e. if a time is given leave it alone; else, add 24 hours to start.
ABIDES/agent/execution/POVExecutionAgent.py:35
↓ 1 callers
Method
processOrders
(self)
ABIDES/util/formatting/prepare_dow_data_for_plotting.py:26
↓ 1 callers
Method
processOrders
(self)
ABIDES/agent/examples/MarketReplayAgent.py:90
↓ 1 callers
Method
processSum
(self)
ABIDES/agent/examples/SumServiceAgent.py:66
↓ 1 callers
Function
process_abides_order_stream
Writes ABIDES stream data into pandas DataFrame required by plotting programs.
ABIDES/util/formatting/prepare_abides_data_for_plotting.py:9
↓ 1 callers
Function
process_args
Prints grid to standard error.
ABIDES/util/make_grid.py:13
↓ 1 callers
Function
process_data
(abides_log_folder, stock, date)
ABIDES/realism/market_impact/marketreplay_market_impact.py:10
↓ 1 callers
Function
process_row
Method takes row of unstacked orderbook log and processes into a dictionary representing a row of the LOBSTER- ised DataFrame.
ABIDES/util/formatting/convert_order_book.py:24
↓ 1 callers
Method
queryEtfNav
(self, nav)
ABIDES/agent/etf/EtfMarketMakerAgent.py:239
↓ 1 callers
Method
queryLastTrade
(self, symbol, price)
ABIDES/agent/etf/EtfPrimaryAgent.py:151
↓ 1 callers
Method
queryOrderStream
(self, symbol, orders)
ABIDES/agent/TradingAgent.py:515
↓ 1 callers
Method
querySpread
(self, symbol, price, bids, asks, book)
ABIDES/agent/TradingAgent.py:482
↓ 1 callers
Method
query_transacted_volume
Handles the QUERY_TRANSACTED_VOLUME messages from the exchange agent
ABIDES/agent/TradingAgent.py:522
↓ 1 callers
Function
randomize
( r, modulo, clientsign)
ABIDES/util/crypto/diffieHellman.py:39
↓ 1 callers
Function
read_book_quotes
(file)
ABIDES/cli/book_plot.py:35
↓ 1 callers
Function
read_historical_trades
(file, symbol)
ABIDES/cli/ticker_plot.py:34
↓ 1 callers
Function
read_historical_trades
(file, symbol)
ABIDES/cli/sparse_ticker.py:35
↓ 1 callers
Function
read_simulated_quotes
(file)
ABIDES/realism/get_quotes.py:4
↓ 1 callers
Function
read_simulated_quotes
(file, symbol)
ABIDES/cli/quote_plot.py:21
↓ 1 callers
Method
receiveMessage
(self, currentTime, msg)
ABIDES/agent/Agent.py:120
↓ 1 callers
Method
receiveMessage
Action taken when agent receives a message from the exchange -- action here is for agent to update internal log of most recently observed
ABIDES/agent/examples/ExampleExperimentalAgent.py:103
↓ 1 callers
Method
remove_outliers
(self, points)
evaluation/visualizations/PCA_plots.py:27
↓ 1 callers
Function
reorder_columns
Reorders column list to coincide with columns of LOBSTER csv file format.
ABIDES/util/formatting/convert_order_book.py:63
↓ 1 callers
Function
reportStats
(weight, current_iteration, X_train, y_train, X_test, y_test)
ABIDES/util/crypto/logReg.py:40
↓ 1 callers
Function
run
(config: Configuration, accelerator, model=None)
run.py:79
↓ 1 callers
Function
run_in_parallel
(num_simulations, num_parallel, config, log_folder, verbose)
ABIDES/config/parallel.py:9
↓ 1 callers
Method
sample
(self, x_0, real_cond_orders, real_cond_lob, weights)
models/diffusers/gaussian_diffusion.py:84
↓ 1 callers
Method
sample
(self, **kwargs)
models/diffusers/diffusion_engine.py:82
↓ 1 callers
Method
sample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
models/diffusers/TRADES/Sampler.py:25
↓ 1 callers
Function
save_formatted_order_book
Saves orderbook data from ABIDES in LOBSTER format. :param orderbook_bz2: file path of order book bz2 output file. :type orderbook_b
ABIDES/util/formatting/convert_order_book.py:154
↓ 1 callers
Function
save_formatted_order_stream
Saves ABIDES logged order stream into csv in requested format. :param stream_bz2: file path of Exchange Agent bz2 output file. :type
ABIDES/util/formatting/convert_order_stream.py:124
↓ 1 callers
Function
save_mid_price
Save order book mid price, computed from ABIDES orderbook log.
ABIDES/util/formatting/mid_price_from_orderbook.py:14
↓ 1 callers
Method
setAgentComputeDelay
(self, sender = None, requestedDelay = None)
ABIDES/Kernel.py:435
↓ 1 callers
Function
set_repoducibility
()
main.py:21
↓ 1 callers
Function
set_torch
()
main.py:26
↓ 1 callers
Function
set_up_plotting
Sets matplotlib variables for plotting.
ABIDES/realism/order_flow_stylized_facts.py:80
↓ 1 callers
Function
set_up_plotting
Sets matplotlib variables for plotting.
ABIDES/util/plotting/chart_fundamental.py:22
↓ 1 callers
Function
sigmoid
Numerically stable sigmoid function. Adapted from https://timvieira.github.io/blog/post/2014/02/11/exp-normalize-trick/"
ABIDES/util/util.py:146
↓ 1 callers
Function
sweep_init
(config: Configuration)
run.py:210
↓ 1 callers
Method
synthetic_volume_profile
(date, freq)
ABIDES/agent/execution/VWAPExecutionAgent.py:43
↓ 1 callers
Method
test
(self)
evaluation/quantitative_eval/predictive_lstm.py:115
↓ 1 callers
Function
time_to_seconds
(time_str)
evaluation/visualizations/comparison_distribution_log_interarrival_times.py:10
↓ 1 callers
Method
timestep_embedding
Create sinusoidal timestep embeddings. :param t: (N) Tensor of N indices, one per batch element. These may
models/diffusers/TRADES/Embedders.py:21
↓ 1 callers
Function
to_sparse_representation
(lob, n_levels)
utils/utils_data.py:397
↓ 1 callers
Method
token_drop
(self, cond_orders)
models/diffusers/TRADES/TRADES.py:75
↓ 1 callers
Method
token_drop
(self, cond, force_drop_ids=None)
models/diffusers/TRADES/Embedders.py:61
↓ 1 callers
Method
train
(self, epochs)
evaluation/quantitative_eval/predictive_lstm.py:98
← previous
next →
301–400 of 739, ranked by callers