Skip to content

feat(info): add 9 missing Info API methods - #203

Merged
traderben merged 9 commits into
hyperliquid-dex:masterfrom
smypmsa:feat/add-missing-info-methods
Aug 31, 2025
Merged

feat(info): add 9 missing Info API methods#203
traderben merged 9 commits into
hyperliquid-dex:masterfrom
smypmsa:feat/add-missing-info-methods

Conversation

@smypmsa

@smypmsa smypmsa commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Add 9 missing Info API methods to improve SDK coverage of Hyperliquid's Info endpoints
  • Update .gitignore to exclude testing folder

Changes Made

New Info API Methods Added

  • Enhanced the Info class with 9 additional API methods for better endpoint coverage:
  • historical_orders(user) - Retrieve user's historical orders (up to 2000 most recent)
  • user_non_funding_ledger_updates(user, startTime, endTime) - Get non-funding ledger updates
  • portfolio(user) - Retrieve comprehensive portfolio performance data
  • batch_clearinghouse_states(users, dex) - Get perpetuals account summaries for multiple users
  • user_twap_slice_fills(user) - Retrieve user's TWAP slice fills
  • user_vault_equities(user) - Get user's equity positions across all vaults
  • user_role(user) - Retrieve role and account type information
  • user_rate_limit(user) - Get API rate limit configuration and usage
  • delegator_history(user) - Retrieve comprehensive staking history

Configuration Updates

  • Updated .gitignore to exclude testing folder from version control

smypmsa and others added 4 commits August 22, 2025 09:42
Added comprehensive support for additional Hyperliquid Info API endpoints:
- historical_orders: Retrieve user's historical orders with status
- user_non_funding_ledger_updates: Get ledger updates excluding funding
- portfolio: Comprehensive portfolio performance across time periods
- batch_clearinghouse_states: Batch retrieval of multiple user states
- user_twap_slice_fills: TWAP order slice fills
- user_vault_equities: Vault investment positions
- user_role: User role and account type information
- user_rate_limit: API rate limit configuration and usage
- delegator_history: Comprehensive staking history

Also added comprehensive tests for all new methods and updated .gitignore
to exclude VCR cassettes folder from version control.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added testing/ folder to .gitignore for local manual testing scripts
that should not be committed to the repository.
@smypmsa
smypmsa marked this pull request as ready for review August 22, 2025 11:49
@smypmsa

smypmsa commented Aug 24, 2025

Copy link
Copy Markdown
Contributor Author

Please have a look @traderben

Comment thread .gitignore Outdated
Comment thread hyperliquid/exchange.py Outdated
@smypmsa
smypmsa requested a review from traderben August 25, 2025 18:46
Comment thread .gitignore Outdated
Comment thread hyperliquid/info.py Outdated
Comment thread hyperliquid/info.py Outdated
Comment thread tests/cassettes/info_test/test_batch_clearinghouse_states.yaml Outdated
Comment thread hyperliquid/info.py Outdated
Comment thread tests/cassettes/info_test/test_historical_orders.yaml
@smypmsa
smypmsa requested a review from traderben August 30, 2025 19:25
@traderben
traderben merged commit a1fca2a into hyperliquid-dex:master Aug 31, 2025
3 checks passed
@smypmsa
smypmsa deleted the feat/add-missing-info-methods branch August 31, 2025 18:57
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.

2 participants