Create Exchange Swap
Create a swap request from a specific wallet.
Create a Swap Through an Exchange Wallet
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.
mutation CreateSwap($data: SwapCreateInput!) {
createSwap(data: $data) {
id
amount
fee
orderType
}
}Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
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)
Try it out!
Last updated
Was this helpful?