Two original microeconomic models of an externality market are described: (1) model of optimal financial compensation of a damage caused by a negative externality in the economy with agents maximizing probability of their survival (generalized Coase theorem) and (2) generalized model of optimal financial favour for agents provided a positive externality.