Calculate Settlement Fees

post/api/trade/v1/enterprise/{enterpriseId}/account/{accountId}/calculatefees

The Calculate Settlement Fees method will calculate the fees that will be taken out for settlement

Path Parameters

  • enterpriseIdstringRequired
    Enterprise ID
  • accountIdstringRequired
    Trading Account ID

Request Body

Parameters to calculate fees for settlement
counterpartyAccountId string
the counterparty account id for the given trade
sendAmount string
Amount of specified offchain currency this trade account will receive, in "base units" (i.e. cents for USD, Satoshi for BTC, Wei for ETH, etc.)
Example: 1000000
sendCurrency string
Offchain currency this trading account will send
Example: ofcbtc
receiveAmount string
Amount of specified offchain currency this trading account will receive, in "base units" (i.e. cents for USD, Satoshi for BTC, Wei for ETH, etc.)
Example: 3000
receiveCurrency string
Offchain currency this trading account will receive
Example: ofcsud

200 Response

feeRate string
feeAmount string
the fee amount that will be paid by this trading account for the given settlement amount
feeCurrency string
the currency the given feeAmount will be paid in

400 Response

error string required
Human-readable error message
errorName string required
Immutable error code for API integration
reqId string required
Client request id