Created
January 27, 2024 16:14
-
-
Save vnegi10/eae224b9a79f5f2763f6274e9cb9220f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_nft_floor_prices(order_by, per_page): | |
assert per_page <= 250, "Number of entries per page should be less than 250" | |
nft_params = { | |
"order": order_by, | |
"per_page": per_page, | |
"page": 1 | |
} | |
nft_list_response = get_response("/nfts/list", | |
use_demo, | |
nft_params, | |
PUB_URL) | |
df_nft = pd.DataFrame(nft_list_response) | |
nft_list_all = [] | |
for i in range(len(df_nft.id)): | |
new_data = get_nft_current_data(i, df_nft) | |
nft_list_all.append(new_data) | |
df_floor_price = pd.DataFrame(nft_list_all) | |
return df_floor_price |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment