stable
Getting started
Installation
Configuration
How to backtest your strategy
Create an Alpha Model based strategy
Customize your backtest
Reference
Backtest flow
Modules structure
API Reference
backtesting
data_providers
containers
common
enums
exceptions
risk_parity_boxes
tickers
timeseries_analysis
utils
Classes
Functions
close_open_gap
get_common_start_and_end
date_to_str
get_quarter
get_values_for_common_dates
iso_to_gregorian
str_to_date
to_days
annualise_with_sqrt
average_true_range
drop_consecutive_duplicates
get_function_name
kelly
kelly_binary
periods_list_from_bool_series
convert_to_list
volume_weighted_average_price
is_finite_number
calmar_ratio
gain_to_pain_ratio
information_ratio
omega_ratio
sharpe_ratio
sorino_ratio
annualise_total_return
avg_drawdown
avg_drawdown_duration
beta_and_alpha_full_stats
cagr
convert_dataframe_frequency
aggregate_returns
cvar
drawdown_tms
get_aggregate_returns
get_grouping_for_frequency
list_longest_drawdowns
list_of_max_drawdowns
log_to_simple_return
max_drawdown
get_cone_chart
generate_random_paths
generate_random_log_paths
simple_to_log_return
sqn
sqn_for100trades
avg_nr_of_trades_per1y
tail_events
ta_series
get_volatility
intraday_volatility
rolling_volatility
analysis
plotting
document_utils
indicators
portfolio_construction
QF Lib
common
get_quarter
Edit on GitHub
get_quarter
qf_lib.common.utils.dateutils.get_quarter.
get_quarter
(
date
:
datetime
)
→
int
[source]
Retrieves the quarter that the specified
date
is in.
Read the Docs
v: stable
Versions
latest
stable
v3.0.0
v2.2.10
v2.2.9
v2.2.8
v2.2.7
v2.2.6
v2.2.5
v2.2.4
v2.2.3
v2.2.2
v2.2.1
2.2.1
v2.2
v2.1
Downloads
On Read the Docs
Project Home
Builds