adjustment

The adjustment namespace provides constants that specify how historical price data is adjusted for corporate actions. These constants are used with request.security() and similar data-fetching functions to control whether dividend or split adjustments are applied to OHLCV values.

Quick Example

from pynecore.lib import script, request, close, adjustment

@script.indicator(title="Adjusted vs Raw Close", overlay=False)
def main():
    adj_close: float = request.security("NASDAQ:AAPL", "D", close, adjustment=adjustment.dividends)
    raw_close: float = request.security("NASDAQ:AAPL", "D", close, adjustment=adjustment.none)

Constants

ConstantValueDescription
adjustment.none0No adjustment applied — raw historical prices.
adjustment.dividends1Dividend adjustment applied to historical prices.
adjustment.splits2Split adjustment applied to historical prices.