OPEN-SOURCE SCRIPT
Cập nhật US Treasury Auction Dates (10Y/20Y/30Y)

This indicator automatically plots U.S. Treasury auction dates for 10-Year Notes, 20-Year Bonds, and 30-Year Bonds on your chart.
The data used in this indicator is sourced entirely from official U.S. Department of the Treasury channels. It combines two official data streams to ensure absolute historical accuracy and up-to-date future scheduling:
1. Historical Auction Records (API)
• Source: U.S. Treasury Fiscal Data API.
• Endpoint: v1/accounting/od/auctions_query
• Coverage: Complete official historical records from 1979 to the present.
2. Future Tentative Auction Schedules (XML)
• Source: U.S. Department of the Treasury's official Tentative Auction Schedule service.
• File URL: home.treasury.gov/system/files/221/Tentative-Auction-Schedule.xml
• Coverage: The most recently announced tentative schedules for upcoming months.
New Issues and Reopenings are separate。TIPS are excluded.
This indicator is updated regularly with new auction dates.
The data used in this indicator is sourced entirely from official U.S. Department of the Treasury channels. It combines two official data streams to ensure absolute historical accuracy and up-to-date future scheduling:
1. Historical Auction Records (API)
• Source: U.S. Treasury Fiscal Data API.
• Endpoint: v1/accounting/od/auctions_query
• Coverage: Complete official historical records from 1979 to the present.
2. Future Tentative Auction Schedules (XML)
• Source: U.S. Department of the Treasury's official Tentative Auction Schedule service.
• File URL: home.treasury.gov/system/files/221/Tentative-Auction-Schedule.xml
• Coverage: The most recently announced tentative schedules for upcoming months.
New Issues and Reopenings are separate。TIPS are excluded.
This indicator is updated regularly with new auction dates.
Phát hành các Ghi chú
This indicator automatically plots U.S. Treasury auction dates for 10-Year Notes, 20-Year Bonds, and 30-Year Bonds on your chart.The data used in this indicator is sourced entirely from official U.S. Department of the Treasury channels. It combines two official data streams to ensure absolute historical accuracy and up-to-date future scheduling:
1. Historical Auction Records (API)
• Source: U.S. Treasury Fiscal Data API.
• Endpoint: v1/accounting/od/auctions_query
• Coverage: Complete official historical records from 1979 to the present.
2. Future Tentative Auction Schedules (XML)
• Source: U.S. Department of the Treasury's official Tentative Auction Schedule service.
• File URL: home.treasury.gov/system/files/221/Tentative-Auction-Schedule.xml
• Coverage: The most recently announced tentative schedules for upcoming months.
New Issues and Reopenings are separate. TIPS are excluded from this indicator.
This indicator is updated regularly with new auction dates.
Phát hành các Ghi chú
Shifted the vertical line and label drawing time from the market open (start of the day) to exactly 1:00 PM Eastern Time (ET) on US Treasury auction days.Phát hành các Ghi chú
Update: Added Upcoming Auction TableThis version adds a compact top-right summary table showing the next upcoming 10Y, 20Y, and 30Y U.S. Treasury auctions.
What’s new:
- Added an optional “Upcoming Auction Table”
- Shows the next auction date for each maturity
- Identifies whether each upcoming auction is a New Issue or Reopening
- Displays the number of days remaining
- Uses the current New York date for countdown accuracy
- Table respects the existing visibility toggles for each maturity and reopening type
This makes it easier to track upcoming Treasury supply events without scanning the full chart history.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.