Create Swap Request
Create a swap request from a specific wallet.
Create a Swap
Initiate a mutation to create an assets swap request for approval, from one of your organization's exchange wallets
Please note that all is applicable only for exchange wallet swaps.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Body (WithdrawalCreateInput) object
Name | Type | Description |
---|---|---|
amount* | Integer | Swap Amount |
financialAsset* | String | Coin to swap |
swapAssetTo* | String | Coin to swap to |
walletId* | String | Wallet ID |
Example body:
Response
Return values:
Name | Type | Description |
---|---|---|
id | String | Swap ID |
amount | Integer | Swap Amount |
fee | Integer | Fee Amount |
orderType | String | Type of the order (Market/Limit) (will always be market) |