Skip to contents

Performs the request and returns an error body with the respective error returned by the Comtrade API. Also throttles all requests to 1 request per 6 seconds, or 10 requests per minute.

Usage

perform_comtrade_request(req, requests_per_second = 10/60, verbose = F)

Arguments

req

a valid comtrade request built by the build_comtrade_request function

requests_per_second

rate at which throttling is done

verbose

whether the function sends status updates to the console

Value

json data from comtrade and possible error codes