Create transactions

POST {{baseUrl}}/ledgers/:ledgerId/transactions

Creates new transfer transactions.

A transaction is a transfer of asset funds from one account to another.

Transactions may be the result of higher-level concepts, such as trades. If this is the case, additional trade information should be provided.

For every transaction we require the total fiat euro (EUR) value of the transaction to be provided.

A transaction can be delayed through the valueDate property. Funds from transactions with a value date in the future cannot be withdrawn.

This endpoint supports bulk insert by default. All transactions are discarded in case of a problem with one transaction.

Allowed roles: EDITOR

Request Body

{"assetId"=>"BTC", "fiatCurrency"=>"USD", "fiatValue"=>"1000.57", "fromAccountId"=>"account-1", "id"=>"36161d45-1389-44f6-9100-2c5dc483d18d", "toAccountId"=>"account-2", "value"=>"0.05", "bookingDate"=>"2022-07-25T15:00:00.000Z", "valueDate"=>"2022-07-25T15:00:00.000Z", "euroValue"=>"1000.57", "fiatTotalCost"=>"1000.57", "reference"=>"reference of the transaction", "tradeInfo"=>{"fillDate"=>"2022-10-05T14:48:00.000Z", "marketMakerTxId"=>"36161d45-1389-44f6-9100-2c5dc483d18d"}}

HEADERS

KeyDatatypeRequiredDescription
tangany-versionnumber(Required) API version
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"elit id proident"}