GroundsocialDocs

API · Finance

GET /finance/history

Price history between two dates, daily to quarterly.

RequestGET /v1/finance/history
Operation idfinance.history.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Price history between two dates, daily to quarterly.

Query parameters

NameTypeRequiredDescription
keywordstringyesA ticker (AAPL, ^GSPC, EURUSD=X, BTC-USD) or a company name. Example: AAPL.
start_datestringyesYYYY-MM-DD.
end_datestringyesYYYY-MM-DD.
interval"1d" | "5d" | "1wk" | "1mo" | "3mo"noOne of 1d, 5d, 1wk, 1mo, 3mo.

Responses

StatusMeaningSchema
200Price rows, oldest first, and the raw chart.FinanceHistory
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No ticker or data matches.Error
429Too many requests. Wait for Retry-After seconds.Error
503Finance is temporarily unavailable. Retryable; nothing was charged.Error

FinanceHistory fields

FieldTypeDescription
symbolstring
intervalstring
chartFinanceChart
rowsobject[]

Errors use one shape everywhere; see Errors for every code and what to do.