Skip to content

docs: fix meta_and_asset_ctxs return format - #321

Open
aperechnev wants to merge 1 commit into
hyperliquid-dex:masterfrom
aperechnev:meta_and_asset_ctxs_docs_fix
Open

docs: fix meta_and_asset_ctxs return format#321
aperechnev wants to merge 1 commit into
hyperliquid-dex:masterfrom
aperechnev:meta_and_asset_ctxs_docs_fix

Conversation

@aperechnev

Copy link
Copy Markdown

The return value of meta_and_asset_ctxs is a two-element array where the first element is the metadata object and the second element is an array of asset contexts.

The current docstring is missing a pair of brackets around the asset contexts array, which makes the response structure slightly misleading.

This PR only fixes the documentation. The return type could also be made more explicit using the existing PerpAssetCtx type if desired, but I left that out to keep this change minimal.

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