Skip to content

401 Client error for "multiple coins" functions #16

@starlordbets

Description

@starlordbets

Hello,

Just wanted to let you know that there is an error being thrown for the functions involving multiple coins such as "multiple_coins_historical_data" and it gives the following error:

HTTPError: 401 Client Error: Unauthorized for url: https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=usd&days=max&interval=daily&precision=full

If you click on that link then it gives more info on the error:

{ "error": { "status": { "timestamp": "2024-06-18T15:04:20.238+00:00", "error_code": 10012, "error_message": "Your request exceeds the allowed time range. Public API users are limited to querying historical data within the past 365 days. Upgrade to a paid plan to enjoy full historical data access: https://www.coingecko.com/en/api/pricing. " } } }

If you can update the default function parameter for "days" to be "365" instead of "max" this seems to solve the issue:

https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=usd&days=365&interval=daily&precision=full

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions