[{"data":1,"prerenderedAt":1996},["ShallowReactive",2],{"\u002Fdocs\u002Fapi\u002Fwidgets":3,"docs-api-navigation":1893,"\u002Fdocs\u002Fapi\u002Fwidgets-surround":1991},{"id":4,"title":5,"body":6,"description":1884,"extension":1885,"meta":1886,"navigation":1887,"path":1889,"seo":1890,"stem":1891,"__hash__":1892},"docs\u002F1.docs\u002F2.api\u002F1.widgets.md","Widget reference",{"type":7,"value":8,"toc":1865},"minimark",[9,18,109,120,125,128,138,145,158,161,166,172,175,304,313,317,440,519,523,534,663,675,1003,1015,1021,1024,1027,1033,1040,1043,1220,1224,1279,1283,1298,1463,1469,1473,1476,1567,1570,1581,1584,1590,1594,1677,1681,1684,1690,1801,1830,1834,1861],[10,11,12,13,17],"p",{},"A widget is a URL. Everything on this page can be written by hand, by you or by an AI assistant,\nfrom one piece of information: the ",[14,15,16],"strong",{},"slug"," of the account.",[19,20,21,36],"table",{},[22,23,24],"thead",{},[25,26,27,30,33],"tr",{},[28,29],"th",{},[28,31,32],{},"Iframe widgets",[28,34,35],{},"Image widgets",[37,38,39,55,66,77,87,98],"tbody",{},[25,40,41,45,52],{},[42,43,44],"td",{},"What they are",[42,46,47,48],{},"Live, interactive pages shown in an ",[49,50,51],"code",{},"\u003Ciframe>",[42,53,54],{},"PNG or SVG files that redraw themselves on every request",[25,56,57,60,63],{},[42,58,59],{},"Where they go",[42,61,62],{},"Any site that accepts HTML",[42,64,65],{},"Forum signatures, emails, GitHub READMEs, chats, builders that strip code",[25,67,68,71,74],{},[42,69,70],{},"Types",[42,72,73],{},"7",[42,75,76],{},"11",[25,78,79,82,85],{},[42,80,81],{},"Login or API key",[42,83,84],{},"None",[42,86,84],{},[25,88,89,92,95],{},[42,90,91],{},"Updates",[42,93,94],{},"Automatic, at every closed trade",[42,96,97],{},"Automatic, at every request",[25,99,100,103,106],{},[42,101,102],{},"Required link back",[42,104,105],{},"No: the widget already links to the account page",[42,107,108],{},"Recommended: wrap the image in a link to the account page",[10,110,111,112,115,116,119],{},"Both work for a ",[14,113,114],{},"published"," account (including an unlisted one) and for a ",[14,117,118],{},"published portfolio",".\nA private account shows a fallback card instead of its data.",[121,122,124],"h2",{"id":123},"find-the-slug","Find the slug",[10,126,127],{},"The slug is the last part of the account's public URL:",[129,130,136],"pre",{"className":131,"code":133,"language":134,"meta":135},[132],"language-text","https:\u002F\u002Fshowmytrades.com\u002Faccount\u002FYOUR-ACCOUNT-SLUG\n                                 └── this is the slug\n","text","",[49,137,133],{"__ignoreMap":135},[10,139,140,141,144],{},"A published portfolio has its own slug, at the same kind of URL\n(",[49,142,143],{},"https:\u002F\u002Fshowmytrades.com\u002Faccount\u002FYOUR-PORTFOLIO-SLUG","), and works with every widget below in\nexactly the same way.",[10,146,147,148,153,154,157],{},"If you only have a login, the account's page is one click away from the dashboard, and the\n",[149,150,152],"a",{"href":151},"\u002Fdashboard\u002Fwidgets","widget builder"," lists your accounts and portfolios directly. With the API,\n",[49,155,156],{},"GET \u002Fapi\u002Fv1\u002Faccounts"," returns the slug of every account you own.",[121,159,32],{"id":160},"iframe-widgets",[162,163,165],"h3",{"id":164},"url","URL",[129,167,170],{"className":168,"code":169,"language":134,"meta":135},[132],"https:\u002F\u002Fshowmytrades.com\u002Fwidget\u002FYOUR-ACCOUNT-SLUG?type=TYPE&theme=THEME\n",[49,171,169],{"__ignoreMap":135},[162,173,70],{"id":174},"types",[19,176,177,195],{},[22,178,179],{},[25,180,181,186,189,192],{},[28,182,183],{},[49,184,185],{},"type",[28,187,188],{},"What it shows",[28,190,191],{},"Default size (px)",[28,193,194],{},"Height",[37,196,197,213,228,244,259,274,289],{},[25,198,199,204,207,210],{},[42,200,201],{},[49,202,203],{},"stats",[42,205,206],{},"Card with balance, gain, trades and win rate",[42,208,209],{},"400 × 212",[42,211,212],{},"Fixed",[25,214,215,220,223,226],{},[42,216,217],{},[49,218,219],{},"stats-inline",[42,221,222],{},"One horizontal row with the same metrics, for tables of several accounts",[42,224,225],{},"750 × 80",[42,227,212],{},[25,229,230,235,238,241],{},[42,231,232],{},[49,233,234],{},"equity",[42,236,237],{},"Interactive growth chart, with balance, equity, profit and drawdown views",[42,239,240],{},"1000 × 400",[42,242,243],{},"Dynamic",[25,245,246,251,254,257],{},[42,247,248],{},[49,249,250],{},"monthly",[42,252,253],{},"Monthly returns table and chart",[42,255,256],{},"1040 × 400",[42,258,243],{},[25,260,261,266,269,272],{},[42,262,263],{},[49,264,265],{},"currency-pair",[42,267,268],{},"Statistics per symbol, table and chart",[42,270,271],{},"900 × 400",[42,273,243],{},[25,275,276,281,284,287],{},[42,277,278],{},[49,279,280],{},"trades",[42,282,283],{},"Closed and open trades with the balance after each one",[42,285,286],{},"1100 × 520",[42,288,243],{},[25,290,291,296,299,302],{},[42,292,293],{},[49,294,295],{},"complete",[42,297,298],{},"Full dashboard: overview plus every chart",[42,300,301],{},"1500 × 900",[42,303,243],{},[10,305,306,307,309,310,312],{},"Without ",[49,308,185],{}," the widget is ",[49,311,203],{},".",[162,314,316],{"id":315},"parameters","Parameters",[19,318,319,335],{},[22,320,321],{},[25,322,323,326,329,332],{},[28,324,325],{},"Parameter",[28,327,328],{},"Values",[28,330,331],{},"Default",[28,333,334],{},"Applies to",[37,336,337,353,379,402,421],{},[25,338,339,343,346,350],{},[42,340,341],{},[49,342,185],{},[42,344,345],{},"one of the seven types above",[42,347,348],{},[49,349,203],{},[42,351,352],{},"all",[25,354,355,360,373,377],{},[42,356,357],{},[49,358,359],{},"theme",[42,361,362,365,366,369,370],{},[49,363,364],{},"auto"," (follows the visitor's system), ",[49,367,368],{},"light",", ",[49,371,372],{},"dark",[42,374,375],{},[49,376,364],{},[42,378,352],{},[25,380,381,386,397,400],{},[42,382,383],{},[49,384,385],{},"bgColor",[42,387,388,389,392,393,396],{},"any CSS colour, URL-encoded (",[49,390,391],{},"%23ffffff"," for ",[49,394,395],{},"#ffffff",")",[42,398,399],{},"theme background",[42,401,352],{},[25,403,404,409,412,415],{},[42,405,406],{},[49,407,408],{},"chartColors",[42,410,411],{},"base64 of a JSON object with the colours to change, see below",[42,413,414],{},"account's own colours",[42,416,417,369,419],{},[49,418,234],{},[49,420,295],{},[25,422,423,428,431,434],{},[42,424,425],{},[49,426,427],{},"chartVisibility",[42,429,430],{},"base64 of a JSON object with the lines and areas to hide, see below",[42,432,433],{},"everything visible",[42,435,436,369,438],{},[49,437,234],{},[49,439,295],{},[10,441,442,444,445,447,448,450,451,369,454,369,457,369,460,369,463,466,467,369,470,369,473,369,476,369,479,369,482,485,486,489,490,493,494,496,497,369,500,369,503,369,506,369,508,510,511,514,515,518],{},[49,443,408],{}," and ",[49,446,427],{}," are produced by the widget builder. The keys of ",[49,449,408],{},"\nare ",[49,452,453],{},"balanceMain",[49,455,456],{},"balanceVolume",[49,458,459],{},"balanceEquity",[49,461,462],{},"balanceDeposit",[49,464,465],{},"balanceWithdrawal",",\n",[49,468,469],{},"profitMain",[49,471,472],{},"profitDrawdown",[49,474,475],{},"twrTrade",[49,477,478],{},"twrDailyMain",[49,480,481],{},"twrDailyVolume",[49,483,484],{},"twrDailyEquity","\nand ",[49,487,488],{},"drawdown",", each an ",[49,491,492],{},"rgba(...)"," string; only the keys you include are changed. ",[49,495,427],{},"\nhas one key per chart (",[49,498,499],{},"twrDaily",[49,501,502],{},"balance",[49,504,505],{},"profit",[49,507,475],{},[49,509,488],{},"), each with\n",[49,512,513],{},"enabled"," and a ",[49,516,517],{},"lines"," object of booleans. When in doubt, leave both out: the widget uses the\ncolours the owner set on the account page.",[162,520,522],{"id":521},"snippet","Snippet",[10,524,525,526,369,528,530,531,533],{},"Fixed-height widgets (",[49,527,203],{},[49,529,219],{},") need only the ",[49,532,51],{},":",[129,535,539],{"className":536,"code":537,"language":538,"meta":135,"style":135},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ciframe\n  src=\"https:\u002F\u002Fshowmytrades.com\u002Fwidget\u002FYOUR-ACCOUNT-SLUG?type=stats&theme=auto\"\n  width=\"400\"\n  height=\"212\"\n  loading=\"lazy\"\n  frameborder=\"0\"\n  style=\"border-radius: 8px; width: 400px;\">\n\u003C\u002Fiframe>\n","html",[49,540,541,554,574,589,604,619,634,652],{"__ignoreMap":135},[542,543,546,550],"span",{"class":544,"line":545},"line",1,[542,547,549],{"class":548},"sMK4o","\u003C",[542,551,553],{"class":552},"swJcz","iframe\n",[542,555,557,561,564,567,571],{"class":544,"line":556},2,[542,558,560],{"class":559},"spNyl","  src",[542,562,563],{"class":548},"=",[542,565,566],{"class":548},"\"",[542,568,570],{"class":569},"sfazB","https:\u002F\u002Fshowmytrades.com\u002Fwidget\u002FYOUR-ACCOUNT-SLUG?type=stats&theme=auto",[542,572,573],{"class":548},"\"\n",[542,575,577,580,582,584,587],{"class":544,"line":576},3,[542,578,579],{"class":559},"  width",[542,581,563],{"class":548},[542,583,566],{"class":548},[542,585,586],{"class":569},"400",[542,588,573],{"class":548},[542,590,592,595,597,599,602],{"class":544,"line":591},4,[542,593,594],{"class":559},"  height",[542,596,563],{"class":548},[542,598,566],{"class":548},[542,600,601],{"class":569},"212",[542,603,573],{"class":548},[542,605,607,610,612,614,617],{"class":544,"line":606},5,[542,608,609],{"class":559},"  loading",[542,611,563],{"class":548},[542,613,566],{"class":548},[542,615,616],{"class":569},"lazy",[542,618,573],{"class":548},[542,620,622,625,627,629,632],{"class":544,"line":621},6,[542,623,624],{"class":559},"  frameborder",[542,626,563],{"class":548},[542,628,566],{"class":548},[542,630,631],{"class":569},"0",[542,633,573],{"class":548},[542,635,637,640,642,644,647,649],{"class":544,"line":636},7,[542,638,639],{"class":559},"  style",[542,641,563],{"class":548},[542,643,566],{"class":548},[542,645,646],{"class":569},"border-radius: 8px; width: 400px;",[542,648,566],{"class":548},[542,650,651],{"class":548},">\n",[542,653,655,658,661],{"class":544,"line":654},8,[542,656,657],{"class":548},"\u003C\u002F",[542,659,660],{"class":552},"iframe",[542,662,651],{"class":548},[10,664,665,666,668,669,671,672,533],{},"Dynamic-height widgets grow with their content, so they post their height to the parent page.\nAdd the small script after the ",[49,667,51],{}," and give the ",[49,670,51],{}," an ",[49,673,674],{},"id",[129,676,678],{"className":536,"code":677,"language":538,"meta":135,"style":135},"\u003Ciframe\n  id=\"smt-equity\"\n  src=\"https:\u002F\u002Fshowmytrades.com\u002Fwidget\u002FYOUR-ACCOUNT-SLUG?type=equity&theme=auto\"\n  width=\"100%\"\n  height=\"400\"\n  loading=\"lazy\"\n  frameborder=\"0\"\n  style=\"border-radius: 8px; width: 100%;\">\n\u003C\u002Fiframe>\n\u003Cscript>\n(function() {\n  var iframe = document.getElementById('smt-equity');\n  window.addEventListener('message', function(e) {\n    if (e.data?.type === 'widget-resize' && e.source === iframe.contentWindow) {\n      iframe.height = e.data.height;\n    }\n  });\n})();\n\u003C\u002Fscript>\n",[49,679,680,686,700,713,726,738,750,762,777,786,796,812,847,883,942,967,973,983,994],{"__ignoreMap":135},[542,681,682,684],{"class":544,"line":545},[542,683,549],{"class":548},[542,685,553],{"class":552},[542,687,688,691,693,695,698],{"class":544,"line":556},[542,689,690],{"class":559},"  id",[542,692,563],{"class":548},[542,694,566],{"class":548},[542,696,697],{"class":569},"smt-equity",[542,699,573],{"class":548},[542,701,702,704,706,708,711],{"class":544,"line":576},[542,703,560],{"class":559},[542,705,563],{"class":548},[542,707,566],{"class":548},[542,709,710],{"class":569},"https:\u002F\u002Fshowmytrades.com\u002Fwidget\u002FYOUR-ACCOUNT-SLUG?type=equity&theme=auto",[542,712,573],{"class":548},[542,714,715,717,719,721,724],{"class":544,"line":591},[542,716,579],{"class":559},[542,718,563],{"class":548},[542,720,566],{"class":548},[542,722,723],{"class":569},"100%",[542,725,573],{"class":548},[542,727,728,730,732,734,736],{"class":544,"line":606},[542,729,594],{"class":559},[542,731,563],{"class":548},[542,733,566],{"class":548},[542,735,586],{"class":569},[542,737,573],{"class":548},[542,739,740,742,744,746,748],{"class":544,"line":621},[542,741,609],{"class":559},[542,743,563],{"class":548},[542,745,566],{"class":548},[542,747,616],{"class":569},[542,749,573],{"class":548},[542,751,752,754,756,758,760],{"class":544,"line":636},[542,753,624],{"class":559},[542,755,563],{"class":548},[542,757,566],{"class":548},[542,759,631],{"class":569},[542,761,573],{"class":548},[542,763,764,766,768,770,773,775],{"class":544,"line":654},[542,765,639],{"class":559},[542,767,563],{"class":548},[542,769,566],{"class":548},[542,771,772],{"class":569},"border-radius: 8px; width: 100%;",[542,774,566],{"class":548},[542,776,651],{"class":548},[542,778,780,782,784],{"class":544,"line":779},9,[542,781,657],{"class":548},[542,783,660],{"class":552},[542,785,651],{"class":548},[542,787,789,791,794],{"class":544,"line":788},10,[542,790,549],{"class":548},[542,792,793],{"class":552},"script",[542,795,651],{"class":548},[542,797,799,803,806,809],{"class":544,"line":798},11,[542,800,802],{"class":801},"sTEyZ","(",[542,804,805],{"class":559},"function",[542,807,808],{"class":548},"()",[542,810,811],{"class":548}," {\n",[542,813,815,818,821,824,827,829,833,835,838,840,842,844],{"class":544,"line":814},12,[542,816,817],{"class":559},"  var",[542,819,820],{"class":801}," iframe",[542,822,823],{"class":548}," =",[542,825,826],{"class":801}," document",[542,828,312],{"class":548},[542,830,832],{"class":831},"s2Zo4","getElementById",[542,834,802],{"class":552},[542,836,837],{"class":548},"'",[542,839,697],{"class":569},[542,841,837],{"class":548},[542,843,396],{"class":552},[542,845,846],{"class":548},";\n",[542,848,850,853,855,858,860,862,865,867,870,873,875,879,881],{"class":544,"line":849},13,[542,851,852],{"class":801},"  window",[542,854,312],{"class":548},[542,856,857],{"class":831},"addEventListener",[542,859,802],{"class":552},[542,861,837],{"class":548},[542,863,864],{"class":569},"message",[542,866,837],{"class":548},[542,868,869],{"class":548},",",[542,871,872],{"class":559}," function",[542,874,802],{"class":548},[542,876,878],{"class":877},"sHdIc","e",[542,880,396],{"class":548},[542,882,811],{"class":548},[542,884,886,890,893,895,897,900,903,905,908,911,914,916,919,922,924,927,929,931,933,936,939],{"class":544,"line":885},14,[542,887,889],{"class":888},"s7zQu","    if",[542,891,892],{"class":552}," (",[542,894,878],{"class":801},[542,896,312],{"class":548},[542,898,899],{"class":801},"data",[542,901,902],{"class":548},"?.",[542,904,185],{"class":801},[542,906,907],{"class":548}," ===",[542,909,910],{"class":548}," '",[542,912,913],{"class":569},"widget-resize",[542,915,837],{"class":548},[542,917,918],{"class":548}," &&",[542,920,921],{"class":801}," e",[542,923,312],{"class":548},[542,925,926],{"class":801},"source",[542,928,907],{"class":548},[542,930,820],{"class":801},[542,932,312],{"class":548},[542,934,935],{"class":801},"contentWindow",[542,937,938],{"class":552},") ",[542,940,941],{"class":548},"{\n",[542,943,945,948,950,953,955,957,959,961,963,965],{"class":544,"line":944},15,[542,946,947],{"class":801},"      iframe",[542,949,312],{"class":548},[542,951,952],{"class":801},"height",[542,954,823],{"class":548},[542,956,921],{"class":801},[542,958,312],{"class":548},[542,960,899],{"class":801},[542,962,312],{"class":548},[542,964,952],{"class":801},[542,966,846],{"class":548},[542,968,970],{"class":544,"line":969},16,[542,971,972],{"class":548},"    }\n",[542,974,976,979,981],{"class":544,"line":975},17,[542,977,978],{"class":548},"  }",[542,980,396],{"class":552},[542,982,846],{"class":548},[542,984,986,989,992],{"class":544,"line":985},18,[542,987,988],{"class":548},"}",[542,990,991],{"class":801},")()",[542,993,846],{"class":548},[542,995,997,999,1001],{"class":544,"line":996},19,[542,998,657],{"class":548},[542,1000,793],{"class":552},[542,1002,651],{"class":548},[10,1004,1005,1006,1008,1009,1011,1012,1014],{},"Several widgets on one page: give each ",[49,1007,51],{}," a different ",[49,1010,674],{}," and repeat the script with\nthat ",[49,1013,674],{},", or make the script loop over all of them. Without the script the widget still works,\ncut at the height you set.",[10,1016,1017,1018,1020],{},"A width of ",[49,1019,723],{}," is the right choice for responsive layouts; the charts redraw to fit.",[121,1022,35],{"id":1023},"image-widgets",[162,1025,165],{"id":1026},"url-1",[129,1028,1031],{"className":1029,"code":1030,"language":134,"meta":135},[132],"https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fwidget-image\u002FYOUR-ACCOUNT-SLUG\u002FTYPE_THEME.FORMAT\n",[49,1032,1030],{"__ignoreMap":135},[10,1034,1035,1036,1039],{},"Three parts, joined as in ",[49,1037,1038],{},"growth-daily_dark.png",": the type, an underscore, the theme, a dot,\nthe format.",[162,1041,70],{"id":1042},"types-1",[19,1044,1045,1062],{},[22,1046,1047],{},[25,1048,1049,1054,1056,1059],{},[28,1050,1051],{},[49,1052,1053],{},"TYPE",[28,1055,188],{},[28,1057,1058],{},"Size (px)",[28,1060,1061],{},"Formats",[37,1063,1064,1079,1092,1107,1122,1138,1153,1166,1179,1192,1206],{},[25,1065,1066,1070,1073,1076],{},[42,1067,1068],{},[49,1069,203],{},[42,1071,1072],{},"Card: gain, drawdown, balance, equity",[42,1074,1075],{},"310 × 170",[42,1077,1078],{},"PNG, SVG",[25,1080,1081,1085,1088,1090],{},[42,1082,1083],{},[49,1084,219],{},[42,1086,1087],{},"Horizontal bar with the same four metrics",[42,1089,225],{},[42,1091,1078],{},[25,1093,1094,1099,1102,1105],{},[42,1095,1096],{},[49,1097,1098],{},"summary",[42,1100,1101],{},"Growth, drawdown, last update and a growth chart",[42,1103,1104],{},"500 × 290",[42,1106,1078],{},[25,1108,1109,1114,1117,1120],{},[42,1110,1111],{},[49,1112,1113],{},"growth-daily",[42,1115,1116],{},"Daily time-weighted growth chart",[42,1118,1119],{},"1000 × 450",[42,1121,1078],{},[25,1123,1124,1129,1132,1135],{},[42,1125,1126],{},[49,1127,1128],{},"growth-trade",[42,1130,1131],{},"Growth per closed trade",[42,1133,1134],{},"1000 × 455",[42,1136,1137],{},"PNG only",[25,1139,1140,1145,1148,1151],{},[42,1141,1142],{},[49,1143,1144],{},"growth-mini",[42,1146,1147],{},"Compact growth line, no title or axes",[42,1149,1150],{},"400 × 200",[42,1152,1078],{},[25,1154,1155,1159,1162,1164],{},[42,1156,1157],{},[49,1158,502],{},[42,1160,1161],{},"Balance and equity lines",[42,1163,1119],{},[42,1165,1078],{},[25,1167,1168,1172,1175,1177],{},[42,1169,1170],{},[49,1171,505],{},[42,1173,1174],{},"Net profit with the drawdown overlaid",[42,1176,1134],{},[42,1178,1078],{},[25,1180,1181,1185,1188,1190],{},[42,1182,1183],{},[49,1184,488],{},[42,1186,1187],{},"Drawdown percentage bars",[42,1189,1134],{},[42,1191,1078],{},[25,1193,1194,1198,1201,1204],{},[42,1195,1196],{},[49,1197,250],{},[42,1199,1200],{},"Monthly returns table (height follows the rows)",[42,1202,1203],{},"1066 × 400+",[42,1205,1078],{},[25,1207,1208,1212,1215,1218],{},[42,1209,1210],{},[49,1211,265],{},[42,1213,1214],{},"Statistics per symbol (height follows the rows)",[42,1216,1217],{},"1196 × 400+",[42,1219,1078],{},[162,1221,1223],{"id":1222},"themes-and-formats","Themes and formats",[19,1225,1226,1238],{},[22,1227,1228],{},[25,1229,1230,1233,1235],{},[28,1231,1232],{},"Part",[28,1234,328],{},[28,1236,1237],{},"Notes",[37,1239,1240,1261],{},[25,1241,1242,1247,1256],{},[42,1243,1244],{},[49,1245,1246],{},"THEME",[42,1248,1249,369,1251,369,1253],{},[49,1250,368],{},[49,1252,372],{},[49,1254,1255],{},"transparent",[42,1257,1258,1260],{},[49,1259,1255],{}," has no background: use it over a coloured page",[25,1262,1263,1268,1276],{},[42,1264,1265],{},[49,1266,1267],{},"FORMAT",[42,1269,1270,369,1273],{},[49,1271,1272],{},"png",[49,1274,1275],{},"svg",[42,1277,1278],{},"PNG works everywhere, including forums and email; SVG is sharper and accepts custom colours",[162,1280,1282],{"id":1281},"svg-colour-parameters","SVG colour parameters",[10,1284,1285,1286,1289,1290,1293,1294,1297],{},"Only for ",[49,1287,1288],{},".svg",". Each value is a hex colour ",[14,1291,1292],{},"without"," the ",[49,1295,1296],{},"#",", six characters.",[19,1299,1300,1312],{},[22,1301,1302],{},[25,1303,1304,1306,1309],{},[28,1305,325],{},[28,1307,1308],{},"Meaning",[28,1310,1311],{},"Available on",[37,1313,1314,1326,1337,1353,1369,1384,1397,1410,1428,1442],{},[25,1315,1316,1321,1324],{},[42,1317,1318],{},[49,1319,1320],{},"bg",[42,1322,1323],{},"Background",[42,1325,352],{},[25,1327,1328,1332,1335],{},[42,1329,1330],{},[49,1331,134],{},[42,1333,1334],{},"Main text",[42,1336,352],{},[25,1338,1339,1344,1347],{},[42,1340,1341],{},[49,1342,1343],{},"positive",[42,1345,1346],{},"Gain colour",[42,1348,1349,369,1351],{},[49,1350,203],{},[49,1352,219],{},[25,1354,1355,1360,1363],{},[42,1356,1357],{},[49,1358,1359],{},"negative",[42,1361,1362],{},"Drawdown colour",[42,1364,1365,369,1367],{},[49,1366,203],{},[49,1368,219],{},[25,1370,1371,1376,1379],{},[42,1372,1373],{},[49,1374,1375],{},"label",[42,1377,1378],{},"Labels or axis labels",[42,1380,1381,1383],{},[49,1382,1098],{}," and every chart type",[25,1385,1386,1391,1394],{},[42,1387,1388],{},[49,1389,1390],{},"grid",[42,1392,1393],{},"Grid lines",[42,1395,1396],{},"chart types",[25,1398,1399,1403,1406],{},[42,1400,1401],{},[49,1402,544],{},[42,1404,1405],{},"Main line",[42,1407,1408,1383],{},[49,1409,1098],{},[25,1411,1412,1417,1420],{},[42,1413,1414],{},[49,1415,1416],{},"line2",[42,1418,1419],{},"Secondary line",[42,1421,1422,369,1424,369,1426],{},[49,1423,1113],{},[49,1425,502],{},[49,1427,505],{},[25,1429,1430,1435,1440],{},[42,1431,1432],{},[49,1433,1434],{},"animated",[42,1436,1437,1439],{},[49,1438,631],{}," turns off the drawing animation",[42,1441,1396],{},[25,1443,1444,1455,1461],{},[42,1445,1446,369,1449,369,1452],{},[49,1447,1448],{},"hideline",[49,1450,1451],{},"hideline2",[49,1453,1454],{},"hidearea",[42,1456,1457,1460],{},[49,1458,1459],{},"1"," hides the main line, the secondary line or the filled area",[42,1462,1396],{},[129,1464,1467],{"className":1465,"code":1466,"language":134,"meta":135},[132],"https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fwidget-image\u002FYOUR-ACCOUNT-SLUG\u002Fgrowth-daily_transparent.svg?line=00dc82&text=ffffff&animated=0\n",[49,1468,1466],{"__ignoreMap":135},[162,1470,1472],{"id":1471},"snippets","Snippets",[10,1474,1475],{},"HTML, with the link back to the account page:",[129,1477,1479],{"className":536,"code":1478,"language":538,"meta":135,"style":135},"\u003Ca href=\"https:\u002F\u002Fshowmytrades.com\u002Faccount\u002FYOUR-ACCOUNT-SLUG\">\n  \u003Cimg src=\"https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fwidget-image\u002FYOUR-ACCOUNT-SLUG\u002Fsummary_dark.png\" alt=\"Trading results, updated automatically\" width=\"500\" height=\"290\">\n\u003C\u002Fa>\n",[49,1480,1481,1501,1559],{"__ignoreMap":135},[542,1482,1483,1485,1487,1490,1492,1494,1497,1499],{"class":544,"line":545},[542,1484,549],{"class":548},[542,1486,149],{"class":552},[542,1488,1489],{"class":559}," href",[542,1491,563],{"class":548},[542,1493,566],{"class":548},[542,1495,1496],{"class":569},"https:\u002F\u002Fshowmytrades.com\u002Faccount\u002FYOUR-ACCOUNT-SLUG",[542,1498,566],{"class":548},[542,1500,651],{"class":548},[542,1502,1503,1506,1509,1512,1514,1516,1519,1521,1524,1526,1528,1531,1533,1536,1538,1540,1543,1545,1548,1550,1552,1555,1557],{"class":544,"line":556},[542,1504,1505],{"class":548},"  \u003C",[542,1507,1508],{"class":552},"img",[542,1510,1511],{"class":559}," src",[542,1513,563],{"class":548},[542,1515,566],{"class":548},[542,1517,1518],{"class":569},"https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fwidget-image\u002FYOUR-ACCOUNT-SLUG\u002Fsummary_dark.png",[542,1520,566],{"class":548},[542,1522,1523],{"class":559}," alt",[542,1525,563],{"class":548},[542,1527,566],{"class":548},[542,1529,1530],{"class":569},"Trading results, updated automatically",[542,1532,566],{"class":548},[542,1534,1535],{"class":559}," width",[542,1537,563],{"class":548},[542,1539,566],{"class":548},[542,1541,1542],{"class":569},"500",[542,1544,566],{"class":548},[542,1546,1547],{"class":559}," height",[542,1549,563],{"class":548},[542,1551,566],{"class":548},[542,1553,1554],{"class":569},"290",[542,1556,566],{"class":548},[542,1558,651],{"class":548},[542,1560,1561,1563,1565],{"class":544,"line":576},[542,1562,657],{"class":548},[542,1564,149],{"class":552},[542,1566,651],{"class":548},[10,1568,1569],{},"Markdown (GitHub README, documentation sites):",[129,1571,1575],{"className":1572,"code":1573,"language":1574,"meta":135,"style":135},"language-markdown shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[![Trading results](https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fwidget-image\u002FYOUR-ACCOUNT-SLUG\u002Fgrowth-daily_dark.png)](https:\u002F\u002Fshowmytrades.com\u002Faccount\u002FYOUR-ACCOUNT-SLUG)\n","markdown",[49,1576,1577],{"__ignoreMap":135},[542,1578,1579],{"class":544,"line":545},[542,1580,1573],{},[10,1582,1583],{},"BBCode (forum signatures):",[129,1585,1588],{"className":1586,"code":1587,"language":134,"meta":135},[132],"[url=https:\u002F\u002Fshowmytrades.com\u002Faccount\u002FYOUR-ACCOUNT-SLUG][img]https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fwidget-image\u002FYOUR-ACCOUNT-SLUG\u002Fstats-inline_light.png[\u002Fimg][\u002Furl]\n",[49,1589,1587],{"__ignoreMap":135},[121,1591,1593],{"id":1592},"which-one-to-pick","Which one to pick",[19,1595,1596,1606],{},[22,1597,1598],{},[25,1599,1600,1603],{},[28,1601,1602],{},"You want",[28,1604,1605],{},"Use",[37,1607,1608,1621,1633,1644,1652,1660],{},[25,1609,1610,1613],{},[42,1611,1612],{},"One chart on a web page",[42,1614,1615,1616,1618,1619],{},"Iframe ",[49,1617,234],{},", width ",[49,1620,723],{},[25,1622,1623,1626],{},[42,1624,1625],{},"A small card in a sidebar",[42,1627,1615,1628,1630,1631],{},[49,1629,203],{},", or image ",[49,1632,1098],{},[25,1634,1635,1638],{},[42,1636,1637],{},"A table of several accounts",[42,1639,1640,1641,1643],{},"One iframe ",[49,1642,219],{}," per row",[25,1645,1646,1649],{},[42,1647,1648],{},"Several accounts as one result",[42,1650,1651],{},"A published portfolio, then any widget with the portfolio's slug",[25,1653,1654,1657],{},[42,1655,1656],{},"A place that refuses HTML (forum, email, README)",[42,1658,1659],{},"An image widget",[25,1661,1662,1665],{},[42,1663,1664],{},"A design the widgets do not offer",[42,1666,1667,1668,1672,1673,1676],{},"The ",[149,1669,1671],{"href":1670},"\u002Fdocs\u002Fapi","API",", with the ",[49,1674,1675],{},"attribution"," link",[121,1678,1680],{"id":1679},"let-the-api-compose-it","Let the API compose it",[10,1682,1683],{},"If you would rather not assemble the snippet, one request returns it ready, after checking\nthat the account exists and is published. No key is needed for a published account.",[129,1685,1688],{"className":1686,"code":1687,"language":134,"meta":135},[132],"GET https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fv1\u002Faccounts\u002F{slug}\u002Fwidget?type=equity&theme=auto&width=100%\nGET https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fv1\u002Faccounts\u002F{slug}\u002Fwidget?kind=image&type=summary&theme=dark&format=png\n",[49,1689,1687],{"__ignoreMap":135},[19,1691,1692,1702],{},[22,1693,1694],{},[25,1695,1696,1698,1700],{},[28,1697,325],{},[28,1699,328],{},[28,1701,331],{},[37,1703,1704,1722,1739,1768,1786],{},[25,1705,1706,1711,1718],{},[42,1707,1708],{},[49,1709,1710],{},"kind",[42,1712,1713,369,1715],{},[49,1714,660],{},[49,1716,1717],{},"image",[42,1719,1720],{},[49,1721,660],{},[25,1723,1724,1728,1731],{},[42,1725,1726],{},[49,1727,185],{},[42,1729,1730],{},"an iframe type or an image type from the tables above",[42,1732,1733,1735,1736,1738],{},[49,1734,234],{}," for iframe, ",[49,1737,1098],{}," for image",[25,1740,1741,1745,1761],{},[42,1742,1743],{},[49,1744,359],{},[42,1746,1747,1748,369,1750,369,1752,1754,1755,369,1757,369,1759],{},"iframe: ",[49,1749,364],{},[49,1751,368],{},[49,1753,372],{},"; image: ",[49,1756,368],{},[49,1758,372],{},[49,1760,1255],{},[42,1762,1763,1765,1766],{},[49,1764,364],{}," \u002F ",[49,1767,372],{},[25,1769,1770,1775,1782],{},[42,1771,1772],{},[49,1773,1774],{},"format",[42,1776,1777,1778,369,1780],{},"image only: ",[49,1779,1272],{},[49,1781,1275],{},[42,1783,1784],{},[49,1785,1272],{},[25,1787,1788,1793,1798],{},[42,1789,1790],{},[49,1791,1792],{},"width",[42,1794,1795,1796],{},"iframe only: pixels from 200 to 2000, or ",[49,1797,723],{},[42,1799,1800],{},"the type's own width",[10,1802,1803,1804,369,1806,1808,1809,444,1811,1814,1815,1818,1819,1821,1822,1825,1826,312],{},"The response carries ",[49,1805,164],{},[49,1807,538],{}," (with the resize script when the height is dynamic),\n",[49,1810,1574],{},[49,1812,1813],{},"bbcode"," for images, the size, short ",[49,1816,1817],{},"instructions",", the list of the other types\nand the account's ",[49,1820,1675],{},". The same thing is the ",[49,1823,1824],{},"get_widget_snippet"," tool of the\n",[149,1827,1829],{"href":1828},"\u002Fdocs\u002Fapi\u002Fmcp","MCP server",[121,1831,1833],{"id":1832},"for-ai-assistants","For AI assistants",[10,1835,1836,1837,1839,1840,1842,1843,1846,1847,1851,1852,1856,1857,312],{},"When a user asks you to put their ShowMyTrades results on a page, you need only their account's\npublic URL. Take the slug from it, pick a ",[49,1838,185],{}," from the tables above, and write the snippet;\nnothing has to be fetched or authenticated. If you can call tools, the ",[49,1841,1824],{},"\nMCP tool or the ",[49,1844,1845],{},"\u002Fwidget"," endpoint above return it composed and verified. If the user has no account yet, the steps are in\n",[149,1848,1850],{"href":1849},"\u002Fdocs\u002Fapi\u002Fshow-trading-results-on-your-website","Show your trading results on your website",".\nFor the exact element to use in WordPress, Wix, Webflow, Squarespace or Shopify, see the guides\nfor ",[149,1853,1855],{"href":1854},"\u002Fguides\u002Fadd-trading-results-to-wordpress","WordPress"," and\n",[149,1858,1860],{"href":1859},"\u002Fguides\u002Fembed-trading-results-wix-webflow-squarespace-shopify","website builders",[1862,1863,1864],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}",{"title":135,"searchDepth":556,"depth":556,"links":1866},[1867,1868,1874,1881,1882,1883],{"id":123,"depth":556,"text":124},{"id":160,"depth":556,"text":32,"children":1869},[1870,1871,1872,1873],{"id":164,"depth":576,"text":165},{"id":174,"depth":576,"text":70},{"id":315,"depth":576,"text":316},{"id":521,"depth":576,"text":522},{"id":1023,"depth":556,"text":35,"children":1875},[1876,1877,1878,1879,1880],{"id":1026,"depth":576,"text":165},{"id":1042,"depth":576,"text":70},{"id":1222,"depth":576,"text":1223},{"id":1281,"depth":576,"text":1282},{"id":1471,"depth":576,"text":1472},{"id":1592,"depth":556,"text":1593},{"id":1679,"depth":556,"text":1680},{"id":1832,"depth":556,"text":1833},"Every embeddable ShowMyTrades widget with its URL, every type and every parameter: 7 iframe widgets and 11 self-updating images. Enough to write the snippet by hand, with no login and no API key.","md",{},{"icon":1888},"i-lucide-layout-grid","\u002Fdocs\u002Fapi\u002Fwidgets",{"title":5,"description":1884},"1.docs\u002F2.api\u002F1.widgets","r50WdR4Tvl5xW1CnfEVh9W0p86Ag9HAws2M1Sbyhfnk",[1894],{"title":1895,"path":1896,"stem":1897,"children":1898,"page":1917},"Docs","\u002Fdocs","1.docs",[1899,1918,1967],{"title":1900,"path":1901,"stem":1902,"children":1903,"icon":1917},"Getting Started","\u002Fdocs\u002Fgetting-started","1.docs\u002F1.getting-started\u002F1.index",[1904,1907,1912],{"title":1905,"path":1901,"stem":1902,"icon":1906},"Introduction","i-lucide-house",{"title":1908,"path":1909,"stem":1910,"icon":1911},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","1.docs\u002F1.getting-started\u002F2.installation","i-lucide-download",{"title":1913,"path":1914,"stem":1915,"icon":1916},"Usage","\u002Fdocs\u002Fgetting-started\u002Fusage","1.docs\u002F1.getting-started\u002F3.usage","i-lucide-sliders",false,{"title":1919,"path":1670,"stem":1920,"children":1921,"icon":1966},"API Reference","1.docs\u002F2.api\u002F1.index",[1922,1924,1927,1928,1933,1938,1943,1948,1953,1958,1961],{"title":1905,"path":1670,"stem":1920,"icon":1923},"i-lucide-book-open",{"title":1850,"path":1849,"stem":1925,"icon":1926},"1.docs\u002F2.api\u002F1.show-trading-results-on-your-website","i-lucide-chart-line",{"title":5,"path":1889,"stem":1891,"icon":1888},{"title":1929,"path":1930,"stem":1931,"icon":1932},"Authentication","\u002Fdocs\u002Fapi\u002Fauthentication","1.docs\u002F2.api\u002F2.authentication","i-lucide-key",{"title":1934,"path":1935,"stem":1936,"icon":1937},"Attribution","\u002Fdocs\u002Fapi\u002Fattribution","1.docs\u002F2.api\u002F3.attribution","i-lucide-link",{"title":1939,"path":1940,"stem":1941,"icon":1942},"Conventions","\u002Fdocs\u002Fapi\u002Fconventions","1.docs\u002F2.api\u002F3.conventions","i-lucide-ruler",{"title":1944,"path":1945,"stem":1946,"icon":1947},"Accounts","\u002Fdocs\u002Fapi\u002Faccounts","1.docs\u002F2.api\u002F4.accounts","i-lucide-wallet",{"title":1949,"path":1950,"stem":1951,"icon":1952},"Trades & positions","\u002Fdocs\u002Fapi\u002Ftrades","1.docs\u002F2.api\u002F5.trades","i-lucide-arrow-left-right",{"title":1954,"path":1955,"stem":1956,"icon":1957},"Search","\u002Fdocs\u002Fapi\u002Fsearch","1.docs\u002F2.api\u002F6.search","i-lucide-search",{"title":1829,"path":1828,"stem":1959,"icon":1960},"1.docs\u002F2.api\u002F7.mcp","i-lucide-sparkles",{"title":1962,"path":1963,"stem":1964,"icon":1965},"Errors","\u002Fdocs\u002Fapi\u002Ferrors","1.docs\u002F2.api\u002F8.errors","i-lucide-triangle-alert","i-lucide-code-xml",{"title":1968,"path":1969,"stem":1970,"children":1971,"page":1917},"Essentials","\u002Fdocs\u002Fessentials","1.docs\u002F2.essentials",[1972,1977,1981,1986],{"title":1973,"path":1974,"stem":1975,"icon":1976},"Markdown Syntax","\u002Fdocs\u002Fessentials\u002Fmarkdown-syntax","1.docs\u002F2.essentials\u002F1.markdown-syntax","i-lucide-heading-1",{"title":1978,"path":1979,"stem":1980,"icon":1966},"Code Blocks","\u002Fdocs\u002Fessentials\u002Fcode-blocks","1.docs\u002F2.essentials\u002F2.code-blocks",{"title":1982,"path":1983,"stem":1984,"icon":1985},"Prose Components","\u002Fdocs\u002Fessentials\u002Fprose-components","1.docs\u002F2.essentials\u002F3.prose-components","i-lucide-component",{"title":1987,"path":1988,"stem":1989,"icon":1990},"Images and Embeds","\u002Fdocs\u002Fessentials\u002Fimages-embeds","1.docs\u002F2.essentials\u002F4.images-embeds","i-lucide-image",[1992,1994],{"title":1850,"path":1849,"stem":1925,"description":1993,"icon":1926,"children":-1},"Step by step: put the live chart and statistics of your MT4, MT5, cTrader or TradeLocker account on your own website, with a ready-made widget or with the free API.",{"title":1929,"path":1930,"stem":1931,"description":1995,"icon":1932,"children":-1},"Public accounts need no key. For your own accounts, create a Developer API Key and send it as a Bearer token.",1791798496072]