Quantpedia Public Strategy API

Read-only API reference for retrieving Quantpedia strategy metadata, including list and detail endpoints, auth requirements, response schema, enum values, and error handling behavior.

Overview

This document describes the Quantpedia Public API.

The API exposes the following endpoints:

  • GET /api/v1/strategy
  • GET /api/v1/provider
  • GET /api/v1/strategy/{id}
  • GET /api/v1/strategy/{id}/performance
  • GET /api/v1/strategy/{id}/source-code
  • GET /api/v1/paper/{id}

These endpoints return strategy metadata and distributed academic research articles. The list endpoint returns a lightweight catalog of strategies, optionally limited to one provider; the providers endpoint lists the providers available to you. The detail endpoint returns the full strategy metadata for a single strategy.

Authentication

The API uses HTTP Basic Authentication.

  • Username: your Quantpedia username
  • Password: your generated API key (available in your account settings)

Example Header

Authorization: Basic <base64(username:apikey)>

Example using curl

curl -u "your_username:your_api_key" https://quantpedia.com/api/v1/strategy
curl -u "your_username:your_api_key" https://quantpedia.com/api/v1/strategy/STRATEGY_ID

How auth works

When you provide valid credentials, the API verifies your API key and returns only the strategies your account is authorized to access.

Without valid credentials, you may receive limited or no strategy data.

Base URL

All endpoints use the following base URL:

https://quantpedia.com

Common Response Rules

  • Strategy endpoint responses are JSON. The paper endpoint returns a PDF document with the application/pdf media type.
  • Enum values are serialized as strings.
  • Dates are serialized in ISO format, for example 2025-12-31.
  • Optional fields with no value may be omitted from the response rather than returned as null.
  • Not all strategy detail fields are available for all subscription levels, so returned fields may differ by account.

Endpoint 1: List Strategies

Request

GET /api/v1/strategy

Query Parameters

Name Type Description
provider string Optional. Lists only the strategies of this provider, for example quantpedia. See List Providers for the providers available to you. Omit it to list strategies of all providers

Description

Returns all strategies you are authorized to access, ordered by id. Without the provider parameter, strategies of all providers available to you are returned; use each item's provider field to tell them apart.

Example

curl -u "your_username:your_api_key" https://quantpedia.com/api/v1/strategy
curl -u "your_username:your_api_key" "https://quantpedia.com/api/v1/strategy?provider=quantpedia"

Example Response

[
  {
    "id": "abc123",
    "name": "Trend Following Across Asset Classes",
    "provider": "quantpedia",
    "path": "api/v1/strategy/abc123"
  },
  {
    "id": "def456",
    "name": "Short-Term Reversal in Equities",
    "provider": "quantpedia",
    "path": "api/v1/strategy/def456"
  }
]

Response Fields

Field Type Description
id string Internal strategy identifier
name string Human-readable strategy name
provider string Strategy provider, see List Providers
path string Relative API path for the strategy detail endpoint

Endpoint 2: List Providers

Request

GET /api/v1/provider

Description

Returns the strategy providers available to you, that is the providers with at least one strategy you are authorized to access. Use a provider's id as the provider parameter of List Strategies. The list depends on your subscription.

Example

curl -u "your_username:your_api_key" https://quantpedia.com/api/v1/provider

Example Response

[
  {
    "id": "quantpedia",
    "name": "Quantpedia",
    "path": "api/v1/strategy?provider=quantpedia"
  }
]

Response Fields

Field Type Description
id string Provider identifier, the value of the provider field and parameter
name string Human-readable provider name
path string Relative API path listing the provider's strategies

Endpoint 3: Get Strategy Detail

Request

GET /api/v1/strategy/{id}

Path Parameter

Name Type Description
id string Strategy identifier

Description

Returns the full metadata for a single strategy. Not all detail fields are available for all subscription levels, so the response can differ based on your subscription.

Example

curl -u "your_username:your_api_key" https://quantpedia.com/api/v1/strategy/abc123

Example Response

{
  "id": "abc123",
  "name": "Trend Following Across Asset Classes",
  "provider": "quantpedia",
  "description": "A systematic strategy that takes long and short positions based on medium-term price trends across global futures markets.",
  "paperMetrics": {
    "backtestStartYear": 1985,
    "backtestEndYear": 2020,
    "performance": 12.4,
    "performanceNotes": "Annualized return reported in the source paper.",
    "volatility": 10.1,
    "volatilityNotes": "Annualized volatility from the paper.",
    "drawdownMax": -18.6,
    "drawdownMaxNotes": "Maximum drawdown reported in the paper.",
    "sharpeRatio": 1.05
  },
  "calculatedMetrics": {
    "start": "2000-01-01",
    "end": "2025-12-31",
    "perf1M": 0.8,
    "perf1Y": 9.4,
    "perf3Y": 28.2,
    "perf5Y": 51.3,
    "perfYTD": 3.1,
    "perfPreviousYear": 7.6,
    "perfInception": 184.7,
    "perfToDrawdownMax": 2.3,
    "perfToDrawdown95": 2.8,
    "volatility1Y": 9.9,
    "volatility5Y": 10.4,
    "volatilityInception": 10.8,
    "drawdown95": -12.1,
    "drawdownMax": -22.3,
    "sharpeRatio5Y": 0.91,
    "sharpeRatioInception": 0.88,
    "correlation": 0.12
  },
  "keywords": ["trend-following", "diversification", "futures"],
  "instruments": ["Futures"],
  "marketFactors": ["Equities", "Bonds", "Currencies", "Commodities"],
  "regions": ["Global"],
  "complexity": "Moderate",
  "complexityNotes": "Requires multi-market data and periodic rebalancing.",
  "confidence": "Strong",
  "confidenceNotes": "Supported by a long backtest and multiple related studies.",
  "crisisHedge": "Probably",
  "crisisHedgeNotes": "Tends to perform well during persistent market stress but not in every short drawdown.",
  "instrumentsCount": 20,
  "instrumentsCountNotes": "The exact number depends on the implementation universe.",
  "rebalancingPeriod": "Monthly",
  "rebalancingPeriodNotes": "Signal evaluation and portfolio refresh are typically done once per month.",
  "transactionCosts": "Included",
  "transactionCostsNotes": "The paper deducts commissions and estimated bid-ask spread from reported returns.",
  "robustnessChecks": "Assessed",
  "robustnessChecksNotes": "The authors test alternative lookback periods, markets, and sample periods; the results remain broadly consistent.",
  "simpleTradingStrategy": "Go long assets with positive trailing trend and short assets with negative trailing trend.",
  "fundamentalReason": "Behavioral underreaction and slow-moving information diffusion can create persistent trends.",
  "relatedDataset": "Continuous futures prices",
  "sourcePaper": {
    "name": "A Century of Evidence on Trend-Following Investing",
    "abstract": "The paper documents persistent return premia from time-series momentum across asset classes.",
    "sources": [
      "https://example.org/paper"
    ],
    "fileId": "38adfd42-4bec-498f-85c5-8c9c1183c6e9"
  },
  "otherPapers": [
    {
      "name": "Time Series Momentum",
      "abstract": "Additional evidence on momentum effects across liquid futures markets.",
      "sources": [
        "https://example.org/related-paper"
      ],
      "fileId": "eca97ef4-fdcb-4f58-8b81-215dbeb38c8b"
    },
    {
      "name": "Momentum Strategies in Futures Markets",
      "abstract": "A study of momentum strategies applied to futures markets, confirming the robustness of the effect.",
      "sources": [
        "https://example.org/related-paper-1"
      ]
    }
  ]
}

Endpoint 4: Strategy Performance

Request

GET /api/v1/strategy/{id}/performance?orient=split

Path Parameter

Name Type Description
id string Strategy identifier

Query Parameters

Name Type Description
orient string Optional. Output JSON orientation: split (default) or records

Description

Returns the strategy's performance time series (date-indexed): one value per NYSE trading day, each being the daily return in percent (for example 0.23 means +0.23 %). A return for a day on which the NYSE was closed is compounded into the next NYSE trading day. Dates are serialized as YYYY-MM-DD. For strategies taken over from an external data provider, see dataSource.

Note

Performance data is available only for strategies listed as assets in the Portfolio Analysis section. We do not hold performance data internally for strategies outside that set; the endpoint returns an empty array. Additionally, your account must be authorized to access performance data — without that permission, the endpoint returns 404 Not Found.

Example

curl -u "your_username:your_api_key" "https://quantpedia.com/api/v1/strategy/abc123/performance"
curl -u "your_username:your_api_key" "https://quantpedia.com/api/v1/strategy/abc123/performance?orient=split"
curl -u "your_username:your_api_key" "https://quantpedia.com/api/v1/strategy/abc123/performance?orient=records"

Example Responses

records (array of objects)

[
  {"date":"2025-01-01","performance":0.0023},
  {"date":"2025-01-02","performance":-0.0011}
]

split (columns / data)

{
  "columns":["date","performance"],
  "data":[["2025-01-01",0.0023],["2025-01-02",-0.0011]]
}

Endpoint 5: Strategy Source Code

Request

GET /api/v1/strategy/{id}/source-code

Path Parameter

Name Type Description
id string Strategy identifier

Description

Returns backtest source files for the strategy. Each item includes the file name, last modified timestamp, and the file content. The endpoint requires that the strategy has an associated backtest and that your account is authorized to view the strategy.

Example

curl -u "your_username:your_api_key" https://quantpedia.com/api/v1/strategy/abc123/source-code

Example Response

[
  {
    "file_name": "main.py",
    "modified_at": "2025-01-02T14:23:00.000",
    "content": "..."
  },
  {
    "file_name": "research.ipynb",
    "modified_at": "2025-01-02T14:23:00.000",
    "content": "..."
  }
]

If the strategy has no backtest you receive an empty array.

Endpoint 6: Download Paper

Request

GET /api/v1/paper/{id}

Path Parameter

Name Type Description
id string Paper file identifier from sourcePaper.fileId or an otherPapers[].fileId item.

Description

Downloads the academic research article associated with a strategy as a PDF document. First retrieve the strategy detail, then use the fileId from its primary or related paper.

Availability

Quantpedia exposes only selected papers. Papers without a fileId are not available for download.

Example

curl -u "your_username:your_api_key" --output research-paper.pdf https://quantpedia.com/api/v1/paper/38adfd42-4bec-498f-85c5-8c9c1183c6e9

Response

Returns the PDF document body with the Content-Type: application/pdf header.

Strategy Detail Field Reference

Field Type Description
idstringInternal strategy identifier
namestringStrategy name
providerstringStrategy provider
descriptionstringHuman-readable summary of the strategy, as HTML
paperMetricsobjectMetrics sourced from the academic paper
calculatedMetricsobjectCalculated performance metrics
keywordsarray of stringStrategy keywords
instrumentsarray of stringInstrument types used by the strategy
marketFactorsarray of stringAsset classes or market groups
regionsarray of stringGeographic coverage
complexitystringComplexity classification
complexityNotesstringAdditional notes for complexity
confidencestringConfidence classification
confidenceNotesstringAdditional notes for confidence
crisisHedgestringCrisis hedge assessment
crisisHedgeNotesstringAdditional notes for crisis hedge assessment
instrumentsCountintegerNumber of instruments used
instrumentsCountNotesstringAdditional notes for instrument count
rebalancingPeriodstringRebalancing frequency
rebalancingPeriodNotesstringAdditional notes for rebalancing
transactionCostsstringClassification of whether transaction costs affect the reported primary strategy backtest
transactionCostsNotesstringDetails about transaction cost types, assumptions, treatment, and reported evidence
robustnessChecksstringClassification of robustness testing performed on the primary strategy
robustnessChecksNotesstringSummary of robustness tests, evidence, and conclusions
simpleTradingStrategystringPlain-language summary of the trading rules, as HTML
fundamentalReasonstringEconomic or behavioral rationale, as HTML
relatedDatasetstringRelated dataset reference
sourcePaperobjectPrimary source paper
otherPapersarray of objectRelated papers
dataSourceobjectWhere the strategy's data and performance series come from. Present only for strategies taken over from an external data provider, see dataSource

Nested Objects

paperMetrics

Field Type Description
backtestStartYearintegerStart year of the paper backtest
backtestEndYearintegerEnd year of the paper backtest
performancenumberReported paper performance
performanceNotesstringNotes about performance
volatilitynumberReported paper volatility
volatilityNotesstringNotes about volatility
drawdownMaxnumberReported paper maximum drawdown
drawdownMaxNotesstringNotes about maximum drawdown
sharpeRationumberReported paper Sharpe ratio

calculatedMetrics

Field Type
startdate string
enddate string
perf1Mnumber
perf1Ynumber
perf3Ynumber
perf5Ynumber
perfYTDnumber
perfPreviousYearnumber
perfInceptionnumber
perfToDrawdownMaxnumber
perfToDrawdown95number
volatility1Ynumber
volatility5Ynumber
volatilityInceptionnumber
drawdown95number
drawdownMaxnumber
sharpeRatio5Ynumber
sharpeRatioInceptionnumber
correlationnumber

sourcePaper and otherPapers items

Field Type Description
namestringPaper title
abstractstringPaper abstract or summary
sourcesarray of stringRelated source URLs
fileIdstringIdentifier of the associated PDF file

dataSource

If dataSource is present, the strategy's performance series is not our own backtest but a view of the provider's data: the daily returns of series series in the file at fileUrl, in percent, aligned to the NYSE trading calendar. A return for a day on which the NYSE was closed is compounded into the next NYSE trading day, and an NYSE trading day missing in the file has a return of 0. Our series may start later than the source file. We refresh it periodically, so the latest values can differ from the current file, which the provider may also revise.

Field Type Description
namestringName of the external data provider
urlstringWeb page of the external data provider
fileNamestringName of the provider's data file the performance series is taken from
fileUrlstringDownload URL of that data file
seriesstringName of the series in the data file that holds the strategy's daily returns
notesstringProvider-specific notes on what the series represents

Enum Values

complexity

  • Simple
  • Moderate
  • Complex
  • Very Complex

confidence

  • Strong
  • Moderate
  • Weak

crisisHedge

  • Yes
  • No
  • Probably
  • Unlikely
  • Partially
  • Unknown

rebalancingPeriod

  • Intraday
  • Daily
  • Weekly
  • Monthly
  • Quarterly
  • 6 Months
  • Yearly
  • 3 Years

transactionCosts

  • Included
  • Excluded
  • Mentioned
  • Not Reported

robustnessChecks

  • Assessed
  • Mentioned
  • Not Reported

instruments

  • CDS
  • Stocks
  • Futures
  • ETFs
  • Funds
  • CFDs
  • Swaps
  • Options
  • Forwards
  • Bonds
  • Crypto

marketFactors

  • Equities
  • Commodities
  • Bonds
  • Currencies
  • REITs
  • Crypto

regions

  • United States
  • Europe
  • China
  • India
  • Japan
  • Global
  • Emerging Markets
  • N/A

Error Handling

If a route is not found or you do not have access to it, the API returns an error response.

Clients should handle non-2xx responses, including:

401If you fail to provide valid credentials
403If you do not have the rights to read the requested resource
404If the route does not exist or you do not have access to it
500If an unexpected server error occurs

Quantpedia Public Strategy API documentation page. Last updated: 2026-11-24.