Files
taxbaik/legacy/smartadmin/json/MOCK_DATA.json
T
kjh2064 40cffb3beb
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m26s
fix: implement Blazor-native login form to properly update authentication state
Problem: JavaScript login form saved tokens to localStorage but didn't notify
CustomAuthenticationStateProvider, causing [Authorize] pages to remain in
'loading' state indefinitely. The provider only reads tokens when:
1. GetAuthenticationStateAsync() is called (page load)
2. NotifyAuthenticationStateChanged() is triggered (UI updates)

But JavaScript login didn't trigger either, leaving the authentication state
stale.

Solution: Convert AdminLoginForm from HTML+JavaScript to pure Blazor component.
Now the login flow is:
1. User enters credentials in Blazor form
2. HttpClient POST to /api/auth/login
3. Save tokens to localStorage
4. Call CustomAuthenticationStateProvider.LoginAsync() directly
5. Blazor detects auth state change and re-evaluates [Authorize] pages
6. Dashboard [Authorize] page renders successfully

Result: Immediate authentication state update, no loading timeout on protected pages.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-03 13:03:53 +09:00

542 lines
14 KiB
JSON

[
{
"TradeID": "K9P2M7",
"Symbol": "GFA",
"Qty": 1248,
"BuyPrice": "$998.23",
"SellPrice": "$253.74",
"BuyDate": "April 12, 2006",
"SellDate": "August 4, 2008",
"Profit": "-$744.49",
"Fee": "$98.65",
"Net": "-$843.14",
"Broker": "Plambee",
"Type": "Sell",
"Sector": "Basic Industries",
"Industry": "Homebuilding",
"MktCap": "$649,658,734.99",
"DivYield": "1.91%"
},
{
"TradeID": "T5R8J9Q",
"Symbol": "IPG",
"Qty": 2081,
"BuyPrice": "$14.90",
"SellPrice": "$191.27",
"BuyDate": "February 1, 2006",
"SellDate": "March 30, 2019",
"Profit": "$176.37",
"Fee": "$50.45",
"Net": "$125.92",
"Broker": "Demimbu",
"Type": "Short Sell",
"Sector": "Technology",
"Industry": "Advertising",
"MktCap": "$190,432,116.44",
"DivYield": "2.40%"
},
{
"TradeID": "B3N6X2",
"Symbol": "BUSE",
"Qty": 5059,
"BuyPrice": "$74.16",
"SellPrice": "$13.18",
"BuyDate": "March 19, 2005",
"SellDate": "April 20, 2005",
"Profit": "-$60.98",
"Fee": "$2.21",
"Net": "-$63.19",
"Broker": "Youspan",
"Type": "Short Sell",
"Sector": "Finance",
"Industry": "Major Banks",
"MktCap": "$136,277,727.94",
"DivYield": "7.61%"
},
{
"TradeID": "H7Q1P4M",
"Symbol": "SPH",
"Qty": 4603,
"BuyPrice": "$598.03",
"SellPrice": "$226.70",
"BuyDate": "January 25, 2022",
"SellDate": "April 19, 2022",
"Profit": "-$371.33",
"Fee": "$63.37",
"Net": "-$434.70",
"Broker": "Dazzlesphere",
"Type": "Buy",
"Sector": "Consumer Services",
"Industry": "Other Specialty Stores",
"MktCap": "$676,858,913.93",
"DivYield": "9.02%"
},
{
"TradeID": "Y2K5V9",
"Symbol": "NVIV",
"Qty": 652,
"BuyPrice": "$693.44",
"SellPrice": "$781.62",
"BuyDate": "August 9, 2008",
"SellDate": "April 26, 2022",
"Profit": "$88.18",
"Fee": "$55.19",
"Net": "$32.99",
"Broker": "Eire",
"Type": "Short Sell",
"Sector": "Health Care",
"Industry": "Medical/Dental Instruments",
"MktCap": "$944,992,962.89",
"DivYield": "2.06%"
},
{
"TradeID": "W8M3R6T",
"Symbol": "KMX",
"Qty": 7586,
"BuyPrice": "$421.76",
"SellPrice": "$558.49",
"BuyDate": "November 3, 2016",
"SellDate": "January 12, 2005",
"Profit": "$136.73",
"Fee": "$91.14",
"Net": "$45.59",
"Broker": "Eidel",
"Type": "Sell",
"Sector": "Consumer Durables",
"Industry": "Automotive Aftermarket",
"MktCap": "$7,785,071.68",
"DivYield": "4.58%"
},
{
"TradeID": "J4P9X1",
"Symbol": "ANET",
"Qty": 8614,
"BuyPrice": "$535.84",
"SellPrice": "$388.28",
"BuyDate": "May 12, 2007",
"SellDate": "January 11, 2014",
"Profit": "-$147.56",
"Fee": "$77.03",
"Net": "-$224.59",
"Broker": "Tagchat",
"Type": "Sell",
"Sector": "Technology",
"Industry": "Computer Communications Equipment",
"MktCap": "$947,469,144.30",
"DivYield": "8.33%"
},
{
"TradeID": "Q6T2N8",
"Symbol": "SAGE",
"Qty": 8054,
"BuyPrice": "$8.37",
"SellPrice": "$938.03",
"BuyDate": "April 20, 2019",
"SellDate": "April 11, 2020",
"Profit": "$929.66",
"Fee": "$44.98",
"Net": "$884.68",
"Broker": "Pixoboo",
"Type": "Sell",
"Sector": "Health Care",
"Industry": "Major Pharmaceuticals",
"MktCap": "$709,307,253.42",
"DivYield": "8.56%"
},
{
"TradeID": "Z3H7K5P",
"Symbol": "CLA.CL",
"Qty": 7413,
"BuyPrice": "$787.71",
"SellPrice": "$618.43",
"BuyDate": "April 29, 2012",
"SellDate": "June 3, 2017",
"Profit": "-$169.28",
"Fee": "$97.55",
"Net": "-$266.83",
"Broker": "Brightbean",
"Type": "Buy",
"Sector": null,
"Industry": null,
"MktCap": "$761,065,893.03",
"DivYield": "6.17%"
},
{
"TradeID": "F9R4M2",
"Symbol": "BGC",
"Qty": 2669,
"BuyPrice": "$811.01",
"SellPrice": "$499.43",
"BuyDate": "September 3, 2009",
"SellDate": "April 10, 2019",
"Profit": "-$311.58",
"Fee": "$91.56",
"Net": "-$403.14",
"Broker": "Photobug",
"Type": "Short Sell",
"Sector": "Basic Industries",
"Industry": "Telecommunications Equipment",
"MktCap": "$348,996,212.37",
"DivYield": "4.85%"
},
{
"TradeID": "V5N1T8Q",
"Symbol": "JPM^A",
"Qty": 6773,
"BuyPrice": "$713.52",
"SellPrice": "$224.17",
"BuyDate": "August 17, 2017",
"SellDate": "June 14, 2017",
"Profit": "-$489.35",
"Fee": "$21.00",
"Net": "-$510.35",
"Broker": "Miboo",
"Type": "Buy",
"Sector": "Finance",
"Industry": "Major Banks",
"MktCap": "$483,664,239.77",
"DivYield": "5.87%"
},
{
"TradeID": "C7X3P9",
"Symbol": "ACV",
"Qty": 5159,
"BuyPrice": "$915.21",
"SellPrice": "$609.11",
"BuyDate": "March 21, 2011",
"SellDate": "June 12, 2004",
"Profit": "-$306.10",
"Fee": "$22.95",
"Net": "-$329.05",
"Broker": "Gabtune",
"Type": "Short Sell",
"Sector": null,
"Industry": null,
"MktCap": "$766,020,458.69",
"DivYield": "0.55%"
},
{
"TradeID": "L2Q6K4M",
"Symbol": "UN",
"Qty": 8239,
"BuyPrice": "$660.81",
"SellPrice": "$892.21",
"BuyDate": "November 16, 2016",
"SellDate": "May 25, 2008",
"Profit": "$231.40",
"Fee": "$87.57",
"Net": "$143.83",
"Broker": "Jetpulse",
"Type": "Sell",
"Sector": "Basic Industries",
"Industry": "Package Goods/Cosmetics",
"MktCap": "$890,364,357.89",
"DivYield": "2.82%"
},
{
"TradeID": "D8T5N1",
"Symbol": "CASY",
"Qty": 3651,
"BuyPrice": "$461.29",
"SellPrice": "$123.45",
"BuyDate": "July 2, 2008",
"SellDate": "March 18, 2015",
"Profit": "-$337.84",
"Fee": "$51.76",
"Net": "-$389.60",
"Broker": "Bubblebox",
"Type": "Sell",
"Sector": "Consumer Durables",
"Industry": "Automotive Aftermarket",
"MktCap": "$621,941,607.38",
"DivYield": "1.70%"
},
{
"TradeID": "G3P9R7Q",
"Symbol": "HSII",
"Qty": 5373,
"BuyPrice": "$454.50",
"SellPrice": "$612.13",
"BuyDate": "July 9, 2011",
"SellDate": "April 22, 2011",
"Profit": "$157.63",
"Fee": "$56.98",
"Net": "$100.65",
"Broker": "Zooxo",
"Type": "Short Sell",
"Sector": "Technology",
"Industry": "Diversified Commercial Services",
"MktCap": "$316,290,950.71",
"DivYield": "3.13%"
},
{
"TradeID": "M6K2X4",
"Symbol": "SRLP",
"Qty": 6922,
"BuyPrice": "$256.98",
"SellPrice": "$738.76",
"BuyDate": "August 15, 2009",
"SellDate": "September 23, 2004",
"Profit": "$481.78",
"Fee": "$33.43",
"Net": "$448.35",
"Broker": "Shuffletag",
"Type": "Sell",
"Sector": "Energy",
"Industry": "Oil Refining/Marketing",
"MktCap": "$563,069,843.35",
"DivYield": "0.29%"
},
{
"TradeID": "N1T7P5R",
"Symbol": "MOD",
"Qty": 5410,
"BuyPrice": "$524.29",
"SellPrice": "$292.07",
"BuyDate": "March 27, 2000",
"SellDate": "June 5, 2017",
"Profit": "-$232.22",
"Fee": "$44.32",
"Net": "-$276.54",
"Broker": "Babbleopia",
"Type": "Sell",
"Sector": "Capital Goods",
"Industry": "Auto Parts:O.E.M.",
"MktCap": "$955,149,643.24",
"DivYield": "7.53%"
},
{
"TradeID": "R4Q9X2",
"Symbol": "TDI",
"Qty": 8376,
"BuyPrice": "$496.50",
"SellPrice": "$484.70",
"BuyDate": "February 1, 2016",
"SellDate": "April 18, 2019",
"Profit": "-$11.80",
"Fee": "$35.36",
"Net": "-$47.16",
"Broker": "Buzzshare",
"Type": "Short Sell",
"Sector": "Public Utilities",
"Industry": "Telecommunications Equipment",
"MktCap": "$974,339,934.13",
"DivYield": "2.47%"
},
{
"TradeID": "X7M3K9P",
"Symbol": "HYLS",
"Qty": 8753,
"BuyPrice": "$894.50",
"SellPrice": "$504.38",
"BuyDate": "May 17, 2021",
"SellDate": "April 17, 2007",
"Profit": "-$390.12",
"Fee": "$73.21",
"Net": "-$463.33",
"Broker": "Twitterwire",
"Type": "Buy",
"Sector": null,
"Industry": null,
"MktCap": "$68,768,636.36",
"DivYield": "5.71%"
},
{
"TradeID": "P2N6T1",
"Symbol": "TDF",
"Qty": 1403,
"BuyPrice": "$374.29",
"SellPrice": "$579.70",
"BuyDate": "December 1, 2013",
"SellDate": "August 18, 2021",
"Profit": "$205.41",
"Fee": "$91.65",
"Net": "$113.76",
"Broker": "Kayveo",
"Type": "Sell",
"Sector": null,
"Industry": null,
"MktCap": "$440,997,336.30",
"DivYield": "2.90%"
},
{
"TradeID": "S5R8Q3M",
"Symbol": "MGIC",
"Qty": 1720,
"BuyPrice": "$386.88",
"SellPrice": "$305.80",
"BuyDate": "October 22, 2011",
"SellDate": "September 10, 2007",
"Profit": "-$81.08",
"Fee": "$20.39",
"Net": "-$101.47",
"Broker": "Skiba",
"Type": "Short Sell",
"Sector": "Technology",
"Industry": "Computer Software: Prepackaged Software",
"MktCap": "$50,420,944.32",
"DivYield": "5.39%"
},
{
"TradeID": "U9K2P7",
"Symbol": "CPAH",
"Qty": 1252,
"BuyPrice": "$864.52",
"SellPrice": "$650.09",
"BuyDate": "February 20, 2022",
"SellDate": "August 9, 2011",
"Profit": "-$214.43",
"Fee": "$77.84",
"Net": "-$292.27",
"Broker": "Gigaclub",
"Type": "Buy",
"Sector": "Technology",
"Industry": "Computer Software: Prepackaged Software",
"MktCap": "$76,645,155.67",
"DivYield": "2.84%"
},
{
"TradeID": "A3T6N1Q",
"Symbol": "LXP",
"Qty": 9639,
"BuyPrice": "$235.59",
"SellPrice": "$463.86",
"BuyDate": "December 8, 2009",
"SellDate": "January 25, 2014",
"Profit": "$228.27",
"Fee": "$91.20",
"Net": "$137.07",
"Broker": "Browsebug",
"Type": "Short Sell",
"Sector": "Consumer Services",
"Industry": "Real Estate Investment Trusts",
"MktCap": "$247,409,013.63",
"DivYield": "3.29%"
},
{
"TradeID": "E7M4X9",
"Symbol": "MER^P",
"Qty": 214,
"BuyPrice": "$978.95",
"SellPrice": "$32.13",
"BuyDate": "September 22, 2000",
"SellDate": "April 8, 2017",
"Profit": "-$946.82",
"Fee": "$15.94",
"Net": "-$962.76",
"Broker": "Bluezoom",
"Type": "Sell",
"Sector": null,
"Industry": null,
"MktCap": "$87,243,222.94",
"DivYield": "7.30%"
},
{
"TradeID": "I2P5R8T",
"Symbol": "OTTR",
"Qty": 8360,
"BuyPrice": "$725.97",
"SellPrice": "$663.13",
"BuyDate": "November 3, 2009",
"SellDate": "July 27, 2000",
"Profit": "-$62.84",
"Fee": "$10.39",
"Net": "-$73.23",
"Broker": "Dynava",
"Type": "Buy",
"Sector": "Public Utilities",
"Industry": "Electric Utilities: Central",
"MktCap": "$771,629,200.44",
"DivYield": "1.37%"
},
{
"TradeID": "O6N9K3",
"Symbol": "AXGN",
"Qty": 665,
"BuyPrice": "$267.72",
"SellPrice": "$597.99",
"BuyDate": "July 25, 2006",
"SellDate": "November 2, 2020",
"Profit": "$330.27",
"Fee": "$15.43",
"Net": "$314.84",
"Broker": "Trilith",
"Type": "Buy",
"Sector": "Health Care",
"Industry": "Biotechnology: Electromedical & Electrotherapeutic Apparatus",
"MktCap": "$87,111,599.66",
"DivYield": "9.75%"
},
{
"TradeID": "B8T3P6Q",
"Symbol": "RSG",
"Qty": 7894,
"BuyPrice": "$385.27",
"SellPrice": "$406.36",
"BuyDate": "September 30, 2007",
"SellDate": "February 9, 2006",
"Profit": "$21.09",
"Fee": "$52.63",
"Net": "-$31.54",
"Broker": "Rhyzio",
"Type": "Short Sell",
"Sector": "Public Utilities",
"Industry": "Environmental Services",
"MktCap": "$731,279,708.28",
"DivYield": "2.98%"
},
{
"TradeID": "F4M7X1",
"Symbol": "ANH",
"Qty": 6879,
"BuyPrice": "$344.79",
"SellPrice": "$186.40",
"BuyDate": "July 4, 2000",
"SellDate": "November 19, 2000",
"Profit": "-$158.39",
"Fee": "$41.92",
"Net": "-$200.31",
"Broker": "Layo",
"Type": "Sell",
"Sector": "Consumer Services",
"Industry": "Real Estate Investment Trusts",
"MktCap": "$816,489,491.23",
"DivYield": "0.51%"
},
{
"TradeID": "H9R2N5P",
"Symbol": "AMBCW",
"Qty": 9462,
"BuyPrice": "$848.38",
"SellPrice": "$966.41",
"BuyDate": "August 12, 2002",
"SellDate": "August 15, 2000",
"Profit": "$118.03",
"Fee": "$84.22",
"Net": "$33.81",
"Broker": "Jabbercube",
"Type": "Sell",
"Sector": "Finance",
"Industry": "Property-Casualty Insurers",
"MktCap": "$641,757,108.47",
"DivYield": "9.77%"
},
{
"TradeID": "J3K6T8",
"Symbol": "WFC^V",
"Qty": 8937,
"BuyPrice": "$295.02",
"SellPrice": "$728.68",
"BuyDate": "March 16, 2005",
"SellDate": "December 23, 2012",
"Profit": "$433.66",
"Fee": "$60.26",
"Net": "$373.40",
"Broker": "Podcat",
"Type": "Buy",
"Sector": null,
"Industry": null,
"MktCap": "$966,542,896.76",
"DivYield": "9.13%"
}
]