Link

Withdraw crypto

  1. Choose the portfolio wallet you want to withdraw from by using get accounts API. Remember portfolioId for chosen account.

  2. Choose withdraw target:
    1. You can fill it by usingĀ toAddress, destinationTag and memo fields
    2. Or use already saved cryptoAddress from get crypto addresses API
  3. Create order using create order API with these parameters:
    1. For unknown address:

       + POST /platform/orders
      
       + Request (application/json)
         {
           "externalOrderId": "F7FCCFD3-B61B-4467-B456-B0FC27CE4494",     // any client generated uniq ID (timestamp or UUID for example)
           "orderType": "withdraw",
           "baseCurrency": "BTC",
           "mainCurrency": "BTC",
           "amount": "1.00451",
           "portfolioId": "46",
           "toAddress": "15BLpZebnTTTtfuBwmB8x1VRfcGtPJhK3p",      // destination wallet address,
           "destinationTag": 34,       // optional, used only for XRP (Ripple) withdrawal
           "memo": "testme"       // optional
         }
      
    2. For saved crypto address:

       + POST /platform/orders
      
       + Request (application/json)
         {
           "externalOrderId": "F7FCCFD3-B61B-4467-B456-B0FC27CE4494",     // any client generated uniq ID (timestamp or UUID for example)
           "orderType": "withdraw",
           "baseCurrency": "BTC",
           "mainCurrency": "BTC",
           "amount": "1.00451",
           "portfolioId": "46",
           "toCryptoAddressId": "cbc328f5-85de-4c2d-a0b9-65a0c7f81b72"      // destination cryptoAddressId,
         }