Would this not work for you?
```
2020-01-01 commodity SWAP-T10
asset-class: "swap"
; Should not throw any warning
2020-01-01 * "Enter swap"
Assets:Broker:SWAP-T10 -1 SWAP-T10 {1234.56 USD,
2020-01-01} @ 1234.56 USD
Assets:Broker:USD 1234.56 USD
On Sunday, January 26, 2020 at 4:09:04 AM UTC-6, Javier wrote:
>
> New issue 417: Allow negative prices
> https://bitbucket.org/blais/beancount/issues/417/allow-negative-prices
>
> Javier:
>
> Could negative commodity prices be allowed? Some financial
> assets/contracts, like swaps, may have a negative entry price.
>
>
>
> For instance, allow negative prices for the following asset-class
>
>
>
> ```
> 2020-01-01 commodity SWAP-T10
> asset-class: "swap"
>
> ; Should not throw any warning
> 2020-01-01 * "Enter swap"
> Assets:Broker:SWAP-T10 1 SWAP-T10 {-1234.56 USD,
> 2020-01-01} @ -1234.56 USD
> Assets:Broker:USD 1234.56 USD
> ```
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/25f7bddc-6ce7-45eb-b2da-6fd1c94cb6e6%40googlegroups.com.