PageSourceSearch

https://www.tradingwizard.ai/_next/static/chunks/56285-4d59cad62112875c.js

js tradingwizard.ai collected 2026-09-24 13:28:03 UTC 19,723 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8fb4c36c-232e-4fb6-878f-e6522dc85acb",e._sentryDebugIdIdentifier="sentry-dbid-8fb4c36c-232e-4fb6-878f-e6522dc85acb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56285],{1797:(e,t,n)=>{n.d(t,{$f:()=>c,NK:()=>f,PC:()=>p,V:()=>h,s6:()=>i,tD:()=>u});var r=n(32965);let o="x-wiz-action-key",a="/api/wiz/action";function i(){let e="undefined"!=typeof globalThis?globalThis.crypto:void 0;if(null==e?void 0:e.randomUUID)return"wa_".concat(e.randomUUID().replace(/-/g,""));let t=new Uint8Array(16);if(null==e?void 0:e.getRandomValues)e.getRandomValues(t);else for(let e=0;e<t.length;e++)t[e]=Math.floor(256*Math.random());return"wa_".concat(Array.from(t,e=>e.toString(16).padStart(2,"0")).join(""))}let s=e=>(null==e?void 0:e.name)==="AbortError";async function l(e){let t=await e.json().catch(()=>null);return t&&"object"==typeof t&&"boolean"==typeof t.ok?{kind:"answered",status:e.status,data:t}:e.status>=500||0===e.status?{kind:"unknown"}:{kind:"answered",status:e.status,data:null!=t?t:{}}}async function c(e,t,n){try{let r=await fetch(a,{method:"POST",signal:n,headers:{"Content-Type":"application/json",[o]:t},body:JSON.stringify(e)});return await l(r)}catch(e){if((null==n?void 0:n.aborted)||s(e))return{kind:"aborted"};return{kind:"unknown"}}}async function u(e,t){try{let n=await fetch(a,{method:"GET",signal:t,headers:{[o]:e}});if(401===n.status)return{kind:"signed_out"};let r=await n.json().catch(()=>null),i=null==r?void 0:r.receipt;if(!n.ok||!i||!["none","running","unknown","done","refused"].includes(i.state))return{kind:"unreachable"};return{kind:"receipt",state:i.state,status:i.httpStatus,data:i.body}}catch(e){if((null==t?void 0:t.aborted)||s(e))return{kind:"aborted"};return{kind:"unreachable"}}}function d(e){let t=(0,r.vx)(null==e?void 0:e.code),n=(0,r.Q9)(null==e?void 0:e.receipt);return{...t?{code:t}:{},...n?{receipt:n}:{}}}let p="We lost the connection before the result came back. This change may or may not have gone through.";function h(e){var t;if("aborted"===e.kind)return null;if("unknown"===e.kind)return{next:"unknown",message:p};let{status:n,data:r}=e;if(401===n)return{next:"pending",keepKey:!1,signIn:!0,tone:"error",message:(null==r?void 0:r.message)||"Your session expired. Sign back in to finish that."};if(n<300&&(null==r?void 0:r.ok)===!0){let e=(null==r?void 0:r.message)||"Done.";return{next:"done",message:e,resultText:(null==r?void 0:r.resultText)||e,resultHref:null==r?void 0:r.resultHref,...d(r)}}if((null==r?void 0:r.code)==="action_in_progress")return{next:"unknown",message:"This change is still being applied. Check the result in a moment."};let o=(null==r?void 0:r.upgrade)===!0&&(t=null==r?void 0:r.limit)&&"object"==typeof t&&("alerts"===t.resource||"follows"===t.resource)&&("free"===t.plan||"pro"===t.plan)?{resource:t.resource,plan:t.plan}:null;return{next:"pending",keepKey:!1,tone:409===n||429===n||503===n?"info":"error",upgrade:(null==r?void 0:r.upgrade)===!0,message:(null==r?void 0:r.message)||"Could not complete that.",...d(r),...o?{limit:o}:{}}}function f(e){if("aborted"===e.kind)return null;if("signed_out"===e.kind)return{next:"unknown",message:"Sign back in to check whether this change went through."};if("unreachable"===e.kind)return{next:"unknown",message:"Still can’t reach the server. Check again in a moment."};switch(e.state){case"done":case"refused":var t,n;return h({kind:"answered",status:null!=(t=e.status)?t:"done"===e.state?200:400,data:null!=(n=e.data)?n:{}});case"none":return{next:"pending",keepKey:!0,tone:"info",message:"That change never reached the server. Nothing changed. Confirm again when you’re ready."};case"running":return{next:"unknown",message:"This change is still being applied. Check again in a moment."};default:return{next:"unknown",message:"We couldn’t confirm whether this went through. Check your account before asking Wiz again."}}}},8432:(e,t,n)=>{n.d(t,{JG:()=>m,Ru:()=>g,VD:()=>v,Vb:()=>k,YZ:()=>f,_h:()=>w,ab:()=>b,ro:()=>x,s6:()=>y});var r=n(95155),o=n(69602),a=n(1524),i=n(26921),s=n(82214),l=n(34641),c=n(81142),u=n(49201),d=n(62559),p=n(66913);let h="focus:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--wiz-focus)]";function f(e){let{children:t,tone:n="accent",className:o=""}=e;return(0,r.jsx)("span",{className:"text-[10px] font-bold uppercase ".concat(o),style:{color:(0,u.Mb)(n)},children:t})}function g(e){let{value:t,className:n="",digits:o=2}=e;return(0,r.jsx)("span",{className:"font-mono tabular-nums ".concat(n),style:{color:(0,u.Mb)(t>0?"gain":t<0?"loss":"neutral")},children:(0,d.l9)(t,o)})}function m(e){let{value:t,className:n=""}=e;return(0,r.jsx)("span",{className:"font-mono tabular-nums text-theme-primary -tracking-[0.01em] ".concat(n),children:(0,r.jsx)(c.s,{text:(0,d.UK)(t)})})}function y(e){let{value:t,digits:n=1,className:o=""}=e,s=t>=0;return(0,r.jsxs)("span",{className:"inline-flex items-center gap-0.5 rounded-md px-1.5 py-0.5 text-[11px] font-mono tabular-nums font-bold ".concat(o),style:{background:s?u.zz.gainSoftBg:u.zz.lossSoftBg,color:s?u.zz.gain:u.zz.loss},children:[s?(0,r.jsx)(a.A,{className:"h-2.5 w-2.5",strokeWidth:2.5}):(0,r.jsx)(i.A,{className:"h-2.5 w-2.5",strokeWidth:2.5}),(0,d.l9)(t,n)]})}function b(e){let{children:t,tone:n="neutral",className:o=""}=e,a="gain"===n?u.zz.gainSoftBg:"accent"===n?u.zz.greenSoftBg:"loss"===n?u.zz.lossSoftBg:"amber"===n?u.zz.amberS
1oftBg:"info"===n?u.zz.blueSoftBg:"var(--bg-tertiary)";return(0,r.jsx)("span",{className:"inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase ".concat(o),style:{background:a,color:(0,u.Mb)(n)},children:t})}function x(e){let{label:t,value:n,valueColor:o,mono:a=!0}=e;return(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"text-[10px] uppercase text-theme-tertiary",children:t}),(0,r.jsx)("div",{className:"mt-0.5 text-[13px] ".concat(a?"font-mono tabular-nums":""," text-theme-primary truncate"),style:o?{color:o}:void 0,children:n})]})}function w(e){let{label:t,onSend:n,onActivate:o,source:a="proof_footer"}=e;return(0,r.jsxs)("button",{type:"button",onClick:()=>o?o():n(t,a),className:"group -mx-1.5 -my-1 inline-flex items-center gap-1 rounded-full px-1.5 py-1 text-[12px] font-semibold transition-[color,background-color,scale] duration-150 ease-out hover:bg-theme-overlay-hover active:scale-[0.97] motion-reduce:transition-none ".concat(h),style:{color:u.zz.greenText},children:[t,(0,r.jsx)("span",{className:"transition-transform duration-150 ease-out group-hover:translate-x-0.5 motion-reduce:transition-none motion-reduce:group-hover:translate-x-0",children:"→"})]})}function v(e){let{target:t,label:n="Open chart",variant:o="text"}=e,{open:a}=(0,p.QA)();return"chip"===o?(0,r.jsxs)("button",{type:"button",onClick:()=>a(t),className:"inline-flex items-center gap-1.5 rounded-full border border-theme bg-theme-secondary px-3 py-1.5 text-[12px] font-medium text-theme-secondary transition-[color,border-color,scale] duration-150 ease-out hover:border-[color:var(--border-strong)] hover:text-theme-primary active:scale-[0.96] motion-reduce:transition-none motion-reduce:hover:scale-100 ".concat(h),style:{boxShadow:"var(--wiz-shadow-border)"},children:[(0,r.jsx)(s.A,{className:"h-3.5 w-3.5 text-theme-tertiary",strokeWidth:2.5}),n]}):"asset"===o?(0,r.jsx)("button",{"data-shape":"round",type:"button",onClick:()=>a(t),"aria-label":"Open ".concat(t.symbol," chart"),title:"Open ".concat(t.symbol," chart"),className:"shrink-0 cursor-pointer rounded-full transition-transform duration-150 ease-out hover:scale-[1.1] hover:ring-2 hover:ring-[color:var(--wiz-green)] active:scale-[0.94] motion-reduce:transition-none motion-reduce:hover:scale-100 ".concat(h),children:(0,r.jsx)(l.AssetIcon,{symbol:t.symbol,size:"sm"})}):(0,r.jsxs)("button",{type:"button",onClick:()=>a(t),className:"group -mx-1.5 -my-1 inline-flex items-center gap-1.5 rounded-full px-1.5 py-1 text-[12px] font-semibold text-theme-secondary transition-[color,background-color,scale] duration-150 ease-out hover:bg-theme-overlay-hover hover:text-theme-primary active:scale-[0.97] motion-reduce:transition-none ".concat(h),children:[(0,r.jsx)(s.A,{className:"w-3.5 h-3.5"}),n]})}function k(e){let{options:t,value:n,onChange:a,wrap:i=!1,ariaLabel:s,disabled:l=!1,compact:c=!1}=e;return(0,r.jsx)("div",{role:"group","aria-label":s,className:"wiz-seg-tray inline-flex items-center ".concat(i?"flex-wrap gap-1":""," ").concat(c?"rounded-[10px] p-1":"rounded-xl p-1.5"),children:t.map(e=>{let t=e.id===n;return(0,r.jsxs)("button",{type:"button",onClick:()=>{e.id!==n&&(0,o.g)("select"),a(e.id)},"aria-pressed":t,disabled:l,"data-active":t,className:"wiz-seg-item inline-flex shrink-0 items-center gap-2 whitespace-nowrap rounded-md ".concat(c?"px-2.5 py-2 text-[12px]":"px-3.5 py-2.5 text-[13px]"," font-bold leading-none transition-[color,background-color,box-shadow,scale] duration-150 ease-out active:scale-[0.97] motion-reduce:transition-none disabled:opacity-60 ").concat(h),children:[e.dot&&(0,r.jsx)("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:t?u.zz.green:"var(--text-tertiary)"}}),e.label,null!=e.count&&(0,r.jsx)("span",{className:"rounded-full px-1.5 py-0.5 text-[10px] font-bold tabular-nums",style:t?{background:"color-mix(in srgb, currentColor 14%, transparent)",color:"currentColor"}:{background:"var(--bg-tertiary)",color:"var(--text-tertiary)"},children:e.count})]},e.id)})})}},15182:(e,t,n)=>{n.d(t,{i:()=>r});let r={sign_in_required:"Sign in to place this order. Nothing was placed.",access_expired:"Your access has ended, so new orders are not accepted. You can still close, reduce and protect what is already open.",trading_paused:"Trading is paused on this account. You can turn it back on in Settings, Trading.",trading_stopped_everywhere:"Trading is stopped for everyone right now. Nothing was placed.",key_required:"This request arrived without its safety key, so nothing was changed. Please try again.",key_mismatch:"This key belongs to a different order, so nothing was changed.",duplicate_in_flight:"The same order is already being placed. We are waiting for the result.",invalid_symbol
1:"We cannot trade this asset. Nothing was placed.",invalid_size:"Enter an amount we can trade. Nothing was placed.",invalid_price:"Enter a price we can use. Nothing was placed.",invalid_levels:"The stop loss or the target is on the wrong side of the entry price, so nothing was changed.",level_too_far:"The stop loss or the target is too far from the price, so nothing was changed. Move it closer and try again.",leverage_not_available:"Orders you place yourself do not use leverage. Nothing was placed.",below_min_order:"This order is smaller than 1 USD, which is the smallest we accept. Nothing was placed.",instrument_unpriced:"We do not have a price for this asset. Nothing was placed.",price_stale:"We do not have a fresh price for this asset right now. Nothing was placed.",market_closed:"The market for this asset is closed. You can place a limit order, or come back when it opens.",fx_unavailable:"We cannot convert this price to US dollars right now. Nothing was placed.",insufficient_cash:"There is not enough cash in your paper account for this order. Nothing was placed.",limit_open_positions:"You have as many open positions as your plan allows. Close one to open another.",limit_resting_orders:"You have as many waiting orders as your plan allows. Cancel one to place another.",limit_daily_orders:"You have placed as many orders today as your plan allows.",not_found:"We cannot find this position or order, so nothing was changed.",not_paper:"This position is not on your paper account, so nothing was changed.",already_closed:"This position is already closed, so nothing was changed.",changed_retry:"This position moved on while you were working on it, so nothing was changed. Check it and try again.",engine_unavailable:"We could not complete this request, so nothing was changed."}},17433:(e,t,n)=>{n.d(t,{Bg:()=>u,E_:()=>s,KB:()=>f,P1:()=>d,Qt:()=>b,XJ:()=>p,ZL:()=>c,fT:()=>a,k$:()=>h,n8:()=>g,r_:()=>o,t_:()=>x,xj:()=>m});var r=n(83980);let o=["lots","units","usd"],a="wiz-volume-unit",i={XAUUSD:100,XAGUSD:5e3,XPTUSD:100,XPDUSD:100},s={kind:"demo"},l={saxo:"lots",exness:"lots",vantage:"lots",ig:"lots",oanda:"units",alpaca:"units",ibkr:"units",coinbase:"units",kraken:"units",okx:"units"};function c(e){var t;return"demo"===e.kind?"lots":null!=(t=l[e.broker.toLowerCase()])?t:"units"}function u(e){return"".concat("wiz-volume-unit",":").concat("demo"===e.kind?"demo":e.broker.toLowerCase())}function d(e){return"string"==typeof e&&o.includes(e)}function p(e,t){let n=e.toUpperCase().replace("/","").replace(/-USD[T]?$/,"");if(i[n])return"metal";let o=String(t||"").toLowerCase();if("commodity"===o||"metal"===o)return"metal";switch((0,r.e3)(n,o?{type:o}:void 0)){case"CRYPTO":return"crypto";case"FOREX":return"forex";case"INDICES":case"INDEX":return"index";case"FUTURES":return"futures";default:return"stock"}}function h(e){return"forex"===e||"metal"===e||"index"===e}function f(e,t,n){var r,o;let a=null==(r=n.spec)?void 0:r.contractSize;if("number"==typeof a&&Number.isFinite(a)&&a>0)return a;if(!n.paper||!h(t))return null;let s=e.toUpperCase().replace("/","");return"metal"===t?null!=(o=i[s])?o:null:"forex"===t?1e5:1}function g(e,t){return e*t}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return"usd"===t?"USD":"lots"===t?1===n?"lot":"lots":"crypto"===e?1===n?"coin":"coins":"stock"===e?1===n?"share":"shares":"futures"===e?1===n?"contract":"contracts":"units"}let y=(e,t)=>e.toLocaleString("en-US",{maximumFractionDigits:t});function b(e,t){var n,r,o;if(null==e||!Number.isFinite(e))return"—";let a=(n=t.unit,r=t.cls,o=t.size,"lots"!==n||h(r)&&null!=o?n:"units");if("usd"===a){let e=t.notional;return null!=e&&Number.isFinite(e)?e.toLocaleString("en-US",{style:"currency",currency:"USD",maximumFractionDigits:2}):"Unavailable"}if("lots"===a&&t.size){let n=e/t.size;return"".concat(y(n,n<1?4:2)," ").concat(m(t.cls,"lots",n))}return"".concat(y(e,"crypto"===t.cls?6:4)," ").concat(m(t.cls,"units",e))}function x(e,t){return null!=e&&Number.isFinite(e)?Math.round(e/("number"==typeof t&&Number.isFinite(t)&&t>=1?t:1)*100)/100:null}},32965:(e,t,n)=>{n.d(t,{FO:()=>m,Is:()=>y,Q9:()=>g,Y1:()=>f,f3:()=>x,mm:()=>b,vx:()=>h});var r=n(79731),o=n(15182),a=n(17433);let i={filled:!0,resting:!0,closed:!0,reduced:!0,cancelled:!0,expired:!0,levels_changed:!0,refused:!0},s={app:!0,chat:!0,mcp:!0,recurring:!0,pack:!0,tradingview:!0,grid:!0},l={BUY:!0,SELL:!0},c={market:!0,limit:!0},u=(e,t)=>
1"string"==typeof t&&Object.prototype.hasOwnProperty.call(e,t),d=e=>"number"==typeof e&&Number.isFinite(e)?e:null,p=e=>"string"==typeof e&&Number.isFinite(Date.parse(e))?e:null;function h(e){return u(o.i,e)?e:null}function f(e){return o.i[e]}function g(e){if(!e||"object"!=typeof e||!(0,r.cI)(e.orderKey)||!u(i,e.outcome)||"paper"!==e.mode||"paper:default"!==e.accountId||!u(s,e.surface)||"string"!=typeof e.symbol||!e.symbol.trim())return null;let t=p(e.at);if(null==t)return null;let n=e.outcome,o=function(e){if(!e||"object"!=typeof e)return null;let t=h(e.code);return t?{code:t,upgrade:!0===e.upgrade}:null}(e.refusal);return"refused"!==n||o?{orderKey:e.orderKey,outcome:n,replayed:!0===e.replayed,mode:"paper",accountId:"paper:default",surface:e.surface,tradeId:"string"==typeof e.tradeId&&e.tradeId?e.tradeId:null,symbol:e.symbol.trim().toUpperCase(),side:u(l,e.side)?e.side:null,type:u(c,e.type)?e.type:null,units:d(e.units),price:d(e.price),orderValueUsd:d(e.orderValueUsd),realisedPnlUsd:d(e.realisedPnlUsd),cashAfterUsd:d(e.cashAfterUsd),quote:function(e){if(!e||"object"!=typeof e)return null;let t=d(e.price),n=p(e.at),r=d(e.ageMs),o="quote"===e.source||"snapshot"===e.source?e.source:null;return null==t||t<=0||null==n||null==o||null==r||r<0?null:{price:t,at:n,source:o,ageMs:r}}(e.quote),convertedFromLimit:!0===e.convertedFromLimit,refusal:o,at:t}:null}function m(e){switch(e.outcome){case"filled":return"SELL"===e.side?"Sold":"Bought";case"resting":return"Order placed";case"closed":return"Closed";case"reduced":return"Reduced";case"cancelled":return"Order cancelled";case"expired":return"Order expired";case"levels_changed":return"Levels changed";case"refused":return e.tradeId?"Not changed":"Not placed"}}function y(e,t){return"etf"===String(null!=t?t:"").trim().toLowerCase()?"etf":(0,a.XJ)(e,t)}function b(e,t){return null!=e&&e>=0&&e>r.rI[t]}function x(e){let t=p(e);return null==t?null:"".concat(new Date(t).toISOString().slice(11,16)," UTC")}},38409:(e,t,n)=>{n.r(t),n.d(t,{checkWizAction:()=>s,default:()=>c,runWizAction:()=>l});var r=n(1797);let o=new Map;function a(e){return JSON.stringify(e)}function i(e,t){let n={..."unknown"!==t.next&&t.code?{code:t.code}:{},..."unknown"!==t.next&&t.receipt?{receipt:t.receipt}:{}};return"done"===t.next?(o.delete(a(e)),{ok:!0,message:t.message,resultText:t.resultText,resultHref:t.resultHref,...n}):"unknown"===t.next?{ok:!1,unknown:!0,message:t.message}:(t.keepKey||o.delete(a(e)),{ok:!1,message:t.message,upgrade:!0===t.upgrade,needsAuth:!0===t.signIn,...n,...t.limit?{limit:t.limit}:{}})}async function s(e){let t=o.get(a(e));if(!t)return{ok:!1,message:"Nothing to check. Confirm again when you’re ready."};let n=(0,r.NK)(await (0,r.tD)(t.key));return n?i(e,n):{ok:!1,unknown:!0,message:"Check again in a moment."}}async function l(e){let t=(0,r.V)(await (0,r.$f)(e,function(e){let t=a(e),n=Date.now();for(let[e,t]of o)n-t.at>864e5&&o.delete(e);let i=o.get(t);if(i)return i.key;let s=(0,r.s6)();return o.set(t,{key:s,at:n}),s}(e)));return t?"unknown"!==t.next?i(e,t):s(e):{ok:!1,unknown:!0,message:"Check again in a moment."}}let c=l},48434:(e,t,n)=>{function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{numeric:t,alignRight:n,invalid:r,compact:o}=e;return["w-full rounded-lg border bg-theme-tertiary text-theme-primary","placeholder:text-theme-tertiary outline-none","text-[16px] sm:text-[13px]",o?"px-2.5 py-2":"px-3 py-2.5",t?"font-mono tabular-nums":"",n?"text-right":"","transition-colors duration-150 motion-reduce:transition-none",r?"border-[#FF3B30]/45 focus:border-[#FF3B30]/70":"border-transparent focus:border-[color:var(--wiz-focus)]","disabled:opacity-50 disabled:cursor-not-allowed"].filter(Boolean).join(" ")}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{invalid:t,compact:n}=e;return["flex items-center gap-1.5 rounded-lg border bg-theme-tertiary",n?"px-2.5 py-2":"px-3 py-2.5","transition-colors duration-150 motion-reduce:transition-none",t?"border-[#FF3B30]/45 focus-within:border-[#FF3B30]/70":"border-transparent focus-within:border-[color:var(--wiz-focus)]"].filter(
1Boolean).join(" ")}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{numeric:t,alignRight:n}=e;return["tw-field-editor w-full min-w-0 self-stretch bg-transparent p-0","text-[16px] sm:text-[13px] leading-normal text-theme-primary","placeholder:text-theme-tertiary",t?"font-mono tabular-nums":"",n?"text-right":""].filter(Boolean).join(" ")}n.d(t,{$b:()=>r,hd:()=>o,ty:()=>a})},79731:(e,t,n)=>{n.d(t,{PM:()=>o,cI:()=>s,iT:()=>a,rI:()=>r,zg:()=>c});let r={crypto:12e4,forex:3e5,metal:3e5,futures:3e5,stock:12e5,etf:12e5,index:12e5,unknown:0},o=1,a=30,i=/^[A-Za-z0-9_-]{16,80}$/;function s(e){return"string"==typeof e&&i.test(e)}let l=/^[A-Z0-9.=\-/]{1,20}$/;function c(e){return"string"==typeof e&&l.test(e.trim().toUpperCase())}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.