My Recent Swaps
API-v2my_recent_swaps
The my_recent_swaps
method returns the data of the most recent atomic swaps executed by the Komodo DeFi Framework API node. Please note that all filters (my_coin, from_timestamp, etc.) are combined using logical AND.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
from_timestamp | integer | ✗ | - | Start timestamp in UNIX format |
from_uuid | string | ✗ | - | The UUID from which to start fetching results |
limit | integer | ✗ | 10 | The maximum number of results to return |
my_coin | string | ✗ | - | Coin being used by you for the swap/trade. |
other_coin | string | ✗ | - | Coin you are trading against |
page_number | integer | ✗ | 1 | Offset for paginated results |
to_timestamp | integer | ✗ | - | End timestamp in UNIX format |
Parameter | Type | Description |
---|---|---|
found_records | integer | The number of returned swaps. |
from_uuid | string | The from_uuid that was set in the request; this value is null if nothing was set. |
limit | integer | The limit that was set in the request; note that the actual number of swaps can differ from the specified limit (e.g. on the last page). |
page_number | integer | The page_number that was set in the request; if both page_number and from_uuid are not set in request it will default to 1 ; if from_uuid is present in request this value will be always null. |
skipped | integer | The number of skipped records (i.e. the position of from_uuid in the list + 1 or (page_number - 1) * limit ; the value is 0 if from_uuid or page_number were not set or page_number is 1). |
swaps | array of objects | A list of standard SwapStatus objects. |
total | integer | Total number of swaps available with the selected filters. |
total_pages | integer | Total pages available with the selected filters and limit. |
My Recent Swaps
POST
my_recent_swaps{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"method": "my_recent_swaps",
"params": {
"my_coin": "MARTY",
"other_coin": "DOC",
"from_timestamp": 1672531200,
"to_timestamp": 1734067200,
"from_uuid": "0a3859ba-0e28-49de-b015-641c050a6409",
"limit": 5,
"page_number": 1
}
}