@@ -614,45 +614,48 @@ def query_perp_deploy_auction_status(self) -> Any:
614614
615615 def historical_orders (self , user : str ) -> Any :
616616 """Retrieve a user's historical orders.
617-
617+
618618 POST /info
619-
619+
620620 Args:
621621 user (str): Onchain address in 42-character hexadecimal format;
622622 e.g. 0x0000000000000000000000000000000000000000.
623-
623+
624624 Returns:
625- Returns at most 2000 most recent historical orders with their current
625+ Returns at most 2000 most recent historical orders with their current
626626 status and detailed order information.
627627 """
628628 return self .post ("/info" , {"type" : "historicalOrders" , "user" : user })
629629
630630 def user_non_funding_ledger_updates (self , user : str , startTime : int , endTime : Optional [int ] = None ) -> Any :
631631 """Retrieve non-funding ledger updates for a user.
632-
632+
633633 POST /info
634-
634+
635635 Args:
636636 user (str): Onchain address in 42-character hexadecimal format.
637637 startTime (int): Start time in milliseconds (epoch timestamp).
638638 endTime (Optional[int]): End time in milliseconds (epoch timestamp).
639-
639+
640640 Returns:
641641 Comprehensive ledger updates including deposits, withdrawals, transfers,
642642 liquidations, and other account activities excluding funding payments.
643643 """
644644 if endTime is not None :
645- return self .post ("/info" , {"type" : "userNonFundingLedgerUpdates" , "user" : user , "startTime" : startTime , "endTime" : endTime })
645+ return self .post (
646+ "/info" ,
647+ {"type" : "userNonFundingLedgerUpdates" , "user" : user , "startTime" : startTime , "endTime" : endTime },
648+ )
646649 return self .post ("/info" , {"type" : "userNonFundingLedgerUpdates" , "user" : user , "startTime" : startTime })
647650
648651 def portfolio (self , user : str ) -> Any :
649652 """Retrieve comprehensive portfolio performance data.
650-
653+
651654 POST /info
652-
655+
653656 Args:
654657 user (str): Onchain address in 42-character hexadecimal format.
655-
658+
656659 Returns:
657660 Comprehensive portfolio performance data across different time periods,
658661 including account value history, PnL history, and volume metrics.
@@ -661,13 +664,13 @@ def portfolio(self, user: str) -> Any:
661664
662665 def batch_clearinghouse_states (self , users : List [str ], dex : str = "" ) -> Any :
663666 """Retrieve perpetuals account summaries for multiple users.
664-
667+
665668 POST /info
666-
669+
667670 Args:
668671 users (List[str]): List of onchain addresses in 42-character hexadecimal format.
669672 dex (str): Perp dex name. Defaults to empty string (first perp dex).
670-
673+
671674 Returns:
672675 Array where each item matches the clearinghouseState schema with fields like
673676 assetPositions, marginSummary, crossMarginSummary, time, and withdrawable.
@@ -676,26 +679,26 @@ def batch_clearinghouse_states(self, users: List[str], dex: str = "") -> Any:
676679
677680 def user_twap_slice_fills (self , user : str ) -> Any :
678681 """Retrieve a user's TWAP slice fills.
679-
682+
680683 POST /info
681-
684+
682685 Args:
683686 user (str): Onchain address in 42-character hexadecimal format.
684-
687+
685688 Returns:
686- Returns at most 2000 most recent TWAP slice fills with detailed
689+ Returns at most 2000 most recent TWAP slice fills with detailed
687690 execution information.
688691 """
689692 return self .post ("/info" , {"type" : "userTwapSliceFills" , "user" : user })
690693
691694 def user_vault_equities (self , user : str ) -> Any :
692695 """Retrieve user's equity positions across all vaults.
693-
696+
694697 POST /info
695-
698+
696699 Args:
697700 user (str): Onchain address in 42-character hexadecimal format.
698-
701+
699702 Returns:
700703 Detailed information about user's equity positions across all vaults
701704 including current values, profit/loss metrics, and withdrawal details.
@@ -704,12 +707,12 @@ def user_vault_equities(self, user: str) -> Any:
704707
705708 def user_role (self , user : str ) -> Any :
706709 """Retrieve the role and account type information for a user.
707-
710+
708711 POST /info
709-
712+
710713 Args:
711714 user (str): Onchain address in 42-character hexadecimal format.
712-
715+
713716 Returns:
714717 Role and account type information including account structure,
715718 permissions, and relationships within the Hyperliquid ecosystem.
@@ -718,12 +721,12 @@ def user_role(self, user: str) -> Any:
718721
719722 def user_rate_limit (self , user : str ) -> Any :
720723 """Retrieve user's API rate limit configuration and usage.
721-
724+
722725 POST /info
723-
726+
724727 Args:
725728 user (str): Onchain address in 42-character hexadecimal format.
726-
729+
727730 Returns:
728731 Detailed information about user's API rate limit configuration
729732 and current usage for managing API usage and avoiding rate limiting.
@@ -732,12 +735,12 @@ def user_rate_limit(self, user: str) -> Any:
732735
733736 def delegator_history (self , user : str ) -> Any :
734737 """Retrieve comprehensive staking history for a user.
735-
738+
736739 POST /info
737-
740+
738741 Args:
739742 user (str): Onchain address in 42-character hexadecimal format.
740-
743+
741744 Returns:
742745 Comprehensive staking history including delegation and undelegation
743746 events with timestamps, transaction hashes, and detailed delta information.
0 commit comments