We introduce a theory of stochastic integration with respect to a family of semimartingales depending on a continuous parameter, as a mathematical background to the theory of bond markets. We apply our results to the problem of super-replication and utility maximization from terminal wealth in a bond market. Finally, we compare our approach to those already existing in literature.