Generate a Report
To begin, you’ll make a GET request to the /SendRequest endpoint, passing your access token and the desired Flex Query template’s query ID as query parameters:
https://ndcdyn.interactivebrokers.com/AccountManagement/FlexWebService/SendRequest?t={CurrentToken}&q={QueryID}&v=3
IMPORTANT: The /SendRequest endpoint maintains a pacing limitation of 1 request per second. A maximum of 10 requests per minute may be submitted.
By default, the predefined date range within Client Portal will be used for the request. However, the q parameter may be declared to retrieve data prior to today, or fd and td may be requested to request a specific date range.
Successful requests will return <Status>Success</Status> alongside a <ReferenceCode> used to identify the generated report in our following request. The <url> returned in the response body should be ignored.
Failed requests will return <Status>Fail</Status> along with an <ErrorMessage> value defining the reason for the failure.

