This operation retrieves a list of swap activities. You can filter the results by swap type, status, initiator, and time range.
The API key. For more details, refer to API key.
In the API playground, enter your API secret, and your API key will be accordingly calculated.
The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
The type of the swap activity. Possible values include:
Bridge: The activity involves bridging tokens across chains.Exchange: The activity involves token-to-token exchange (a swap within the same chain).Bridge, Exchange "Bridge"
The status of the swap activity. Possible values include:
Success: The activity completed successfully.Processing: The activity is being processed.Failed: The activity failed.Success, Processing, Failed "Success"
The start time of the query. All swap activities updated after the specified time will be retrieved. The time is in Unix timestamp format, measured in milliseconds.
The end time of the query. All swap activities updated before the specified time will be retrieved. The time is in Unix timestamp format, measured in milliseconds.
The initiator of the swap activity. It is optional when creating the activity and defaults to your API key if not specified.
The maximum number of objects to return. For most operations, the value range is [1, 50].
A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
The field to sort the results by.
Possible values include:
created_timestamp: Sort by the time when the data was created.updated_timestamp: Sort by the time when the data was last updated.created_timestamp, updated_timestamp The sort direction. Possible values include:
ASC: Sort the results in ascending order.DESC: Sort the results in descending order.ASC, DESC