Function: getTopCandidates() ​
ts
function getTopCandidates(opts: {
election_year: number;
office: string;
per_page?: number;
state?: string;
}): Promise<FecSearchResult<FecCandidateTotals>>;Defined in: fec/sdk.ts:220
Get top candidates ranked by total money raised for a given office and cycle.
Parameters ​
| Parameter | Type |
|---|---|
opts | { election_year: number; office: string; per_page?: number; state?: string; } |
opts.election_year | number |
opts.office | string |
opts.per_page? | number |
opts.state? | string |
Returns ​
Promise<FecSearchResult<FecCandidateTotals>>