POST
/
dry-run-orders
curl --request POST \
  --url https://api.copper.co/platform/dry-run-orders \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": "<string>",
  "baseCurrency": "<string>",
  "deliveryType": "free-of-payment",
  "feeLevel": "low",
  "includeFeeInWithdraw": true,
  "limitType": "otc",
  "mainCurrency": "<string>",
  "memo": "<string>",
  "orderType": "sell",
  "payload": "<string>",
  "payloads": [
    "<string>"
  ],
  "portfolioId": "<string>",
  "priceLimit": "<string>",
  "quoteAmount": "<string>",
  "quoteCurrency": "<string>",
  "quoteMainCurrency": "<string>",
  "requestedNetworkFees": {
    "feePerByte": "<string>",
    "gasLimit": "<string>",
    "gasPriceGwei": "<string>",
    "maxFeePerGas": "<string>",
    "maxPriorityFeePerGas": "<string>"
  },
  "toCounterpartyId": "<string>",
  "toCryptoAddressId": "<string>",
  "toInvoiceId": "<string>",
  "toLendingInvoiceId": "<string>",
  "toPortfolioId": "<string>"
}'
{
  "amount": "<string>",
  "baseCurrency": "<string>",
  "extra": {
    "availableCoSigners": [
      "<string>"
    ],
    "availableSnapshot": "<string>",
    "balanceSnapshot": "<string>",
    "blockchainTransactionType": "send",
    "clearLoop": true,
    "clientAccountId": "<string>",
    "coSigners": [
      "<string>"
    ],
    "coSignersNumber": "<string>",
    "confirmations": "<string>",
    "counterpartyPortfolioId": "<string>",
    "deliveryType": "free-of-payment",
    "depositOrderId": "<string>",
    "depositTargetId": "<string>",
    "description": "<string>",
    "estimatedFees": {
      "estimatedTime": "<string>",
      "fee": "<string>",
      "feeCurrency": "<string>",
      "feePerByte": {},
      "gasLimit": {},
      "gasPriceGwei": "<string>",
      "reportingCurrencyRate": "<string>",
      "transactionBytes": "<string>"
    },
    "externalBroadcast": true,
    "feeLevel": "low",
    "fromAddresses": [
      "<string>"
    ],
    "fromCounterpartyId": "<string>",
    "fromCryptoAddress": {
      "_embedded": {
        "currencyConfigurations": [
          {
            "createdAt": "<string>",
            "createdBy": "<string>",
            "cryptoAddressId": "<string>",
            "currency": "<string>",
            "currencyConfigurationId": "<string>",
            "extra": {},
            "isWhitelist": true,
            "lastUsedAt": "<string>",
            "portfolioIds": [
              "<string>"
            ],
            "updatedAt": "<string>",
            "updatedBy": "<string>"
          }
        ]
      },
      "acceptTokens": true,
      "address": "<string>",
      "addressType": "externally-owned-account",
      "category": "smart-contract",
      "createdAt": "<string>",
      "createdBy": "<string>",
      "cryptoAddressId": "<string>",
      "currency": "<string>",
      "extra": {},
      "isWhitelist": true,
      "lastUsedAt": "<string>",
      "mainCurrency": "<string>",
      "memo": "<string>",
      "name": "<string>",
      "organizationId": "<string>",
      "portfolioIds": [
        "<string>"
      ],
      "updatedAt": "<string>",
      "updatedBy": "<string>"
    },
    "fromCryptoAddressId": "<string>",
    "fromPortfolioId": "<string>",
    "includeFeeInWithdraw": true,
    "invoiceId": "<string>",
    "marketPrice": "<string>",
    "memo": "<string>",
    "nextTransferTo": [
      {
        "cryptoAddressId": "<string>",
        "portfolioId": "<string>",
        "targetType": "external"
      }
    ],
    "originalDepositAmount": "<string>",
    "partSigned": {},
    "payload": "<string>",
    "payloads": [
      "<string>"
    ],
    "reportingCurrencyRate": "<string>",
    "reportingQuoteCurrencyRate": "<string>",
    "signed": {},
    "spenderAddress": "<string>",
    "terminatedReportingCurrencyRate": "<string>",
    "toAddress": "<string>",
    "toCounterpartyId": "<string>",
    "toCryptoAddressId": "<string>",
    "toInvoiceId": "<string>",
    "toLendingInvoiceId": "<string>",
    "toPortfolioId": "<string>",
    "totalQuoteAmount": "<string>",
    "transactionId": "<string>",
    "transactionRequest": {},
    "transferAmount": "<string>",
    "transferChainId": "<string>",
    "transferDepositTargetId": "<string>",
    "transferFees": "<string>",
    "transferFeesCurrency": "<string>",
    "transferTransactionId": "<string>",
    "withdrawFee": "<string>",
    "withdrawOrderId": "<string>"
  },
  "mainCurrency": "<string>",
  "orderType": "sell",
  "portfolioId": "<string>",
  "warning": {
    "code": "<string>",
    "message": "<string>"
  }
}

Body

application/json
baseCurrency
string
required
orderType
enum<string>
required
Available options:
sell,
buy,
deposit,
withdraw,
multi-withdraw,
wallet-message,
retrieved-deposit,
earn-reward,
earn-shared-reward,
claim-shared-reward,
cross-chain-deposit,
cross-chain-withdraw
portfolioId
string
required
amount
string
deliveryType
enum<string>
Available options:
free-of-payment,
payment-vs-payment
feeLevel
enum<string>
Available options:
low,
medium,
high
includeFeeInWithdraw
boolean
limitType
enum<string>
Available options:
otc,
rfq
mainCurrency
string
memo
string
payload
string
payloads
string[]
priceLimit
string
quoteAmount
string
quoteCurrency
string
quoteMainCurrency
string
requestedNetworkFees
object
toCounterpartyId
string
toCryptoAddressId
string
toInvoiceId
string
toLendingInvoiceId
string
toPortfolioId
string

Response

200
application/json
OK
baseCurrency
string
required
orderType
enum<string>
required
Available options:
sell,
buy,
deposit,
withdraw,
multi-withdraw,
wallet-message,
retrieved-deposit,
earn-reward,
earn-shared-reward,
claim-shared-reward,
cross-chain-deposit,
cross-chain-withdraw
portfolioId
string
required
amount
string
extra
object
mainCurrency
string
warning
object