Up to congestion (UTC) is a type of financial product available in the nodal electricity markets of the United States, based on which a financial participant can earn profits by utilizing the different congestion and loss components of the electricity prices in the day-ahead (DA) and real-time (RT) markets. This paper proposes the UTC bidding strategy by using stochastic optimization technique, where the uncertain electricity prices on the UTC transaction paths are represented via scenario sets. In the established stochastic model, the total expected profit and the Conditional Value at Risk (CVaR) of the UTC bidding strategy are maximized simultaneously considering risk management, where the risk preference of financial participant is characterized by using a risk aversion parameter. By solving the proposed stochastic model, non-increasing DA UTC bidding curves can be generated for all the time periods of the next operating day, where the credit requirements for UTC transactions are taken into account in detail. Finally, to verify the effectiveness of the proposed strategy, case studies are carried out based on the historical data and trading policies of the Pennsylvania-New Jersey-Maryland (PJM) electricity market, and the UTC bidding strategies generated by different models are analyzed. The numeral results indicate that, compared to the deterministic UTC bidding strategy, the proposed stochastic strategy can bring much higher expected profit and lower potential risks for the financial participant. Moreover, by adjusting the risk aversion parameter in the proposed model, the risks can be managed efficiently according to the financial participant's preference. INDEX TERMS Electricity market, financial participant, risk management, stochastic optimization, up to congestion I. NOTATIONS A. INDEXES AND SETS B. VARIABLES , , UTC bidding capacity on path d in time period t for scenario w. Auxiliary variable used to compute the CVaR. Auxiliary variable used to compute the Conditional Value at Risk (CVaR) for scenario w. , , Profit of the UTC bid used on path d in time period t for scenario w. , , Risk exposure of the UTC bid used on path d in time period t for scenario w.