Skip to content

API reference overview

This is the canonical API reference. Every endpoint lives at https://api.oneapi.finance under the /v1 prefix and accepts a bearer token in the Authorization header. All responses are JSON.

Base URL

https://api.oneapi.finance

There is no separate sandbox host. Test-mode keys (oa_test_...) hit the same host and the same paths but are restricted as described in authentication.

Versioning

The current major version is v1. The version is part of the path (/v1/quote, not a header). Breaking changes get a new major version (/v2/...); we maintain /v1 for at least 24 months after /v2 ships.

What counts as a breaking change:

  • Removing or renaming a top-level response field.
  • Changing the HTTP status returned for an existing scenario.
  • Requiring a previously optional parameter.
  • Tightening validation in a way that rejects previously valid input.

What does not count as a breaking change:

  • Adding a new optional parameter.
  • Adding a new field inside meta or details.
  • Adding new error code values for existing status codes.
  • Adding new endpoints.

The changelog records every release.

Common parameters

These work on every endpoint that returns instrument data:

ParamTypeDefaultNotes
formatjson | csvjsonCSV is supported on time-series, dividends, splits, fx.

These work on every range-aware endpoint:

ParamTypeDefaultNotes
outputsizeintendpoint-specificCapped at 5,000.
start_dateISO date or datetimenoneInclusive.
end_dateISO date or datetimenowInclusive.

See pagination for the full ranges story.

Endpoint index

MethodPathDescription
GET/v1/quoteLatest quote for a single symbol or a batch of up to 8.
GET/v1/time_seriesHistorical OHLCV at intervals from 1-minute to 1-month.
GET/v1/statisticsSnapshot of valuation, profitability, and dividend metrics.
GET/v1/profileCompany profile, sector, industry, identifiers.
GET/v1/dividendsDividend history per symbol.
GET/v1/splitsStock split history per symbol.
GET/v1/symbol_searchFuzzy-match a query string to instruments.
GET/v1/fx/time_seriesDaily FX history for a currency pair.
GET/v1/stocksBrowse the canonical instrument universe.
GET/v1/usageCurrent quota status for your customer.

Conventions

  • All paths are lowercase. Underscores, not hyphens.
  • All request bodies on POST/PUT (currently none in v1) are JSON.
  • All response bodies on errors use the standard envelope.
  • All timestamps are ISO 8601 UTC with Z suffix.
  • All numeric prices are JSON numbers, not strings.

What’s next

  • Pick an endpoint from the index above.
  • Or read the migration guide if you are coming from a similar provider.