duneanalytics / dune-client

A framework for interacting with Dune Analytics' officially supported API service
Apache License 2.0
85 stars 22 forks source link

Feature: Download CSV #73

Closed bh2smith closed 1 year ago

bh2smith commented 1 year ago

This method is similar to that of get_latest_resultsexcept that it returns in CSV format as outlined here: https://dune.com/docs/api/api-reference/get-results/latest-results/

I noticed that the docs don't give example responses of the csv route.

A few things were updated here (url to api docs on get_latest_results).

We created a utility function to avoid tripling the same code block that handles query objects or types. Functionality is now unit tested.

Closes #66

cc @TheEdgeOfRage & @diegoximenes for additional review.