# a no-commodity amount with a price should work bin/hledger -f - print <<< 2010/1/1 x a 1 @ $2 b >>> 2010/01/01 x a 1 @ $2 b $-2