Skip to content

adding all available get requests to the python client #2

Description

@L-47

i think it's a good idea to add all the metrics inside the repo so that you can call metrics just from a variable.
an idea for ease of use

Activity

  1. reopened this on Jul 20, 2020
  2. L-47 commented on Jul 20, 2020

    @L-47
    Author

    api_items = [ {"assets": "https://api.glassnode.com/v2/metrics/endpoints"}, {"futures": ["https://api.glassnode.com/v1/metrics/derivatives/futures_volume_daily_latest", "https://api.glassnode.com/v1/metrics/derivatives/futures_volume_daily_all_sum", "https://api.glassnode.com/v1/metrics/derivatives/futures_open_interest_latest", "https://api.glassnode.com/v1/metrics/derivatives/futures_open_interest_all_sum", "https://api.glassnode.com/v1/metrics/derivatives/futures_open_interest_perpetual_sum", "https://api.glassnode.com/v1/metrics/derivatives/futures_funding_rate_perpetual" ]}] ###
    would this be a good way to structure usable api requests

  3. changed the title [-]adding all available metrics to the python client[/-] [+]adding all available get requests to the python client[/+] on Jul 22, 2020
  4. philippstangl commented on Jan 10, 2021

    @philippstangl

    @L-47 Have a look at my forked repository. I made the API client object-oriented, thus no need to lookup endpoints, which to me is more developer-friendly and suits Python's OO nature better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions