Skip to content

Commit

Permalink
docs: more formatting changes to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMochan authored Nov 4, 2023
1 parent 0db2207 commit 71a66a8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ Subgrounds also comes bundled with extra modules that may require extra librarie
>>> aave_v2 = sg.load_subgraph("https://api.thegraph.com/subgraphs/name/messari/aave-v2-ethereum")

>>> # Construct the query
>>> latest = aave_v2.Query.markets(
orderBy=aave_v2.Market.totalValueLockedUSD,
orderDirection='desc',
first=5,
)
>>> latest_markets = aave_v2.Query.markets(
... orderBy=aave_v2.Market.totalValueLockedUSD,
... orderDirection='desc',
... first=5,
... )

>>> # Return query to a dataframe
>>> sg.query_df([
latest.name,
latest.totalValueLockedUSD,
])
... latest_markets.name,
... latest.totalValueLockedUSD,
... ])
markets_name markets_totalValueLockedUSD
0 Aave interest bearing STETH 1.522178e+09
1 Aave interest bearing WETH 1.221299e+09
Expand Down

0 comments on commit 71a66a8

Please sign in to comment.