Skip to content

Add get asset operations endpoint#17

Merged
alexex10 merged 1 commit intomainfrom
asset-operations
Jul 30, 2024
Merged

Add get asset operations endpoint#17
alexex10 merged 1 commit intomainfrom
asset-operations

Conversation

@alexex10
Copy link
Copy Markdown
Contributor

Changes

  • Add account.get_asset_operations(...) method to fetch data from /user/assetOperations endpoint


async def close(self):
await self.__markets_info_module.close_session()
await self.__user_module.close_session()
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️

@alexex10 alexex10 marked this pull request as ready for review July 30, 2024 07:29
Comment thread tests/fixtures/assets.py
from x10.perpetual.assets import AssetOperationModel


def create_asset_operations():
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to use raw JSON in our fixtures in the future.

@alexex10 alexex10 merged commit 6a023eb into main Jul 30, 2024
0xsumatt pushed a commit to 0xsumatt/x10_python_sdk that referenced this pull request Mar 31, 2025
@alexex10 alexex10 deleted the asset-operations branch June 23, 2025 08: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