Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info additons #90

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rustyresearch
Copy link

Added spot user state docstring to info.py

@rustyresearch rustyresearch changed the title Docstring additon Info additons Dec 29, 2024
@rustyresearch
Copy link
Author

Added historial orders

@rustyresearch
Copy link
Author

rustyresearch commented Jan 1, 2025

Adds support for the aggregateByTime parameter to the fills endpoints in the Info class. When enabled, this aggregates partial fills that occur when a crossing order gets filled by multiple resting orders.

Changes

  • Added aggregate_by_time optional parameter to user_fills()
  • Added aggregate_by_time optional parameter to user_fills_by_time()
  • Updated docstrings with new parameter details and response format

Why

The Hyperliquid API supports fill aggregation but this wasn't exposed in the SDK. This is useful for analysis tools that want to see consolidated fills rather than individual partial fills.

Example

# Get aggregated fills
fills = info.user_fills(address, aggregate_by_time=True)

# Get aggregated fills in time range
fills = info.user_fills_by_time(
    address, 
    start_time, 
    end_time, 
    aggregate_by_time=True
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant