In this paper we develop a theoretical model in which a firm hedges a spot position using options in presence of both quantity (production) and basis risk. Our optimal hedge ratio is fairly general, in that the dependence structure is modelled through a copula function representing the quantiles...