Skip to main content
GET
Adjustment Factors

Plan Access

Notes

  • Use this endpoint to calculate or verify adjusted historical stock prices. For standard queries, use the adjust parameter of the historical or latest K-line endpoint
  • Each corporate-action event returns one forward factor and one backward factor
  • Formula: adjusted price = raw price × factor_a + factor_b
  • For forward adjustment, apply factors after the K-line timestamp in chronological order; for backward adjustment, apply factors at or before the K-line timestamp in reverse chronological order
  • Timestamps are Unix timestamps in milliseconds

Code Example

This endpoint is intended for applications that store unadjusted K-lines locally. Store a single copy of the raw price history, then retrieve adjustment factors when querying, backtesting, or charting to generate forward- or backward-adjusted K-lines dynamically. This avoids storing three separate datasets and allows historical prices to be recalculated with the latest factors after a new corporate action. The following JavaScript example retrieves unadjusted daily K-lines and the adjustment factors for the same stock, then dynamically calculates both forward- and backward-adjusted closing prices. In a production application, replace the unadjusted K-line request with a read from your local database.
  • Forward adjustment (forward) uses recent prices as the reference. For each past K-line, select forward factors occurring after its timestamp and apply them from oldest to newest
  • Backward adjustment (backward) uses early prices as the reference. For each K-line, select backward factors occurring at or before its timestamp and apply them from newest to oldest
  • Apply every factor separately using adjusted price = current price × factor_a + factor_b
  • If you only need adjusted K-lines, pass adjust=forward or adjust=backward directly to the Candlestick Data endpoint instead of calculating them yourself

Supported Markets

Request Parameters

Response Fields

Authorizations

X-API-Key
string
header
required

Query Parameters

symbols
string
default:600519.SH
required

Stock symbols, comma-separated

Example:

"600519.SH,700.HK,AAPL.US"

type
enum<string>

Product type. Only stock is supported; omit it when the symbol is unambiguous

Available options:
stock
Example:

"stock"

start_time
integer<int64>

Start timestamp in milliseconds, inclusive

end_time
integer<int64>

End timestamp in milliseconds, inclusive

Response

Successful response.

code
integer
required
Example:

0

message
string
required
Example:

"success"

data
object
required