Stock transaction export

all user-facing changes are behind a feature flag
E501 line too long (127 > 115 characters)