Skip to content

Commit

Permalink
add: growthepie fundamentals tvl source
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabolol committed Dec 21, 2024
1 parent c2899b8 commit 0de53fd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions warehouse/oso_dagster/assets/growthepie.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from dlt.sources.rest_api.typing import RESTAPIConfig

from ..factories.rest import create_rest_factory_asset

config: RESTAPIConfig = {
"client": {
"base_url": "https://api.growthepie.xyz/v1",
},
"resources": [
{
"name": "fundamentals_full",
"endpoint": {
"path": "fundamentals_full.json",
"data_selector": "$",
},
}
],
}

dlt_assets = create_rest_factory_asset(
config=config,
)

growthepie_assets = dlt_assets(
key_prefix="growthepie",
)

0 comments on commit 0de53fd

Please sign in to comment.