Learn how to use PyAirbyte to extract cryptocurrency data from CoinAPI.io, and load it to Snowflake, followed by a series of transformations and analyses to derive meaningful insights from this data.
Download our free guide and discover the best approach for your needs, whether it's building your ELT solution in-house or opting for Airbyte Open Source or Airbyte Cloud.
Download our free guide and discover the best approach for your needs, whether it's building your ELT solution in-house or opting for Airbyte Open Source or Airbyte Cloud.
In this demo, we use PyAirbyte to ingest cryptocurrency data from CoinAPI.io into Snowflake.
Define a PyAirbyte Cache for Snowflake.
In this section, we establish a connection to CoinAPI.io to access cryptocurrency data via PyAirbyte. The connector is configured with necessary parameters like the API key, environment setting, symbol ID for the specific cryptocurrency index (in this case, COINBASE_SPOT_INDEX_USD), and the data period we are interested in. Check the docs for more details.
We select all available streams for the source, which you can consult using the get_available_streams()
method, or the docs. Then, we proceed to read from the source into Snowflake.
Read from the already-written Snowflake table into a pandas Dataframe. After the data is in the cache, you can read it without re-configuring or re-creating the source object.
time_period_start
to datetime for easy handling of dates.daily_movement
to analyze daily price changes in the market.Get a SQL engine from the Snowflake cache
Now, we can write our transformed Dataframe back to Snowflake in a new table called daily_movement
.