Fetch Prices
POST
/prices/fetch
const url = 'https://example.com/prices/fetch';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/prices/fetchFetch now: the daily price job’s body, on demand (admin). Fetches new closes from the configured provider, re-projects every manual account, and reports staleness.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
FetchOut
object
accounts_failed
required
Accounts Failed
integer
accounts_projected
required
Accounts Projected
integer
failed
required
fetched
required
Fetched
integer
provider
required
Provider
string
stale
required
symbols
required
Symbols
integer
Example generated
{ "accounts_failed": 1, "accounts_projected": 1, "failed": [ { "reason": "example", "status": 1, "symbol": "example" } ], "fetched": 1, "provider": "example", "skipped": "example", "stale": [ { "price_as_of": "example", "symbol": "example" } ], "symbols": 1}