Komodo DeFi Framework Method: My Swap Status
API-v1my_swap_status
The my_swap_status method returns the data of an atomic swap executed on an Komodo DeFi Framework API node.
| Parameter | Type | Required | Description |
|---|---|---|---|
| uuid | string | ✓ | The uuid of swap, typically received from the buy/sell call |
| Parameter | Type | Description |
|---|---|---|
| events | array of objects | A standard SwapEvent object. Events which occurred for a swap. See Maker Events and Taker Events for more info. |
| success_events | array of strings | A list of events that gained a success swap state; the contents are listed in the order in which they should occur in the events array |
| error_events | array of strings | A list of events that fell into an error swap state; if at least 1 of the events happens, the swap is considered a failure |
| type | string | Whether the node acted as a market Maker or Taker |
| uuid | string | Swap uuid |
| gui | string (optional) | Information about gui; copied from Komodo DeFi Framework API configuration in your MM2.json file |
| mm_version | string (optional) | Komodo DeFi Framework API version |
| maker_coin | string (optional) | Ticker of maker coin |
| taker_coin | string (optional) | Ticker of taker coin |
| maker_amount | string (numeric) | The amount of coins to be swapped by maker |
| taker_amount | string (numeric) | The amount of coins to be swapped by taker |
| maker_coin_usd_price | string (numeric) | The USD price of the maker coin at time of trade (if available) |
| taker_coin_usd_price | string (numeric) | The USD price of the taker coin at time of trade (if available) |
| my_info | object (optional) | This object maps event data to make displaying swap data in a GUI simpler (my_coin, my_amount, etc.) |
| recoverable | boolean | Whether the swap can be recovered using the recover_funds_of_swap API command. The Komodo DeFi Framework API allows as many calls to the recover_funds_of_swap method as necessary, in case of errors |
| my_order_uuid | string (uuid) | The uuid of order that matched to start the swap |
| is_finished | boolean | true indicates a swap that has completed. false indicates a swap that is in progress. |
| is_success | boolean | Not visible until swap completes. A value of false indicates a failed swap, and a value of true indicates the swap completed successfully. |
my_swap_status
POST
my_swap_status{
"method": "my_swap_status",
"params": {
"uuid": "3d2286d1-1eef-487b-a07a-904f33034792"
},
"userpass": "RPC_UserP@SSW0RD"
}