As a clean energy, wind power is vital in the electricity and hydrogen (H2) markets. This study proposes a wind-hydrogen system (WHS) scheduling model to coordinate the decomposition of bilateral contract, bidding in the day-ahead energy market, and H2 production. Chance-constrained programming is used to deal with the uncertainty of wind power forecast errors in the WHS. The scheduling problem of the WHS is a mixed integer linear programming model. Finally, the feasibility of the proposed WHS scheduling model for multiple markets is verified by a case study. Moreover, a comparative analysis of the flexible and fixed bilateral contract decomposition showed that more profits could be obtained by coordinating bidding in the day-ahead market and H2 production.