Skip to content

[ Feature Request ] Add direct limit/offset support to fetch transfers #608

@othmane099

Description

@othmane099

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like.

The current get_transfers_for_account method handles pagination internally and always starts from offset 0, which doesn’t allow fetching a specific page (e.g., offset 20, limit 10) directly.

It would be helpful to have a method like:

def get_transfers_for_account2(
    self,
    account_id: Union[UUID, str],
    transfers_filter: Optional[GetTransfersRequest] = None,
) -> List[Transfer]:
    account_id = validate_uuid_id_param(account_id)
    request_fields = transfers_filter.to_request_fields()
    result = self.get(f"/accounts/{account_id}/transfers", request_fields)
    return [Transfer.model_validate(item) for item in result]

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions