Marketable Asset

Create marketable asset

Changed on

Create a marketable asset with its opening transaction

post/assets/marketable

Request

  • Base URL: http://localhost:3001/v1
  • URL: http://localhost:3001/v1/assets/marketable
  • Auth: HTTP bearer

Request body

transactionType'BUY' | 'SELL' required
assetClass'EQUITY' | 'BOND' | 'ETF' | 'STOCK' | 'CRYPTO' | 'COMMODITY' | 'REIT' | 'MIXED' | 'null' nullable
financialAccountIdstring required
symbolstring required
providerIdstring required
providerInstrumentIdstring required
datestring required
quantitynumber required
unitPricenumber required
feesnumber required
currency'USD' | 'EUR' | 'GBP' | 'JPY' | 'CNY' | 'INR' | 'AUD' | 'CAD' | 'CHF' | 'SEK' | 'NZD' | 'MXN' | 'SGD' | 'HKD' | 'NOK' | 'KRW' | 'TRY' | 'UNKNOWN' required

Response

Marketable asset created

successboolean required

Indicates if the request was successful

messagestring required

Optional success message

Changes

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • info

      added the required property ////// to the response with the status

    • info

      added the required property ////// to the response with the status

    • breaking

      added the new required request property