|
@@ -49,7 +49,7 @@ class ContactUs(BaseModel):
|
|
|
@app.get("/showdata/{limit}")
|
|
|
async def showdata(limit):
|
|
|
# url = 'https://api.coinmarketcap.com/data-api/v3/nft/collections?start=0&limit=' + limit
|
|
|
- url = 'https://api.coinmarketcap.com/data-api/v3/nft/collections?start=0&limit=' + limit + '&sort=volume&desc=true&period=2'
|
|
|
+ url = 'https://api.coinmarketcap.com/data-api/v3/nft/collections?start=0&limit=' + limit + '&period=2'
|
|
|
r = urllib.request.urlopen(url)
|
|
|
collections = json.loads(r.read())['data']['collections']
|
|
|
|