[{"data":1,"prerenderedAt":1835},["ShallowReactive",2],{"\u002Fdocs\u002Fapi\u002Fshow-trading-results-on-your-website":3,"docs-api-navigation":1743,"\u002Fdocs\u002Fapi\u002Fshow-trading-results-on-your-website-surround":1830},{"id":4,"title":5,"body":6,"description":1734,"extension":1735,"meta":1736,"navigation":1737,"path":1739,"seo":1740,"stem":1741,"__hash__":1742},"docs\u002F1.docs\u002F2.api\u002F1.show-trading-results-on-your-website.md","Show your trading results on your website",{"type":7,"value":8,"toc":1716},"minimark",[9,13,16,98,101,106,116,127,131,141,147,185,188,192,364,367,371,374,1608,1628,1632,1644,1648,1651,1657,1676,1684,1688,1712],[10,11,12],"p",{},"You have a trading account and a website, and you want the results of the first to appear on\nthe second: a growth chart, the monthly returns, the open trades. This page takes you from\nnothing to a live chart on your page.",[10,14,15],{},"It is free, and there are two ways to do it:",[17,18,19,34],"table",{},[20,21,22],"thead",{},[23,24,25,28,31],"tr",{},[26,27],"th",{},[26,29,30],{},"Widget",[26,32,33],{},"API or MCP",[35,36,37,49,60,71,87],"tbody",{},[23,38,39,43,46],{},[40,41,42],"td",{},"What you get",[40,44,45],{},"A ready-made chart or statistics box",[40,47,48],{},"Raw JSON, to draw anything you like",[23,50,51,54,57],{},[40,52,53],{},"Code to write",[40,55,56],{},"None: paste one snippet",[40,58,59],{},"Yours",[23,61,62,65,68],{},[40,63,64],{},"Works with a private account",[40,66,67],{},"No, the account must be published",[40,69,70],{},"Yes",[23,72,73,76,79],{},[40,74,75],{},"Price",[40,77,78],{},"Free",[40,80,81,82],{},"Free, with a ",[83,84,86],"a",{"href":85},"\u002Fdocs\u002Fapi\u002Fattribution","credit",[23,88,89,92,95],{},[40,90,91],{},"Best for",[40,93,94],{},"Most sites: WordPress, Webflow, Wix, plain HTML",[40,96,97],{},"A custom design, or data inside your own app",[10,99,100],{},"Steps 1 and 2 are the same for both.",[102,103,105],"h2",{"id":104},"_1-create-a-free-account","1. Create a free account",[10,107,108,115],{},[83,109,111],{"href":110},"\u002Fsignup",[112,113,114],"strong",{},"Sign up"," with an email address or with Google. There is no trial and no card:\ntracking and publishing your trading is free.",[117,118,124],"pre",{"className":119,"code":121,"language":122,"meta":123},[120],"language-text","https:\u002F\u002Fshowmytrades.com\u002Fsignup\n","text","",[125,126,121],"code",{"__ignoreMap":123},[102,128,130],{"id":129},"_2-connect-your-trading-account","2. Connect your trading account",[10,132,133,134,140],{},"Open ",[83,135,137],{"href":136},"\u002Fdashboard\u002Faccounts-new",[112,138,139],{},"Add account"," in your dashboard and pick your platform.",[117,142,145],{"className":143,"code":144,"language":122,"meta":123},[120],"https:\u002F\u002Fshowmytrades.com\u002Fdashboard\u002Faccounts-new\n",[125,146,144],{"__ignoreMap":123},[17,148,149,159],{},[20,150,151],{},[23,152,153,156],{},[26,154,155],{},"Platform",[26,157,158],{},"How it connects",[35,160,161,169,177],{},[23,162,163,166],{},[40,164,165],{},"MetaTrader 4 and 5",[40,167,168],{},"Our Expert Advisor on your terminal, or the read-only investor password",[23,170,171,174],{},[40,172,173],{},"cTrader",[40,175,176],{},"Official OAuth, nothing to install",[23,178,179,182],{},[40,180,181],{},"TradeLocker",[40,183,184],{},"Your TradeLocker login, nothing to install",[10,186,187],{},"Your history is imported and the statistics are computed for you. From here on they update on\ntheir own as you trade.",[102,189,191],{"id":190},"_3a-the-quick-way-paste-a-widget","3a. The quick way: paste a widget",[193,194,196,201,208,212,222,228,232,235],"steps",{"level":195},"3",[197,198,200],"h3",{"id":199},"publish-the-account","Publish the account",[10,202,203,204,207],{},"A widget shows a public page, so the account has to be published. In your dashboard open the\naccount, then its settings, and set the visibility to ",[112,205,206],{},"Published",".",[197,209,211],{"id":210},"open-the-widget-builder","Open the widget builder",[10,213,214,215,221],{},"Go to ",[83,216,218],{"href":217},"\u002Fdashboard\u002Fwidgets",[112,219,220],{},"Widgets"," in your dashboard, choose the account and one of the\n18 widgets: growth chart, statistics, monthly returns, open trades and more. Set the theme and\nthe colours.",[117,223,226],{"className":224,"code":225,"language":122,"meta":123},[120],"https:\u002F\u002Fshowmytrades.com\u002Fdashboard\u002Fwidgets\n",[125,227,225],{"__ignoreMap":123},[197,229,231],{"id":230},"copy-the-snippet-into-your-page","Copy the snippet into your page",[10,233,234],{},"The builder gives you a snippet like this one. Paste it where the chart should appear:",[117,236,240],{"className":237,"code":238,"language":239,"meta":123,"style":123},"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=equity&theme=light\"\n  width=\"100%\"\n  height=\"400\"\n  loading=\"lazy\"\n  frameborder=\"0\"\n  style=\"border-radius: 8px; width: 100%;\">\n\u003C\u002Fiframe>\n","html",[125,241,242,255,275,290,305,320,335,353],{"__ignoreMap":123},[243,244,247,251],"span",{"class":245,"line":246},"line",1,[243,248,250],{"class":249},"sMK4o","\u003C",[243,252,254],{"class":253},"swJcz","iframe\n",[243,256,258,262,265,268,272],{"class":245,"line":257},2,[243,259,261],{"class":260},"spNyl","  src",[243,263,264],{"class":249},"=",[243,266,267],{"class":249},"\"",[243,269,271],{"class":270},"sfazB","https:\u002F\u002Fshowmytrades.com\u002Fwidget\u002FYOUR-ACCOUNT-SLUG?type=equity&theme=light",[243,273,274],{"class":249},"\"\n",[243,276,278,281,283,285,288],{"class":245,"line":277},3,[243,279,280],{"class":260},"  width",[243,282,264],{"class":249},[243,284,267],{"class":249},[243,286,287],{"class":270},"100%",[243,289,274],{"class":249},[243,291,293,296,298,300,303],{"class":245,"line":292},4,[243,294,295],{"class":260},"  height",[243,297,264],{"class":249},[243,299,267],{"class":249},[243,301,302],{"class":270},"400",[243,304,274],{"class":249},[243,306,308,311,313,315,318],{"class":245,"line":307},5,[243,309,310],{"class":260},"  loading",[243,312,264],{"class":249},[243,314,267],{"class":249},[243,316,317],{"class":270},"lazy",[243,319,274],{"class":249},[243,321,323,326,328,330,333],{"class":245,"line":322},6,[243,324,325],{"class":260},"  frameborder",[243,327,264],{"class":249},[243,329,267],{"class":249},[243,331,332],{"class":270},"0",[243,334,274],{"class":249},[243,336,338,341,343,345,348,350],{"class":245,"line":337},7,[243,339,340],{"class":260},"  style",[243,342,264],{"class":249},[243,344,267],{"class":249},[243,346,347],{"class":270},"border-radius: 8px; width: 100%;",[243,349,267],{"class":249},[243,351,352],{"class":249},">\n",[243,354,356,359,362],{"class":245,"line":355},8,[243,357,358],{"class":249},"\u003C\u002F",[243,360,361],{"class":253},"iframe",[243,363,352],{"class":249},[10,365,366],{},"That is all. The widget updates by itself and already carries the link back to the account's\npage, so there is nothing else to add.",[102,368,370],{"id":369},"_3b-the-custom-way-use-the-api","3b. The custom way: use the API",[10,372,373],{},"Use this when you want your own chart, in your own style, or the numbers inside your own\napplication. The account can stay private.",[193,375,376,380,389,395,406,410,443,454,458,465,1166,1170],{"level":195},[197,377,379],{"id":378},"create-a-developer-api-key","Create a Developer API Key",[10,381,214,382,388],{},[83,383,385],{"href":384},"\u002Fdashboard\u002Fsettings\u002Fdeveloper-keys",[112,386,387],{},"Settings → Developer API Keys",", at exactly this\naddress:",[117,390,393],{"className":391,"code":392,"language":122,"meta":123},[120],"https:\u002F\u002Fshowmytrades.com\u002Fdashboard\u002Fsettings\u002Fdeveloper-keys\n",[125,394,392],{"__ignoreMap":123},[10,396,397,398,401,402,405],{},"Click ",[112,399,400],{},"Create Developer API Key",", give it a name, and copy the key straight away: it starts\nwith ",[125,403,404],{},"smt_live_"," and is shown only once.",[197,407,409],{"id":408},"find-the-slug-of-your-account","Find the slug of your account",[117,411,415],{"className":412,"code":413,"language":414,"meta":123,"style":123},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fv1\u002Faccounts \\\n  -H \"Authorization: Bearer smt_live_YOUR_KEY\"\n","bash",[125,416,417,430],{"__ignoreMap":123},[243,418,419,423,426],{"class":245,"line":246},[243,420,422],{"class":421},"sBMFI","curl",[243,424,425],{"class":270}," https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fv1\u002Faccounts",[243,427,429],{"class":428},"sTEyZ"," \\\n",[243,431,432,435,438,441],{"class":245,"line":257},[243,433,434],{"class":270},"  -H",[243,436,437],{"class":249}," \"",[243,439,440],{"class":270},"Authorization: Bearer smt_live_YOUR_KEY",[243,442,274],{"class":249},[10,444,445,446,449,450,453],{},"Each account in the answer has a ",[125,447,448],{},"slug",", for example ",[125,451,452],{},"dark-algo",". That is its identifier in\nevery other call.",[197,455,457],{"id":456},"fetch-the-curve-from-your-server","Fetch the curve from your server",[10,459,460,461,464],{},"The key is a secret: call the API from your ",[112,462,463],{},"server",", never from the visitor's browser.\n(Browsers cannot call this API cross-origin anyway.) Here is a complete example that serves\nthe data to your own page:",[117,466,471],{"className":467,"code":468,"filename":469,"language":470,"meta":123,"style":123},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import express from 'express'\n\nconst app = express()\nconst KEY = process.env.SHOWMYTRADES_KEY \u002F\u002F smt_live_...\nconst SLUG = 'YOUR-ACCOUNT-SLUG'\n\nlet cache = { at: 0, body: null }\n\napp.get('\u002Ftrading-results.json', async (req, res) => {\n  \u002F\u002F Statistics change when a trade closes: refreshing every 5 minutes is plenty.\n  if (Date.now() - cache.at > 5 * 60 * 1000) {\n    const r = await fetch(\n      `https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fv1\u002Faccounts\u002F${SLUG}?include=equity_curve`,\n      { headers: { Authorization: `Bearer ${KEY}` } }\n    )\n    if (!r.ok) return res.status(502).json({ error: 'upstream' })\n\n    const account = await r.json()\n    cache = {\n      at: Date.now(),\n      body: {\n        name: account.name,\n        twr_percent: account.performance.twr_percent,\n        max_drawdown_percent: account.performance.max_drawdown_percent,\n        days: (account.equity_curve?.daily_performance ?? []).map(d => ({\n          date: d.date,\n          twr_percent: d.twr_percent\n        })),\n        attribution: account.attribution\n      }\n    }\n  }\n  res.json(cache.body)\n})\n\napp.listen(3000)\n","server.js","js",[125,472,473,494,500,517,543,559,563,600,604,652,658,711,732,759,796,802,867,872,892,902,922,932,949,971,992,1038,1056,1071,1082,1097,1103,1109,1115,1137,1144,1149],{"__ignoreMap":123},[243,474,475,479,482,485,488,491],{"class":245,"line":246},[243,476,478],{"class":477},"s7zQu","import",[243,480,481],{"class":428}," express ",[243,483,484],{"class":477},"from",[243,486,487],{"class":249}," '",[243,489,490],{"class":270},"express",[243,492,493],{"class":249},"'\n",[243,495,496],{"class":245,"line":257},[243,497,499],{"emptyLinePlaceholder":498},true,"\n",[243,501,502,505,508,510,514],{"class":245,"line":277},[243,503,504],{"class":260},"const",[243,506,507],{"class":428}," app ",[243,509,264],{"class":249},[243,511,513],{"class":512},"s2Zo4"," express",[243,515,516],{"class":428},"()\n",[243,518,519,521,524,526,529,531,534,536,539],{"class":245,"line":292},[243,520,504],{"class":260},[243,522,523],{"class":428}," KEY ",[243,525,264],{"class":249},[243,527,528],{"class":428}," process",[243,530,207],{"class":249},[243,532,533],{"class":428},"env",[243,535,207],{"class":249},[243,537,538],{"class":428},"SHOWMYTRADES_KEY ",[243,540,542],{"class":541},"sHwdD","\u002F\u002F smt_live_...\n",[243,544,545,547,550,552,554,557],{"class":245,"line":307},[243,546,504],{"class":260},[243,548,549],{"class":428}," SLUG ",[243,551,264],{"class":249},[243,553,487],{"class":249},[243,555,556],{"class":270},"YOUR-ACCOUNT-SLUG",[243,558,493],{"class":249},[243,560,561],{"class":245,"line":322},[243,562,499],{"emptyLinePlaceholder":498},[243,564,565,568,571,573,576,579,582,586,589,592,594,597],{"class":245,"line":337},[243,566,567],{"class":260},"let",[243,569,570],{"class":428}," cache ",[243,572,264],{"class":249},[243,574,575],{"class":249}," {",[243,577,578],{"class":253}," at",[243,580,581],{"class":249},":",[243,583,585],{"class":584},"sbssI"," 0",[243,587,588],{"class":249},",",[243,590,591],{"class":253}," body",[243,593,581],{"class":249},[243,595,596],{"class":249}," null",[243,598,599],{"class":249}," }\n",[243,601,602],{"class":245,"line":355},[243,603,499],{"emptyLinePlaceholder":498},[243,605,607,610,612,615,618,621,624,626,628,631,634,638,640,643,646,649],{"class":245,"line":606},9,[243,608,609],{"class":428},"app",[243,611,207],{"class":249},[243,613,614],{"class":512},"get",[243,616,617],{"class":428},"(",[243,619,620],{"class":249},"'",[243,622,623],{"class":270},"\u002Ftrading-results.json",[243,625,620],{"class":249},[243,627,588],{"class":249},[243,629,630],{"class":260}," async",[243,632,633],{"class":249}," (",[243,635,637],{"class":636},"sHdIc","req",[243,639,588],{"class":249},[243,641,642],{"class":636}," res",[243,644,645],{"class":249},")",[243,647,648],{"class":260}," =>",[243,650,651],{"class":249}," {\n",[243,653,655],{"class":245,"line":654},10,[243,656,657],{"class":541},"  \u002F\u002F Statistics change when a trade closes: refreshing every 5 minutes is plenty.\n",[243,659,661,664,666,669,671,674,677,680,683,685,688,691,694,697,700,702,705,708],{"class":245,"line":660},11,[243,662,663],{"class":477},"  if",[243,665,633],{"class":253},[243,667,668],{"class":428},"Date",[243,670,207],{"class":249},[243,672,673],{"class":512},"now",[243,675,676],{"class":253},"() ",[243,678,679],{"class":249},"-",[243,681,682],{"class":428}," cache",[243,684,207],{"class":249},[243,686,687],{"class":428},"at",[243,689,690],{"class":249}," >",[243,692,693],{"class":584}," 5",[243,695,696],{"class":249}," *",[243,698,699],{"class":584}," 60",[243,701,696],{"class":249},[243,703,704],{"class":584}," 1000",[243,706,707],{"class":253},") ",[243,709,710],{"class":249},"{\n",[243,712,714,717,720,723,726,729],{"class":245,"line":713},12,[243,715,716],{"class":260},"    const",[243,718,719],{"class":428}," r",[243,721,722],{"class":249}," =",[243,724,725],{"class":477}," await",[243,727,728],{"class":512}," fetch",[243,730,731],{"class":253},"(\n",[243,733,735,738,741,744,747,750,753,756],{"class":245,"line":734},13,[243,736,737],{"class":249},"      `",[243,739,740],{"class":270},"https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fv1\u002Faccounts\u002F",[243,742,743],{"class":249},"${",[243,745,746],{"class":428},"SLUG",[243,748,749],{"class":249},"}",[243,751,752],{"class":270},"?include=equity_curve",[243,754,755],{"class":249},"`",[243,757,758],{"class":249},",\n",[243,760,762,765,768,770,772,775,777,780,783,785,788,791,794],{"class":245,"line":761},14,[243,763,764],{"class":249},"      {",[243,766,767],{"class":253}," headers",[243,769,581],{"class":249},[243,771,575],{"class":249},[243,773,774],{"class":253}," Authorization",[243,776,581],{"class":249},[243,778,779],{"class":249}," `",[243,781,782],{"class":270},"Bearer ",[243,784,743],{"class":249},[243,786,787],{"class":428},"KEY",[243,789,790],{"class":249},"}`",[243,792,793],{"class":249}," }",[243,795,599],{"class":249},[243,797,799],{"class":245,"line":798},15,[243,800,801],{"class":253},"    )\n",[243,803,805,808,810,813,816,818,821,823,826,828,830,833,835,838,840,842,845,847,850,853,855,857,860,862,864],{"class":245,"line":804},16,[243,806,807],{"class":477},"    if",[243,809,633],{"class":253},[243,811,812],{"class":249},"!",[243,814,815],{"class":428},"r",[243,817,207],{"class":249},[243,819,820],{"class":428},"ok",[243,822,707],{"class":253},[243,824,825],{"class":477},"return",[243,827,642],{"class":428},[243,829,207],{"class":249},[243,831,832],{"class":512},"status",[243,834,617],{"class":253},[243,836,837],{"class":584},"502",[243,839,645],{"class":253},[243,841,207],{"class":249},[243,843,844],{"class":512},"json",[243,846,617],{"class":253},[243,848,849],{"class":249},"{",[243,851,852],{"class":253}," error",[243,854,581],{"class":249},[243,856,487],{"class":249},[243,858,859],{"class":270},"upstream",[243,861,620],{"class":249},[243,863,793],{"class":249},[243,865,866],{"class":253},")\n",[243,868,870],{"class":245,"line":869},17,[243,871,499],{"emptyLinePlaceholder":498},[243,873,875,877,880,882,884,886,888,890],{"class":245,"line":874},18,[243,876,716],{"class":260},[243,878,879],{"class":428}," account",[243,881,722],{"class":249},[243,883,725],{"class":477},[243,885,719],{"class":428},[243,887,207],{"class":249},[243,889,844],{"class":512},[243,891,516],{"class":253},[243,893,895,898,900],{"class":245,"line":894},19,[243,896,897],{"class":428},"    cache",[243,899,722],{"class":249},[243,901,651],{"class":249},[243,903,905,908,910,913,915,917,920],{"class":245,"line":904},20,[243,906,907],{"class":253},"      at",[243,909,581],{"class":249},[243,911,912],{"class":428}," Date",[243,914,207],{"class":249},[243,916,673],{"class":512},[243,918,919],{"class":253},"()",[243,921,758],{"class":249},[243,923,925,928,930],{"class":245,"line":924},21,[243,926,927],{"class":253},"      body",[243,929,581],{"class":249},[243,931,651],{"class":249},[243,933,935,938,940,942,944,947],{"class":245,"line":934},22,[243,936,937],{"class":253},"        name",[243,939,581],{"class":249},[243,941,879],{"class":428},[243,943,207],{"class":249},[243,945,946],{"class":428},"name",[243,948,758],{"class":249},[243,950,952,955,957,959,961,964,966,969],{"class":245,"line":951},23,[243,953,954],{"class":253},"        twr_percent",[243,956,581],{"class":249},[243,958,879],{"class":428},[243,960,207],{"class":249},[243,962,963],{"class":428},"performance",[243,965,207],{"class":249},[243,967,968],{"class":428},"twr_percent",[243,970,758],{"class":249},[243,972,974,977,979,981,983,985,987,990],{"class":245,"line":973},24,[243,975,976],{"class":253},"        max_drawdown_percent",[243,978,581],{"class":249},[243,980,879],{"class":428},[243,982,207],{"class":249},[243,984,963],{"class":428},[243,986,207],{"class":249},[243,988,989],{"class":428},"max_drawdown_percent",[243,991,758],{"class":249},[243,993,995,998,1000,1002,1005,1007,1010,1013,1016,1019,1022,1024,1027,1029,1032,1034,1036],{"class":245,"line":994},25,[243,996,997],{"class":253},"        days",[243,999,581],{"class":249},[243,1001,633],{"class":253},[243,1003,1004],{"class":428},"account",[243,1006,207],{"class":249},[243,1008,1009],{"class":428},"equity_curve",[243,1011,1012],{"class":249},"?.",[243,1014,1015],{"class":428},"daily_performance",[243,1017,1018],{"class":249}," ??",[243,1020,1021],{"class":253}," [])",[243,1023,207],{"class":249},[243,1025,1026],{"class":512},"map",[243,1028,617],{"class":253},[243,1030,1031],{"class":636},"d",[243,1033,648],{"class":260},[243,1035,633],{"class":253},[243,1037,710],{"class":249},[243,1039,1041,1044,1046,1049,1051,1054],{"class":245,"line":1040},26,[243,1042,1043],{"class":253},"          date",[243,1045,581],{"class":249},[243,1047,1048],{"class":428}," d",[243,1050,207],{"class":249},[243,1052,1053],{"class":428},"date",[243,1055,758],{"class":249},[243,1057,1059,1062,1064,1066,1068],{"class":245,"line":1058},27,[243,1060,1061],{"class":253},"          twr_percent",[243,1063,581],{"class":249},[243,1065,1048],{"class":428},[243,1067,207],{"class":249},[243,1069,1070],{"class":428},"twr_percent\n",[243,1072,1074,1077,1080],{"class":245,"line":1073},28,[243,1075,1076],{"class":249},"        }",[243,1078,1079],{"class":253},"))",[243,1081,758],{"class":249},[243,1083,1085,1088,1090,1092,1094],{"class":245,"line":1084},29,[243,1086,1087],{"class":253},"        attribution",[243,1089,581],{"class":249},[243,1091,879],{"class":428},[243,1093,207],{"class":249},[243,1095,1096],{"class":428},"attribution\n",[243,1098,1100],{"class":245,"line":1099},30,[243,1101,1102],{"class":249},"      }\n",[243,1104,1106],{"class":245,"line":1105},31,[243,1107,1108],{"class":249},"    }\n",[243,1110,1112],{"class":245,"line":1111},32,[243,1113,1114],{"class":249},"  }\n",[243,1116,1118,1121,1123,1125,1127,1130,1132,1135],{"class":245,"line":1117},33,[243,1119,1120],{"class":428},"  res",[243,1122,207],{"class":249},[243,1124,844],{"class":512},[243,1126,617],{"class":253},[243,1128,1129],{"class":428},"cache",[243,1131,207],{"class":249},[243,1133,1134],{"class":428},"body",[243,1136,866],{"class":253},[243,1138,1140,1142],{"class":245,"line":1139},34,[243,1141,749],{"class":249},[243,1143,866],{"class":428},[243,1145,1147],{"class":245,"line":1146},35,[243,1148,499],{"emptyLinePlaceholder":498},[243,1150,1152,1154,1156,1159,1161,1164],{"class":245,"line":1151},36,[243,1153,609],{"class":428},[243,1155,207],{"class":249},[243,1157,1158],{"class":512},"listen",[243,1160,617],{"class":428},[243,1162,1163],{"class":584},"3000",[243,1165,866],{"class":428},[197,1167,1169],{"id":1168},"draw-the-chart-and-the-credit","Draw the chart and the credit",[117,1171,1174],{"className":237,"code":1172,"filename":1173,"language":239,"meta":123,"style":123},"\u003Ccanvas id=\"growth\">\u003C\u002Fcanvas>\n\u003Cp id=\"credit\">\u003C\u002Fp>\n\n\u003Cscript src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fchart.js\">\u003C\u002Fscript>\n\u003Cscript>\n  fetch('\u002Ftrading-results.json')\n    .then(r => r.json())\n    .then((data) => {\n      new Chart(document.getElementById('growth'), {\n        type: 'line',\n        data: {\n          labels: data.days.map(d => d.date),\n          datasets: [{ label: 'Growth %', data: data.days.map(d => d.twr_percent) }]\n        }\n      })\n\n      \u002F\u002F The credit: text and link come ready in the response.\n      const a = document.createElement('a')\n      a.href = data.attribution.url\n      a.textContent = data.attribution.text\n      document.getElementById('credit').append(a)\n    })\n\u003C\u002Fscript>\n","index.html",[125,1175,1176,1202,1224,1228,1253,1261,1276,1299,1318,1350,1365,1374,1409,1468,1473,1480,1484,1489,1517,1541,1563,1593,1600],{"__ignoreMap":123},[243,1177,1178,1180,1183,1186,1188,1190,1193,1195,1198,1200],{"class":245,"line":246},[243,1179,250],{"class":249},[243,1181,1182],{"class":253},"canvas",[243,1184,1185],{"class":260}," id",[243,1187,264],{"class":249},[243,1189,267],{"class":249},[243,1191,1192],{"class":270},"growth",[243,1194,267],{"class":249},[243,1196,1197],{"class":249},">\u003C\u002F",[243,1199,1182],{"class":253},[243,1201,352],{"class":249},[243,1203,1204,1206,1208,1210,1212,1214,1216,1218,1220,1222],{"class":245,"line":257},[243,1205,250],{"class":249},[243,1207,10],{"class":253},[243,1209,1185],{"class":260},[243,1211,264],{"class":249},[243,1213,267],{"class":249},[243,1215,86],{"class":270},[243,1217,267],{"class":249},[243,1219,1197],{"class":249},[243,1221,10],{"class":253},[243,1223,352],{"class":249},[243,1225,1226],{"class":245,"line":277},[243,1227,499],{"emptyLinePlaceholder":498},[243,1229,1230,1232,1235,1238,1240,1242,1245,1247,1249,1251],{"class":245,"line":292},[243,1231,250],{"class":249},[243,1233,1234],{"class":253},"script",[243,1236,1237],{"class":260}," src",[243,1239,264],{"class":249},[243,1241,267],{"class":249},[243,1243,1244],{"class":270},"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fchart.js",[243,1246,267],{"class":249},[243,1248,1197],{"class":249},[243,1250,1234],{"class":253},[243,1252,352],{"class":249},[243,1254,1255,1257,1259],{"class":245,"line":307},[243,1256,250],{"class":249},[243,1258,1234],{"class":253},[243,1260,352],{"class":249},[243,1262,1263,1266,1268,1270,1272,1274],{"class":245,"line":322},[243,1264,1265],{"class":512},"  fetch",[243,1267,617],{"class":428},[243,1269,620],{"class":249},[243,1271,623],{"class":270},[243,1273,620],{"class":249},[243,1275,866],{"class":428},[243,1277,1278,1281,1284,1286,1288,1290,1292,1294,1296],{"class":245,"line":337},[243,1279,1280],{"class":249},"    .",[243,1282,1283],{"class":512},"then",[243,1285,617],{"class":428},[243,1287,815],{"class":636},[243,1289,648],{"class":260},[243,1291,719],{"class":428},[243,1293,207],{"class":249},[243,1295,844],{"class":512},[243,1297,1298],{"class":428},"())\n",[243,1300,1301,1303,1305,1307,1309,1312,1314,1316],{"class":245,"line":355},[243,1302,1280],{"class":249},[243,1304,1283],{"class":512},[243,1306,617],{"class":428},[243,1308,617],{"class":249},[243,1310,1311],{"class":636},"data",[243,1313,645],{"class":249},[243,1315,648],{"class":260},[243,1317,651],{"class":249},[243,1319,1320,1323,1326,1328,1331,1333,1336,1338,1340,1342,1344,1346,1348],{"class":245,"line":606},[243,1321,1322],{"class":249},"      new",[243,1324,1325],{"class":512}," Chart",[243,1327,617],{"class":253},[243,1329,1330],{"class":428},"document",[243,1332,207],{"class":249},[243,1334,1335],{"class":512},"getElementById",[243,1337,617],{"class":253},[243,1339,620],{"class":249},[243,1341,1192],{"class":270},[243,1343,620],{"class":249},[243,1345,645],{"class":253},[243,1347,588],{"class":249},[243,1349,651],{"class":249},[243,1351,1352,1355,1357,1359,1361,1363],{"class":245,"line":654},[243,1353,1354],{"class":253},"        type",[243,1356,581],{"class":249},[243,1358,487],{"class":249},[243,1360,245],{"class":270},[243,1362,620],{"class":249},[243,1364,758],{"class":249},[243,1366,1367,1370,1372],{"class":245,"line":660},[243,1368,1369],{"class":253},"        data",[243,1371,581],{"class":249},[243,1373,651],{"class":249},[243,1375,1376,1379,1381,1384,1386,1389,1391,1393,1395,1397,1399,1401,1403,1405,1407],{"class":245,"line":713},[243,1377,1378],{"class":253},"          labels",[243,1380,581],{"class":249},[243,1382,1383],{"class":428}," data",[243,1385,207],{"class":249},[243,1387,1388],{"class":428},"days",[243,1390,207],{"class":249},[243,1392,1026],{"class":512},[243,1394,617],{"class":253},[243,1396,1031],{"class":636},[243,1398,648],{"class":260},[243,1400,1048],{"class":428},[243,1402,207],{"class":249},[243,1404,1053],{"class":428},[243,1406,645],{"class":253},[243,1408,758],{"class":249},[243,1410,1411,1414,1416,1419,1421,1424,1426,1428,1431,1433,1435,1437,1439,1441,1443,1445,1447,1449,1451,1453,1455,1457,1459,1461,1463,1465],{"class":245,"line":734},[243,1412,1413],{"class":253},"          datasets",[243,1415,581],{"class":249},[243,1417,1418],{"class":253}," [",[243,1420,849],{"class":249},[243,1422,1423],{"class":253}," label",[243,1425,581],{"class":249},[243,1427,487],{"class":249},[243,1429,1430],{"class":270},"Growth %",[243,1432,620],{"class":249},[243,1434,588],{"class":249},[243,1436,1383],{"class":253},[243,1438,581],{"class":249},[243,1440,1383],{"class":428},[243,1442,207],{"class":249},[243,1444,1388],{"class":428},[243,1446,207],{"class":249},[243,1448,1026],{"class":512},[243,1450,617],{"class":253},[243,1452,1031],{"class":636},[243,1454,648],{"class":260},[243,1456,1048],{"class":428},[243,1458,207],{"class":249},[243,1460,968],{"class":428},[243,1462,707],{"class":253},[243,1464,749],{"class":249},[243,1466,1467],{"class":253},"]\n",[243,1469,1470],{"class":245,"line":761},[243,1471,1472],{"class":249},"        }\n",[243,1474,1475,1478],{"class":245,"line":798},[243,1476,1477],{"class":249},"      }",[243,1479,866],{"class":253},[243,1481,1482],{"class":245,"line":804},[243,1483,499],{"emptyLinePlaceholder":498},[243,1485,1486],{"class":245,"line":869},[243,1487,1488],{"class":541},"      \u002F\u002F The credit: text and link come ready in the response.\n",[243,1490,1491,1494,1497,1499,1502,1504,1507,1509,1511,1513,1515],{"class":245,"line":874},[243,1492,1493],{"class":260},"      const",[243,1495,1496],{"class":428}," a",[243,1498,722],{"class":249},[243,1500,1501],{"class":428}," document",[243,1503,207],{"class":249},[243,1505,1506],{"class":512},"createElement",[243,1508,617],{"class":253},[243,1510,620],{"class":249},[243,1512,83],{"class":270},[243,1514,620],{"class":249},[243,1516,866],{"class":253},[243,1518,1519,1522,1524,1527,1529,1531,1533,1536,1538],{"class":245,"line":894},[243,1520,1521],{"class":428},"      a",[243,1523,207],{"class":249},[243,1525,1526],{"class":428},"href",[243,1528,722],{"class":249},[243,1530,1383],{"class":428},[243,1532,207],{"class":249},[243,1534,1535],{"class":428},"attribution",[243,1537,207],{"class":249},[243,1539,1540],{"class":428},"url\n",[243,1542,1543,1545,1547,1550,1552,1554,1556,1558,1560],{"class":245,"line":904},[243,1544,1521],{"class":428},[243,1546,207],{"class":249},[243,1548,1549],{"class":428},"textContent",[243,1551,722],{"class":249},[243,1553,1383],{"class":428},[243,1555,207],{"class":249},[243,1557,1535],{"class":428},[243,1559,207],{"class":249},[243,1561,1562],{"class":428},"text\n",[243,1564,1565,1568,1570,1572,1574,1576,1578,1580,1582,1584,1587,1589,1591],{"class":245,"line":924},[243,1566,1567],{"class":428},"      document",[243,1569,207],{"class":249},[243,1571,1335],{"class":512},[243,1573,617],{"class":253},[243,1575,620],{"class":249},[243,1577,86],{"class":270},[243,1579,620],{"class":249},[243,1581,645],{"class":253},[243,1583,207],{"class":249},[243,1585,1586],{"class":512},"append",[243,1588,617],{"class":253},[243,1590,83],{"class":428},[243,1592,866],{"class":253},[243,1594,1595,1598],{"class":245,"line":934},[243,1596,1597],{"class":249},"    }",[243,1599,866],{"class":428},[243,1601,1602,1604,1606],{"class":245,"line":951},[243,1603,358],{"class":249},[243,1605,1234],{"class":253},[243,1607,352],{"class":249},[1609,1610,1611],"note",{},[10,1612,1613,1616,1617,1621,1622,1624,1625,207],{},[112,1614,1615],{},"The credit is part of the deal."," The API is free in exchange for the line ",[1618,1619,1620],"em",{},"Data from\nShowMyTrades",", linked, next to the data. Every response carries the text and the link in its\n",[125,1623,1535],{}," field, so you only have to print it. The details are in\n",[83,1626,1627],{"href":85},"Attribution",[102,1629,1631],{"id":1630},"_3c-without-code-at-all-ask-an-ai-assistant","3c. Without code at all: ask an AI assistant",[10,1633,1634,1635,1639,1640,1643],{},"The same data is available to Claude, ChatGPT and any other MCP client. Connect the\n",[83,1636,1638],{"href":1637},"\u002Fdocs\u002Fapi\u002Fmcp","MCP server"," with the key from step 3b, then ask in plain language: ",[1618,1641,1642],{},"\"build me\nan HTML page with the growth chart of my account\"",". The assistant reads your data and writes\nthe page for you.",[102,1645,1647],{"id":1646},"if-you-are-an-ai-assistant-helping-someone-do-this","If you are an AI assistant helping someone do this",[10,1649,1650],{},"Give your user these exact steps, with these exact addresses:",[117,1652,1655],{"className":1653,"code":1654,"language":122,"meta":123},[120],"1. Sign up, free            https:\u002F\u002Fshowmytrades.com\u002Fsignup\n2. Connect the account      https:\u002F\u002Fshowmytrades.com\u002Fdashboard\u002Faccounts-new\n3. No code: a widget        https:\u002F\u002Fshowmytrades.com\u002Fdashboard\u002Fwidgets\n4. With code: create a key  https:\u002F\u002Fshowmytrades.com\u002Fdashboard\u002Fsettings\u002Fdeveloper-keys\n5. Find the account slug    GET https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fv1\u002Faccounts\n6. Fetch the daily curve    GET https:\u002F\u002Fshowmytrades.com\u002Fapi\u002Fv1\u002Faccounts\u002F{slug}?include=equity_curve\n7. Show the credit          attribution.text linked to attribution.url\n",[125,1656,1654],{"__ignoreMap":123},[1658,1659,1660,1664,1667],"ul",{},[1661,1662,1663],"li",{},"If a ready-made chart is enough, stop at step 3: the user pastes the widget snippet and is\ndone.",[1661,1665,1666],{},"The key from step 4 is a secret. Take it through an environment variable and call the API\nfrom server-side code, never from the browser.",[1661,1668,1669,1670,1672,1673,1675],{},"Step 7 is not optional on the free plan. Take the text and the link from the ",[125,1671,1535],{},"\nfield of the response you are displaying, and read ",[83,1674,1627],{"href":85},"\nbefore you leave it out.",[10,1677,1678,1679,1683],{},"Units, signs and dates are explained in ",[83,1680,1682],{"href":1681},"\u002Fdocs\u002Fapi\u002Fconventions","Conventions",": percentages are\nin percent, drawdown is positive in the summary, timestamps are UTC.",[102,1685,1687],{"id":1686},"where-to-go-next","Where to go next",[1689,1690,1691,1700,1706],"card-group",{},[1692,1693,1697],"card",{"icon":1694,"title":1695,"to":1696},"i-lucide-wallet","Accounts","\u002Fdocs\u002Fapi\u002Faccounts",[10,1698,1699],{},"Everything the account endpoint returns: monthly returns, per-symbol results, statistics.",[1692,1701,1703],{"icon":1702,"title":1627,"to":85},"i-lucide-link",[10,1704,1705],{},"What the credit must look like, and where it links.",[1692,1707,1709],{"icon":1708,"title":1638,"to":1637},"i-lucide-sparkles",[10,1710,1711],{},"Let an AI assistant read your trading directly.",[1713,1714,1715],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 .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 .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}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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}",{"title":123,"searchDepth":257,"depth":257,"links":1717},[1718,1719,1720,1725,1731,1732,1733],{"id":104,"depth":257,"text":105},{"id":129,"depth":257,"text":130},{"id":190,"depth":257,"text":191,"children":1721},[1722,1723,1724],{"id":199,"depth":277,"text":200},{"id":210,"depth":277,"text":211},{"id":230,"depth":277,"text":231},{"id":369,"depth":257,"text":370,"children":1726},[1727,1728,1729,1730],{"id":378,"depth":277,"text":379},{"id":408,"depth":277,"text":409},{"id":456,"depth":277,"text":457},{"id":1168,"depth":277,"text":1169},{"id":1630,"depth":257,"text":1631},{"id":1646,"depth":257,"text":1647},{"id":1686,"depth":257,"text":1687},"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.","md",{},{"icon":1738},"i-lucide-chart-line","\u002Fdocs\u002Fapi\u002Fshow-trading-results-on-your-website",{"title":5,"description":1734},"1.docs\u002F2.api\u002F1.show-trading-results-on-your-website","Y6J571Vc13eBWndSULgs2AnLkaXSYw012JoBP1I_lPs",[1744],{"title":1745,"path":1746,"stem":1747,"children":1748,"page":1767},"Docs","\u002Fdocs","1.docs",[1749,1768,1806],{"title":1750,"path":1751,"stem":1752,"children":1753,"icon":1767},"Getting Started","\u002Fdocs\u002Fgetting-started","1.docs\u002F1.getting-started\u002F1.index",[1754,1757,1762],{"title":1755,"path":1751,"stem":1752,"icon":1756},"Introduction","i-lucide-house",{"title":1758,"path":1759,"stem":1760,"icon":1761},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","1.docs\u002F1.getting-started\u002F2.installation","i-lucide-download",{"title":1763,"path":1764,"stem":1765,"icon":1766},"Usage","\u002Fdocs\u002Fgetting-started\u002Fusage","1.docs\u002F1.getting-started\u002F3.usage","i-lucide-sliders",false,{"title":1769,"path":1770,"stem":1771,"children":1772,"icon":1805},"API Reference","\u002Fdocs\u002Fapi","1.docs\u002F2.api\u002F1.index",[1773,1775,1776,1781,1783,1786,1788,1793,1798,1800],{"title":1755,"path":1770,"stem":1771,"icon":1774},"i-lucide-book-open",{"title":5,"path":1739,"stem":1741,"icon":1738},{"title":1777,"path":1778,"stem":1779,"icon":1780},"Authentication","\u002Fdocs\u002Fapi\u002Fauthentication","1.docs\u002F2.api\u002F2.authentication","i-lucide-key",{"title":1627,"path":85,"stem":1782,"icon":1702},"1.docs\u002F2.api\u002F3.attribution",{"title":1682,"path":1681,"stem":1784,"icon":1785},"1.docs\u002F2.api\u002F3.conventions","i-lucide-ruler",{"title":1695,"path":1696,"stem":1787,"icon":1694},"1.docs\u002F2.api\u002F4.accounts",{"title":1789,"path":1790,"stem":1791,"icon":1792},"Trades & positions","\u002Fdocs\u002Fapi\u002Ftrades","1.docs\u002F2.api\u002F5.trades","i-lucide-arrow-left-right",{"title":1794,"path":1795,"stem":1796,"icon":1797},"Search","\u002Fdocs\u002Fapi\u002Fsearch","1.docs\u002F2.api\u002F6.search","i-lucide-search",{"title":1638,"path":1637,"stem":1799,"icon":1708},"1.docs\u002F2.api\u002F7.mcp",{"title":1801,"path":1802,"stem":1803,"icon":1804},"Errors","\u002Fdocs\u002Fapi\u002Ferrors","1.docs\u002F2.api\u002F8.errors","i-lucide-triangle-alert","i-lucide-code-xml",{"title":1807,"path":1808,"stem":1809,"children":1810,"page":1767},"Essentials","\u002Fdocs\u002Fessentials","1.docs\u002F2.essentials",[1811,1816,1820,1825],{"title":1812,"path":1813,"stem":1814,"icon":1815},"Markdown Syntax","\u002Fdocs\u002Fessentials\u002Fmarkdown-syntax","1.docs\u002F2.essentials\u002F1.markdown-syntax","i-lucide-heading-1",{"title":1817,"path":1818,"stem":1819,"icon":1805},"Code Blocks","\u002Fdocs\u002Fessentials\u002Fcode-blocks","1.docs\u002F2.essentials\u002F2.code-blocks",{"title":1821,"path":1822,"stem":1823,"icon":1824},"Prose Components","\u002Fdocs\u002Fessentials\u002Fprose-components","1.docs\u002F2.essentials\u002F3.prose-components","i-lucide-component",{"title":1826,"path":1827,"stem":1828,"icon":1829},"Images and Embeds","\u002Fdocs\u002Fessentials\u002Fimages-embeds","1.docs\u002F2.essentials\u002F4.images-embeds","i-lucide-image",[1831,1833],{"title":1755,"path":1770,"stem":1771,"description":1832,"icon":1774,"children":-1},"Read your trading accounts, and every account published on ShowMyTrades, as JSON, from your own code or from an AI assistant.",{"title":1777,"path":1778,"stem":1779,"description":1834,"icon":1780,"children":-1},"Create a Developer API Key and send it as a Bearer token on every request.",1791205999898]