Force a symbols reference-data sync from the SEC source (admin).
POST
/api/symbols/refresh
const url = 'https://api.tradr.cloud/api/symbols/refresh';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://api.tradr.cloud/api/symbols/refreshAdmin-only manual refresh path (REQ-2.4(d)). Runs the guarded, multi-container-safe population with force: true and returns the SyncOutcome verbatim. Under NODE_ENV=test population is a no-op (skipped-test-env). A side-effecting POST (CSRF-protected); requires an admin session (authMiddleware → adminMiddleware).
Responses
Section titled “Responses”The SyncOutcome for this run.
Media typeapplication/json
object
reason
Present when status is ‘error’.
string
status
required
string
symbolCount
Present when status is ‘completed’.
integer
Example
{ "status": "completed"}No authenticated session (UNAUTHORIZED).
Authenticated but not an admin (ADMIN_REQUIRED).