[{"data":1,"prerenderedAt":862},["ShallowReactive",2],{"\u002Fdocs\u002Fapi\u002Fattribution":3,"docs-api-navigation":759,"\u002Fdocs\u002Fapi\u002Fattribution-surround":857},{"id":4,"title":5,"body":6,"description":751,"extension":414,"meta":752,"navigation":753,"path":755,"seo":756,"stem":757,"__hash__":758},"docs\u002F1.docs\u002F2.api\u002F3.attribution.md","Attribution",{"type":7,"value":8,"toc":738},"minimark",[9,22,68,71,81,91,207,251,255,309,324,328,335,574,577,626,630,633,655,658,662,665,718,722,734],[10,11,12,13,17,18,21],"p",{},"The API and the MCP server are ",[14,15,16],"strong",{},"free",". What we ask in return is a visible credit wherever\nyou show the data: the line ",[14,19,20],{},"Data from ShowMyTrades",", linked to us.",[23,24,25,40],"table",{},[26,27,28],"thead",{},[29,30,31,35,38],"tr",{},[32,33,34],"th",{},"Plan",[32,36,37],{},"API and MCP",[32,39,5],{},[41,42,43,57],"tbody",{},[29,44,45,49,52],{},[46,47,48],"td",{},"Free",[46,50,51],{},"Included",[46,53,54],{},[14,55,56],{},"Required",[29,58,59,62,65],{},[46,60,61],{},"Pro and Ultra",[46,63,64],{},"Included, higher limits",[46,66,67],{},"Recommended, never required",[10,69,70],{},"You never have to work out the text or the link yourself: every response already carries them.",[72,73,75,76,80],"h2",{"id":74},"the-attribution-object","The ",[77,78,79],"code",{},"attribution"," object",[10,82,83,84,86,87,90],{},"Every account object has an ",[77,85,79],{}," field, and so does every list of trades or\npositions, next to ",[77,88,89],{},"pagination",".",[92,93,98],"pre",{"className":94,"code":95,"language":96,"meta":97,"style":97},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\"attribution\": {\n  \"required\": true,\n  \"text\": \"Data from ShowMyTrades\",\n  \"url\": \"https:\u002F\u002Fshowmytrades.com\u002Faccount\u002Fdark-algo\",\n  \"account_url\": \"https:\u002F\u002Fshowmytrades.com\u002Faccount\u002Fdark-algo\"\n}\n","json","",[77,99,100,121,139,161,182,201],{"__ignoreMap":97},[101,102,105,109,112,114,118],"span",{"class":103,"line":104},"line",1,[101,106,108],{"class":107},"sMK4o","\"",[101,110,79],{"class":111},"sfazB",[101,113,108],{"class":107},[101,115,117],{"class":116},"sTEyZ",": ",[101,119,120],{"class":107},"{\n",[101,122,124,127,131,133,136],{"class":103,"line":123},2,[101,125,126],{"class":107},"  \"",[101,128,130],{"class":129},"spNyl","required",[101,132,108],{"class":107},[101,134,135],{"class":107},":",[101,137,138],{"class":107}," true,\n",[101,140,142,144,147,149,151,154,156,158],{"class":103,"line":141},3,[101,143,126],{"class":107},[101,145,146],{"class":129},"text",[101,148,108],{"class":107},[101,150,135],{"class":107},[101,152,153],{"class":107}," \"",[101,155,20],{"class":111},[101,157,108],{"class":107},[101,159,160],{"class":107},",\n",[101,162,164,166,169,171,173,175,178,180],{"class":103,"line":163},4,[101,165,126],{"class":107},[101,167,168],{"class":129},"url",[101,170,108],{"class":107},[101,172,135],{"class":107},[101,174,153],{"class":107},[101,176,177],{"class":111},"https:\u002F\u002Fshowmytrades.com\u002Faccount\u002Fdark-algo",[101,179,108],{"class":107},[101,181,160],{"class":107},[101,183,185,187,190,192,194,196,198],{"class":103,"line":184},5,[101,186,126],{"class":107},[101,188,189],{"class":129},"account_url",[101,191,108],{"class":107},[101,193,135],{"class":107},[101,195,153],{"class":107},[101,197,177],{"class":111},[101,199,200],{"class":107},"\"\n",[101,202,204],{"class":103,"line":203},6,[101,205,206],{"class":107},"}\n",[208,209,210,224,232,241],"field-group",{},[211,212,214],"field",{"name":130,"type":213},"boolean",[10,215,216,219,220,223],{},[77,217,218],{},"true"," on the free plan: the credit must be shown. ",[77,221,222],{},"false"," on Pro and Ultra: the credit is\nrecommended, and leaving it out is your call.",[211,225,227],{"name":146,"type":226},"string",[10,228,229,230,90],{},"The text of the credit. Always ",[77,231,20],{},[211,233,234],{"name":168,"type":226},[10,235,236,237,240],{},"Where the credit links to. ",[14,238,239],{},"Use this one"," unless you have a reason not to.",[211,242,244],{"name":189,"type":243},"string | null",[10,245,246,247,250],{},"The public page of the account on ShowMyTrades, or ",[77,248,249],{},"null"," when the account has none.",[72,252,254],{"id":253},"where-the-link-points","Where the link points",[23,256,257,272],{},[26,258,259],{},[29,260,261,264,268],{},[32,262,263],{},"The account is…",[32,265,266],{},[77,267,168],{},[32,269,270],{},[77,271,189],{},[41,273,274,284,296],{},[29,275,276,279,282],{},[46,277,278],{},"Published",[46,280,281],{},"The account's page",[46,283,281],{},[29,285,286,289,294],{},[46,287,288],{},"Published but unlisted",[46,290,291],{},[77,292,293],{},"https:\u002F\u002Fshowmytrades.com",[46,295,281],{},[29,297,298,301,305],{},[46,299,300],{},"Private",[46,302,303],{},[77,304,293],{},[46,306,307],{},[77,308,249],{},[310,311,312],"note",{},[10,313,314,317,318,320,321,323],{},[14,315,316],{},"Unlisted accounts: your choice."," An unlisted account has a public page that its owner keeps\nout of listings and search. We do not decide for you whether to circulate that address: ",[77,319,168],{},"\nis the home page, ",[77,322,189],{}," is the page of the account, and either one satisfies the\nrequirement.",[72,325,327],{"id":326},"how-to-show-it","How to show it",[10,329,330,331,334],{},"Put the credit ",[14,332,333],{},"next to the data",", readable, on every page, message or document that shows\nfigures coming from the API. A footer line under the chart is enough.",[336,337,338,409,433],"code-group",{},[92,339,344],{"className":340,"code":341,"filename":342,"language":343,"meta":97,"style":97},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cp class=\"smt-credit\">\n  \u003Ca href=\"https:\u002F\u002Fshowmytrades.com\u002Faccount\u002Fdark-algo\">Data from ShowMyTrades\u003C\u002Fa>\n\u003C\u002Fp>\n","HTML","html",[77,345,346,370,401],{"__ignoreMap":97},[101,347,348,351,354,357,360,362,365,367],{"class":103,"line":104},[101,349,350],{"class":107},"\u003C",[101,352,10],{"class":353},"swJcz",[101,355,356],{"class":129}," class",[101,358,359],{"class":107},"=",[101,361,108],{"class":107},[101,363,364],{"class":111},"smt-credit",[101,366,108],{"class":107},[101,368,369],{"class":107},">\n",[101,371,372,375,378,381,383,385,387,389,392,394,397,399],{"class":103,"line":123},[101,373,374],{"class":107},"  \u003C",[101,376,377],{"class":353},"a",[101,379,380],{"class":129}," href",[101,382,359],{"class":107},[101,384,108],{"class":107},[101,386,177],{"class":111},[101,388,108],{"class":107},[101,390,391],{"class":107},">",[101,393,20],{"class":116},[101,395,396],{"class":107},"\u003C\u002F",[101,398,377],{"class":353},[101,400,369],{"class":107},[101,402,403,405,407],{"class":103,"line":141},[101,404,396],{"class":107},[101,406,10],{"class":353},[101,408,369],{"class":107},[92,410,415],{"className":411,"code":412,"filename":413,"language":414,"meta":97,"style":97},"language-md shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[Data from ShowMyTrades](https:\u002F\u002Fshowmytrades.com\u002Faccount\u002Fdark-algo)\n","Markdown","md",[77,416,417],{"__ignoreMap":97},[101,418,419,422,424,427,430],{"class":103,"line":104},[101,420,421],{"class":107},"[",[101,423,20],{"class":111},[101,425,426],{"class":107},"](",[101,428,177],{"class":429},"sDpXG",[101,431,432],{"class":107},")\n",[92,434,439],{"className":435,"code":436,"filename":437,"language":438,"meta":97,"style":97},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F `account` is the object returned by GET \u002Fapi\u002Fv1\u002Faccounts\u002F{slug}\nconst { text, url } = account.attribution\n\nconst credit = document.createElement('a')\ncredit.href = url\ncredit.textContent = text\ndocument.querySelector('#chart').after(credit)\n","JavaScript","js",[77,440,441,447,478,484,514,529,543],{"__ignoreMap":97},[101,442,443],{"class":103,"line":104},[101,444,446],{"class":445},"sHwdD","\u002F\u002F `account` is the object returned by GET \u002Fapi\u002Fv1\u002Faccounts\u002F{slug}\n",[101,448,449,452,455,458,461,464,467,470,473,475],{"class":103,"line":123},[101,450,451],{"class":129},"const",[101,453,454],{"class":107}," {",[101,456,457],{"class":116}," text",[101,459,460],{"class":107},",",[101,462,463],{"class":116}," url ",[101,465,466],{"class":107},"}",[101,468,469],{"class":107}," =",[101,471,472],{"class":116}," account",[101,474,90],{"class":107},[101,476,477],{"class":116},"attribution\n",[101,479,480],{"class":103,"line":141},[101,481,483],{"emptyLinePlaceholder":482},true,"\n",[101,485,486,488,491,493,496,498,502,505,508,510,512],{"class":103,"line":163},[101,487,451],{"class":129},[101,489,490],{"class":116}," credit ",[101,492,359],{"class":107},[101,494,495],{"class":116}," document",[101,497,90],{"class":107},[101,499,501],{"class":500},"s2Zo4","createElement",[101,503,504],{"class":116},"(",[101,506,507],{"class":107},"'",[101,509,377],{"class":111},[101,511,507],{"class":107},[101,513,432],{"class":116},[101,515,516,519,521,524,526],{"class":103,"line":184},[101,517,518],{"class":116},"credit",[101,520,90],{"class":107},[101,522,523],{"class":116},"href ",[101,525,359],{"class":107},[101,527,528],{"class":116}," url\n",[101,530,531,533,535,538,540],{"class":103,"line":203},[101,532,518],{"class":116},[101,534,90],{"class":107},[101,536,537],{"class":116},"textContent ",[101,539,359],{"class":107},[101,541,542],{"class":116}," text\n",[101,544,546,549,551,554,556,558,561,563,566,568,571],{"class":103,"line":545},7,[101,547,548],{"class":116},"document",[101,550,90],{"class":107},[101,552,553],{"class":500},"querySelector",[101,555,504],{"class":116},[101,557,507],{"class":107},[101,559,560],{"class":111},"#chart",[101,562,507],{"class":107},[101,564,565],{"class":116},")",[101,567,90],{"class":107},[101,569,570],{"class":500},"after",[101,572,573],{"class":116},"(credit)\n",[10,575,576],{},"The rules, in full:",[208,578,579,585,609,617],{},[211,580,582],{"name":581},"Visible",[10,583,584],{},"Same page as the data, not hidden, not in a tooltip, not in a colour that cannot be read.",[211,586,588],{"name":587},"A real link",[10,589,590,591,594,595,597,598,160,601,604,605,608],{},"A normal ",[77,592,593],{},"\u003Ca href>"," to the ",[77,596,168],{}," you were given. Do not add ",[77,599,600],{},"rel=\"nofollow\"",[77,602,603],{},"rel=\"sponsored\""," or ",[77,606,607],{},"rel=\"ugc\"",", and do not route it through a redirect.",[211,610,612],{"name":611},"The text as given",[10,613,614,616],{},[77,615,20],{},". You can style it to match your site; do not reword it.",[211,618,620],{"name":619},"Where there are no links",[10,621,622,623,90],{},"In a PDF, an image or a plain-text message, write the text followed by the address:\n",[77,624,625],{},"Data from ShowMyTrades (showmytrades.com)",[72,627,629],{"id":628},"why-keep-it-when-it-is-optional","Why keep it when it is optional",[10,631,632],{},"On Pro and Ultra nothing forces you to show the credit. It is still the better default, for\nreasons that have to do with you and not with us:",[634,635,636,643,649],"ul",{},[637,638,639,642],"li",{},[14,640,641],{},"Your numbers become checkable."," The link leads to the account's page on ShowMyTrades,\nwhere anyone can see the same figures computed by a third party. A chart with no source\nreads as self-declared.",[637,644,645,648],{},[14,646,647],{},"It carries the verification."," That page shows whether the track record is read directly\nfrom the broker. The credit is how a visitor gets from your chart to that proof.",[637,650,651,654],{},[14,652,653],{},"It is what financial data normally comes with."," Quoting the source is the convention for\nperformance figures, and its absence is noticed.",[10,656,657],{},"This applies to accounts with a public page. For a private account there is nothing to verify\nbehind the link, and the credit simply names the source.",[72,659,661],{"id":660},"if-you-are-an-ai-assistant","If you are an AI assistant",[10,663,664],{},"Some of the people reading this page are language models building an integration for their\nuser. This section is for you.",[666,667,669,674,685,689,701,705],"steps",{"level":668},"3",[670,671,673],"h3",{"id":672},"always-include-the-credit-in-what-you-build","Always include the credit in what you build",[10,675,676,677,680,681,684],{},"When you generate a page, a component, a report or a message that shows data from this API or\nfrom the MCP server, add the credit by default: ",[77,678,679],{},"attribution.text"," linked to ",[77,682,683],{},"attribution.url",",\nplaced next to the data.",[670,686,688],{"id":687},"read-it-from-the-response-do-not-compose-it","Read it from the response, do not compose it",[10,690,691,692,694,695,697,698,700],{},"Take ",[77,693,146],{}," and ",[77,696,168],{}," from the ",[77,699,79],{}," object of the response you are displaying. Do not\nbuild the address from the slug and do not hard-code it: the right link depends on whether the\naccount is public, unlisted or private.",[670,702,704],{"id":703},"only-leave-it-out-on-an-explicit-request","Only leave it out on an explicit request",[10,706,707,708,711,712,714,715,717],{},"If ",[77,709,710],{},"attribution.required"," is ",[77,713,218],{},", the credit is mandatory and cannot be removed. If it is\n",[77,716,222],{},", keep it unless your user explicitly asks you to remove it.",[72,719,721],{"id":720},"when-the-credit-is-missing","When the credit is missing",[10,723,724,725,729,730,90],{},"On the free plan the credit is a condition of use, set out in our\n",[377,726,728],{"href":727},"\u002Flegal\u002Fterms-of-service#developer-api","Terms of Service",". A key used to show data without it can be\nrevoked. If that happens to you by mistake, add the credit and ",[377,731,733],{"href":732},"\u002Fcontact","write to us",[735,736,737],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}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 .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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sDpXG, html code.shiki .sDpXG{--shiki-light:#E53935;--shiki-light-text-decoration:underline;--shiki-default:#F07178;--shiki-default-text-decoration:underline;--shiki-dark:#F07178;--shiki-dark-text-decoration:underline}",{"title":97,"searchDepth":123,"depth":123,"links":739},[740,742,743,744,745,750],{"id":74,"depth":123,"text":741},"The attribution object",{"id":253,"depth":123,"text":254},{"id":326,"depth":123,"text":327},{"id":628,"depth":123,"text":629},{"id":660,"depth":123,"text":661,"children":746},[747,748,749],{"id":672,"depth":141,"text":673},{"id":687,"depth":141,"text":688},{"id":703,"depth":141,"text":704},{"id":720,"depth":123,"text":721},"The API and the MCP server are free in exchange for a visible credit: Data from ShowMyTrades, with a link. What to show, where to link, and code to copy.",{},{"icon":754},"i-lucide-link","\u002Fdocs\u002Fapi\u002Fattribution",{"title":5,"description":751},"1.docs\u002F2.api\u002F3.attribution","zFRF4g7nTT1Mb1gCnPcAkyNQow-7QC9CkSU1LDpOdng",[760],{"title":761,"path":762,"stem":763,"children":764,"page":783},"Docs","\u002Fdocs","1.docs",[765,784,833],{"title":766,"path":767,"stem":768,"children":769,"icon":783},"Getting Started","\u002Fdocs\u002Fgetting-started","1.docs\u002F1.getting-started\u002F1.index",[770,773,778],{"title":771,"path":767,"stem":768,"icon":772},"Introduction","i-lucide-house",{"title":774,"path":775,"stem":776,"icon":777},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","1.docs\u002F1.getting-started\u002F2.installation","i-lucide-download",{"title":779,"path":780,"stem":781,"icon":782},"Usage","\u002Fdocs\u002Fgetting-started\u002Fusage","1.docs\u002F1.getting-started\u002F3.usage","i-lucide-sliders",false,{"title":785,"path":786,"stem":787,"children":788,"icon":832},"API Reference","\u002Fdocs\u002Fapi","1.docs\u002F2.api\u002F1.index",[789,791,796,801,802,807,812,817,822,827],{"title":771,"path":786,"stem":787,"icon":790},"i-lucide-book-open",{"title":792,"path":793,"stem":794,"icon":795},"Show your trading results on your website","\u002Fdocs\u002Fapi\u002Fshow-trading-results-on-your-website","1.docs\u002F2.api\u002F1.show-trading-results-on-your-website","i-lucide-chart-line",{"title":797,"path":798,"stem":799,"icon":800},"Authentication","\u002Fdocs\u002Fapi\u002Fauthentication","1.docs\u002F2.api\u002F2.authentication","i-lucide-key",{"title":5,"path":755,"stem":757,"icon":754},{"title":803,"path":804,"stem":805,"icon":806},"Conventions","\u002Fdocs\u002Fapi\u002Fconventions","1.docs\u002F2.api\u002F3.conventions","i-lucide-ruler",{"title":808,"path":809,"stem":810,"icon":811},"Accounts","\u002Fdocs\u002Fapi\u002Faccounts","1.docs\u002F2.api\u002F4.accounts","i-lucide-wallet",{"title":813,"path":814,"stem":815,"icon":816},"Trades & positions","\u002Fdocs\u002Fapi\u002Ftrades","1.docs\u002F2.api\u002F5.trades","i-lucide-arrow-left-right",{"title":818,"path":819,"stem":820,"icon":821},"Search","\u002Fdocs\u002Fapi\u002Fsearch","1.docs\u002F2.api\u002F6.search","i-lucide-search",{"title":823,"path":824,"stem":825,"icon":826},"MCP server","\u002Fdocs\u002Fapi\u002Fmcp","1.docs\u002F2.api\u002F7.mcp","i-lucide-sparkles",{"title":828,"path":829,"stem":830,"icon":831},"Errors","\u002Fdocs\u002Fapi\u002Ferrors","1.docs\u002F2.api\u002F8.errors","i-lucide-triangle-alert","i-lucide-code-xml",{"title":834,"path":835,"stem":836,"children":837,"page":783},"Essentials","\u002Fdocs\u002Fessentials","1.docs\u002F2.essentials",[838,843,847,852],{"title":839,"path":840,"stem":841,"icon":842},"Markdown Syntax","\u002Fdocs\u002Fessentials\u002Fmarkdown-syntax","1.docs\u002F2.essentials\u002F1.markdown-syntax","i-lucide-heading-1",{"title":844,"path":845,"stem":846,"icon":832},"Code Blocks","\u002Fdocs\u002Fessentials\u002Fcode-blocks","1.docs\u002F2.essentials\u002F2.code-blocks",{"title":848,"path":849,"stem":850,"icon":851},"Prose Components","\u002Fdocs\u002Fessentials\u002Fprose-components","1.docs\u002F2.essentials\u002F3.prose-components","i-lucide-component",{"title":853,"path":854,"stem":855,"icon":856},"Images and Embeds","\u002Fdocs\u002Fessentials\u002Fimages-embeds","1.docs\u002F2.essentials\u002F4.images-embeds","i-lucide-image",[858,860],{"title":797,"path":798,"stem":799,"description":859,"icon":800,"children":-1},"Create a Developer API Key and send it as a Bearer token on every request.",{"title":803,"path":804,"stem":805,"description":861,"icon":806,"children":-1},"Units, signs, dates, identifiers and pagination: what every number in a response actually means.",1791205999905]