@massive.com/client-js 9.1.0 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- import Y from"axios";import En from"axios";var Q="https://api.massive.com".replace(/\/+$/,"");var Cn=class{constructor(a,e=Q,i=En){this.basePath=e;this.axios=i;a&&(this.configuration=a,this.basePath=a.basePath??e)}},Sn=class extends Error{constructor(e,i){super(i);this.field=e;this.name="RequiredError"}},H={};var z="https://example.com",se=function(c,a,e){if(e==null)throw new Sn(a,`Required parameter ${a} was null or undefined when calling ${c}.`)},j=async function(c,a,e){if(e&&e.apiKey){let i=typeof e.apiKey=="function"?await e.apiKey(a):await e.apiKey;c[a]=i}};function In(c,a,e=""){a!=null&&(typeof a=="object"?Array.isArray(a)?a.forEach(i=>In(c,i,e)):Object.keys(a).forEach(i=>In(c,a[i],`${e}${e!==""?".":""}${i}`)):c.has(e)?c.append(e,a):c.set(e,a))}var K=function(c,...a){let e=new URLSearchParams(c.search);In(e,a),c.search=e.toString()};var N=function(c){return c.pathname+c.search+c.hash},$=function(c,a,e,i){return(n=a,r=e)=>{let s={...c.options,url:(n.defaults.baseURL?"":i?.basePath??r)+c.url};return n.request(s)}};var Dn=(s=>(s.Q="Q",s.T="T",s.Qa="QA",s.Ta="TA",s.Y="Y",s.Ya="YA",s))(Dn||{}),Qn=(a=>(a.Ok="OK",a))(Qn||{}),Hn=(a=>(a.Error="ERROR",a))(Hn||{}),zn=(a=>(a.Ok="OK",a))(zn||{}),jn=(a=>(a.Ok="OK",a))(jn||{}),Kn=(a=>(a.Ok="OK",a))(Kn||{}),Nn=(a=>(a.Ok="OK",a))(Nn||{}),$n=(a=>(a.Ok="OK",a))($n||{}),Xn=(a=>(a.Ok="OK",a))(Xn||{}),Wn=(a=>(a.Ok="OK",a))(Wn||{}),Yn=(a=>(a.Ok="OK",a))(Yn||{}),Jn=(a=>(a.Ok="OK",a))(Jn||{}),Zn=(a=>(a.Ok="OK",a))(Zn||{}),Ln=(a=>(a.Ok="OK",a))(Ln||{}),er=(a=>(a.Ok="OK",a))(er||{}),nr=(a=>(a.Ok="OK",a))(nr||{}),rr=(a=>(a.Ok="OK",a))(rr||{}),tr=(a=>(a.Ok="OK",a))(tr||{}),sr=(a=>(a.Ok="OK",a))(sr||{}),ir=(a=>(a.Ok="OK",a))(ir||{}),ar=(a=>(a.Ok="OK",a))(ar||{}),or=(r=>(r.PreOpen="pre_open",r.Open="open",r.Close="close",r.Pause="pause",r.PostClosePreOpen="post_close_pre_open",r))(or||{}),gr=(r=>(r.PreOpen="pre_open",r.Open="open",r.Close="close",r.Pause="pause",r.PostClosePreOpen="post_close_pre_open",r))(gr||{}),ur=(e=>(e.ExchangeOnly="exchange_only",e.ExchangeAndOtc="exchange_and_otc",e))(ur||{}),dr=(a=>(a.Ok="OK",a))(dr||{}),lr=(a=>(a.Ok="OK",a))(lr||{}),cr=(a=>(a.Ok="OK",a))(cr||{}),mr=(a=>(a.Ok="OK",a))(mr||{}),pr=(e=>(e.Delayed="DELAYED",e.RealTime="REAL-TIME",e))(pr||{}),fr=(a=>(a.Indices="indices",a))(fr||{}),br=(i=>(i.Put="put",i.Call="call",i.Other="other",i))(br||{}),hr=(i=>(i.American="american",i.European="european",i.Bermudan="bermudan",i))(hr||{}),Rr=(e=>(e.Delayed="DELAYED",e.RealTime="REAL-TIME",e))(Rr||{}),_r=(e=>(e.Delayed="DELAYED",e.RealTime="REAL-TIME",e))(_r||{}),xr=(a=>(a.Ok="OK",a))(xr||{}),yr=(n=>(n.Stocks="stocks",n.Crypto="crypto",n.Options="options",n.Fx="fx",n))(yr||{}),Ar=(i=>(i.Put="put",i.Call="call",i.Other="other",i))(Ar||{}),Vr=(i=>(i.American="american",i.European="european",i.Bermudan="bermudan",i))(Vr||{}),Or=(e=>(e.Delayed="DELAYED",e.RealTime="REAL-TIME",e))(Or||{}),Cr=(r=>(r.Stocks="stocks",r.Options="options",r.Fx="fx",r.Crypto="crypto",r.Indices="indices",r))(Cr||{}),Sr=(i=>(i.Put="put",i.Call="call",i.Other="other",i))(Sr||{}),Pr=(i=>(i.American="american",i.European="european",i.Bermudan="bermudan",i))(Pr||{}),wr=(e=>(e.Delayed="DELAYED",e.RealTime="REAL-TIME",e))(wr||{}),kr=(e=>(e.Delayed="DELAYED",e.RealTime="REAL-TIME",e))(kr||{}),Ir=(e=>(e.Delayed="DELAYED",e.RealTime="REAL-TIME",e))(Ir||{}),vr=(a=>(a.Ok="OK",a))(vr||{}),qr=(a=>(a.Ok="OK",a))(qr||{}),Fr=(a=>(a.Ok="OK",a))(Fr||{}),Tr=(a=>(a.Ok="OK",a))(Tr||{}),Br=(a=>(a.Ok="OK",a))(Br||{}),Gr=(a=>(a.Ok="OK",a))(Gr||{}),Ur=(a=>(a.Ok="OK",a))(Ur||{}),Mr=(e=>(e.Us="us",e.Global="global",e))(Mr||{}),Er=(r=>(r.Stocks="stocks",r.Crypto="crypto",r.Fx="fx",r.Otc="otc",r.Indices="indices",r))(Er||{}),Dr=(a=>(a.Ok="OK",a))(Dr||{}),Qr=(n=>(n.Stocks="stocks",n.Options="options",n.Crypto="crypto",n.Fx="fx",n))(Qr||{}),Hr=(i=>(i.Trade="trade",i.Bbo="bbo",i.Nbbo="nbbo",i))(Hr||{}),zr=(o=>(o.SaleCondition="sale_condition",o.QuoteCondition="quote_condition",o.SipGeneratedFlag="sip_generated_flag",o.FinancialStatusIndicator="financial_status_indicator",o.ShortSaleRestrictionIndicator="short_sale_restriction_indicator",o.SettlementCondition="settlement_condition",o.MarketCondition="market_condition",o.TradeThruExempt="trade_thru_exempt",o))(zr||{}),jr=(n=>(n.Cd="CD",n.Sc="SC",n.Lt="LT",n.St="ST",n))(jr||{}),Kr=(r=>(r.Stocks="stocks",r.Options="options",r.Crypto="crypto",r.Fx="fx",r.Futures="futures",r))(Kr||{}),Nr=(e=>(e.Us="us",e.Global="global",e))(Nr||{}),$r=(i=>(i.Exchange="exchange",i.Trf="TRF",i.Sip="SIP",i))($r||{}),Xr=(t=>(t.DirectListingProcess="direct_listing_process",t.History="history",t.New="new",t.Pending="pending",t.Postponed="postponed",t.Rumor="rumor",t.Withdrawn="withdrawn",t))(Xr||{}),Wr=(i=>(i.Positive="positive",i.Neutral="neutral",i.Negative="negative",i))(Wr||{}),Yr=(i=>(i.American="american",i.European="european",i.Bermudan="bermudan",i))(Yr||{}),Jr=(r=>(r.Stocks="stocks",r.Options="options",r.Crypto="crypto",r.Fx="fx",r.Indices="indices",r))(Jr||{}),Zr=(e=>(e.Us="us",e.Global="global",e))(Zr||{}),Lr=(e=>(e.Us="us",e.Global="global",e))(Lr||{}),et=(r=>(r.Stocks="stocks",r.Crypto="crypto",r.Fx="fx",r.Otc="otc",r.Indices="indices",r))(et||{}),nt=(n=>(n.String="string",n.Int="int",n.Int64="int64",n.Float64="float64",n))(nt||{}),rt=function(c){return{deprecatedGetCryptoSnapshotTickerBook:async(a,e={})=>{se("deprecatedGetCryptoSnapshotTickerBook","ticker",a);let i="/v2/snapshot/locale/global/markets/crypto/tickers/{ticker}/book".replace("{ticker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},deprecatedGetHistoricCryptoTrades:async(a,e,i,n,r,s={})=>{se("deprecatedGetHistoricCryptoTrades","from",a),se("deprecatedGetHistoricCryptoTrades","to",e),se("deprecatedGetHistoricCryptoTrades","date",i);let t="/v1/historic/crypto/{from}/{to}/{date}".replace("{from}",encodeURIComponent(String(a))).replace("{to}",encodeURIComponent(String(e))).replace("{date}",encodeURIComponent(String(i))),o=new URL(t,z),g;c&&(g=c.baseOptions);let u={method:"GET",...g,...s},d={},l={};await j(l,"apiKey",c),n!==void 0&&(l.offset=n),r!==void 0&&(l.limit=r),K(o,l);let m=g&&g.headers?g.headers:{};return u.headers={...d,...m,...s.headers},{url:N(o),options:u}},deprecatedGetHistoricForexQuotes:async(a,e,i,n,r,s={})=>{se("deprecatedGetHistoricForexQuotes","from",a),se("deprecatedGetHistoricForexQuotes","to",e),se("deprecatedGetHistoricForexQuotes","date",i);let t="/v1/historic/forex/{from}/{to}/{date}".replace("{from}",encodeURIComponent(String(a))).replace("{to}",encodeURIComponent(String(e))).replace("{date}",encodeURIComponent(String(i))),o=new URL(t,z),g;c&&(g=c.baseOptions);let u={method:"GET",...g,...s},d={},l={};await j(l,"apiKey",c),n!==void 0&&(l.offset=n),r!==void 0&&(l.limit=r),K(o,l);let m=g&&g.headers?g.headers:{};return u.headers={...d,...m,...s.headers},{url:N(o),options:u}},deprecatedGetHistoricStocksQuotes:async(a,e,i,n,r,s,t={})=>{se("deprecatedGetHistoricStocksQuotes","ticker",a),se("deprecatedGetHistoricStocksQuotes","date",e);let o="/v2/ticks/stocks/nbbo/{ticker}/{date}".replace("{ticker}",encodeURIComponent(String(a))).replace("{date}",encodeURIComponent(String(e))),g=new URL(o,z),u;c&&(u=c.baseOptions);let d={method:"GET",...u,...t},l={},m={};await j(m,"apiKey",c),i!==void 0&&(m.timestamp=i),n!==void 0&&(m.timestampLimit=n),r!==void 0&&(m.reverse=r),s!==void 0&&(m.limit=s),K(g,m);let f=u&&u.headers?u.headers:{};return d.headers={...l,...f,...t.headers},{url:N(g),options:d}},deprecatedGetHistoricStocksTrades:async(a,e,i,n,r,s,t={})=>{se("deprecatedGetHistoricStocksTrades","ticker",a),se("deprecatedGetHistoricStocksTrades","date",e);let o="/v2/ticks/stocks/trades/{ticker}/{date}".replace("{ticker}",encodeURIComponent(String(a))).replace("{date}",encodeURIComponent(String(e))),g=new URL(o,z),u;c&&(u=c.baseOptions);let d={method:"GET",...u,...t},l={},m={};await j(m,"apiKey",c),i!==void 0&&(m.timestamp=i),n!==void 0&&(m.timestampLimit=n),r!==void 0&&(m.reverse=r),s!==void 0&&(m.limit=s),K(g,m);let f=u&&u.headers?u.headers:{};return d.headers={...l,...f,...t.headers},{url:N(g),options:d}},getBenzingaV1AnalystInsights:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S={})=>{let ae="/benzinga/v1/analyst-insights",ce=new URL(ae,z),ue;c&&(ue=c.baseOptions);let de={method:"GET",...ue,...S},me={},re={};await j(re,"apiKey",c),a!==void 0&&(re.date=a),e!==void 0&&(re["date.any_of"]=e),i!==void 0&&(re["date.gt"]=i),n!==void 0&&(re["date.gte"]=n),r!==void 0&&(re["date.lt"]=r),s!==void 0&&(re["date.lte"]=s),t!==void 0&&(re.ticker=t),o!==void 0&&(re["ticker.any_of"]=o),g!==void 0&&(re["ticker.gt"]=g),u!==void 0&&(re["ticker.gte"]=u),d!==void 0&&(re["ticker.lt"]=d),l!==void 0&&(re["ticker.lte"]=l),m!==void 0&&(re.last_updated=m),f!==void 0&&(re["last_updated.gt"]=f),p!==void 0&&(re["last_updated.gte"]=p),b!==void 0&&(re["last_updated.lt"]=b),R!==void 0&&(re["last_updated.lte"]=R),_!==void 0&&(re.firm=_),x!==void 0&&(re["firm.any_of"]=x),h!==void 0&&(re["firm.gt"]=h),A!==void 0&&(re["firm.gte"]=A),y!==void 0&&(re["firm.lt"]=y),V!==void 0&&(re["firm.lte"]=V),P!==void 0&&(re.rating_action=P),O!==void 0&&(re["rating_action.any_of"]=O),k!==void 0&&(re["rating_action.gt"]=k),w!==void 0&&(re["rating_action.gte"]=w),q!==void 0&&(re["rating_action.lt"]=q),I!==void 0&&(re["rating_action.lte"]=I),F!==void 0&&(re.benzinga_firm_id=F),G!==void 0&&(re["benzinga_firm_id.any_of"]=G),v!==void 0&&(re["benzinga_firm_id.gt"]=v),C!==void 0&&(re["benzinga_firm_id.gte"]=C),T!==void 0&&(re["benzinga_firm_id.lt"]=T),D!==void 0&&(re["benzinga_firm_id.lte"]=D),B!==void 0&&(re.benzinga_rating_id=B),W!==void 0&&(re["benzinga_rating_id.any_of"]=W),J!==void 0&&(re["benzinga_rating_id.gt"]=J),Z!==void 0&&(re["benzinga_rating_id.gte"]=Z),ee!==void 0&&(re["benzinga_rating_id.lt"]=ee),L!==void 0&&(re["benzinga_rating_id.lte"]=L),U!==void 0&&(re.limit=U),E!==void 0&&(re.sort=E),K(ce,re);let te=ue&&ue.headers?ue.headers:{};return de.headers={...me,...te,...S.headers},{url:N(ce),options:de}},getBenzingaV1Analysts:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w={})=>{let q="/benzinga/v1/analysts",I=new URL(q,z),F;c&&(F=c.baseOptions);let G={method:"GET",...F,...w},v={},C={};await j(C,"apiKey",c),a!==void 0&&(C.benzinga_id=a),e!==void 0&&(C["benzinga_id.any_of"]=e),i!==void 0&&(C["benzinga_id.gt"]=i),n!==void 0&&(C["benzinga_id.gte"]=n),r!==void 0&&(C["benzinga_id.lt"]=r),s!==void 0&&(C["benzinga_id.lte"]=s),t!==void 0&&(C.benzinga_firm_id=t),o!==void 0&&(C["benzinga_firm_id.any_of"]=o),g!==void 0&&(C["benzinga_firm_id.gt"]=g),u!==void 0&&(C["benzinga_firm_id.gte"]=u),d!==void 0&&(C["benzinga_firm_id.lt"]=d),l!==void 0&&(C["benzinga_firm_id.lte"]=l),m!==void 0&&(C.firm_name=m),f!==void 0&&(C["firm_name.any_of"]=f),p!==void 0&&(C["firm_name.gt"]=p),b!==void 0&&(C["firm_name.gte"]=b),R!==void 0&&(C["firm_name.lt"]=R),_!==void 0&&(C["firm_name.lte"]=_),x!==void 0&&(C.full_name=x),h!==void 0&&(C["full_name.any_of"]=h),A!==void 0&&(C["full_name.gt"]=A),y!==void 0&&(C["full_name.gte"]=y),V!==void 0&&(C["full_name.lt"]=V),P!==void 0&&(C["full_name.lte"]=P),O!==void 0&&(C.limit=O),k!==void 0&&(C.sort=k),K(I,C);let T=F&&F.headers?F.headers:{};return G.headers={...v,...T,...w.headers},{url:N(I),options:G}},getBenzingaV1ConsensusRatings:async(a,e,i,n,r,s,t,o,g={})=>{se("getBenzingaV1ConsensusRatings","ticker",a);let u="/benzinga/v1/consensus-ratings/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),e!==void 0&&(p.date=e),i!==void 0&&(p["date.any_of"]=i),n!==void 0&&(p["date.gt"]=n),r!==void 0&&(p["date.gte"]=r),s!==void 0&&(p["date.lt"]=s),t!==void 0&&(p["date.lte"]=t),o!==void 0&&(p.limit=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getBenzingaV1Earnings:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he={})=>{let Re="/benzinga/v1/earnings",_e=new URL(Re,z),xe;c&&(xe=c.baseOptions);let oe={method:"GET",...xe,...he},ye={},le={};await j(le,"apiKey",c),a!==void 0&&(le.date=a),e!==void 0&&(le["date.any_of"]=e),i!==void 0&&(le["date.gt"]=i),n!==void 0&&(le["date.gte"]=n),r!==void 0&&(le["date.lt"]=r),s!==void 0&&(le["date.lte"]=s),t!==void 0&&(le.ticker=t),o!==void 0&&(le["ticker.any_of"]=o),g!==void 0&&(le["ticker.gt"]=g),u!==void 0&&(le["ticker.gte"]=u),d!==void 0&&(le["ticker.lt"]=d),l!==void 0&&(le["ticker.lte"]=l),m!==void 0&&(le.importance=m),f!==void 0&&(le["importance.any_of"]=f),p!==void 0&&(le["importance.gt"]=p),b!==void 0&&(le["importance.gte"]=b),R!==void 0&&(le["importance.lt"]=R),_!==void 0&&(le["importance.lte"]=_),x!==void 0&&(le.last_updated=x),h!==void 0&&(le["last_updated.any_of"]=h),A!==void 0&&(le["last_updated.gt"]=A),y!==void 0&&(le["last_updated.gte"]=y),V!==void 0&&(le["last_updated.lt"]=V),P!==void 0&&(le["last_updated.lte"]=P),O!==void 0&&(le.date_status=O),k!==void 0&&(le["date_status.any_of"]=k),w!==void 0&&(le["date_status.gt"]=w),q!==void 0&&(le["date_status.gte"]=q),I!==void 0&&(le["date_status.lt"]=I),F!==void 0&&(le["date_status.lte"]=F),G!==void 0&&(le.eps_surprise_percent=G),v!==void 0&&(le["eps_surprise_percent.any_of"]=v),C!==void 0&&(le["eps_surprise_percent.gt"]=C),T!==void 0&&(le["eps_surprise_percent.gte"]=T),D!==void 0&&(le["eps_surprise_percent.lt"]=D),B!==void 0&&(le["eps_surprise_percent.lte"]=B),W!==void 0&&(le.revenue_surprise_percent=W),J!==void 0&&(le["revenue_surprise_percent.any_of"]=J),Z!==void 0&&(le["revenue_surprise_percent.gt"]=Z),ee!==void 0&&(le["revenue_surprise_percent.gte"]=ee),L!==void 0&&(le["revenue_surprise_percent.lt"]=L),U!==void 0&&(le["revenue_surprise_percent.lte"]=U),E!==void 0&&(le.fiscal_year=E),S!==void 0&&(le["fiscal_year.any_of"]=S),ae!==void 0&&(le["fiscal_year.gt"]=ae),ce!==void 0&&(le["fiscal_year.gte"]=ce),ue!==void 0&&(le["fiscal_year.lt"]=ue),de!==void 0&&(le["fiscal_year.lte"]=de),me!==void 0&&(le.fiscal_period=me),re!==void 0&&(le["fiscal_period.any_of"]=re),te!==void 0&&(le["fiscal_period.gt"]=te),fe!==void 0&&(le["fiscal_period.gte"]=fe),pe!==void 0&&(le["fiscal_period.lt"]=pe),be!==void 0&&(le["fiscal_period.lte"]=be),ie!==void 0&&(le.limit=ie),M!==void 0&&(le.sort=M),K(_e,le);let Ae=xe&&xe.headers?xe.headers:{};return oe.headers={...ye,...Ae,...he.headers},{url:N(_e),options:oe}},getBenzingaV1Firms:async(a,e,i,n,r,s,t,o,g={})=>{let u="/benzinga/v1/firms",d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),a!==void 0&&(p.benzinga_id=a),e!==void 0&&(p["benzinga_id.any_of"]=e),i!==void 0&&(p["benzinga_id.gt"]=i),n!==void 0&&(p["benzinga_id.gte"]=n),r!==void 0&&(p["benzinga_id.lt"]=r),s!==void 0&&(p["benzinga_id.lte"]=s),t!==void 0&&(p.limit=t),o!==void 0&&(p.sort=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getBenzingaV1Guidance:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae={})=>{let ce="/benzinga/v1/guidance",ue=new URL(ce,z),de;c&&(de=c.baseOptions);let me={method:"GET",...de,...ae},re={},te={};await j(te,"apiKey",c),a!==void 0&&(te.date=a),e!==void 0&&(te["date.any_of"]=e),i!==void 0&&(te["date.gt"]=i),n!==void 0&&(te["date.gte"]=n),r!==void 0&&(te["date.lt"]=r),s!==void 0&&(te["date.lte"]=s),t!==void 0&&(te.ticker=t),o!==void 0&&(te["ticker.any_of"]=o),g!==void 0&&(te["ticker.gt"]=g),u!==void 0&&(te["ticker.gte"]=u),d!==void 0&&(te["ticker.lt"]=d),l!==void 0&&(te["ticker.lte"]=l),m!==void 0&&(te.positioning=m),f!==void 0&&(te["positioning.any_of"]=f),p!==void 0&&(te["positioning.gt"]=p),b!==void 0&&(te["positioning.gte"]=b),R!==void 0&&(te["positioning.lt"]=R),_!==void 0&&(te["positioning.lte"]=_),x!==void 0&&(te.importance=x),h!==void 0&&(te["importance.any_of"]=h),A!==void 0&&(te["importance.gt"]=A),y!==void 0&&(te["importance.gte"]=y),V!==void 0&&(te["importance.lt"]=V),P!==void 0&&(te["importance.lte"]=P),O!==void 0&&(te.last_updated=O),k!==void 0&&(te["last_updated.any_of"]=k),w!==void 0&&(te["last_updated.gt"]=w),q!==void 0&&(te["last_updated.gte"]=q),I!==void 0&&(te["last_updated.lt"]=I),F!==void 0&&(te["last_updated.lte"]=F),G!==void 0&&(te.fiscal_year=G),v!==void 0&&(te["fiscal_year.any_of"]=v),C!==void 0&&(te["fiscal_year.gt"]=C),T!==void 0&&(te["fiscal_year.gte"]=T),D!==void 0&&(te["fiscal_year.lt"]=D),B!==void 0&&(te["fiscal_year.lte"]=B),W!==void 0&&(te.fiscal_period=W),J!==void 0&&(te["fiscal_period.any_of"]=J),Z!==void 0&&(te["fiscal_period.gt"]=Z),ee!==void 0&&(te["fiscal_period.gte"]=ee),L!==void 0&&(te["fiscal_period.lt"]=L),U!==void 0&&(te["fiscal_period.lte"]=U),E!==void 0&&(te.limit=E),S!==void 0&&(te.sort=S),K(ue,te);let fe=de&&de.headers?de.headers:{};return me.headers={...re,...fe,...ae.headers},{url:N(ue),options:me}},getBenzingaV1News:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F={})=>{let G="/benzinga/v1/news",v=new URL(G,z),C;c&&(C=c.baseOptions);let T={method:"GET",...C,...F},D={},B={};await j(B,"apiKey",c),a!==void 0&&(B.published=a),e!==void 0&&(B["published.any_of"]=e),i!==void 0&&(B["published.gt"]=i),n!==void 0&&(B["published.gte"]=n),r!==void 0&&(B["published.lt"]=r),s!==void 0&&(B["published.lte"]=s),t!==void 0&&(B.last_updated=t),o!==void 0&&(B["last_updated.any_of"]=o),g!==void 0&&(B["last_updated.gt"]=g),u!==void 0&&(B["last_updated.gte"]=u),d!==void 0&&(B["last_updated.lt"]=d),l!==void 0&&(B["last_updated.lte"]=l),m!==void 0&&(B.tickers=m),f!==void 0&&(B["tickers.all_of"]=f),p!==void 0&&(B["tickers.any_of"]=p),b!==void 0&&(B.channels=b),R!==void 0&&(B["channels.all_of"]=R),_!==void 0&&(B["channels.any_of"]=_),x!==void 0&&(B.tags=x),h!==void 0&&(B["tags.all_of"]=h),A!==void 0&&(B["tags.any_of"]=A),y!==void 0&&(B.author=y),V!==void 0&&(B["author.any_of"]=V),P!==void 0&&(B["author.gt"]=P),O!==void 0&&(B["author.gte"]=O),k!==void 0&&(B["author.lt"]=k),w!==void 0&&(B["author.lte"]=w),q!==void 0&&(B.limit=q),I!==void 0&&(B.sort=I),K(v,B);let W=C&&C.headers?C.headers:{};return T.headers={...D,...W,...F.headers},{url:N(v),options:T}},getBenzingaV1Ratings:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie={})=>{let M="/benzinga/v1/ratings",he=new URL(M,z),Re;c&&(Re=c.baseOptions);let _e={method:"GET",...Re,...ie},xe={},oe={};await j(oe,"apiKey",c),a!==void 0&&(oe.date=a),e!==void 0&&(oe["date.any_of"]=e),i!==void 0&&(oe["date.gt"]=i),n!==void 0&&(oe["date.gte"]=n),r!==void 0&&(oe["date.lt"]=r),s!==void 0&&(oe["date.lte"]=s),t!==void 0&&(oe.ticker=t),o!==void 0&&(oe["ticker.any_of"]=o),g!==void 0&&(oe["ticker.gt"]=g),u!==void 0&&(oe["ticker.gte"]=u),d!==void 0&&(oe["ticker.lt"]=d),l!==void 0&&(oe["ticker.lte"]=l),m!==void 0&&(oe.importance=m),f!==void 0&&(oe["importance.gt"]=f),p!==void 0&&(oe["importance.gte"]=p),b!==void 0&&(oe["importance.lt"]=b),R!==void 0&&(oe["importance.lte"]=R),_!==void 0&&(oe.last_updated=_),x!==void 0&&(oe["last_updated.gt"]=x),h!==void 0&&(oe["last_updated.gte"]=h),A!==void 0&&(oe["last_updated.lt"]=A),y!==void 0&&(oe["last_updated.lte"]=y),V!==void 0&&(oe.rating_action=V),P!==void 0&&(oe["rating_action.any_of"]=P),O!==void 0&&(oe["rating_action.gt"]=O),k!==void 0&&(oe["rating_action.gte"]=k),w!==void 0&&(oe["rating_action.lt"]=w),q!==void 0&&(oe["rating_action.lte"]=q),I!==void 0&&(oe.price_target_action=I),F!==void 0&&(oe["price_target_action.any_of"]=F),G!==void 0&&(oe["price_target_action.gt"]=G),v!==void 0&&(oe["price_target_action.gte"]=v),C!==void 0&&(oe["price_target_action.lt"]=C),T!==void 0&&(oe["price_target_action.lte"]=T),D!==void 0&&(oe.benzinga_id=D),B!==void 0&&(oe["benzinga_id.any_of"]=B),W!==void 0&&(oe["benzinga_id.gt"]=W),J!==void 0&&(oe["benzinga_id.gte"]=J),Z!==void 0&&(oe["benzinga_id.lt"]=Z),ee!==void 0&&(oe["benzinga_id.lte"]=ee),L!==void 0&&(oe.benzinga_analyst_id=L),U!==void 0&&(oe["benzinga_analyst_id.any_of"]=U),E!==void 0&&(oe["benzinga_analyst_id.gt"]=E),S!==void 0&&(oe["benzinga_analyst_id.gte"]=S),ae!==void 0&&(oe["benzinga_analyst_id.lt"]=ae),ce!==void 0&&(oe["benzinga_analyst_id.lte"]=ce),ue!==void 0&&(oe.benzinga_firm_id=ue),de!==void 0&&(oe["benzinga_firm_id.any_of"]=de),me!==void 0&&(oe["benzinga_firm_id.gt"]=me),re!==void 0&&(oe["benzinga_firm_id.gte"]=re),te!==void 0&&(oe["benzinga_firm_id.lt"]=te),fe!==void 0&&(oe["benzinga_firm_id.lte"]=fe),pe!==void 0&&(oe.limit=pe),be!==void 0&&(oe.sort=be),K(he,oe);let ye=Re&&Re.headers?Re.headers:{};return _e.headers={...xe,...ye,...ie.headers},{url:N(he),options:_e}},getBenzingaV2News:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k={})=>{let w="/benzinga/v2/news",q=new URL(w,z),I;c&&(I=c.baseOptions);let F={method:"GET",...I,...k},G={},v={};await j(v,"apiKey",c),a!==void 0&&(v.published=a),e!==void 0&&(v["published.gt"]=e),i!==void 0&&(v["published.gte"]=i),n!==void 0&&(v["published.lt"]=n),r!==void 0&&(v["published.lte"]=r),s!==void 0&&(v.channels=s),t!==void 0&&(v["channels.all_of"]=t),o!==void 0&&(v["channels.any_of"]=o),g!==void 0&&(v.tags=g),u!==void 0&&(v["tags.all_of"]=u),d!==void 0&&(v["tags.any_of"]=d),l!==void 0&&(v.author=l),m!==void 0&&(v["author.any_of"]=m),f!==void 0&&(v["author.gt"]=f),p!==void 0&&(v["author.gte"]=p),b!==void 0&&(v["author.lt"]=b),R!==void 0&&(v["author.lte"]=R),_!==void 0&&(v.stocks=_),x!==void 0&&(v["stocks.all_of"]=x),h!==void 0&&(v["stocks.any_of"]=h),A!==void 0&&(v.tickers=A),y!==void 0&&(v["tickers.all_of"]=y),V!==void 0&&(v["tickers.any_of"]=V),P!==void 0&&(v.limit=P),O!==void 0&&(v.sort=O),K(q,v);let C=I&&I.headers?I.headers:{};return F.headers={...G,...C,...k.headers},{url:N(q),options:F}},getCryptoAggregates:async(a,e,i,n,r,s,t,o,g={})=>{se("getCryptoAggregates","cryptoTicker",a),se("getCryptoAggregates","multiplier",e),se("getCryptoAggregates","timespan",i),se("getCryptoAggregates","from",n),se("getCryptoAggregates","to",r);let u="/v2/aggs/ticker/{cryptoTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{cryptoTicker}",encodeURIComponent(String(a))).replace("{multiplier}",encodeURIComponent(String(e))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(r))),d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),s!==void 0&&(p.adjusted=s),t!==void 0&&(p.sort=t),o!==void 0&&(p.limit=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getCryptoEMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m={})=>{se("getCryptoEMA","cryptoTicker",a);let f="/v1/indicators/ema/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(a))),p=new URL(f,z),b;c&&(b=c.baseOptions);let R={method:"GET",...b,...m},_={},x={};await j(x,"apiKey",c),e!==void 0&&(x.timestamp=e),i!==void 0&&(x.timespan=i),n!==void 0&&(x.window=n),r!==void 0&&(x.series_type=r),s!==void 0&&(x.expand_underlying=s),t!==void 0&&(x.order=t),o!==void 0&&(x.limit=o),g!==void 0&&(x["timestamp.gte"]=g),u!==void 0&&(x["timestamp.gt"]=u),d!==void 0&&(x["timestamp.lte"]=d),l!==void 0&&(x["timestamp.lt"]=l),K(p,x);let h=b&&b.headers?b.headers:{};return R.headers={..._,...h,...m.headers},{url:N(p),options:R}},getCryptoMACD:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p={})=>{se("getCryptoMACD","cryptoTicker",a);let b="/v1/indicators/macd/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(a))),R=new URL(b,z),_;c&&(_=c.baseOptions);let x={method:"GET",..._,...p},h={},A={};await j(A,"apiKey",c),e!==void 0&&(A.timestamp=e),i!==void 0&&(A.timespan=i),n!==void 0&&(A.short_window=n),r!==void 0&&(A.long_window=r),s!==void 0&&(A.signal_window=s),t!==void 0&&(A.series_type=t),o!==void 0&&(A.expand_underlying=o),g!==void 0&&(A.order=g),u!==void 0&&(A.limit=u),d!==void 0&&(A["timestamp.gte"]=d),l!==void 0&&(A["timestamp.gt"]=l),m!==void 0&&(A["timestamp.lte"]=m),f!==void 0&&(A["timestamp.lt"]=f),K(R,A);let y=_&&_.headers?_.headers:{};return x.headers={...h,...y,...p.headers},{url:N(R),options:x}},getCryptoOpenClose:async(a,e,i,n,r={})=>{se("getCryptoOpenClose","from",a),se("getCryptoOpenClose","to",e),se("getCryptoOpenClose","date",i);let s="/v1/open-close/crypto/{from}/{to}/{date}".replace("{from}",encodeURIComponent(String(a))).replace("{to}",encodeURIComponent(String(e))).replace("{date}",encodeURIComponent(String(i))),t=new URL(s,z),o;c&&(o=c.baseOptions);let g={method:"GET",...o,...r},u={},d={};await j(d,"apiKey",c),n!==void 0&&(d.adjusted=n),K(t,d);let l=o&&o.headers?o.headers:{};return g.headers={...u,...l,...r.headers},{url:N(t),options:g}},getCryptoRSI:async(a,e,i,n,r,s,t,o,g,u,d,l,m={})=>{se("getCryptoRSI","cryptoTicker",a);let f="/v1/indicators/rsi/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(a))),p=new URL(f,z),b;c&&(b=c.baseOptions);let R={method:"GET",...b,...m},_={},x={};await j(x,"apiKey",c),e!==void 0&&(x.timestamp=e),i!==void 0&&(x.timespan=i),n!==void 0&&(x.window=n),r!==void 0&&(x.series_type=r),s!==void 0&&(x.expand_underlying=s),t!==void 0&&(x.order=t),o!==void 0&&(x.limit=o),g!==void 0&&(x["timestamp.gte"]=g),u!==void 0&&(x["timestamp.gt"]=u),d!==void 0&&(x["timestamp.lte"]=d),l!==void 0&&(x["timestamp.lt"]=l),K(p,x);let h=b&&b.headers?b.headers:{};return R.headers={..._,...h,...m.headers},{url:N(p),options:R}},getCryptoSMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m={})=>{se("getCryptoSMA","cryptoTicker",a);let f="/v1/indicators/sma/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(a))),p=new URL(f,z),b;c&&(b=c.baseOptions);let R={method:"GET",...b,...m},_={},x={};await j(x,"apiKey",c),e!==void 0&&(x.timestamp=e),i!==void 0&&(x.timespan=i),n!==void 0&&(x.window=n),r!==void 0&&(x.series_type=r),s!==void 0&&(x.expand_underlying=s),t!==void 0&&(x.order=t),o!==void 0&&(x.limit=o),g!==void 0&&(x["timestamp.gte"]=g),u!==void 0&&(x["timestamp.gt"]=u),d!==void 0&&(x["timestamp.lte"]=d),l!==void 0&&(x["timestamp.lt"]=l),K(p,x);let h=b&&b.headers?b.headers:{};return R.headers={..._,...h,...m.headers},{url:N(p),options:R}},getCryptoSnapshotDirection:async(a,e={})=>{se("getCryptoSnapshotDirection","direction",a);let i="/v2/snapshot/locale/global/markets/crypto/{direction}".replace("{direction}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getCryptoSnapshotTicker:async(a,e={})=>{se("getCryptoSnapshotTicker","ticker",a);let i="/v2/snapshot/locale/global/markets/crypto/tickers/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getCryptoSnapshotTickers:async(a,e={})=>{let i="/v2/snapshot/locale/global/markets/crypto/tickers",n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),a&&(o.tickers=a),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getCryptoTrades:async(a,e,i,n,r,s,t,o,g,u={})=>{se("getCryptoTrades","cryptoTicker",a);let d="/v3/trades/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(a))),l=new URL(d,z),m;c&&(m=c.baseOptions);let f={method:"GET",...m,...u},p={},b={};await j(b,"apiKey",c),e!==void 0&&(b.timestamp=e),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),r!==void 0&&(b["timestamp.lte"]=r),s!==void 0&&(b["timestamp.lt"]=s),t!==void 0&&(b.order=t),o!==void 0&&(b.limit=o),g!==void 0&&(b.sort=g),K(l,b);let R=m&&m.headers?m.headers:{};return f.headers={...p,...R,...u.headers},{url:N(l),options:f}},getCryptoV1Exchanges:async(a,e={})=>{let i="/crypto/v1/exchanges",n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),a!==void 0&&(o.limit=a),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getCurrencyConversion:async(a,e,i,n,r={})=>{se("getCurrencyConversion","from",a),se("getCurrencyConversion","to",e);let s="/v1/conversion/{from}/{to}".replace("{from}",encodeURIComponent(String(a))).replace("{to}",encodeURIComponent(String(e))),t=new URL(s,z),o;c&&(o=c.baseOptions);let g={method:"GET",...o,...r},u={},d={};await j(d,"apiKey",c),i!==void 0&&(d.amount=i),n!==void 0&&(d.precision=n),K(t,d);let l=o&&o.headers?o.headers:{};return g.headers={...u,...l,...r.headers},{url:N(t),options:g}},getEtfGlobalV1Analytics:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke={})=>{let Ie="/etf-global/v1/analytics",ve=new URL(Ie,z),Ve;c&&(Ve=c.baseOptions);let qe={method:"GET",...Ve,...ke},Fe={},ge={};await j(ge,"apiKey",c),a!==void 0&&(ge.composite_ticker=a),e!==void 0&&(ge["composite_ticker.any_of"]=e),i!==void 0&&(ge["composite_ticker.gt"]=i),n!==void 0&&(ge["composite_ticker.gte"]=n),r!==void 0&&(ge["composite_ticker.lt"]=r),s!==void 0&&(ge["composite_ticker.lte"]=s),t!==void 0&&(ge.processed_date=t),o!==void 0&&(ge["processed_date.gt"]=o),g!==void 0&&(ge["processed_date.gte"]=g),u!==void 0&&(ge["processed_date.lt"]=u),d!==void 0&&(ge["processed_date.lte"]=d),l!==void 0&&(ge.effective_date=l),m!==void 0&&(ge["effective_date.gt"]=m),f!==void 0&&(ge["effective_date.gte"]=f),p!==void 0&&(ge["effective_date.lt"]=p),b!==void 0&&(ge["effective_date.lte"]=b),R!==void 0&&(ge.risk_total_score=R),_!==void 0&&(ge["risk_total_score.gt"]=_),x!==void 0&&(ge["risk_total_score.gte"]=x),h!==void 0&&(ge["risk_total_score.lt"]=h),A!==void 0&&(ge["risk_total_score.lte"]=A),y!==void 0&&(ge.reward_score=y),V!==void 0&&(ge["reward_score.gt"]=V),P!==void 0&&(ge["reward_score.gte"]=P),O!==void 0&&(ge["reward_score.lt"]=O),k!==void 0&&(ge["reward_score.lte"]=k),w!==void 0&&(ge.quant_total_score=w),q!==void 0&&(ge["quant_total_score.gt"]=q),I!==void 0&&(ge["quant_total_score.gte"]=I),F!==void 0&&(ge["quant_total_score.lt"]=F),G!==void 0&&(ge["quant_total_score.lte"]=G),v!==void 0&&(ge.quant_grade=v),C!==void 0&&(ge["quant_grade.any_of"]=C),T!==void 0&&(ge["quant_grade.gt"]=T),D!==void 0&&(ge["quant_grade.gte"]=D),B!==void 0&&(ge["quant_grade.lt"]=B),W!==void 0&&(ge["quant_grade.lte"]=W),J!==void 0&&(ge.quant_composite_technical=J),Z!==void 0&&(ge["quant_composite_technical.gt"]=Z),ee!==void 0&&(ge["quant_composite_technical.gte"]=ee),L!==void 0&&(ge["quant_composite_technical.lt"]=L),U!==void 0&&(ge["quant_composite_technical.lte"]=U),E!==void 0&&(ge.quant_composite_sentiment=E),S!==void 0&&(ge["quant_composite_sentiment.gt"]=S),ae!==void 0&&(ge["quant_composite_sentiment.gte"]=ae),ce!==void 0&&(ge["quant_composite_sentiment.lt"]=ce),ue!==void 0&&(ge["quant_composite_sentiment.lte"]=ue),de!==void 0&&(ge.quant_composite_behavioral=de),me!==void 0&&(ge["quant_composite_behavioral.gt"]=me),re!==void 0&&(ge["quant_composite_behavioral.gte"]=re),te!==void 0&&(ge["quant_composite_behavioral.lt"]=te),fe!==void 0&&(ge["quant_composite_behavioral.lte"]=fe),pe!==void 0&&(ge.quant_composite_fundamental=pe),be!==void 0&&(ge["quant_composite_fundamental.gt"]=be),ie!==void 0&&(ge["quant_composite_fundamental.gte"]=ie),M!==void 0&&(ge["quant_composite_fundamental.lt"]=M),he!==void 0&&(ge["quant_composite_fundamental.lte"]=he),Re!==void 0&&(ge.quant_composite_global=Re),_e!==void 0&&(ge["quant_composite_global.gt"]=_e),xe!==void 0&&(ge["quant_composite_global.gte"]=xe),oe!==void 0&&(ge["quant_composite_global.lt"]=oe),ye!==void 0&&(ge["quant_composite_global.lte"]=ye),le!==void 0&&(ge.quant_composite_quality=le),Ae!==void 0&&(ge["quant_composite_quality.gt"]=Ae),Oe!==void 0&&(ge["quant_composite_quality.gte"]=Oe),Ce!==void 0&&(ge["quant_composite_quality.lt"]=Ce),Se!==void 0&&(ge["quant_composite_quality.lte"]=Se),Pe!==void 0&&(ge.limit=Pe),we!==void 0&&(ge.sort=we),K(ve,ge);let Be=Ve&&Ve.headers?Ve.headers:{};return qe.headers={...Fe,...Be,...ke.headers},{url:N(ve),options:qe}},getEtfGlobalV1Constituents:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me={})=>{let re="/etf-global/v1/constituents",te=new URL(re,z),fe;c&&(fe=c.baseOptions);let pe={method:"GET",...fe,...me},be={},ie={};await j(ie,"apiKey",c),a!==void 0&&(ie.composite_ticker=a),e!==void 0&&(ie["composite_ticker.any_of"]=e),i!==void 0&&(ie["composite_ticker.gt"]=i),n!==void 0&&(ie["composite_ticker.gte"]=n),r!==void 0&&(ie["composite_ticker.lt"]=r),s!==void 0&&(ie["composite_ticker.lte"]=s),t!==void 0&&(ie.constituent_ticker=t),o!==void 0&&(ie["constituent_ticker.any_of"]=o),g!==void 0&&(ie["constituent_ticker.gt"]=g),u!==void 0&&(ie["constituent_ticker.gte"]=u),d!==void 0&&(ie["constituent_ticker.lt"]=d),l!==void 0&&(ie["constituent_ticker.lte"]=l),m!==void 0&&(ie.effective_date=m),f!==void 0&&(ie["effective_date.gt"]=f),p!==void 0&&(ie["effective_date.gte"]=p),b!==void 0&&(ie["effective_date.lt"]=b),R!==void 0&&(ie["effective_date.lte"]=R),_!==void 0&&(ie.processed_date=_),x!==void 0&&(ie["processed_date.gt"]=x),h!==void 0&&(ie["processed_date.gte"]=h),A!==void 0&&(ie["processed_date.lt"]=A),y!==void 0&&(ie["processed_date.lte"]=y),V!==void 0&&(ie.us_code=V),P!==void 0&&(ie["us_code.any_of"]=P),O!==void 0&&(ie["us_code.gt"]=O),k!==void 0&&(ie["us_code.gte"]=k),w!==void 0&&(ie["us_code.lt"]=w),q!==void 0&&(ie["us_code.lte"]=q),I!==void 0&&(ie.isin=I),F!==void 0&&(ie["isin.any_of"]=F),G!==void 0&&(ie["isin.gt"]=G),v!==void 0&&(ie["isin.gte"]=v),C!==void 0&&(ie["isin.lt"]=C),T!==void 0&&(ie["isin.lte"]=T),D!==void 0&&(ie.figi=D),B!==void 0&&(ie["figi.any_of"]=B),W!==void 0&&(ie["figi.gt"]=W),J!==void 0&&(ie["figi.gte"]=J),Z!==void 0&&(ie["figi.lt"]=Z),ee!==void 0&&(ie["figi.lte"]=ee),L!==void 0&&(ie.sedol=L),U!==void 0&&(ie["sedol.any_of"]=U),E!==void 0&&(ie["sedol.gt"]=E),S!==void 0&&(ie["sedol.gte"]=S),ae!==void 0&&(ie["sedol.lt"]=ae),ce!==void 0&&(ie["sedol.lte"]=ce),ue!==void 0&&(ie.limit=ue),de!==void 0&&(ie.sort=de),K(te,ie);let M=fe&&fe.headers?fe.headers:{};return pe.headers={...be,...M,...me.headers},{url:N(te),options:pe}},getEtfGlobalV1FundFlows:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x={})=>{let h="/etf-global/v1/fund-flows",A=new URL(h,z),y;c&&(y=c.baseOptions);let V={method:"GET",...y,...x},P={},O={};await j(O,"apiKey",c),a!==void 0&&(O.processed_date=a),e!==void 0&&(O["processed_date.gt"]=e),i!==void 0&&(O["processed_date.gte"]=i),n!==void 0&&(O["processed_date.lt"]=n),r!==void 0&&(O["processed_date.lte"]=r),s!==void 0&&(O.effective_date=s),t!==void 0&&(O["effective_date.gt"]=t),o!==void 0&&(O["effective_date.gte"]=o),g!==void 0&&(O["effective_date.lt"]=g),u!==void 0&&(O["effective_date.lte"]=u),d!==void 0&&(O.composite_ticker=d),l!==void 0&&(O["composite_ticker.any_of"]=l),m!==void 0&&(O["composite_ticker.gt"]=m),f!==void 0&&(O["composite_ticker.gte"]=f),p!==void 0&&(O["composite_ticker.lt"]=p),b!==void 0&&(O["composite_ticker.lte"]=b),R!==void 0&&(O.limit=R),_!==void 0&&(O.sort=_),K(A,O);let k=y&&y.headers?y.headers:{};return V.headers={...P,...k,...x.headers},{url:N(A),options:V}},getEtfGlobalV1Profiles:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x={})=>{let h="/etf-global/v1/profiles",A=new URL(h,z),y;c&&(y=c.baseOptions);let V={method:"GET",...y,...x},P={},O={};await j(O,"apiKey",c),a!==void 0&&(O.processed_date=a),e!==void 0&&(O["processed_date.gt"]=e),i!==void 0&&(O["processed_date.gte"]=i),n!==void 0&&(O["processed_date.lt"]=n),r!==void 0&&(O["processed_date.lte"]=r),s!==void 0&&(O.effective_date=s),t!==void 0&&(O["effective_date.gt"]=t),o!==void 0&&(O["effective_date.gte"]=o),g!==void 0&&(O["effective_date.lt"]=g),u!==void 0&&(O["effective_date.lte"]=u),d!==void 0&&(O.composite_ticker=d),l!==void 0&&(O["composite_ticker.any_of"]=l),m!==void 0&&(O["composite_ticker.gt"]=m),f!==void 0&&(O["composite_ticker.gte"]=f),p!==void 0&&(O["composite_ticker.lt"]=p),b!==void 0&&(O["composite_ticker.lte"]=b),R!==void 0&&(O.limit=R),_!==void 0&&(O.sort=_),K(A,O);let k=y&&y.headers?y.headers:{};return V.headers={...P,...k,...x.headers},{url:N(A),options:V}},getEtfGlobalV1Taxonomies:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x={})=>{let h="/etf-global/v1/taxonomies",A=new URL(h,z),y;c&&(y=c.baseOptions);let V={method:"GET",...y,...x},P={},O={};await j(O,"apiKey",c),a!==void 0&&(O.processed_date=a),e!==void 0&&(O["processed_date.gt"]=e),i!==void 0&&(O["processed_date.gte"]=i),n!==void 0&&(O["processed_date.lt"]=n),r!==void 0&&(O["processed_date.lte"]=r),s!==void 0&&(O.effective_date=s),t!==void 0&&(O["effective_date.gt"]=t),o!==void 0&&(O["effective_date.gte"]=o),g!==void 0&&(O["effective_date.lt"]=g),u!==void 0&&(O["effective_date.lte"]=u),d!==void 0&&(O.composite_ticker=d),l!==void 0&&(O["composite_ticker.any_of"]=l),m!==void 0&&(O["composite_ticker.gt"]=m),f!==void 0&&(O["composite_ticker.gte"]=f),p!==void 0&&(O["composite_ticker.lt"]=p),b!==void 0&&(O["composite_ticker.lte"]=b),R!==void 0&&(O.limit=R),_!==void 0&&(O.sort=_),K(A,O);let k=y&&y.headers?y.headers:{};return V.headers={...P,...k,...x.headers},{url:N(A),options:V}},getEvents:async(a,e,i={})=>{se("getEvents","id",a);let n="/vX/reference/tickers/{id}/events".replace("{id}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.types=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getFedV1Inflation:async(a,e,i,n,r,s,t,o,g={})=>{let u="/fed/v1/inflation",d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),a!==void 0&&(p.date=a),e!==void 0&&(p["date.any_of"]=e),i!==void 0&&(p["date.gt"]=i),n!==void 0&&(p["date.gte"]=n),r!==void 0&&(p["date.lt"]=r),s!==void 0&&(p["date.lte"]=s),t!==void 0&&(p.limit=t),o!==void 0&&(p.sort=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getFedV1InflationExpectations:async(a,e,i,n,r,s,t,o,g={})=>{let u="/fed/v1/inflation-expectations",d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),a!==void 0&&(p.date=a),e!==void 0&&(p["date.any_of"]=e),i!==void 0&&(p["date.gt"]=i),n!==void 0&&(p["date.gte"]=n),r!==void 0&&(p["date.lt"]=r),s!==void 0&&(p["date.lte"]=s),t!==void 0&&(p.limit=t),o!==void 0&&(p.sort=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getFedV1TreasuryYields:async(a,e,i,n,r,s,t,o,g={})=>{let u="/fed/v1/treasury-yields",d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),a!==void 0&&(p.date=a),e!==void 0&&(p["date.any_of"]=e),i!==void 0&&(p["date.gt"]=i),n!==void 0&&(p["date.gte"]=n),r!==void 0&&(p["date.lt"]=r),s!==void 0&&(p["date.lte"]=s),t!==void 0&&(p.limit=t),o!==void 0&&(p.sort=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getForexAggregates:async(a,e,i,n,r,s,t,o,g={})=>{se("getForexAggregates","forexTicker",a),se("getForexAggregates","multiplier",e),se("getForexAggregates","timespan",i),se("getForexAggregates","from",n),se("getForexAggregates","to",r);let u="/v2/aggs/ticker/{forexTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{forexTicker}",encodeURIComponent(String(a))).replace("{multiplier}",encodeURIComponent(String(e))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(r))),d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),s!==void 0&&(p.adjusted=s),t!==void 0&&(p.sort=t),o!==void 0&&(p.limit=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getForexEMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getForexEMA","fxTicker",a);let p="/v1/indicators/ema/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getForexMACD:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b={})=>{se("getForexMACD","fxTicker",a);let R="/v1/indicators/macd/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(a))),_=new URL(R,z),x;c&&(x=c.baseOptions);let h={method:"GET",...x,...b},A={},y={};await j(y,"apiKey",c),e!==void 0&&(y.timestamp=e),i!==void 0&&(y.timespan=i),n!==void 0&&(y.adjusted=n),r!==void 0&&(y.short_window=r),s!==void 0&&(y.long_window=s),t!==void 0&&(y.signal_window=t),o!==void 0&&(y.series_type=o),g!==void 0&&(y.expand_underlying=g),u!==void 0&&(y.order=u),d!==void 0&&(y.limit=d),l!==void 0&&(y["timestamp.gte"]=l),m!==void 0&&(y["timestamp.gt"]=m),f!==void 0&&(y["timestamp.lte"]=f),p!==void 0&&(y["timestamp.lt"]=p),K(_,y);let V=x&&x.headers?x.headers:{};return h.headers={...A,...V,...b.headers},{url:N(_),options:h}},getForexQuotes:async(a,e,i,n,r,s,t,o,g,u={})=>{se("getForexQuotes","fxTicker",a);let d="/v3/quotes/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(a))),l=new URL(d,z),m;c&&(m=c.baseOptions);let f={method:"GET",...m,...u},p={},b={};await j(b,"apiKey",c),e!==void 0&&(b.timestamp=e),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),r!==void 0&&(b["timestamp.lte"]=r),s!==void 0&&(b["timestamp.lt"]=s),t!==void 0&&(b.order=t),o!==void 0&&(b.limit=o),g!==void 0&&(b.sort=g),K(l,b);let R=m&&m.headers?m.headers:{};return f.headers={...p,...R,...u.headers},{url:N(l),options:f}},getForexRSI:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getForexRSI","fxTicker",a);let p="/v1/indicators/rsi/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getForexSMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getForexSMA","fxTicker",a);let p="/v1/indicators/sma/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getForexSnapshotDirection:async(a,e={})=>{se("getForexSnapshotDirection","direction",a);let i="/v2/snapshot/locale/global/markets/forex/{direction}".replace("{direction}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getForexSnapshotTicker:async(a,e={})=>{se("getForexSnapshotTicker","ticker",a);let i="/v2/snapshot/locale/global/markets/forex/tickers/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getForexSnapshotTickers:async(a,e={})=>{let i="/v2/snapshot/locale/global/markets/forex/tickers",n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),a&&(o.tickers=a),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getForexV1Exchanges:async(a,e={})=>{let i="/forex/v1/exchanges",n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),a!==void 0&&(o.limit=a),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getFuturesAggregates:async(a,e,i,n,r,s,t,o,g,u={})=>{se("getFuturesAggregates","ticker",a);let d="/futures/vX/aggs/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),l=new URL(d,z),m;c&&(m=c.baseOptions);let f={method:"GET",...m,...u},p={},b={};await j(b,"apiKey",c),e!==void 0&&(b.resolution=e),i!==void 0&&(b.window_start=i),n!==void 0&&(b.limit=n),r!==void 0&&(b["window_start.gte"]=r),s!==void 0&&(b["window_start.gt"]=s),t!==void 0&&(b["window_start.lte"]=t),o!==void 0&&(b["window_start.lt"]=o),g!==void 0&&(b.sort=g),K(l,b);let R=m&&m.headers?m.headers:{};return f.headers={...p,...R,...u.headers},{url:N(l),options:f}},getFuturesContractDetails:async(a,e,i={})=>{se("getFuturesContractDetails","ticker",a);let n="/futures/vX/contracts/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.as_of=e instanceof Date?e.toISOString().substring(0,10):e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getFuturesContracts:async(a,e,i,n,r,s,t,o,g={})=>{let u="/futures/vX/contracts",d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),a!==void 0&&(p.product_code=a),e!==void 0&&(p.first_trade_date=e instanceof Date?e.toISOString().substring(0,10):e),i!==void 0&&(p.last_trade_date=i instanceof Date?i.toISOString().substring(0,10):i),n!==void 0&&(p.as_of=n instanceof Date?n.toISOString().substring(0,10):n),r!==void 0&&(p.active=r),s!==void 0&&(p.type=s),t!==void 0&&(p.limit=t),o!==void 0&&(p.sort=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getFuturesDailySchedules:async(a,e,i,n,r={})=>{let s="/futures/vX/schedules",t=new URL(s,z),o;c&&(o=c.baseOptions);let g={method:"GET",...o,...r},u={},d={};await j(d,"apiKey",c),a!==void 0&&(d.session_end_date=a instanceof Date?a.toISOString().substring(0,10):a),e!==void 0&&(d.trading_venue=e),i!==void 0&&(d.limit=i),n!==void 0&&(d.sort=n),K(t,d);let l=o&&o.headers?o.headers:{};return g.headers={...u,...l,...r.headers},{url:N(t),options:g}},getFuturesMarketStatuses:async(a,e,i,n,r={})=>{let s="/futures/vX/market-status",t=new URL(s,z),o;c&&(o=c.baseOptions);let g={method:"GET",...o,...r},u={},d={};await j(d,"apiKey",c),a!==void 0&&(d["product_code.any_of"]=a),e!==void 0&&(d.product_code=e),i!==void 0&&(d.limit=i),n!==void 0&&(d.sort=n),K(t,d);let l=o&&o.headers?o.headers:{};return g.headers={...u,...l,...r.headers},{url:N(t),options:g}},getFuturesProductDetails:async(a,e,i,n={})=>{se("getFuturesProductDetails","productCode",a);let r="/futures/vX/products/{product_code}".replace("{product_code}",encodeURIComponent(String(a))),s=new URL(r,z),t;c&&(t=c.baseOptions);let o={method:"GET",...t,...n},g={},u={};await j(u,"apiKey",c),e!==void 0&&(u.type=e),i!==void 0&&(u.as_of=i instanceof Date?i.toISOString().substring(0,10):i),K(s,u);let d=t&&t.headers?t.headers:{};return o.headers={...g,...d,...n.headers},{url:N(s),options:o}},getFuturesProductSchedules:async(a,e,i,n,r,s,t,o,g={})=>{se("getFuturesProductSchedules","productCode",a);let u="/futures/vX/products/{product_code}/schedules".replace("{product_code}",encodeURIComponent(String(a))),d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),e!==void 0&&(p.session_end_date=e instanceof Date?e.toISOString().substring(0,10):e),i!==void 0&&(p.limit=i),n!==void 0&&(p["session_end_date.gte"]=n instanceof Date?n.toISOString().substring(0,10):n),r!==void 0&&(p["session_end_date.gt"]=r instanceof Date?r.toISOString().substring(0,10):r),s!==void 0&&(p["session_end_date.lte"]=s instanceof Date?s.toISOString().substring(0,10):s),t!==void 0&&(p["session_end_date.lt"]=t instanceof Date?t.toISOString().substring(0,10):t),o!==void 0&&(p.sort=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getFuturesProducts:async(a,e,i,n,r,s,t,o,g,u,d,l={})=>{let m="/futures/vX/products",f=new URL(m,z),p;c&&(p=c.baseOptions);let b={method:"GET",...p,...l},R={},_={};await j(_,"apiKey",c),a!==void 0&&(_.name=a),e!==void 0&&(_.as_of=e instanceof Date?e.toISOString().substring(0,10):e),i!==void 0&&(_.trading_venue=i),n!==void 0&&(_.sector=n),r!==void 0&&(_.sub_sector=r),s!==void 0&&(_.asset_class=s),t!==void 0&&(_.asset_sub_class=t),o!==void 0&&(_.type=o),g!==void 0&&(_.limit=g),u!==void 0&&(_["name.search"]=u),d!==void 0&&(_.sort=d),K(f,_);let x=p&&p.headers?p.headers:{};return b.headers={...R,...x,...l.headers},{url:N(f),options:b}},getFuturesQuotes:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getFuturesQuotes","ticker",a);let p="/futures/vX/quotes/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.session_end_date=i),n!==void 0&&(h.limit=n),r!==void 0&&(h["timestamp.gte"]=r),s!==void 0&&(h["timestamp.gt"]=s),t!==void 0&&(h["timestamp.lte"]=t),o!==void 0&&(h["timestamp.lt"]=o),g!==void 0&&(h["session_end_date.gte"]=g),u!==void 0&&(h["session_end_date.gt"]=u),d!==void 0&&(h["session_end_date.lte"]=d),l!==void 0&&(h["session_end_date.lt"]=l),m!==void 0&&(h.sort=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getFuturesTrades:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getFuturesTrades","ticker",a);let p="/futures/vX/trades/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.session_end_date=i),n!==void 0&&(h.limit=n),r!==void 0&&(h["timestamp.gte"]=r),s!==void 0&&(h["timestamp.gt"]=s),t!==void 0&&(h["timestamp.lte"]=t),o!==void 0&&(h["timestamp.lt"]=o),g!==void 0&&(h["session_end_date.gte"]=g),u!==void 0&&(h["session_end_date.gt"]=u),d!==void 0&&(h["session_end_date.lte"]=d),l!==void 0&&(h["session_end_date.lt"]=l),m!==void 0&&(h.sort=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getFuturesVXContractsNew:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W={})=>{let J="/futures/vX/contracts-new",Z=new URL(J,z),ee;c&&(ee=c.baseOptions);let L={method:"GET",...ee,...W},U={},E={};await j(E,"apiKey",c),a!==void 0&&(E.date=a),e!==void 0&&(E["date.gt"]=e),i!==void 0&&(E["date.gte"]=i),n!==void 0&&(E["date.lt"]=n),r!==void 0&&(E["date.lte"]=r),s!==void 0&&(E.product_code=s),t!==void 0&&(E["product_code.any_of"]=t),o!==void 0&&(E["product_code.gt"]=o),g!==void 0&&(E["product_code.gte"]=g),u!==void 0&&(E["product_code.lt"]=u),d!==void 0&&(E["product_code.lte"]=d),l!==void 0&&(E.ticker=l),m!==void 0&&(E["ticker.any_of"]=m),f!==void 0&&(E["ticker.gt"]=f),p!==void 0&&(E["ticker.gte"]=p),b!==void 0&&(E["ticker.lt"]=b),R!==void 0&&(E["ticker.lte"]=R),_!==void 0&&(E.active=_),x!==void 0&&(E.type=x),h!==void 0&&(E["type.any_of"]=h),A!==void 0&&(E["type.gt"]=A),y!==void 0&&(E["type.gte"]=y),V!==void 0&&(E["type.lt"]=V),P!==void 0&&(E["type.lte"]=P),O!==void 0&&(E.first_trade_date=O),k!==void 0&&(E["first_trade_date.gt"]=k),w!==void 0&&(E["first_trade_date.gte"]=w),q!==void 0&&(E["first_trade_date.lt"]=q),I!==void 0&&(E["first_trade_date.lte"]=I),F!==void 0&&(E.last_trade_date=F),G!==void 0&&(E["last_trade_date.gt"]=G),v!==void 0&&(E["last_trade_date.gte"]=v),C!==void 0&&(E["last_trade_date.lt"]=C),T!==void 0&&(E["last_trade_date.lte"]=T),D!==void 0&&(E.limit=D),B!==void 0&&(E.sort=B),K(Z,E);let S=ee&&ee.headers?ee.headers:{};return L.headers={...U,...S,...W.headers},{url:N(Z),options:L}},getFuturesVXExchanges:async(a,e={})=>{let i="/futures/vX/exchanges",n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),a!==void 0&&(o.limit=a),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getFuturesVXProductsNew:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re={})=>{let te="/futures/vX/products-new",fe=new URL(te,z),pe;c&&(pe=c.baseOptions);let be={method:"GET",...pe,...re},ie={},M={};await j(M,"apiKey",c),a!==void 0&&(M.name=a),e!==void 0&&(M["name.any_of"]=e),i!==void 0&&(M["name.gt"]=i),n!==void 0&&(M["name.gte"]=n),r!==void 0&&(M["name.lt"]=r),s!==void 0&&(M["name.lte"]=s),t!==void 0&&(M.product_code=t),o!==void 0&&(M["product_code.any_of"]=o),g!==void 0&&(M["product_code.gt"]=g),u!==void 0&&(M["product_code.gte"]=u),d!==void 0&&(M["product_code.lt"]=d),l!==void 0&&(M["product_code.lte"]=l),m!==void 0&&(M.date=m),f!==void 0&&(M["date.gt"]=f),p!==void 0&&(M["date.gte"]=p),b!==void 0&&(M["date.lt"]=b),R!==void 0&&(M["date.lte"]=R),_!==void 0&&(M.sector=_),x!==void 0&&(M["sector.any_of"]=x),h!==void 0&&(M["sector.gt"]=h),A!==void 0&&(M["sector.gte"]=A),y!==void 0&&(M["sector.lt"]=y),V!==void 0&&(M["sector.lte"]=V),P!==void 0&&(M.sub_sector=P),O!==void 0&&(M["sub_sector.any_of"]=O),k!==void 0&&(M["sub_sector.gt"]=k),w!==void 0&&(M["sub_sector.gte"]=w),q!==void 0&&(M["sub_sector.lt"]=q),I!==void 0&&(M["sub_sector.lte"]=I),F!==void 0&&(M.asset_class=F),G!==void 0&&(M["asset_class.any_of"]=G),v!==void 0&&(M["asset_class.gt"]=v),C!==void 0&&(M["asset_class.gte"]=C),T!==void 0&&(M["asset_class.lt"]=T),D!==void 0&&(M["asset_class.lte"]=D),B!==void 0&&(M.asset_sub_class=B),W!==void 0&&(M["asset_sub_class.any_of"]=W),J!==void 0&&(M["asset_sub_class.gt"]=J),Z!==void 0&&(M["asset_sub_class.gte"]=Z),ee!==void 0&&(M["asset_sub_class.lt"]=ee),L!==void 0&&(M["asset_sub_class.lte"]=L),U!==void 0&&(M.type=U),E!==void 0&&(M["type.any_of"]=E),S!==void 0&&(M["type.gt"]=S),ae!==void 0&&(M["type.gte"]=ae),ce!==void 0&&(M["type.lt"]=ce),ue!==void 0&&(M["type.lte"]=ue),de!==void 0&&(M.limit=de),me!==void 0&&(M.sort=me),K(fe,M);let he=pe&&pe.headers?pe.headers:{};return be.headers={...ie,...he,...re.headers},{url:N(fe),options:be}},getFuturesVXSnapshot:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p={})=>{let b="/futures/vX/snapshot",R=new URL(b,z),_;c&&(_=c.baseOptions);let x={method:"GET",..._,...p},h={},A={};await j(A,"apiKey",c),a!==void 0&&(A.product_code=a),e!==void 0&&(A["product_code.any_of"]=e),i!==void 0&&(A["product_code.gt"]=i),n!==void 0&&(A["product_code.gte"]=n),r!==void 0&&(A["product_code.lt"]=r),s!==void 0&&(A["product_code.lte"]=s),t!==void 0&&(A.ticker=t),o!==void 0&&(A["ticker.any_of"]=o),g!==void 0&&(A["ticker.gt"]=g),u!==void 0&&(A["ticker.gte"]=u),d!==void 0&&(A["ticker.lt"]=d),l!==void 0&&(A["ticker.lte"]=l),m!==void 0&&(A.limit=m),f!==void 0&&(A.sort=f),K(R,A);let y=_&&_.headers?_.headers:{};return x.headers={...h,...y,...p.headers},{url:N(R),options:x}},getGroupedCryptoAggregates:async(a,e,i={})=>{se("getGroupedCryptoAggregates","date",a);let n="/v2/aggs/grouped/locale/global/market/crypto/{date}".replace("{date}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.adjusted=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getGroupedForexAggregates:async(a,e,i={})=>{se("getGroupedForexAggregates","date",a);let n="/v2/aggs/grouped/locale/global/market/fx/{date}".replace("{date}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.adjusted=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getGroupedStocksAggregates:async(a,e,i,n={})=>{se("getGroupedStocksAggregates","date",a);let r="/v2/aggs/grouped/locale/us/market/stocks/{date}".replace("{date}",encodeURIComponent(String(a))),s=new URL(r,z),t;c&&(t=c.baseOptions);let o={method:"GET",...t,...n},g={},u={};await j(u,"apiKey",c),e!==void 0&&(u.adjusted=e),i!==void 0&&(u.include_otc=i),K(s,u);let d=t&&t.headers?t.headers:{};return o.headers={...g,...d,...n.headers},{url:N(s),options:o}},getIndicesAggregates:async(a,e,i,n,r,s,t,o={})=>{se("getIndicesAggregates","indicesTicker",a),se("getIndicesAggregates","multiplier",e),se("getIndicesAggregates","timespan",i),se("getIndicesAggregates","from",n),se("getIndicesAggregates","to",r);let g="/v2/aggs/ticker/{indicesTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{indicesTicker}",encodeURIComponent(String(a))).replace("{multiplier}",encodeURIComponent(String(e))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(r))),u=new URL(g,z),d;c&&(d=c.baseOptions);let l={method:"GET",...d,...o},m={},f={};await j(f,"apiKey",c),s!==void 0&&(f.sort=s),t!==void 0&&(f.limit=t),K(u,f);let p=d&&d.headers?d.headers:{};return l.headers={...m,...p,...o.headers},{url:N(u),options:l}},getIndicesEMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getIndicesEMA","indicesTicker",a);let p="/v1/indicators/ema/{indicesTicker}".replace("{indicesTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getIndicesMACD:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b={})=>{se("getIndicesMACD","indicesTicker",a);let R="/v1/indicators/macd/{indicesTicker}".replace("{indicesTicker}",encodeURIComponent(String(a))),_=new URL(R,z),x;c&&(x=c.baseOptions);let h={method:"GET",...x,...b},A={},y={};await j(y,"apiKey",c),e!==void 0&&(y.timestamp=e),i!==void 0&&(y.timespan=i),n!==void 0&&(y.adjusted=n),r!==void 0&&(y.short_window=r),s!==void 0&&(y.long_window=s),t!==void 0&&(y.signal_window=t),o!==void 0&&(y.series_type=o),g!==void 0&&(y.expand_underlying=g),u!==void 0&&(y.order=u),d!==void 0&&(y.limit=d),l!==void 0&&(y["timestamp.gte"]=l),m!==void 0&&(y["timestamp.gt"]=m),f!==void 0&&(y["timestamp.lte"]=f),p!==void 0&&(y["timestamp.lt"]=p),K(_,y);let V=x&&x.headers?x.headers:{};return h.headers={...A,...V,...b.headers},{url:N(_),options:h}},getIndicesOpenClose:async(a,e,i={})=>{se("getIndicesOpenClose","indicesTicker",a),se("getIndicesOpenClose","date",e);let n="/v1/open-close/{indicesTicker}/{date}".replace("{indicesTicker}",encodeURIComponent(String(a))).replace("{date}",encodeURIComponent(String(e))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getIndicesRSI:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getIndicesRSI","indicesTicker",a);let p="/v1/indicators/rsi/{indicesTicker}".replace("{indicesTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getIndicesSMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getIndicesSMA","indicesTicker",a);let p="/v1/indicators/sma/{indicesTicker}".replace("{indicesTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getIndicesSnapshot:async(a,e,i,n,r,s,t,o,g,u={})=>{let d="/v3/snapshot/indices",l=new URL(d,z),m;c&&(m=c.baseOptions);let f={method:"GET",...m,...u},p={},b={};await j(b,"apiKey",c),a!==void 0&&(b["ticker.any_of"]=a),e!==void 0&&(b.ticker=e),i!==void 0&&(b["ticker.gte"]=i),n!==void 0&&(b["ticker.gt"]=n),r!==void 0&&(b["ticker.lte"]=r),s!==void 0&&(b["ticker.lt"]=s),t!==void 0&&(b.order=t),o!==void 0&&(b.limit=o),g!==void 0&&(b.sort=g),K(l,b);let R=m&&m.headers?m.headers:{};return f.headers={...p,...R,...u.headers},{url:N(l),options:f}},getLastCryptoTrade:async(a,e,i={})=>{se("getLastCryptoTrade","from",a),se("getLastCryptoTrade","to",e);let n="/v1/last/crypto/{from}/{to}".replace("{from}",encodeURIComponent(String(a))).replace("{to}",encodeURIComponent(String(e))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getLastCurrencyQuote:async(a,e,i={})=>{se("getLastCurrencyQuote","from",a),se("getLastCurrencyQuote","to",e);let n="/v1/last_quote/currencies/{from}/{to}".replace("{from}",encodeURIComponent(String(a))).replace("{to}",encodeURIComponent(String(e))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getLastOptionsTrade:async(a,e={})=>{se("getLastOptionsTrade","optionsTicker",a);let i="/v2/last/trade/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getLastStocksQuote:async(a,e={})=>{se("getLastStocksQuote","stocksTicker",a);let i="/v2/last/nbbo/{stocksTicker}".replace("{stocksTicker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getLastStocksTrade:async(a,e={})=>{se("getLastStocksTrade","stocksTicker",a);let i="/v2/last/trade/{stocksTicker}".replace("{stocksTicker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getMarketHolidays:async(a={})=>{let e="/v1/marketstatus/upcoming",i=new URL(e,z),n;c&&(n=c.baseOptions);let r={method:"GET",...n,...a},s={},t={};await j(t,"apiKey",c),K(i,t);let o=n&&n.headers?n.headers:{};return r.headers={...s,...o,...a.headers},{url:N(i),options:r}},getMarketStatus:async(a={})=>{let e="/v1/marketstatus/now",i=new URL(e,z),n;c&&(n=c.baseOptions);let r={method:"GET",...n,...a},s={},t={};await j(t,"apiKey",c),K(i,t);let o=n&&n.headers?n.headers:{};return r.headers={...s,...o,...a.headers},{url:N(i),options:r}},getOptionContract:async(a,e,i={})=>{se("getOptionContract","underlyingAsset",a),se("getOptionContract","optionContract",e);let n="/v3/snapshot/options/{underlyingAsset}/{optionContract}".replace("{underlyingAsset}",encodeURIComponent(String(a))).replace("{optionContract}",encodeURIComponent(String(e))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getOptionsAggregates:async(a,e,i,n,r,s,t,o,g={})=>{se("getOptionsAggregates","optionsTicker",a),se("getOptionsAggregates","multiplier",e),se("getOptionsAggregates","timespan",i),se("getOptionsAggregates","from",n),se("getOptionsAggregates","to",r);let u="/v2/aggs/ticker/{optionsTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{optionsTicker}",encodeURIComponent(String(a))).replace("{multiplier}",encodeURIComponent(String(e))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(r))),d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),s!==void 0&&(p.adjusted=s),t!==void 0&&(p.sort=t),o!==void 0&&(p.limit=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getOptionsChain:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b={})=>{se("getOptionsChain","underlyingAsset",a);let R="/v3/snapshot/options/{underlyingAsset}".replace("{underlyingAsset}",encodeURIComponent(String(a))),_=new URL(R,z),x;c&&(x=c.baseOptions);let h={method:"GET",...x,...b},A={},y={};await j(y,"apiKey",c),e!==void 0&&(y.strike_price=e),i!==void 0&&(y.expiration_date=i),n!==void 0&&(y.contract_type=n),r!==void 0&&(y["strike_price.gte"]=r),s!==void 0&&(y["strike_price.gt"]=s),t!==void 0&&(y["strike_price.lte"]=t),o!==void 0&&(y["strike_price.lt"]=o),g!==void 0&&(y["expiration_date.gte"]=g),u!==void 0&&(y["expiration_date.gt"]=u),d!==void 0&&(y["expiration_date.lte"]=d),l!==void 0&&(y["expiration_date.lt"]=l),m!==void 0&&(y.order=m),f!==void 0&&(y.limit=f),p!==void 0&&(y.sort=p),K(_,y);let V=x&&x.headers?x.headers:{};return h.headers={...A,...V,...b.headers},{url:N(_),options:h}},getOptionsContract:async(a,e,i={})=>{se("getOptionsContract","optionsTicker",a);let n="/v3/reference/options/contracts/{options_ticker}".replace("{options_ticker}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.as_of=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getOptionsEMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getOptionsEMA","optionsTicker",a);let p="/v1/indicators/ema/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getOptionsMACD:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b={})=>{se("getOptionsMACD","optionsTicker",a);let R="/v1/indicators/macd/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(a))),_=new URL(R,z),x;c&&(x=c.baseOptions);let h={method:"GET",...x,...b},A={},y={};await j(y,"apiKey",c),e!==void 0&&(y.timestamp=e),i!==void 0&&(y.timespan=i),n!==void 0&&(y.adjusted=n),r!==void 0&&(y.short_window=r),s!==void 0&&(y.long_window=s),t!==void 0&&(y.signal_window=t),o!==void 0&&(y.series_type=o),g!==void 0&&(y.expand_underlying=g),u!==void 0&&(y.order=u),d!==void 0&&(y.limit=d),l!==void 0&&(y["timestamp.gte"]=l),m!==void 0&&(y["timestamp.gt"]=m),f!==void 0&&(y["timestamp.lte"]=f),p!==void 0&&(y["timestamp.lt"]=p),K(_,y);let V=x&&x.headers?x.headers:{};return h.headers={...A,...V,...b.headers},{url:N(_),options:h}},getOptionsOpenClose:async(a,e,i,n={})=>{se("getOptionsOpenClose","optionsTicker",a),se("getOptionsOpenClose","date",e);let r="/v1/open-close/{optionsTicker}/{date}".replace("{optionsTicker}",encodeURIComponent(String(a))).replace("{date}",encodeURIComponent(String(e))),s=new URL(r,z),t;c&&(t=c.baseOptions);let o={method:"GET",...t,...n},g={},u={};await j(u,"apiKey",c),i!==void 0&&(u.adjusted=i),K(s,u);let d=t&&t.headers?t.headers:{};return o.headers={...g,...d,...n.headers},{url:N(s),options:o}},getOptionsQuotes:async(a,e,i,n,r,s,t,o,g,u={})=>{se("getOptionsQuotes","optionsTicker",a);let d="/v3/quotes/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(a))),l=new URL(d,z),m;c&&(m=c.baseOptions);let f={method:"GET",...m,...u},p={},b={};await j(b,"apiKey",c),e!==void 0&&(b.timestamp=e),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),r!==void 0&&(b["timestamp.lte"]=r),s!==void 0&&(b["timestamp.lt"]=s),t!==void 0&&(b.order=t),o!==void 0&&(b.limit=o),g!==void 0&&(b.sort=g),K(l,b);let R=m&&m.headers?m.headers:{};return f.headers={...p,...R,...u.headers},{url:N(l),options:f}},getOptionsRSI:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getOptionsRSI","optionsTicker",a);let p="/v1/indicators/rsi/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getOptionsSMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getOptionsSMA","optionsTicker",a);let p="/v1/indicators/sma/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getOptionsTrades:async(a,e,i,n,r,s,t,o,g,u={})=>{se("getOptionsTrades","optionsTicker",a);let d="/v3/trades/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(a))),l=new URL(d,z),m;c&&(m=c.baseOptions);let f={method:"GET",...m,...u},p={},b={};await j(b,"apiKey",c),e!==void 0&&(b.timestamp=e),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),r!==void 0&&(b["timestamp.lte"]=r),s!==void 0&&(b["timestamp.lt"]=s),t!==void 0&&(b.order=t),o!==void 0&&(b.limit=o),g!==void 0&&(b.sort=g),K(l,b);let R=m&&m.headers?m.headers:{};return f.headers={...p,...R,...u.headers},{url:N(l),options:f}},getOptionsV1Exchanges:async(a,e={})=>{let i="/options/v1/exchanges",n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),a!==void 0&&(o.limit=a),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getPreviousCryptoAggregates:async(a,e,i={})=>{se("getPreviousCryptoAggregates","cryptoTicker",a);let n="/v2/aggs/ticker/{cryptoTicker}/prev".replace("{cryptoTicker}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.adjusted=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getPreviousForexAggregates:async(a,e,i={})=>{se("getPreviousForexAggregates","forexTicker",a);let n="/v2/aggs/ticker/{forexTicker}/prev".replace("{forexTicker}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.adjusted=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getPreviousIndicesAggregates:async(a,e={})=>{se("getPreviousIndicesAggregates","indicesTicker",a);let i="/v2/aggs/ticker/{indicesTicker}/prev".replace("{indicesTicker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getPreviousOptionsAggregates:async(a,e,i={})=>{se("getPreviousOptionsAggregates","optionsTicker",a);let n="/v2/aggs/ticker/{optionsTicker}/prev".replace("{optionsTicker}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.adjusted=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getPreviousStocksAggregates:async(a,e,i={})=>{se("getPreviousStocksAggregates","stocksTicker",a);let n="/v2/aggs/ticker/{stocksTicker}/prev".replace("{stocksTicker}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.adjusted=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getRelatedCompanies:async(a,e={})=>{se("getRelatedCompanies","ticker",a);let i="/v1/related-companies/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getSnapshotSummary:async(a,e={})=>{let i="/v1/summaries",n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),a!==void 0&&(o["ticker.any_of"]=a),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getSnapshots:async(a,e,i,n,r,s,t,o,g,u,d={})=>{let l="/v3/snapshot",m=new URL(l,z),f;c&&(f=c.baseOptions);let p={method:"GET",...f,...d},b={},R={};await j(R,"apiKey",c),a!==void 0&&(R.ticker=a),e!==void 0&&(R.type=e),i!==void 0&&(R["ticker.gte"]=i),n!==void 0&&(R["ticker.gt"]=n),r!==void 0&&(R["ticker.lte"]=r),s!==void 0&&(R["ticker.lt"]=s),t!==void 0&&(R["ticker.any_of"]=t),o!==void 0&&(R.order=o),g!==void 0&&(R.limit=g),u!==void 0&&(R.sort=u),K(m,R);let _=f&&f.headers?f.headers:{};return p.headers={...b,..._,...d.headers},{url:N(m),options:p}},getStocksAggregates:async(a,e,i,n,r,s,t,o,g={})=>{se("getStocksAggregates","stocksTicker",a),se("getStocksAggregates","multiplier",e),se("getStocksAggregates","timespan",i),se("getStocksAggregates","from",n),se("getStocksAggregates","to",r);let u="/v2/aggs/ticker/{stocksTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{stocksTicker}",encodeURIComponent(String(a))).replace("{multiplier}",encodeURIComponent(String(e))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(r))),d=new URL(u,z),l;c&&(l=c.baseOptions);let m={method:"GET",...l,...g},f={},p={};await j(p,"apiKey",c),s!==void 0&&(p.adjusted=s),t!==void 0&&(p.sort=t),o!==void 0&&(p.limit=o),K(d,p);let b=l&&l.headers?l.headers:{};return m.headers={...f,...b,...g.headers},{url:N(d),options:m}},getStocksEMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getStocksEMA","stockTicker",a);let p="/v1/indicators/ema/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getStocksFinancialsV1BalanceSheets:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J={})=>{let Z="/stocks/financials/v1/balance-sheets",ee=new URL(Z,z),L;c&&(L=c.baseOptions);let U={method:"GET",...L,...J},E={},S={};await j(S,"apiKey",c),a!==void 0&&(S.cik=a),e!==void 0&&(S["cik.any_of"]=e),i!==void 0&&(S["cik.gt"]=i),n!==void 0&&(S["cik.gte"]=n),r!==void 0&&(S["cik.lt"]=r),s!==void 0&&(S["cik.lte"]=s),t!==void 0&&(S.tickers=t),o!==void 0&&(S["tickers.all_of"]=o),g!==void 0&&(S["tickers.any_of"]=g),u!==void 0&&(S.period_end=u),d!==void 0&&(S["period_end.gt"]=d),l!==void 0&&(S["period_end.gte"]=l),m!==void 0&&(S["period_end.lt"]=m),f!==void 0&&(S["period_end.lte"]=f),p!==void 0&&(S.filing_date=p),b!==void 0&&(S["filing_date.gt"]=b),R!==void 0&&(S["filing_date.gte"]=R),_!==void 0&&(S["filing_date.lt"]=_),x!==void 0&&(S["filing_date.lte"]=x),h!==void 0&&(S.fiscal_year=h),A!==void 0&&(S["fiscal_year.gt"]=A),y!==void 0&&(S["fiscal_year.gte"]=y),V!==void 0&&(S["fiscal_year.lt"]=V),P!==void 0&&(S["fiscal_year.lte"]=P),O!==void 0&&(S.fiscal_quarter=O),k!==void 0&&(S["fiscal_quarter.gt"]=k),w!==void 0&&(S["fiscal_quarter.gte"]=w),q!==void 0&&(S["fiscal_quarter.lt"]=q),I!==void 0&&(S["fiscal_quarter.lte"]=I),F!==void 0&&(S.timeframe=F),G!==void 0&&(S["timeframe.any_of"]=G),v!==void 0&&(S["timeframe.gt"]=v),C!==void 0&&(S["timeframe.gte"]=C),T!==void 0&&(S["timeframe.lt"]=T),D!==void 0&&(S["timeframe.lte"]=D),B!==void 0&&(S.limit=B),W!==void 0&&(S.sort=W),K(ee,S);let ae=L&&L.headers?L.headers:{};return U.headers={...E,...ae,...J.headers},{url:N(ee),options:U}},getStocksFinancialsV1CashFlowStatements:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J={})=>{let Z="/stocks/financials/v1/cash-flow-statements",ee=new URL(Z,z),L;c&&(L=c.baseOptions);let U={method:"GET",...L,...J},E={},S={};await j(S,"apiKey",c),a!==void 0&&(S.cik=a),e!==void 0&&(S["cik.any_of"]=e),i!==void 0&&(S["cik.gt"]=i),n!==void 0&&(S["cik.gte"]=n),r!==void 0&&(S["cik.lt"]=r),s!==void 0&&(S["cik.lte"]=s),t!==void 0&&(S.period_end=t),o!==void 0&&(S["period_end.gt"]=o),g!==void 0&&(S["period_end.gte"]=g),u!==void 0&&(S["period_end.lt"]=u),d!==void 0&&(S["period_end.lte"]=d),l!==void 0&&(S.filing_date=l),m!==void 0&&(S["filing_date.gt"]=m),f!==void 0&&(S["filing_date.gte"]=f),p!==void 0&&(S["filing_date.lt"]=p),b!==void 0&&(S["filing_date.lte"]=b),R!==void 0&&(S.tickers=R),_!==void 0&&(S["tickers.all_of"]=_),x!==void 0&&(S["tickers.any_of"]=x),h!==void 0&&(S.fiscal_year=h),A!==void 0&&(S["fiscal_year.gt"]=A),y!==void 0&&(S["fiscal_year.gte"]=y),V!==void 0&&(S["fiscal_year.lt"]=V),P!==void 0&&(S["fiscal_year.lte"]=P),O!==void 0&&(S.fiscal_quarter=O),k!==void 0&&(S["fiscal_quarter.gt"]=k),w!==void 0&&(S["fiscal_quarter.gte"]=w),q!==void 0&&(S["fiscal_quarter.lt"]=q),I!==void 0&&(S["fiscal_quarter.lte"]=I),F!==void 0&&(S.timeframe=F),G!==void 0&&(S["timeframe.any_of"]=G),v!==void 0&&(S["timeframe.gt"]=v),C!==void 0&&(S["timeframe.gte"]=C),T!==void 0&&(S["timeframe.lt"]=T),D!==void 0&&(S["timeframe.lte"]=D),B!==void 0&&(S.limit=B),W!==void 0&&(S.sort=W),K(ee,S);let ae=L&&L.headers?L.headers:{};return U.headers={...E,...ae,...J.headers},{url:N(ee),options:U}},getStocksFinancialsV1IncomeStatements:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J={})=>{let Z="/stocks/financials/v1/income-statements",ee=new URL(Z,z),L;c&&(L=c.baseOptions);let U={method:"GET",...L,...J},E={},S={};await j(S,"apiKey",c),a!==void 0&&(S.cik=a),e!==void 0&&(S["cik.any_of"]=e),i!==void 0&&(S["cik.gt"]=i),n!==void 0&&(S["cik.gte"]=n),r!==void 0&&(S["cik.lt"]=r),s!==void 0&&(S["cik.lte"]=s),t!==void 0&&(S.tickers=t),o!==void 0&&(S["tickers.all_of"]=o),g!==void 0&&(S["tickers.any_of"]=g),u!==void 0&&(S.period_end=u),d!==void 0&&(S["period_end.gt"]=d),l!==void 0&&(S["period_end.gte"]=l),m!==void 0&&(S["period_end.lt"]=m),f!==void 0&&(S["period_end.lte"]=f),p!==void 0&&(S.filing_date=p),b!==void 0&&(S["filing_date.gt"]=b),R!==void 0&&(S["filing_date.gte"]=R),_!==void 0&&(S["filing_date.lt"]=_),x!==void 0&&(S["filing_date.lte"]=x),h!==void 0&&(S.fiscal_year=h),A!==void 0&&(S["fiscal_year.gt"]=A),y!==void 0&&(S["fiscal_year.gte"]=y),V!==void 0&&(S["fiscal_year.lt"]=V),P!==void 0&&(S["fiscal_year.lte"]=P),O!==void 0&&(S.fiscal_quarter=O),k!==void 0&&(S["fiscal_quarter.gt"]=k),w!==void 0&&(S["fiscal_quarter.gte"]=w),q!==void 0&&(S["fiscal_quarter.lt"]=q),I!==void 0&&(S["fiscal_quarter.lte"]=I),F!==void 0&&(S.timeframe=F),G!==void 0&&(S["timeframe.any_of"]=G),v!==void 0&&(S["timeframe.gt"]=v),C!==void 0&&(S["timeframe.gte"]=C),T!==void 0&&(S["timeframe.lt"]=T),D!==void 0&&(S["timeframe.lte"]=D),B!==void 0&&(S.limit=B),W!==void 0&&(S.sort=W),K(ee,S);let ae=L&&L.headers?L.headers:{};return U.headers={...E,...ae,...J.headers},{url:N(ee),options:U}},getStocksFinancialsV1Ratios:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve,qe,Fe,ge,Be,Ue,Me,Ee,De,Qe,He,ze,je,Ke,Ne,$e,Xe,We,Ye,Je,Ze,Le,en,nn,rn,tn,sn,an,on,gn,un,dn,ln,cn,mn,pn,fn,bn,hn,Rn,_n,xn,yn={})=>{let An="/stocks/financials/v1/ratios",Vn=new URL(An,z),Ge;c&&(Ge=c.baseOptions);let On={method:"GET",...Ge,...yn},kn={},ne={};await j(ne,"apiKey",c),a!==void 0&&(ne.ticker=a),e!==void 0&&(ne["ticker.any_of"]=e),i!==void 0&&(ne["ticker.gt"]=i),n!==void 0&&(ne["ticker.gte"]=n),r!==void 0&&(ne["ticker.lt"]=r),s!==void 0&&(ne["ticker.lte"]=s),t!==void 0&&(ne.cik=t),o!==void 0&&(ne["cik.any_of"]=o),g!==void 0&&(ne["cik.gt"]=g),u!==void 0&&(ne["cik.gte"]=u),d!==void 0&&(ne["cik.lt"]=d),l!==void 0&&(ne["cik.lte"]=l),m!==void 0&&(ne.price=m),f!==void 0&&(ne["price.gt"]=f),p!==void 0&&(ne["price.gte"]=p),b!==void 0&&(ne["price.lt"]=b),R!==void 0&&(ne["price.lte"]=R),_!==void 0&&(ne.average_volume=_),x!==void 0&&(ne["average_volume.gt"]=x),h!==void 0&&(ne["average_volume.gte"]=h),A!==void 0&&(ne["average_volume.lt"]=A),y!==void 0&&(ne["average_volume.lte"]=y),V!==void 0&&(ne.market_cap=V),P!==void 0&&(ne["market_cap.gt"]=P),O!==void 0&&(ne["market_cap.gte"]=O),k!==void 0&&(ne["market_cap.lt"]=k),w!==void 0&&(ne["market_cap.lte"]=w),q!==void 0&&(ne.earnings_per_share=q),I!==void 0&&(ne["earnings_per_share.gt"]=I),F!==void 0&&(ne["earnings_per_share.gte"]=F),G!==void 0&&(ne["earnings_per_share.lt"]=G),v!==void 0&&(ne["earnings_per_share.lte"]=v),C!==void 0&&(ne.price_to_earnings=C),T!==void 0&&(ne["price_to_earnings.gt"]=T),D!==void 0&&(ne["price_to_earnings.gte"]=D),B!==void 0&&(ne["price_to_earnings.lt"]=B),W!==void 0&&(ne["price_to_earnings.lte"]=W),J!==void 0&&(ne.price_to_book=J),Z!==void 0&&(ne["price_to_book.gt"]=Z),ee!==void 0&&(ne["price_to_book.gte"]=ee),L!==void 0&&(ne["price_to_book.lt"]=L),U!==void 0&&(ne["price_to_book.lte"]=U),E!==void 0&&(ne.price_to_sales=E),S!==void 0&&(ne["price_to_sales.gt"]=S),ae!==void 0&&(ne["price_to_sales.gte"]=ae),ce!==void 0&&(ne["price_to_sales.lt"]=ce),ue!==void 0&&(ne["price_to_sales.lte"]=ue),de!==void 0&&(ne.price_to_cash_flow=de),me!==void 0&&(ne["price_to_cash_flow.gt"]=me),re!==void 0&&(ne["price_to_cash_flow.gte"]=re),te!==void 0&&(ne["price_to_cash_flow.lt"]=te),fe!==void 0&&(ne["price_to_cash_flow.lte"]=fe),pe!==void 0&&(ne.price_to_free_cash_flow=pe),be!==void 0&&(ne["price_to_free_cash_flow.gt"]=be),ie!==void 0&&(ne["price_to_free_cash_flow.gte"]=ie),M!==void 0&&(ne["price_to_free_cash_flow.lt"]=M),he!==void 0&&(ne["price_to_free_cash_flow.lte"]=he),Re!==void 0&&(ne.dividend_yield=Re),_e!==void 0&&(ne["dividend_yield.gt"]=_e),xe!==void 0&&(ne["dividend_yield.gte"]=xe),oe!==void 0&&(ne["dividend_yield.lt"]=oe),ye!==void 0&&(ne["dividend_yield.lte"]=ye),le!==void 0&&(ne.return_on_assets=le),Ae!==void 0&&(ne["return_on_assets.gt"]=Ae),Oe!==void 0&&(ne["return_on_assets.gte"]=Oe),Ce!==void 0&&(ne["return_on_assets.lt"]=Ce),Se!==void 0&&(ne["return_on_assets.lte"]=Se),Pe!==void 0&&(ne.return_on_equity=Pe),we!==void 0&&(ne["return_on_equity.gt"]=we),ke!==void 0&&(ne["return_on_equity.gte"]=ke),Ie!==void 0&&(ne["return_on_equity.lt"]=Ie),ve!==void 0&&(ne["return_on_equity.lte"]=ve),Ve!==void 0&&(ne.debt_to_equity=Ve),qe!==void 0&&(ne["debt_to_equity.gt"]=qe),Fe!==void 0&&(ne["debt_to_equity.gte"]=Fe),ge!==void 0&&(ne["debt_to_equity.lt"]=ge),Be!==void 0&&(ne["debt_to_equity.lte"]=Be),Ue!==void 0&&(ne.current=Ue),Me!==void 0&&(ne["current.gt"]=Me),Ee!==void 0&&(ne["current.gte"]=Ee),De!==void 0&&(ne["current.lt"]=De),Qe!==void 0&&(ne["current.lte"]=Qe),He!==void 0&&(ne.quick=He),ze!==void 0&&(ne["quick.gt"]=ze),je!==void 0&&(ne["quick.gte"]=je),Ke!==void 0&&(ne["quick.lt"]=Ke),Ne!==void 0&&(ne["quick.lte"]=Ne),$e!==void 0&&(ne.cash=$e),Xe!==void 0&&(ne["cash.gt"]=Xe),We!==void 0&&(ne["cash.gte"]=We),Ye!==void 0&&(ne["cash.lt"]=Ye),Je!==void 0&&(ne["cash.lte"]=Je),Ze!==void 0&&(ne.ev_to_sales=Ze),Le!==void 0&&(ne["ev_to_sales.gt"]=Le),en!==void 0&&(ne["ev_to_sales.gte"]=en),nn!==void 0&&(ne["ev_to_sales.lt"]=nn),rn!==void 0&&(ne["ev_to_sales.lte"]=rn),tn!==void 0&&(ne.ev_to_ebitda=tn),sn!==void 0&&(ne["ev_to_ebitda.gt"]=sn),an!==void 0&&(ne["ev_to_ebitda.gte"]=an),on!==void 0&&(ne["ev_to_ebitda.lt"]=on),gn!==void 0&&(ne["ev_to_ebitda.lte"]=gn),un!==void 0&&(ne.enterprise_value=un),dn!==void 0&&(ne["enterprise_value.gt"]=dn),ln!==void 0&&(ne["enterprise_value.gte"]=ln),cn!==void 0&&(ne["enterprise_value.lt"]=cn),mn!==void 0&&(ne["enterprise_value.lte"]=mn),pn!==void 0&&(ne.free_cash_flow=pn),fn!==void 0&&(ne["free_cash_flow.gt"]=fn),bn!==void 0&&(ne["free_cash_flow.gte"]=bn),hn!==void 0&&(ne["free_cash_flow.lt"]=hn),Rn!==void 0&&(ne["free_cash_flow.lte"]=Rn),_n!==void 0&&(ne.limit=_n),xn!==void 0&&(ne.sort=xn),K(Vn,ne);let Mn=Ge&&Ge.headers?Ge.headers:{};return On.headers={...kn,...Mn,...yn.headers},{url:N(Vn),options:On}},getStocksMACD:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b={})=>{se("getStocksMACD","stockTicker",a);let R="/v1/indicators/macd/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(a))),_=new URL(R,z),x;c&&(x=c.baseOptions);let h={method:"GET",...x,...b},A={},y={};await j(y,"apiKey",c),e!==void 0&&(y.timestamp=e),i!==void 0&&(y.timespan=i),n!==void 0&&(y.adjusted=n),r!==void 0&&(y.short_window=r),s!==void 0&&(y.long_window=s),t!==void 0&&(y.signal_window=t),o!==void 0&&(y.series_type=o),g!==void 0&&(y.expand_underlying=g),u!==void 0&&(y.order=u),d!==void 0&&(y.limit=d),l!==void 0&&(y["timestamp.gte"]=l),m!==void 0&&(y["timestamp.gt"]=m),f!==void 0&&(y["timestamp.lte"]=f),p!==void 0&&(y["timestamp.lt"]=p),K(_,y);let V=x&&x.headers?x.headers:{};return h.headers={...A,...V,...b.headers},{url:N(_),options:h}},getStocksOpenClose:async(a,e,i,n={})=>{se("getStocksOpenClose","stocksTicker",a),se("getStocksOpenClose","date",e);let r="/v1/open-close/{stocksTicker}/{date}".replace("{stocksTicker}",encodeURIComponent(String(a))).replace("{date}",encodeURIComponent(String(e))),s=new URL(r,z),t;c&&(t=c.baseOptions);let o={method:"GET",...t,...n},g={},u={};await j(u,"apiKey",c),i!==void 0&&(u.adjusted=i),K(s,u);let d=t&&t.headers?t.headers:{};return o.headers={...g,...d,...n.headers},{url:N(s),options:o}},getStocksQuotes:async(a,e,i,n,r,s,t,o,g,u={})=>{se("getStocksQuotes","stockTicker",a);let d="/v3/quotes/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(a))),l=new URL(d,z),m;c&&(m=c.baseOptions);let f={method:"GET",...m,...u},p={},b={};await j(b,"apiKey",c),e!==void 0&&(b.timestamp=e),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),r!==void 0&&(b["timestamp.lte"]=r),s!==void 0&&(b["timestamp.lt"]=s),t!==void 0&&(b.order=t),o!==void 0&&(b.limit=o),g!==void 0&&(b.sort=g),K(l,b);let R=m&&m.headers?m.headers:{};return f.headers={...p,...R,...u.headers},{url:N(l),options:f}},getStocksRSI:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getStocksRSI","stockTicker",a);let p="/v1/indicators/rsi/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getStocksSMA:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{se("getStocksSMA","stockTicker",a);let p="/v1/indicators/sma/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(a))),b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};await j(h,"apiKey",c),e!==void 0&&(h.timestamp=e),i!==void 0&&(h.timespan=i),n!==void 0&&(h.adjusted=n),r!==void 0&&(h.window=r),s!==void 0&&(h.series_type=s),t!==void 0&&(h.expand_underlying=t),o!==void 0&&(h.order=o),g!==void 0&&(h.limit=g),u!==void 0&&(h["timestamp.gte"]=u),d!==void 0&&(h["timestamp.gt"]=d),l!==void 0&&(h["timestamp.lte"]=l),m!==void 0&&(h["timestamp.lt"]=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},getStocksSnapshotDirection:async(a,e,i={})=>{se("getStocksSnapshotDirection","direction",a);let n="/v2/snapshot/locale/us/markets/stocks/{direction}".replace("{direction}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.include_otc=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getStocksSnapshotTicker:async(a,e={})=>{se("getStocksSnapshotTicker","stocksTicker",a);let i="/v2/snapshot/locale/us/markets/stocks/tickers/{stocksTicker}".replace("{stocksTicker}",encodeURIComponent(String(a))),n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getStocksSnapshotTickers:async(a,e,i={})=>{let n="/v2/snapshot/locale/us/markets/stocks/tickers",r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),a&&(g.tickers=a),e!==void 0&&(g.include_otc=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getStocksTrades:async(a,e,i,n,r,s,t,o,g,u={})=>{se("getStocksTrades","stockTicker",a);let d="/v3/trades/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(a))),l=new URL(d,z),m;c&&(m=c.baseOptions);let f={method:"GET",...m,...u},p={},b={};await j(b,"apiKey",c),e!==void 0&&(b.timestamp=e),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),r!==void 0&&(b["timestamp.lte"]=r),s!==void 0&&(b["timestamp.lt"]=s),t!==void 0&&(b.order=t),o!==void 0&&(b.limit=o),g!==void 0&&(b.sort=g),K(l,b);let R=m&&m.headers?m.headers:{};return f.headers={...p,...R,...u.headers},{url:N(l),options:f}},getStocksV1Exchanges:async(a,e={})=>{let i="/stocks/v1/exchanges",n=new URL(i,z),r;c&&(r=c.baseOptions);let s={method:"GET",...r,...e},t={},o={};await j(o,"apiKey",c),a!==void 0&&(o.limit=a),K(n,o);let g=r&&r.headers?r.headers:{};return s.headers={...t,...g,...e.headers},{url:N(n),options:s}},getStocksV1ShortInterest:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w={})=>{let q="/stocks/v1/short-interest",I=new URL(q,z),F;c&&(F=c.baseOptions);let G={method:"GET",...F,...w},v={},C={};await j(C,"apiKey",c),a!==void 0&&(C.ticker=a),e!==void 0&&(C["ticker.any_of"]=e),i!==void 0&&(C["ticker.gt"]=i),n!==void 0&&(C["ticker.gte"]=n),r!==void 0&&(C["ticker.lt"]=r),s!==void 0&&(C["ticker.lte"]=s),t!==void 0&&(C.days_to_cover=t),o!==void 0&&(C["days_to_cover.any_of"]=o),g!==void 0&&(C["days_to_cover.gt"]=g),u!==void 0&&(C["days_to_cover.gte"]=u),d!==void 0&&(C["days_to_cover.lt"]=d),l!==void 0&&(C["days_to_cover.lte"]=l),m!==void 0&&(C.settlement_date=m),f!==void 0&&(C["settlement_date.any_of"]=f),p!==void 0&&(C["settlement_date.gt"]=p),b!==void 0&&(C["settlement_date.gte"]=b),R!==void 0&&(C["settlement_date.lt"]=R),_!==void 0&&(C["settlement_date.lte"]=_),x!==void 0&&(C.avg_daily_volume=x),h!==void 0&&(C["avg_daily_volume.any_of"]=h),A!==void 0&&(C["avg_daily_volume.gt"]=A),y!==void 0&&(C["avg_daily_volume.gte"]=y),V!==void 0&&(C["avg_daily_volume.lt"]=V),P!==void 0&&(C["avg_daily_volume.lte"]=P),O!==void 0&&(C.limit=O),k!==void 0&&(C.sort=k),K(I,C);let T=F&&F.headers?F.headers:{};return G.headers={...v,...T,...w.headers},{url:N(I),options:G}},getStocksV1ShortVolume:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w={})=>{let q="/stocks/v1/short-volume",I=new URL(q,z),F;c&&(F=c.baseOptions);let G={method:"GET",...F,...w},v={},C={};await j(C,"apiKey",c),a!==void 0&&(C.ticker=a),e!==void 0&&(C["ticker.any_of"]=e),i!==void 0&&(C["ticker.gt"]=i),n!==void 0&&(C["ticker.gte"]=n),r!==void 0&&(C["ticker.lt"]=r),s!==void 0&&(C["ticker.lte"]=s),t!==void 0&&(C.date=t),o!==void 0&&(C["date.any_of"]=o),g!==void 0&&(C["date.gt"]=g),u!==void 0&&(C["date.gte"]=u),d!==void 0&&(C["date.lt"]=d),l!==void 0&&(C["date.lte"]=l),m!==void 0&&(C.short_volume_ratio=m),f!==void 0&&(C["short_volume_ratio.any_of"]=f),p!==void 0&&(C["short_volume_ratio.gt"]=p),b!==void 0&&(C["short_volume_ratio.gte"]=b),R!==void 0&&(C["short_volume_ratio.lt"]=R),_!==void 0&&(C["short_volume_ratio.lte"]=_),x!==void 0&&(C.total_volume=x),h!==void 0&&(C["total_volume.any_of"]=h),A!==void 0&&(C["total_volume.gt"]=A),y!==void 0&&(C["total_volume.gte"]=y),V!==void 0&&(C["total_volume.lt"]=V),P!==void 0&&(C["total_volume.lte"]=P),O!==void 0&&(C.limit=O),k!==void 0&&(C.sort=k),K(I,C);let T=F&&F.headers?F.headers:{};return G.headers={...v,...T,...w.headers},{url:N(I),options:G}},getTicker:async(a,e,i={})=>{se("getTicker","ticker",a);let n="/v3/reference/tickers/{ticker}".replace("{ticker}",encodeURIComponent(String(a))),r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),e!==void 0&&(g.date=e instanceof Date?e.toISOString().substring(0,10):e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},getTmxV1CorporateEvents:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re={})=>{let te="/tmx/v1/corporate-events",fe=new URL(te,z),pe;c&&(pe=c.baseOptions);let be={method:"GET",...pe,...re},ie={},M={};await j(M,"apiKey",c),a!==void 0&&(M.date=a),e!==void 0&&(M["date.any_of"]=e),i!==void 0&&(M["date.gt"]=i),n!==void 0&&(M["date.gte"]=n),r!==void 0&&(M["date.lt"]=r),s!==void 0&&(M["date.lte"]=s),t!==void 0&&(M.type=t),o!==void 0&&(M["type.any_of"]=o),g!==void 0&&(M["type.gt"]=g),u!==void 0&&(M["type.gte"]=u),d!==void 0&&(M["type.lt"]=d),l!==void 0&&(M["type.lte"]=l),m!==void 0&&(M.status=m),f!==void 0&&(M["status.any_of"]=f),p!==void 0&&(M["status.gt"]=p),b!==void 0&&(M["status.gte"]=b),R!==void 0&&(M["status.lt"]=R),_!==void 0&&(M["status.lte"]=_),x!==void 0&&(M.ticker=x),h!==void 0&&(M["ticker.any_of"]=h),A!==void 0&&(M["ticker.gt"]=A),y!==void 0&&(M["ticker.gte"]=y),V!==void 0&&(M["ticker.lt"]=V),P!==void 0&&(M["ticker.lte"]=P),O!==void 0&&(M.isin=O),k!==void 0&&(M["isin.any_of"]=k),w!==void 0&&(M["isin.gt"]=w),q!==void 0&&(M["isin.gte"]=q),I!==void 0&&(M["isin.lt"]=I),F!==void 0&&(M["isin.lte"]=F),G!==void 0&&(M.trading_venue=G),v!==void 0&&(M["trading_venue.any_of"]=v),C!==void 0&&(M["trading_venue.gt"]=C),T!==void 0&&(M["trading_venue.gte"]=T),D!==void 0&&(M["trading_venue.lt"]=D),B!==void 0&&(M["trading_venue.lte"]=B),W!==void 0&&(M.tmx_company_id=W),J!==void 0&&(M["tmx_company_id.gt"]=J),Z!==void 0&&(M["tmx_company_id.gte"]=Z),ee!==void 0&&(M["tmx_company_id.lt"]=ee),L!==void 0&&(M["tmx_company_id.lte"]=L),U!==void 0&&(M.tmx_record_id=U),E!==void 0&&(M["tmx_record_id.any_of"]=E),S!==void 0&&(M["tmx_record_id.gt"]=S),ae!==void 0&&(M["tmx_record_id.gte"]=ae),ce!==void 0&&(M["tmx_record_id.lt"]=ce),ue!==void 0&&(M["tmx_record_id.lte"]=ue),de!==void 0&&(M.limit=de),me!==void 0&&(M.sort=me),K(fe,M);let he=pe&&pe.headers?pe.headers:{};return be.headers={...ie,...he,...re.headers},{url:N(fe),options:be}},listConditions:async(a,e,i,n,r,s,t,o={})=>{let g="/v3/reference/conditions",u=new URL(g,z),d;c&&(d=c.baseOptions);let l={method:"GET",...d,...o},m={},f={};await j(f,"apiKey",c),a!==void 0&&(f.asset_class=a),e!==void 0&&(f.data_type=e),i!==void 0&&(f.id=i),n!==void 0&&(f.sip=n),r!==void 0&&(f.order=r),s!==void 0&&(f.limit=s),t!==void 0&&(f.sort=t),K(u,f);let p=d&&d.headers?d.headers:{};return l.headers={...m,...p,...o.headers},{url:N(u),options:l}},listDividends:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B={})=>{let W="/v3/reference/dividends",J=new URL(W,z),Z;c&&(Z=c.baseOptions);let ee={method:"GET",...Z,...B},L={},U={};await j(U,"apiKey",c),a!==void 0&&(U.ticker=a),e!==void 0&&(U.ex_dividend_date=e instanceof Date?e.toISOString().substring(0,10):e),i!==void 0&&(U.record_date=i instanceof Date?i.toISOString().substring(0,10):i),n!==void 0&&(U.declaration_date=n instanceof Date?n.toISOString().substring(0,10):n),r!==void 0&&(U.pay_date=r instanceof Date?r.toISOString().substring(0,10):r),s!==void 0&&(U.frequency=s),t!==void 0&&(U.cash_amount=t),o!==void 0&&(U.dividend_type=o),g!==void 0&&(U["ticker.gte"]=g),u!==void 0&&(U["ticker.gt"]=u),d!==void 0&&(U["ticker.lte"]=d),l!==void 0&&(U["ticker.lt"]=l),m!==void 0&&(U["ex_dividend_date.gte"]=m instanceof Date?m.toISOString().substring(0,10):m),f!==void 0&&(U["ex_dividend_date.gt"]=f instanceof Date?f.toISOString().substring(0,10):f),p!==void 0&&(U["ex_dividend_date.lte"]=p instanceof Date?p.toISOString().substring(0,10):p),b!==void 0&&(U["ex_dividend_date.lt"]=b instanceof Date?b.toISOString().substring(0,10):b),R!==void 0&&(U["record_date.gte"]=R instanceof Date?R.toISOString().substring(0,10):R),_!==void 0&&(U["record_date.gt"]=_ instanceof Date?_.toISOString().substring(0,10):_),x!==void 0&&(U["record_date.lte"]=x instanceof Date?x.toISOString().substring(0,10):x),h!==void 0&&(U["record_date.lt"]=h instanceof Date?h.toISOString().substring(0,10):h),A!==void 0&&(U["declaration_date.gte"]=A instanceof Date?A.toISOString().substring(0,10):A),y!==void 0&&(U["declaration_date.gt"]=y instanceof Date?y.toISOString().substring(0,10):y),V!==void 0&&(U["declaration_date.lte"]=V instanceof Date?V.toISOString().substring(0,10):V),P!==void 0&&(U["declaration_date.lt"]=P instanceof Date?P.toISOString().substring(0,10):P),O!==void 0&&(U["pay_date.gte"]=O instanceof Date?O.toISOString().substring(0,10):O),k!==void 0&&(U["pay_date.gt"]=k instanceof Date?k.toISOString().substring(0,10):k),w!==void 0&&(U["pay_date.lte"]=w instanceof Date?w.toISOString().substring(0,10):w),q!==void 0&&(U["pay_date.lt"]=q instanceof Date?q.toISOString().substring(0,10):q),I!==void 0&&(U["cash_amount.gte"]=I),F!==void 0&&(U["cash_amount.gt"]=F),G!==void 0&&(U["cash_amount.lte"]=G),v!==void 0&&(U["cash_amount.lt"]=v),C!==void 0&&(U.order=C),T!==void 0&&(U.limit=T),D!==void 0&&(U.sort=D),K(J,U);let E=Z&&Z.headers?Z.headers:{};return ee.headers={...L,...E,...B.headers},{url:N(J),options:ee}},listExchanges:async(a,e,i={})=>{let n="/v3/reference/exchanges",r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),a!==void 0&&(g.asset_class=a),e!==void 0&&(g.locale=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},listFinancials:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A={})=>{let y="/vX/reference/financials",V=new URL(y,z),P;c&&(P=c.baseOptions);let O={method:"GET",...P,...A},k={},w={};await j(w,"apiKey",c),a!==void 0&&(w.ticker=a),e!==void 0&&(w.cik=e),i!==void 0&&(w.company_name=i),n!==void 0&&(w.sic=n),r!==void 0&&(w.filing_date=r instanceof Date?r.toISOString().substring(0,10):r),s!==void 0&&(w.period_of_report_date=s instanceof Date?s.toISOString().substring(0,10):s),t!==void 0&&(w.timeframe=t),o!==void 0&&(w.include_sources=o),g!==void 0&&(w["company_name.search"]=g),u!==void 0&&(w["filing_date.gte"]=u instanceof Date?u.toISOString().substring(0,10):u),d!==void 0&&(w["filing_date.gt"]=d instanceof Date?d.toISOString().substring(0,10):d),l!==void 0&&(w["filing_date.lte"]=l instanceof Date?l.toISOString().substring(0,10):l),m!==void 0&&(w["filing_date.lt"]=m instanceof Date?m.toISOString().substring(0,10):m),f!==void 0&&(w["period_of_report_date.gte"]=f instanceof Date?f.toISOString().substring(0,10):f),p!==void 0&&(w["period_of_report_date.gt"]=p instanceof Date?p.toISOString().substring(0,10):p),b!==void 0&&(w["period_of_report_date.lte"]=b instanceof Date?b.toISOString().substring(0,10):b),R!==void 0&&(w["period_of_report_date.lt"]=R instanceof Date?R.toISOString().substring(0,10):R),_!==void 0&&(w.order=_),x!==void 0&&(w.limit=x),h!==void 0&&(w.sort=h),K(V,w);let q=P&&P.headers?P.headers:{};return O.headers={...k,...q,...A.headers},{url:N(V),options:O}},listIPOs:async(a,e,i,n,r,s,t,o,g,u,d,l,m={})=>{let f="/vX/reference/ipos",p=new URL(f,z),b;c&&(b=c.baseOptions);let R={method:"GET",...b,...m},_={},x={};await j(x,"apiKey",c),a!==void 0&&(x.ticker=a),e!==void 0&&(x.us_code=e),i!==void 0&&(x.isin=i),n!==void 0&&(x.listing_date=n instanceof Date?n.toISOString().substring(0,10):n),r!==void 0&&(x.ipo_status=r),s!==void 0&&(x["listing_date.gte"]=s instanceof Date?s.toISOString().substring(0,10):s),t!==void 0&&(x["listing_date.gt"]=t instanceof Date?t.toISOString().substring(0,10):t),o!==void 0&&(x["listing_date.lte"]=o instanceof Date?o.toISOString().substring(0,10):o),g!==void 0&&(x["listing_date.lt"]=g instanceof Date?g.toISOString().substring(0,10):g),u!==void 0&&(x.order=u),d!==void 0&&(x.limit=d),l!==void 0&&(x.sort=l),K(p,x);let h=b&&b.headers?b.headers:{};return R.headers={..._,...h,...m.headers},{url:N(p),options:R}},listNews:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f={})=>{let p="/v2/reference/news",b=new URL(p,z),R;c&&(R=c.baseOptions);let _={method:"GET",...R,...f},x={},h={};if(await j(h,"apiKey",c),a!==void 0&&(h.ticker=a),e!==void 0)for(let[y,V]of Object.entries(e))h[y]=V;if(i!==void 0&&(h["ticker.gte"]=i),n!==void 0&&(h["ticker.gt"]=n),r!==void 0&&(h["ticker.lte"]=r),s!==void 0&&(h["ticker.lt"]=s),t!==void 0)for(let[y,V]of Object.entries(t))h[y]=V;if(o!==void 0)for(let[y,V]of Object.entries(o))h[y]=V;if(g!==void 0)for(let[y,V]of Object.entries(g))h[y]=V;if(u!==void 0)for(let[y,V]of Object.entries(u))h[y]=V;d!==void 0&&(h.order=d),l!==void 0&&(h.limit=l),m!==void 0&&(h.sort=m),K(b,h);let A=R&&R.headers?R.headers:{};return _.headers={...x,...A,...f.headers},{url:N(b),options:_}},listOptionsContracts:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V={})=>{let P="/v3/reference/options/contracts",O=new URL(P,z),k;c&&(k=c.baseOptions);let w={method:"GET",...k,...V},q={},I={};await j(I,"apiKey",c),a!==void 0&&(I.underlying_ticker=a),e!==void 0&&(I.ticker=e),i!==void 0&&(I.contract_type=i),n!==void 0&&(I.expiration_date=n),r!==void 0&&(I.as_of=r),s!==void 0&&(I.strike_price=s),t!==void 0&&(I.expired=t),o!==void 0&&(I["underlying_ticker.gte"]=o),g!==void 0&&(I["underlying_ticker.gt"]=g),u!==void 0&&(I["underlying_ticker.lte"]=u),d!==void 0&&(I["underlying_ticker.lt"]=d),l!==void 0&&(I["expiration_date.gte"]=l),m!==void 0&&(I["expiration_date.gt"]=m),f!==void 0&&(I["expiration_date.lte"]=f),p!==void 0&&(I["expiration_date.lt"]=p),b!==void 0&&(I["strike_price.gte"]=b),R!==void 0&&(I["strike_price.gt"]=R),_!==void 0&&(I["strike_price.lte"]=_),x!==void 0&&(I["strike_price.lt"]=x),h!==void 0&&(I.order=h),A!==void 0&&(I.limit=A),y!==void 0&&(I.sort=y),K(O,I);let F=k&&k.headers?k.headers:{};return w.headers={...q,...F,...V.headers},{url:N(O),options:w}},listStockSplits:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p={})=>{let b="/v3/reference/splits",R=new URL(b,z),_;c&&(_=c.baseOptions);let x={method:"GET",..._,...p},h={},A={};await j(A,"apiKey",c),a!==void 0&&(A.ticker=a),e!==void 0&&(A.execution_date=e instanceof Date?e.toISOString().substring(0,10):e),i!==void 0&&(A.reverse_split=i),n!==void 0&&(A["ticker.gte"]=n),r!==void 0&&(A["ticker.gt"]=r),s!==void 0&&(A["ticker.lte"]=s),t!==void 0&&(A["ticker.lt"]=t),o!==void 0&&(A["execution_date.gte"]=o instanceof Date?o.toISOString().substring(0,10):o),g!==void 0&&(A["execution_date.gt"]=g instanceof Date?g.toISOString().substring(0,10):g),u!==void 0&&(A["execution_date.lte"]=u instanceof Date?u.toISOString().substring(0,10):u),d!==void 0&&(A["execution_date.lt"]=d instanceof Date?d.toISOString().substring(0,10):d),l!==void 0&&(A.order=l),m!==void 0&&(A.limit=m),f!==void 0&&(A.sort=f),K(R,A);let y=_&&_.headers?_.headers:{};return x.headers={...h,...y,...p.headers},{url:N(R),options:x}},listTickerTypes:async(a,e,i={})=>{let n="/v3/reference/tickers/types",r=new URL(n,z),s;c&&(s=c.baseOptions);let t={method:"GET",...s,...i},o={},g={};await j(g,"apiKey",c),a!==void 0&&(g.asset_class=a),e!==void 0&&(g.locale=e),K(r,g);let u=s&&s.headers?s.headers:{};return t.headers={...o,...u,...i.headers},{url:N(r),options:t}},listTickers:async(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R={})=>{let _="/v3/reference/tickers",x=new URL(_,z),h;c&&(h=c.baseOptions);let A={method:"GET",...h,...R},y={},V={};await j(V,"apiKey",c),a!==void 0&&(V.ticker=a),e!==void 0&&(V.type=e),i!==void 0&&(V.market=i),n!==void 0&&(V.exchange=n),r!==void 0&&(V.cusip=r),s!==void 0&&(V.cik=s),t!==void 0&&(V.date=t instanceof Date?t.toISOString().substring(0,10):t),o!==void 0&&(V.search=o),g!==void 0&&(V.active=g),u!==void 0&&(V["ticker.gte"]=u),d!==void 0&&(V["ticker.gt"]=d),l!==void 0&&(V["ticker.lte"]=l),m!==void 0&&(V["ticker.lt"]=m),f!==void 0&&(V.order=f),p!==void 0&&(V.limit=p),b!==void 0&&(V.sort=b),K(x,V);let P=h&&h.headers?h.headers:{};return A.headers={...y,...P,...R.headers},{url:N(x),options:A}}}},X=function(c){let a=rt(c);return{async deprecatedGetCryptoSnapshotTickerBook(e,i){let n=await a.deprecatedGetCryptoSnapshotTickerBook(e,i),r=c?.serverIndex??0,s=H["DefaultApi.deprecatedGetCryptoSnapshotTickerBook"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async deprecatedGetHistoricCryptoTrades(e,i,n,r,s,t){let o=await a.deprecatedGetHistoricCryptoTrades(e,i,n,r,s,t),g=c?.serverIndex??0,u=H["DefaultApi.deprecatedGetHistoricCryptoTrades"]?.[g]?.url;return(d,l)=>$(o,Y,Q,c)(d,u||l)},async deprecatedGetHistoricForexQuotes(e,i,n,r,s,t){let o=await a.deprecatedGetHistoricForexQuotes(e,i,n,r,s,t),g=c?.serverIndex??0,u=H["DefaultApi.deprecatedGetHistoricForexQuotes"]?.[g]?.url;return(d,l)=>$(o,Y,Q,c)(d,u||l)},async deprecatedGetHistoricStocksQuotes(e,i,n,r,s,t,o){let g=await a.deprecatedGetHistoricStocksQuotes(e,i,n,r,s,t,o),u=c?.serverIndex??0,d=H["DefaultApi.deprecatedGetHistoricStocksQuotes"]?.[u]?.url;return(l,m)=>$(g,Y,Q,c)(l,d||m)},async deprecatedGetHistoricStocksTrades(e,i,n,r,s,t,o){let g=await a.deprecatedGetHistoricStocksTrades(e,i,n,r,s,t,o),u=c?.serverIndex??0,d=H["DefaultApi.deprecatedGetHistoricStocksTrades"]?.[u]?.url;return(l,m)=>$(g,Y,Q,c)(l,d||m)},async getBenzingaV1AnalystInsights(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae){let ce=await a.getBenzingaV1AnalystInsights(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae),ue=c?.serverIndex??0,de=H["DefaultApi.getBenzingaV1AnalystInsights"]?.[ue]?.url;return(me,re)=>$(ce,Y,Q,c)(me,de||re)},async getBenzingaV1Analysts(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q){let I=await a.getBenzingaV1Analysts(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q),F=c?.serverIndex??0,G=H["DefaultApi.getBenzingaV1Analysts"]?.[F]?.url;return(v,C)=>$(I,Y,Q,c)(v,G||C)},async getBenzingaV1ConsensusRatings(e,i,n,r,s,t,o,g,u){let d=await a.getBenzingaV1ConsensusRatings(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getBenzingaV1ConsensusRatings"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getBenzingaV1Earnings(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re){let _e=await a.getBenzingaV1Earnings(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re),xe=c?.serverIndex??0,oe=H["DefaultApi.getBenzingaV1Earnings"]?.[xe]?.url;return(ye,le)=>$(_e,Y,Q,c)(ye,oe||le)},async getBenzingaV1Firms(e,i,n,r,s,t,o,g,u){let d=await a.getBenzingaV1Firms(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getBenzingaV1Firms"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getBenzingaV1Guidance(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce){let ue=await a.getBenzingaV1Guidance(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce),de=c?.serverIndex??0,me=H["DefaultApi.getBenzingaV1Guidance"]?.[de]?.url;return(re,te)=>$(ue,Y,Q,c)(re,me||te)},async getBenzingaV1News(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G){let v=await a.getBenzingaV1News(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G),C=c?.serverIndex??0,T=H["DefaultApi.getBenzingaV1News"]?.[C]?.url;return(D,B)=>$(v,Y,Q,c)(D,T||B)},async getBenzingaV1Ratings(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M){let he=await a.getBenzingaV1Ratings(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M),Re=c?.serverIndex??0,_e=H["DefaultApi.getBenzingaV1Ratings"]?.[Re]?.url;return(xe,oe)=>$(he,Y,Q,c)(xe,_e||oe)},async getBenzingaV2News(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w){let q=await a.getBenzingaV2News(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w),I=c?.serverIndex??0,F=H["DefaultApi.getBenzingaV2News"]?.[I]?.url;return(G,v)=>$(q,Y,Q,c)(G,F||v)},async getCryptoAggregates(e,i,n,r,s,t,o,g,u){let d=await a.getCryptoAggregates(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getCryptoAggregates"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getCryptoEMA(e,i,n,r,s,t,o,g,u,d,l,m,f){let p=await a.getCryptoEMA(e,i,n,r,s,t,o,g,u,d,l,m,f),b=c?.serverIndex??0,R=H["DefaultApi.getCryptoEMA"]?.[b]?.url;return(_,x)=>$(p,Y,Q,c)(_,R||x)},async getCryptoMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b){let R=await a.getCryptoMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b),_=c?.serverIndex??0,x=H["DefaultApi.getCryptoMACD"]?.[_]?.url;return(h,A)=>$(R,Y,Q,c)(h,x||A)},async getCryptoOpenClose(e,i,n,r,s){let t=await a.getCryptoOpenClose(e,i,n,r,s),o=c?.serverIndex??0,g=H["DefaultApi.getCryptoOpenClose"]?.[o]?.url;return(u,d)=>$(t,Y,Q,c)(u,g||d)},async getCryptoRSI(e,i,n,r,s,t,o,g,u,d,l,m,f){let p=await a.getCryptoRSI(e,i,n,r,s,t,o,g,u,d,l,m,f),b=c?.serverIndex??0,R=H["DefaultApi.getCryptoRSI"]?.[b]?.url;return(_,x)=>$(p,Y,Q,c)(_,R||x)},async getCryptoSMA(e,i,n,r,s,t,o,g,u,d,l,m,f){let p=await a.getCryptoSMA(e,i,n,r,s,t,o,g,u,d,l,m,f),b=c?.serverIndex??0,R=H["DefaultApi.getCryptoSMA"]?.[b]?.url;return(_,x)=>$(p,Y,Q,c)(_,R||x)},async getCryptoSnapshotDirection(e,i){let n=await a.getCryptoSnapshotDirection(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getCryptoSnapshotDirection"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getCryptoSnapshotTicker(e,i){let n=await a.getCryptoSnapshotTicker(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getCryptoSnapshotTicker"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getCryptoSnapshotTickers(e,i){let n=await a.getCryptoSnapshotTickers(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getCryptoSnapshotTickers"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getCryptoTrades(e,i,n,r,s,t,o,g,u,d){let l=await a.getCryptoTrades(e,i,n,r,s,t,o,g,u,d),m=c?.serverIndex??0,f=H["DefaultApi.getCryptoTrades"]?.[m]?.url;return(p,b)=>$(l,Y,Q,c)(p,f||b)},async getCryptoV1Exchanges(e,i){let n=await a.getCryptoV1Exchanges(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getCryptoV1Exchanges"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getCurrencyConversion(e,i,n,r,s){let t=await a.getCurrencyConversion(e,i,n,r,s),o=c?.serverIndex??0,g=H["DefaultApi.getCurrencyConversion"]?.[o]?.url;return(u,d)=>$(t,Y,Q,c)(u,g||d)},async getEtfGlobalV1Analytics(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie){let ve=await a.getEtfGlobalV1Analytics(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie),Ve=c?.serverIndex??0,qe=H["DefaultApi.getEtfGlobalV1Analytics"]?.[Ve]?.url;return(Fe,ge)=>$(ve,Y,Q,c)(Fe,qe||ge)},async getEtfGlobalV1Constituents(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re){let te=await a.getEtfGlobalV1Constituents(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re),fe=c?.serverIndex??0,pe=H["DefaultApi.getEtfGlobalV1Constituents"]?.[fe]?.url;return(be,ie)=>$(te,Y,Q,c)(be,pe||ie)},async getEtfGlobalV1FundFlows(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h){let A=await a.getEtfGlobalV1FundFlows(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h),y=c?.serverIndex??0,V=H["DefaultApi.getEtfGlobalV1FundFlows"]?.[y]?.url;return(P,O)=>$(A,Y,Q,c)(P,V||O)},async getEtfGlobalV1Profiles(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h){let A=await a.getEtfGlobalV1Profiles(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h),y=c?.serverIndex??0,V=H["DefaultApi.getEtfGlobalV1Profiles"]?.[y]?.url;return(P,O)=>$(A,Y,Q,c)(P,V||O)},async getEtfGlobalV1Taxonomies(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h){let A=await a.getEtfGlobalV1Taxonomies(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h),y=c?.serverIndex??0,V=H["DefaultApi.getEtfGlobalV1Taxonomies"]?.[y]?.url;return(P,O)=>$(A,Y,Q,c)(P,V||O)},async getEvents(e,i,n){let r=await a.getEvents(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getEvents"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getFedV1Inflation(e,i,n,r,s,t,o,g,u){let d=await a.getFedV1Inflation(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getFedV1Inflation"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getFedV1InflationExpectations(e,i,n,r,s,t,o,g,u){let d=await a.getFedV1InflationExpectations(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getFedV1InflationExpectations"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getFedV1TreasuryYields(e,i,n,r,s,t,o,g,u){let d=await a.getFedV1TreasuryYields(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getFedV1TreasuryYields"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getForexAggregates(e,i,n,r,s,t,o,g,u){let d=await a.getForexAggregates(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getForexAggregates"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getForexEMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getForexEMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getForexEMA"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getForexMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R){let _=await a.getForexMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R),x=c?.serverIndex??0,h=H["DefaultApi.getForexMACD"]?.[x]?.url;return(A,y)=>$(_,Y,Q,c)(A,h||y)},async getForexQuotes(e,i,n,r,s,t,o,g,u,d){let l=await a.getForexQuotes(e,i,n,r,s,t,o,g,u,d),m=c?.serverIndex??0,f=H["DefaultApi.getForexQuotes"]?.[m]?.url;return(p,b)=>$(l,Y,Q,c)(p,f||b)},async getForexRSI(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getForexRSI(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getForexRSI"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getForexSMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getForexSMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getForexSMA"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getForexSnapshotDirection(e,i){let n=await a.getForexSnapshotDirection(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getForexSnapshotDirection"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getForexSnapshotTicker(e,i){let n=await a.getForexSnapshotTicker(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getForexSnapshotTicker"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getForexSnapshotTickers(e,i){let n=await a.getForexSnapshotTickers(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getForexSnapshotTickers"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getForexV1Exchanges(e,i){let n=await a.getForexV1Exchanges(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getForexV1Exchanges"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getFuturesAggregates(e,i,n,r,s,t,o,g,u,d){let l=await a.getFuturesAggregates(e,i,n,r,s,t,o,g,u,d),m=c?.serverIndex??0,f=H["DefaultApi.getFuturesAggregates"]?.[m]?.url;return(p,b)=>$(l,Y,Q,c)(p,f||b)},async getFuturesContractDetails(e,i,n){let r=await a.getFuturesContractDetails(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getFuturesContractDetails"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getFuturesContracts(e,i,n,r,s,t,o,g,u){let d=await a.getFuturesContracts(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getFuturesContracts"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getFuturesDailySchedules(e,i,n,r,s){let t=await a.getFuturesDailySchedules(e,i,n,r,s),o=c?.serverIndex??0,g=H["DefaultApi.getFuturesDailySchedules"]?.[o]?.url;return(u,d)=>$(t,Y,Q,c)(u,g||d)},async getFuturesMarketStatuses(e,i,n,r,s){let t=await a.getFuturesMarketStatuses(e,i,n,r,s),o=c?.serverIndex??0,g=H["DefaultApi.getFuturesMarketStatuses"]?.[o]?.url;return(u,d)=>$(t,Y,Q,c)(u,g||d)},async getFuturesProductDetails(e,i,n,r){let s=await a.getFuturesProductDetails(e,i,n,r),t=c?.serverIndex??0,o=H["DefaultApi.getFuturesProductDetails"]?.[t]?.url;return(g,u)=>$(s,Y,Q,c)(g,o||u)},async getFuturesProductSchedules(e,i,n,r,s,t,o,g,u){let d=await a.getFuturesProductSchedules(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getFuturesProductSchedules"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getFuturesProducts(e,i,n,r,s,t,o,g,u,d,l,m){let f=await a.getFuturesProducts(e,i,n,r,s,t,o,g,u,d,l,m),p=c?.serverIndex??0,b=H["DefaultApi.getFuturesProducts"]?.[p]?.url;return(R,_)=>$(f,Y,Q,c)(R,b||_)},async getFuturesQuotes(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getFuturesQuotes(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getFuturesQuotes"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getFuturesTrades(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getFuturesTrades(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getFuturesTrades"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getFuturesVXContractsNew(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J){let Z=await a.getFuturesVXContractsNew(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J),ee=c?.serverIndex??0,L=H["DefaultApi.getFuturesVXContractsNew"]?.[ee]?.url;return(U,E)=>$(Z,Y,Q,c)(U,L||E)},async getFuturesVXExchanges(e,i){let n=await a.getFuturesVXExchanges(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getFuturesVXExchanges"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getFuturesVXProductsNew(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te){let fe=await a.getFuturesVXProductsNew(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te),pe=c?.serverIndex??0,be=H["DefaultApi.getFuturesVXProductsNew"]?.[pe]?.url;return(ie,M)=>$(fe,Y,Q,c)(ie,be||M)},async getFuturesVXSnapshot(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b){let R=await a.getFuturesVXSnapshot(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b),_=c?.serverIndex??0,x=H["DefaultApi.getFuturesVXSnapshot"]?.[_]?.url;return(h,A)=>$(R,Y,Q,c)(h,x||A)},async getGroupedCryptoAggregates(e,i,n){let r=await a.getGroupedCryptoAggregates(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getGroupedCryptoAggregates"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getGroupedForexAggregates(e,i,n){let r=await a.getGroupedForexAggregates(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getGroupedForexAggregates"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getGroupedStocksAggregates(e,i,n,r){let s=await a.getGroupedStocksAggregates(e,i,n,r),t=c?.serverIndex??0,o=H["DefaultApi.getGroupedStocksAggregates"]?.[t]?.url;return(g,u)=>$(s,Y,Q,c)(g,o||u)},async getIndicesAggregates(e,i,n,r,s,t,o,g){let u=await a.getIndicesAggregates(e,i,n,r,s,t,o,g),d=c?.serverIndex??0,l=H["DefaultApi.getIndicesAggregates"]?.[d]?.url;return(m,f)=>$(u,Y,Q,c)(m,l||f)},async getIndicesEMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getIndicesEMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getIndicesEMA"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getIndicesMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R){let _=await a.getIndicesMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R),x=c?.serverIndex??0,h=H["DefaultApi.getIndicesMACD"]?.[x]?.url;return(A,y)=>$(_,Y,Q,c)(A,h||y)},async getIndicesOpenClose(e,i,n){let r=await a.getIndicesOpenClose(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getIndicesOpenClose"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getIndicesRSI(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getIndicesRSI(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getIndicesRSI"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getIndicesSMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getIndicesSMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getIndicesSMA"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getIndicesSnapshot(e,i,n,r,s,t,o,g,u,d){let l=await a.getIndicesSnapshot(e,i,n,r,s,t,o,g,u,d),m=c?.serverIndex??0,f=H["DefaultApi.getIndicesSnapshot"]?.[m]?.url;return(p,b)=>$(l,Y,Q,c)(p,f||b)},async getLastCryptoTrade(e,i,n){let r=await a.getLastCryptoTrade(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getLastCryptoTrade"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getLastCurrencyQuote(e,i,n){let r=await a.getLastCurrencyQuote(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getLastCurrencyQuote"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getLastOptionsTrade(e,i){let n=await a.getLastOptionsTrade(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getLastOptionsTrade"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getLastStocksQuote(e,i){let n=await a.getLastStocksQuote(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getLastStocksQuote"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getLastStocksTrade(e,i){let n=await a.getLastStocksTrade(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getLastStocksTrade"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getMarketHolidays(e){let i=await a.getMarketHolidays(e),n=c?.serverIndex??0,r=H["DefaultApi.getMarketHolidays"]?.[n]?.url;return(s,t)=>$(i,Y,Q,c)(s,r||t)},async getMarketStatus(e){let i=await a.getMarketStatus(e),n=c?.serverIndex??0,r=H["DefaultApi.getMarketStatus"]?.[n]?.url;return(s,t)=>$(i,Y,Q,c)(s,r||t)},async getOptionContract(e,i,n){let r=await a.getOptionContract(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getOptionContract"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getOptionsAggregates(e,i,n,r,s,t,o,g,u){let d=await a.getOptionsAggregates(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getOptionsAggregates"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getOptionsChain(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R){let _=await a.getOptionsChain(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R),x=c?.serverIndex??0,h=H["DefaultApi.getOptionsChain"]?.[x]?.url;return(A,y)=>$(_,Y,Q,c)(A,h||y)},async getOptionsContract(e,i,n){let r=await a.getOptionsContract(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getOptionsContract"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getOptionsEMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getOptionsEMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getOptionsEMA"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getOptionsMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R){let _=await a.getOptionsMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R),x=c?.serverIndex??0,h=H["DefaultApi.getOptionsMACD"]?.[x]?.url;return(A,y)=>$(_,Y,Q,c)(A,h||y)},async getOptionsOpenClose(e,i,n,r){let s=await a.getOptionsOpenClose(e,i,n,r),t=c?.serverIndex??0,o=H["DefaultApi.getOptionsOpenClose"]?.[t]?.url;return(g,u)=>$(s,Y,Q,c)(g,o||u)},async getOptionsQuotes(e,i,n,r,s,t,o,g,u,d){let l=await a.getOptionsQuotes(e,i,n,r,s,t,o,g,u,d),m=c?.serverIndex??0,f=H["DefaultApi.getOptionsQuotes"]?.[m]?.url;return(p,b)=>$(l,Y,Q,c)(p,f||b)},async getOptionsRSI(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getOptionsRSI(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getOptionsRSI"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getOptionsSMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getOptionsSMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getOptionsSMA"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getOptionsTrades(e,i,n,r,s,t,o,g,u,d){let l=await a.getOptionsTrades(e,i,n,r,s,t,o,g,u,d),m=c?.serverIndex??0,f=H["DefaultApi.getOptionsTrades"]?.[m]?.url;return(p,b)=>$(l,Y,Q,c)(p,f||b)},async getOptionsV1Exchanges(e,i){let n=await a.getOptionsV1Exchanges(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getOptionsV1Exchanges"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getPreviousCryptoAggregates(e,i,n){let r=await a.getPreviousCryptoAggregates(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getPreviousCryptoAggregates"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getPreviousForexAggregates(e,i,n){let r=await a.getPreviousForexAggregates(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getPreviousForexAggregates"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getPreviousIndicesAggregates(e,i){let n=await a.getPreviousIndicesAggregates(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getPreviousIndicesAggregates"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getPreviousOptionsAggregates(e,i,n){let r=await a.getPreviousOptionsAggregates(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getPreviousOptionsAggregates"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getPreviousStocksAggregates(e,i,n){let r=await a.getPreviousStocksAggregates(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getPreviousStocksAggregates"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getRelatedCompanies(e,i){let n=await a.getRelatedCompanies(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getRelatedCompanies"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getSnapshotSummary(e,i){let n=await a.getSnapshotSummary(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getSnapshotSummary"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getSnapshots(e,i,n,r,s,t,o,g,u,d,l){let m=await a.getSnapshots(e,i,n,r,s,t,o,g,u,d,l),f=c?.serverIndex??0,p=H["DefaultApi.getSnapshots"]?.[f]?.url;return(b,R)=>$(m,Y,Q,c)(b,p||R)},async getStocksAggregates(e,i,n,r,s,t,o,g,u){let d=await a.getStocksAggregates(e,i,n,r,s,t,o,g,u),l=c?.serverIndex??0,m=H["DefaultApi.getStocksAggregates"]?.[l]?.url;return(f,p)=>$(d,Y,Q,c)(f,m||p)},async getStocksEMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getStocksEMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getStocksEMA"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getStocksFinancialsV1BalanceSheets(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z){let ee=await a.getStocksFinancialsV1BalanceSheets(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z),L=c?.serverIndex??0,U=H["DefaultApi.getStocksFinancialsV1BalanceSheets"]?.[L]?.url;return(E,S)=>$(ee,Y,Q,c)(E,U||S)},async getStocksFinancialsV1CashFlowStatements(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z){let ee=await a.getStocksFinancialsV1CashFlowStatements(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z),L=c?.serverIndex??0,U=H["DefaultApi.getStocksFinancialsV1CashFlowStatements"]?.[L]?.url;return(E,S)=>$(ee,Y,Q,c)(E,U||S)},async getStocksFinancialsV1IncomeStatements(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z){let ee=await a.getStocksFinancialsV1IncomeStatements(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z),L=c?.serverIndex??0,U=H["DefaultApi.getStocksFinancialsV1IncomeStatements"]?.[L]?.url;return(E,S)=>$(ee,Y,Q,c)(E,U||S)},async getStocksFinancialsV1Ratios(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve,qe,Fe,ge,Be,Ue,Me,Ee,De,Qe,He,ze,je,Ke,Ne,$e,Xe,We,Ye,Je,Ze,Le,en,nn,rn,tn,sn,an,on,gn,un,dn,ln,cn,mn,pn,fn,bn,hn,Rn,_n,xn,yn,An){let Vn=await a.getStocksFinancialsV1Ratios(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve,qe,Fe,ge,Be,Ue,Me,Ee,De,Qe,He,ze,je,Ke,Ne,$e,Xe,We,Ye,Je,Ze,Le,en,nn,rn,tn,sn,an,on,gn,un,dn,ln,cn,mn,pn,fn,bn,hn,Rn,_n,xn,yn,An),Ge=c?.serverIndex??0,On=H["DefaultApi.getStocksFinancialsV1Ratios"]?.[Ge]?.url;return(kn,ne)=>$(Vn,Y,Q,c)(kn,On||ne)},async getStocksMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R){let _=await a.getStocksMACD(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R),x=c?.serverIndex??0,h=H["DefaultApi.getStocksMACD"]?.[x]?.url;return(A,y)=>$(_,Y,Q,c)(A,h||y)},async getStocksOpenClose(e,i,n,r){let s=await a.getStocksOpenClose(e,i,n,r),t=c?.serverIndex??0,o=H["DefaultApi.getStocksOpenClose"]?.[t]?.url;return(g,u)=>$(s,Y,Q,c)(g,o||u)},async getStocksQuotes(e,i,n,r,s,t,o,g,u,d){let l=await a.getStocksQuotes(e,i,n,r,s,t,o,g,u,d),m=c?.serverIndex??0,f=H["DefaultApi.getStocksQuotes"]?.[m]?.url;return(p,b)=>$(l,Y,Q,c)(p,f||b)},async getStocksRSI(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getStocksRSI(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getStocksRSI"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getStocksSMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.getStocksSMA(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.getStocksSMA"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async getStocksSnapshotDirection(e,i,n){let r=await a.getStocksSnapshotDirection(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getStocksSnapshotDirection"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getStocksSnapshotTicker(e,i){let n=await a.getStocksSnapshotTicker(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getStocksSnapshotTicker"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getStocksSnapshotTickers(e,i,n){let r=await a.getStocksSnapshotTickers(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getStocksSnapshotTickers"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getStocksTrades(e,i,n,r,s,t,o,g,u,d){let l=await a.getStocksTrades(e,i,n,r,s,t,o,g,u,d),m=c?.serverIndex??0,f=H["DefaultApi.getStocksTrades"]?.[m]?.url;return(p,b)=>$(l,Y,Q,c)(p,f||b)},async getStocksV1Exchanges(e,i){let n=await a.getStocksV1Exchanges(e,i),r=c?.serverIndex??0,s=H["DefaultApi.getStocksV1Exchanges"]?.[r]?.url;return(t,o)=>$(n,Y,Q,c)(t,s||o)},async getStocksV1ShortInterest(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q){let I=await a.getStocksV1ShortInterest(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q),F=c?.serverIndex??0,G=H["DefaultApi.getStocksV1ShortInterest"]?.[F]?.url;return(v,C)=>$(I,Y,Q,c)(v,G||C)},async getStocksV1ShortVolume(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q){let I=await a.getStocksV1ShortVolume(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q),F=c?.serverIndex??0,G=H["DefaultApi.getStocksV1ShortVolume"]?.[F]?.url;return(v,C)=>$(I,Y,Q,c)(v,G||C)},async getTicker(e,i,n){let r=await a.getTicker(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.getTicker"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async getTmxV1CorporateEvents(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te){let fe=await a.getTmxV1CorporateEvents(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te),pe=c?.serverIndex??0,be=H["DefaultApi.getTmxV1CorporateEvents"]?.[pe]?.url;return(ie,M)=>$(fe,Y,Q,c)(ie,be||M)},async listConditions(e,i,n,r,s,t,o,g){let u=await a.listConditions(e,i,n,r,s,t,o,g),d=c?.serverIndex??0,l=H["DefaultApi.listConditions"]?.[d]?.url;return(m,f)=>$(u,Y,Q,c)(m,l||f)},async listDividends(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W){let J=await a.listDividends(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W),Z=c?.serverIndex??0,ee=H["DefaultApi.listDividends"]?.[Z]?.url;return(L,U)=>$(J,Y,Q,c)(L,ee||U)},async listExchanges(e,i,n){let r=await a.listExchanges(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.listExchanges"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async listFinancials(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y){let V=await a.listFinancials(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y),P=c?.serverIndex??0,O=H["DefaultApi.listFinancials"]?.[P]?.url;return(k,w)=>$(V,Y,Q,c)(k,O||w)},async listIPOs(e,i,n,r,s,t,o,g,u,d,l,m,f){let p=await a.listIPOs(e,i,n,r,s,t,o,g,u,d,l,m,f),b=c?.serverIndex??0,R=H["DefaultApi.listIPOs"]?.[b]?.url;return(_,x)=>$(p,Y,Q,c)(_,R||x)},async listNews(e,i,n,r,s,t,o,g,u,d,l,m,f,p){let b=await a.listNews(e,i,n,r,s,t,o,g,u,d,l,m,f,p),R=c?.serverIndex??0,_=H["DefaultApi.listNews"]?.[R]?.url;return(x,h)=>$(b,Y,Q,c)(x,_||h)},async listOptionsContracts(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P){let O=await a.listOptionsContracts(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P),k=c?.serverIndex??0,w=H["DefaultApi.listOptionsContracts"]?.[k]?.url;return(q,I)=>$(O,Y,Q,c)(q,w||I)},async listStockSplits(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b){let R=await a.listStockSplits(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b),_=c?.serverIndex??0,x=H["DefaultApi.listStockSplits"]?.[_]?.url;return(h,A)=>$(R,Y,Q,c)(h,x||A)},async listTickerTypes(e,i,n){let r=await a.listTickerTypes(e,i,n),s=c?.serverIndex??0,t=H["DefaultApi.listTickerTypes"]?.[s]?.url;return(o,g)=>$(r,Y,Q,c)(o,t||g)},async listTickers(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_){let x=await a.listTickers(e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_),h=c?.serverIndex??0,A=H["DefaultApi.listTickers"]?.[h]?.url;return(y,V)=>$(x,Y,Q,c)(y,A||V)}}},Li=function(c,a,e){let i=X(c);return{deprecatedGetCryptoSnapshotTickerBook(n,r){return i.deprecatedGetCryptoSnapshotTickerBook(n,r).then(s=>s(e,a))},deprecatedGetHistoricCryptoTrades(n,r,s,t,o,g){return i.deprecatedGetHistoricCryptoTrades(n,r,s,t,o,g).then(u=>u(e,a))},deprecatedGetHistoricForexQuotes(n,r,s,t,o,g){return i.deprecatedGetHistoricForexQuotes(n,r,s,t,o,g).then(u=>u(e,a))},deprecatedGetHistoricStocksQuotes(n,r,s,t,o,g,u){return i.deprecatedGetHistoricStocksQuotes(n,r,s,t,o,g,u).then(d=>d(e,a))},deprecatedGetHistoricStocksTrades(n,r,s,t,o,g,u){return i.deprecatedGetHistoricStocksTrades(n,r,s,t,o,g,u).then(d=>d(e,a))},getBenzingaV1AnalystInsights(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue){return i.getBenzingaV1AnalystInsights(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue).then(de=>de(e,a))},getBenzingaV1Analysts(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F){return i.getBenzingaV1Analysts(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F).then(G=>G(e,a))},getBenzingaV1ConsensusRatings(n,r,s,t,o,g,u,d,l){return i.getBenzingaV1ConsensusRatings(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getBenzingaV1Earnings(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe){return i.getBenzingaV1Earnings(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe).then(oe=>oe(e,a))},getBenzingaV1Firms(n,r,s,t,o,g,u,d,l){return i.getBenzingaV1Firms(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getBenzingaV1Guidance(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de){return i.getBenzingaV1Guidance(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de).then(me=>me(e,a))},getBenzingaV1News(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C){return i.getBenzingaV1News(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C).then(T=>T(e,a))},getBenzingaV1Ratings(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re){return i.getBenzingaV1Ratings(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re).then(_e=>_e(e,a))},getBenzingaV2News(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I){return i.getBenzingaV2News(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I).then(F=>F(e,a))},getCryptoAggregates(n,r,s,t,o,g,u,d,l){return i.getCryptoAggregates(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getCryptoEMA(n,r,s,t,o,g,u,d,l,m,f,p,b){return i.getCryptoEMA(n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(e,a))},getCryptoMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_){return i.getCryptoMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_).then(x=>x(e,a))},getCryptoOpenClose(n,r,s,t,o){return i.getCryptoOpenClose(n,r,s,t,o).then(g=>g(e,a))},getCryptoRSI(n,r,s,t,o,g,u,d,l,m,f,p,b){return i.getCryptoRSI(n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(e,a))},getCryptoSMA(n,r,s,t,o,g,u,d,l,m,f,p,b){return i.getCryptoSMA(n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(e,a))},getCryptoSnapshotDirection(n,r){return i.getCryptoSnapshotDirection(n,r).then(s=>s(e,a))},getCryptoSnapshotTicker(n,r){return i.getCryptoSnapshotTicker(n,r).then(s=>s(e,a))},getCryptoSnapshotTickers(n,r){return i.getCryptoSnapshotTickers(n,r).then(s=>s(e,a))},getCryptoTrades(n,r,s,t,o,g,u,d,l,m){return i.getCryptoTrades(n,r,s,t,o,g,u,d,l,m).then(f=>f(e,a))},getCryptoV1Exchanges(n,r){return i.getCryptoV1Exchanges(n,r).then(s=>s(e,a))},getCurrencyConversion(n,r,s,t,o){return i.getCurrencyConversion(n,r,s,t,o).then(g=>g(e,a))},getEtfGlobalV1Analytics(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve){return i.getEtfGlobalV1Analytics(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve).then(qe=>qe(e,a))},getEtfGlobalV1Constituents(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe){return i.getEtfGlobalV1Constituents(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe).then(pe=>pe(e,a))},getEtfGlobalV1FundFlows(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y){return i.getEtfGlobalV1FundFlows(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y).then(V=>V(e,a))},getEtfGlobalV1Profiles(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y){return i.getEtfGlobalV1Profiles(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y).then(V=>V(e,a))},getEtfGlobalV1Taxonomies(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y){return i.getEtfGlobalV1Taxonomies(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y).then(V=>V(e,a))},getEvents(n,r,s){return i.getEvents(n,r,s).then(t=>t(e,a))},getFedV1Inflation(n,r,s,t,o,g,u,d,l){return i.getFedV1Inflation(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getFedV1InflationExpectations(n,r,s,t,o,g,u,d,l){return i.getFedV1InflationExpectations(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getFedV1TreasuryYields(n,r,s,t,o,g,u,d,l){return i.getFedV1TreasuryYields(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getForexAggregates(n,r,s,t,o,g,u,d,l){return i.getForexAggregates(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getForexEMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getForexEMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getForexMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x){return i.getForexMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x).then(h=>h(e,a))},getForexQuotes(n,r,s,t,o,g,u,d,l,m){return i.getForexQuotes(n,r,s,t,o,g,u,d,l,m).then(f=>f(e,a))},getForexRSI(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getForexRSI(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getForexSMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getForexSMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getForexSnapshotDirection(n,r){return i.getForexSnapshotDirection(n,r).then(s=>s(e,a))},getForexSnapshotTicker(n,r){return i.getForexSnapshotTicker(n,r).then(s=>s(e,a))},getForexSnapshotTickers(n,r){return i.getForexSnapshotTickers(n,r).then(s=>s(e,a))},getForexV1Exchanges(n,r){return i.getForexV1Exchanges(n,r).then(s=>s(e,a))},getFuturesAggregates(n,r,s,t,o,g,u,d,l,m){return i.getFuturesAggregates(n,r,s,t,o,g,u,d,l,m).then(f=>f(e,a))},getFuturesContractDetails(n,r,s){return i.getFuturesContractDetails(n,r,s).then(t=>t(e,a))},getFuturesContracts(n,r,s,t,o,g,u,d,l){return i.getFuturesContracts(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getFuturesDailySchedules(n,r,s,t,o){return i.getFuturesDailySchedules(n,r,s,t,o).then(g=>g(e,a))},getFuturesMarketStatuses(n,r,s,t,o){return i.getFuturesMarketStatuses(n,r,s,t,o).then(g=>g(e,a))},getFuturesProductDetails(n,r,s,t){return i.getFuturesProductDetails(n,r,s,t).then(o=>o(e,a))},getFuturesProductSchedules(n,r,s,t,o,g,u,d,l){return i.getFuturesProductSchedules(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getFuturesProducts(n,r,s,t,o,g,u,d,l,m,f,p){return i.getFuturesProducts(n,r,s,t,o,g,u,d,l,m,f,p).then(b=>b(e,a))},getFuturesQuotes(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getFuturesQuotes(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getFuturesTrades(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getFuturesTrades(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getFuturesVXContractsNew(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee){return i.getFuturesVXContractsNew(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee).then(L=>L(e,a))},getFuturesVXExchanges(n,r){return i.getFuturesVXExchanges(n,r).then(s=>s(e,a))},getFuturesVXProductsNew(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe){return i.getFuturesVXProductsNew(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe).then(be=>be(e,a))},getFuturesVXSnapshot(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_){return i.getFuturesVXSnapshot(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_).then(x=>x(e,a))},getGroupedCryptoAggregates(n,r,s){return i.getGroupedCryptoAggregates(n,r,s).then(t=>t(e,a))},getGroupedForexAggregates(n,r,s){return i.getGroupedForexAggregates(n,r,s).then(t=>t(e,a))},getGroupedStocksAggregates(n,r,s,t){return i.getGroupedStocksAggregates(n,r,s,t).then(o=>o(e,a))},getIndicesAggregates(n,r,s,t,o,g,u,d){return i.getIndicesAggregates(n,r,s,t,o,g,u,d).then(l=>l(e,a))},getIndicesEMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getIndicesEMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getIndicesMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x){return i.getIndicesMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x).then(h=>h(e,a))},getIndicesOpenClose(n,r,s){return i.getIndicesOpenClose(n,r,s).then(t=>t(e,a))},getIndicesRSI(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getIndicesRSI(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getIndicesSMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getIndicesSMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getIndicesSnapshot(n,r,s,t,o,g,u,d,l,m){return i.getIndicesSnapshot(n,r,s,t,o,g,u,d,l,m).then(f=>f(e,a))},getLastCryptoTrade(n,r,s){return i.getLastCryptoTrade(n,r,s).then(t=>t(e,a))},getLastCurrencyQuote(n,r,s){return i.getLastCurrencyQuote(n,r,s).then(t=>t(e,a))},getLastOptionsTrade(n,r){return i.getLastOptionsTrade(n,r).then(s=>s(e,a))},getLastStocksQuote(n,r){return i.getLastStocksQuote(n,r).then(s=>s(e,a))},getLastStocksTrade(n,r){return i.getLastStocksTrade(n,r).then(s=>s(e,a))},getMarketHolidays(n){return i.getMarketHolidays(n).then(r=>r(e,a))},getMarketStatus(n){return i.getMarketStatus(n).then(r=>r(e,a))},getOptionContract(n,r,s){return i.getOptionContract(n,r,s).then(t=>t(e,a))},getOptionsAggregates(n,r,s,t,o,g,u,d,l){return i.getOptionsAggregates(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getOptionsChain(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x){return i.getOptionsChain(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x).then(h=>h(e,a))},getOptionsContract(n,r,s){return i.getOptionsContract(n,r,s).then(t=>t(e,a))},getOptionsEMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getOptionsEMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getOptionsMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x){return i.getOptionsMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x).then(h=>h(e,a))},getOptionsOpenClose(n,r,s,t){return i.getOptionsOpenClose(n,r,s,t).then(o=>o(e,a))},getOptionsQuotes(n,r,s,t,o,g,u,d,l,m){return i.getOptionsQuotes(n,r,s,t,o,g,u,d,l,m).then(f=>f(e,a))},getOptionsRSI(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getOptionsRSI(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getOptionsSMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getOptionsSMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getOptionsTrades(n,r,s,t,o,g,u,d,l,m){return i.getOptionsTrades(n,r,s,t,o,g,u,d,l,m).then(f=>f(e,a))},getOptionsV1Exchanges(n,r){return i.getOptionsV1Exchanges(n,r).then(s=>s(e,a))},getPreviousCryptoAggregates(n,r,s){return i.getPreviousCryptoAggregates(n,r,s).then(t=>t(e,a))},getPreviousForexAggregates(n,r,s){return i.getPreviousForexAggregates(n,r,s).then(t=>t(e,a))},getPreviousIndicesAggregates(n,r){return i.getPreviousIndicesAggregates(n,r).then(s=>s(e,a))},getPreviousOptionsAggregates(n,r,s){return i.getPreviousOptionsAggregates(n,r,s).then(t=>t(e,a))},getPreviousStocksAggregates(n,r,s){return i.getPreviousStocksAggregates(n,r,s).then(t=>t(e,a))},getRelatedCompanies(n,r){return i.getRelatedCompanies(n,r).then(s=>s(e,a))},getSnapshotSummary(n,r){return i.getSnapshotSummary(n,r).then(s=>s(e,a))},getSnapshots(n,r,s,t,o,g,u,d,l,m,f){return i.getSnapshots(n,r,s,t,o,g,u,d,l,m,f).then(p=>p(e,a))},getStocksAggregates(n,r,s,t,o,g,u,d,l){return i.getStocksAggregates(n,r,s,t,o,g,u,d,l).then(m=>m(e,a))},getStocksEMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getStocksEMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getStocksFinancialsV1BalanceSheets(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L){return i.getStocksFinancialsV1BalanceSheets(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L).then(U=>U(e,a))},getStocksFinancialsV1CashFlowStatements(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L){return i.getStocksFinancialsV1CashFlowStatements(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L).then(U=>U(e,a))},getStocksFinancialsV1IncomeStatements(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L){return i.getStocksFinancialsV1IncomeStatements(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L).then(U=>U(e,a))},getStocksFinancialsV1Ratios(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve,qe,Fe,ge,Be,Ue,Me,Ee,De,Qe,He,ze,je,Ke,Ne,$e,Xe,We,Ye,Je,Ze,Le,en,nn,rn,tn,sn,an,on,gn,un,dn,ln,cn,mn,pn,fn,bn,hn,Rn,_n,xn,yn,An,Vn,Ge){return i.getStocksFinancialsV1Ratios(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve,qe,Fe,ge,Be,Ue,Me,Ee,De,Qe,He,ze,je,Ke,Ne,$e,Xe,We,Ye,Je,Ze,Le,en,nn,rn,tn,sn,an,on,gn,un,dn,ln,cn,mn,pn,fn,bn,hn,Rn,_n,xn,yn,An,Vn,Ge).then(On=>On(e,a))},getStocksMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x){return i.getStocksMACD(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x).then(h=>h(e,a))},getStocksOpenClose(n,r,s,t){return i.getStocksOpenClose(n,r,s,t).then(o=>o(e,a))},getStocksQuotes(n,r,s,t,o,g,u,d,l,m){return i.getStocksQuotes(n,r,s,t,o,g,u,d,l,m).then(f=>f(e,a))},getStocksRSI(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getStocksRSI(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getStocksSMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.getStocksSMA(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},getStocksSnapshotDirection(n,r,s){return i.getStocksSnapshotDirection(n,r,s).then(t=>t(e,a))},getStocksSnapshotTicker(n,r){return i.getStocksSnapshotTicker(n,r).then(s=>s(e,a))},getStocksSnapshotTickers(n,r,s){return i.getStocksSnapshotTickers(n,r,s).then(t=>t(e,a))},getStocksTrades(n,r,s,t,o,g,u,d,l,m){return i.getStocksTrades(n,r,s,t,o,g,u,d,l,m).then(f=>f(e,a))},getStocksV1Exchanges(n,r){return i.getStocksV1Exchanges(n,r).then(s=>s(e,a))},getStocksV1ShortInterest(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F){return i.getStocksV1ShortInterest(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F).then(G=>G(e,a))},getStocksV1ShortVolume(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F){return i.getStocksV1ShortVolume(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F).then(G=>G(e,a))},getTicker(n,r,s){return i.getTicker(n,r,s).then(t=>t(e,a))},getTmxV1CorporateEvents(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe){return i.getTmxV1CorporateEvents(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe).then(be=>be(e,a))},listConditions(n,r,s,t,o,g,u,d){return i.listConditions(n,r,s,t,o,g,u,d).then(l=>l(e,a))},listDividends(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z){return i.listDividends(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z).then(ee=>ee(e,a))},listExchanges(n,r,s){return i.listExchanges(n,r,s).then(t=>t(e,a))},listFinancials(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P){return i.listFinancials(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P).then(O=>O(e,a))},listIPOs(n,r,s,t,o,g,u,d,l,m,f,p,b){return i.listIPOs(n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(e,a))},listNews(n,r,s,t,o,g,u,d,l,m,f,p,b,R){return i.listNews(n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(e,a))},listOptionsContracts(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k){return i.listOptionsContracts(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k).then(w=>w(e,a))},listStockSplits(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_){return i.listStockSplits(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_).then(x=>x(e,a))},listTickerTypes(n,r,s){return i.listTickerTypes(n,r,s).then(t=>t(e,a))},listTickers(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h){return i.listTickers(n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h).then(A=>A(e,a))}}},Pn=class extends Cn{deprecatedGetCryptoSnapshotTickerBook(a,e){return X(this.configuration).deprecatedGetCryptoSnapshotTickerBook(a,e).then(i=>i(this.axios,this.basePath))}deprecatedGetHistoricCryptoTrades(a,e,i,n,r,s){return X(this.configuration).deprecatedGetHistoricCryptoTrades(a,e,i,n,r,s).then(t=>t(this.axios,this.basePath))}deprecatedGetHistoricForexQuotes(a,e,i,n,r,s){return X(this.configuration).deprecatedGetHistoricForexQuotes(a,e,i,n,r,s).then(t=>t(this.axios,this.basePath))}deprecatedGetHistoricStocksQuotes(a,e,i,n,r,s,t){return X(this.configuration).deprecatedGetHistoricStocksQuotes(a,e,i,n,r,s,t).then(o=>o(this.axios,this.basePath))}deprecatedGetHistoricStocksTrades(a,e,i,n,r,s,t){return X(this.configuration).deprecatedGetHistoricStocksTrades(a,e,i,n,r,s,t).then(o=>o(this.axios,this.basePath))}getBenzingaV1AnalystInsights(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S){return X(this.configuration).getBenzingaV1AnalystInsights(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S).then(ae=>ae(this.axios,this.basePath))}getBenzingaV1Analysts(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w){return X(this.configuration).getBenzingaV1Analysts(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w).then(q=>q(this.axios,this.basePath))}getBenzingaV1ConsensusRatings(a,e,i,n,r,s,t,o,g){return X(this.configuration).getBenzingaV1ConsensusRatings(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getBenzingaV1Earnings(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he){return X(this.configuration).getBenzingaV1Earnings(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he).then(Re=>Re(this.axios,this.basePath))}getBenzingaV1Firms(a,e,i,n,r,s,t,o,g){return X(this.configuration).getBenzingaV1Firms(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getBenzingaV1Guidance(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae){return X(this.configuration).getBenzingaV1Guidance(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae).then(ce=>ce(this.axios,this.basePath))}getBenzingaV1News(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F){return X(this.configuration).getBenzingaV1News(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F).then(G=>G(this.axios,this.basePath))}getBenzingaV1Ratings(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie){return X(this.configuration).getBenzingaV1Ratings(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie).then(M=>M(this.axios,this.basePath))}getBenzingaV2News(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k){return X(this.configuration).getBenzingaV2News(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k).then(w=>w(this.axios,this.basePath))}getCryptoAggregates(a,e,i,n,r,s,t,o,g){return X(this.configuration).getCryptoAggregates(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getCryptoEMA(a,e,i,n,r,s,t,o,g,u,d,l,m){return X(this.configuration).getCryptoEMA(a,e,i,n,r,s,t,o,g,u,d,l,m).then(f=>f(this.axios,this.basePath))}getCryptoMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p){return X(this.configuration).getCryptoMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p).then(b=>b(this.axios,this.basePath))}getCryptoOpenClose(a,e,i,n,r){return X(this.configuration).getCryptoOpenClose(a,e,i,n,r).then(s=>s(this.axios,this.basePath))}getCryptoRSI(a,e,i,n,r,s,t,o,g,u,d,l,m){return X(this.configuration).getCryptoRSI(a,e,i,n,r,s,t,o,g,u,d,l,m).then(f=>f(this.axios,this.basePath))}getCryptoSMA(a,e,i,n,r,s,t,o,g,u,d,l,m){return X(this.configuration).getCryptoSMA(a,e,i,n,r,s,t,o,g,u,d,l,m).then(f=>f(this.axios,this.basePath))}getCryptoSnapshotDirection(a,e){return X(this.configuration).getCryptoSnapshotDirection(a,e).then(i=>i(this.axios,this.basePath))}getCryptoSnapshotTicker(a,e){return X(this.configuration).getCryptoSnapshotTicker(a,e).then(i=>i(this.axios,this.basePath))}getCryptoSnapshotTickers(a,e){return X(this.configuration).getCryptoSnapshotTickers(a,e).then(i=>i(this.axios,this.basePath))}getCryptoTrades(a,e,i,n,r,s,t,o,g,u){return X(this.configuration).getCryptoTrades(a,e,i,n,r,s,t,o,g,u).then(d=>d(this.axios,this.basePath))}getCryptoV1Exchanges(a,e){return X(this.configuration).getCryptoV1Exchanges(a,e).then(i=>i(this.axios,this.basePath))}getCurrencyConversion(a,e,i,n,r){return X(this.configuration).getCurrencyConversion(a,e,i,n,r).then(s=>s(this.axios,this.basePath))}getEtfGlobalV1Analytics(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke){return X(this.configuration).getEtfGlobalV1Analytics(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke).then(Ie=>Ie(this.axios,this.basePath))}getEtfGlobalV1Constituents(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me){return X(this.configuration).getEtfGlobalV1Constituents(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me).then(re=>re(this.axios,this.basePath))}getEtfGlobalV1FundFlows(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x){return X(this.configuration).getEtfGlobalV1FundFlows(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x).then(h=>h(this.axios,this.basePath))}getEtfGlobalV1Profiles(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x){return X(this.configuration).getEtfGlobalV1Profiles(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x).then(h=>h(this.axios,this.basePath))}getEtfGlobalV1Taxonomies(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x){return X(this.configuration).getEtfGlobalV1Taxonomies(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x).then(h=>h(this.axios,this.basePath))}getEvents(a,e,i){return X(this.configuration).getEvents(a,e,i).then(n=>n(this.axios,this.basePath))}getFedV1Inflation(a,e,i,n,r,s,t,o,g){return X(this.configuration).getFedV1Inflation(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getFedV1InflationExpectations(a,e,i,n,r,s,t,o,g){return X(this.configuration).getFedV1InflationExpectations(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getFedV1TreasuryYields(a,e,i,n,r,s,t,o,g){return X(this.configuration).getFedV1TreasuryYields(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getForexAggregates(a,e,i,n,r,s,t,o,g){return X(this.configuration).getForexAggregates(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getForexEMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getForexEMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getForexMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b){return X(this.configuration).getForexMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(this.axios,this.basePath))}getForexQuotes(a,e,i,n,r,s,t,o,g,u){return X(this.configuration).getForexQuotes(a,e,i,n,r,s,t,o,g,u).then(d=>d(this.axios,this.basePath))}getForexRSI(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getForexRSI(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getForexSMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getForexSMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getForexSnapshotDirection(a,e){return X(this.configuration).getForexSnapshotDirection(a,e).then(i=>i(this.axios,this.basePath))}getForexSnapshotTicker(a,e){return X(this.configuration).getForexSnapshotTicker(a,e).then(i=>i(this.axios,this.basePath))}getForexSnapshotTickers(a,e){return X(this.configuration).getForexSnapshotTickers(a,e).then(i=>i(this.axios,this.basePath))}getForexV1Exchanges(a,e){return X(this.configuration).getForexV1Exchanges(a,e).then(i=>i(this.axios,this.basePath))}getFuturesAggregates(a,e,i,n,r,s,t,o,g,u){return X(this.configuration).getFuturesAggregates(a,e,i,n,r,s,t,o,g,u).then(d=>d(this.axios,this.basePath))}getFuturesContractDetails(a,e,i){return X(this.configuration).getFuturesContractDetails(a,e,i).then(n=>n(this.axios,this.basePath))}getFuturesContracts(a,e,i,n,r,s,t,o,g){return X(this.configuration).getFuturesContracts(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getFuturesDailySchedules(a,e,i,n,r){return X(this.configuration).getFuturesDailySchedules(a,e,i,n,r).then(s=>s(this.axios,this.basePath))}getFuturesMarketStatuses(a,e,i,n,r){return X(this.configuration).getFuturesMarketStatuses(a,e,i,n,r).then(s=>s(this.axios,this.basePath))}getFuturesProductDetails(a,e,i,n){return X(this.configuration).getFuturesProductDetails(a,e,i,n).then(r=>r(this.axios,this.basePath))}getFuturesProductSchedules(a,e,i,n,r,s,t,o,g){return X(this.configuration).getFuturesProductSchedules(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getFuturesProducts(a,e,i,n,r,s,t,o,g,u,d,l){return X(this.configuration).getFuturesProducts(a,e,i,n,r,s,t,o,g,u,d,l).then(m=>m(this.axios,this.basePath))}getFuturesQuotes(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getFuturesQuotes(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getFuturesTrades(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getFuturesTrades(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getFuturesVXContractsNew(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W){return X(this.configuration).getFuturesVXContractsNew(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W).then(J=>J(this.axios,this.basePath))}getFuturesVXExchanges(a,e){return X(this.configuration).getFuturesVXExchanges(a,e).then(i=>i(this.axios,this.basePath))}getFuturesVXProductsNew(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re){return X(this.configuration).getFuturesVXProductsNew(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re).then(te=>te(this.axios,this.basePath))}getFuturesVXSnapshot(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p){return X(this.configuration).getFuturesVXSnapshot(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p).then(b=>b(this.axios,this.basePath))}getGroupedCryptoAggregates(a,e,i){return X(this.configuration).getGroupedCryptoAggregates(a,e,i).then(n=>n(this.axios,this.basePath))}getGroupedForexAggregates(a,e,i){return X(this.configuration).getGroupedForexAggregates(a,e,i).then(n=>n(this.axios,this.basePath))}getGroupedStocksAggregates(a,e,i,n){return X(this.configuration).getGroupedStocksAggregates(a,e,i,n).then(r=>r(this.axios,this.basePath))}getIndicesAggregates(a,e,i,n,r,s,t,o){return X(this.configuration).getIndicesAggregates(a,e,i,n,r,s,t,o).then(g=>g(this.axios,this.basePath))}getIndicesEMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getIndicesEMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getIndicesMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b){return X(this.configuration).getIndicesMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(this.axios,this.basePath))}getIndicesOpenClose(a,e,i){return X(this.configuration).getIndicesOpenClose(a,e,i).then(n=>n(this.axios,this.basePath))}getIndicesRSI(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getIndicesRSI(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getIndicesSMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getIndicesSMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getIndicesSnapshot(a,e,i,n,r,s,t,o,g,u){return X(this.configuration).getIndicesSnapshot(a,e,i,n,r,s,t,o,g,u).then(d=>d(this.axios,this.basePath))}getLastCryptoTrade(a,e,i){return X(this.configuration).getLastCryptoTrade(a,e,i).then(n=>n(this.axios,this.basePath))}getLastCurrencyQuote(a,e,i){return X(this.configuration).getLastCurrencyQuote(a,e,i).then(n=>n(this.axios,this.basePath))}getLastOptionsTrade(a,e){return X(this.configuration).getLastOptionsTrade(a,e).then(i=>i(this.axios,this.basePath))}getLastStocksQuote(a,e){return X(this.configuration).getLastStocksQuote(a,e).then(i=>i(this.axios,this.basePath))}getLastStocksTrade(a,e){return X(this.configuration).getLastStocksTrade(a,e).then(i=>i(this.axios,this.basePath))}getMarketHolidays(a){return X(this.configuration).getMarketHolidays(a).then(e=>e(this.axios,this.basePath))}getMarketStatus(a){return X(this.configuration).getMarketStatus(a).then(e=>e(this.axios,this.basePath))}getOptionContract(a,e,i){return X(this.configuration).getOptionContract(a,e,i).then(n=>n(this.axios,this.basePath))}getOptionsAggregates(a,e,i,n,r,s,t,o,g){return X(this.configuration).getOptionsAggregates(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getOptionsChain(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b){return X(this.configuration).getOptionsChain(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(this.axios,this.basePath))}getOptionsContract(a,e,i){return X(this.configuration).getOptionsContract(a,e,i).then(n=>n(this.axios,this.basePath))}getOptionsEMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getOptionsEMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getOptionsMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b){return X(this.configuration).getOptionsMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(this.axios,this.basePath))}getOptionsOpenClose(a,e,i,n){return X(this.configuration).getOptionsOpenClose(a,e,i,n).then(r=>r(this.axios,this.basePath))}getOptionsQuotes(a,e,i,n,r,s,t,o,g,u){return X(this.configuration).getOptionsQuotes(a,e,i,n,r,s,t,o,g,u).then(d=>d(this.axios,this.basePath))}getOptionsRSI(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getOptionsRSI(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getOptionsSMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getOptionsSMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getOptionsTrades(a,e,i,n,r,s,t,o,g,u){return X(this.configuration).getOptionsTrades(a,e,i,n,r,s,t,o,g,u).then(d=>d(this.axios,this.basePath))}getOptionsV1Exchanges(a,e){return X(this.configuration).getOptionsV1Exchanges(a,e).then(i=>i(this.axios,this.basePath))}getPreviousCryptoAggregates(a,e,i){return X(this.configuration).getPreviousCryptoAggregates(a,e,i).then(n=>n(this.axios,this.basePath))}getPreviousForexAggregates(a,e,i){return X(this.configuration).getPreviousForexAggregates(a,e,i).then(n=>n(this.axios,this.basePath))}getPreviousIndicesAggregates(a,e){return X(this.configuration).getPreviousIndicesAggregates(a,e).then(i=>i(this.axios,this.basePath))}getPreviousOptionsAggregates(a,e,i){return X(this.configuration).getPreviousOptionsAggregates(a,e,i).then(n=>n(this.axios,this.basePath))}getPreviousStocksAggregates(a,e,i){return X(this.configuration).getPreviousStocksAggregates(a,e,i).then(n=>n(this.axios,this.basePath))}getRelatedCompanies(a,e){return X(this.configuration).getRelatedCompanies(a,e).then(i=>i(this.axios,this.basePath))}getSnapshotSummary(a,e){return X(this.configuration).getSnapshotSummary(a,e).then(i=>i(this.axios,this.basePath))}getSnapshots(a,e,i,n,r,s,t,o,g,u,d){return X(this.configuration).getSnapshots(a,e,i,n,r,s,t,o,g,u,d).then(l=>l(this.axios,this.basePath))}getStocksAggregates(a,e,i,n,r,s,t,o,g){return X(this.configuration).getStocksAggregates(a,e,i,n,r,s,t,o,g).then(u=>u(this.axios,this.basePath))}getStocksEMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getStocksEMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getStocksFinancialsV1BalanceSheets(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J){return X(this.configuration).getStocksFinancialsV1BalanceSheets(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J).then(Z=>Z(this.axios,this.basePath))}getStocksFinancialsV1CashFlowStatements(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J){return X(this.configuration).getStocksFinancialsV1CashFlowStatements(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J).then(Z=>Z(this.axios,this.basePath))}getStocksFinancialsV1IncomeStatements(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J){return X(this.configuration).getStocksFinancialsV1IncomeStatements(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J).then(Z=>Z(this.axios,this.basePath))}getStocksFinancialsV1Ratios(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve,qe,Fe,ge,Be,Ue,Me,Ee,De,Qe,He,ze,je,Ke,Ne,$e,Xe,We,Ye,Je,Ze,Le,en,nn,rn,tn,sn,an,on,gn,un,dn,ln,cn,mn,pn,fn,bn,hn,Rn,_n,xn,yn){return X(this.configuration).getStocksFinancialsV1Ratios(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re,te,fe,pe,be,ie,M,he,Re,_e,xe,oe,ye,le,Ae,Oe,Ce,Se,Pe,we,ke,Ie,ve,Ve,qe,Fe,ge,Be,Ue,Me,Ee,De,Qe,He,ze,je,Ke,Ne,$e,Xe,We,Ye,Je,Ze,Le,en,nn,rn,tn,sn,an,on,gn,un,dn,ln,cn,mn,pn,fn,bn,hn,Rn,_n,xn,yn).then(An=>An(this.axios,this.basePath))}getStocksMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b){return X(this.configuration).getStocksMACD(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b).then(R=>R(this.axios,this.basePath))}getStocksOpenClose(a,e,i,n){return X(this.configuration).getStocksOpenClose(a,e,i,n).then(r=>r(this.axios,this.basePath))}getStocksQuotes(a,e,i,n,r,s,t,o,g,u){return X(this.configuration).getStocksQuotes(a,e,i,n,r,s,t,o,g,u).then(d=>d(this.axios,this.basePath))}getStocksRSI(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getStocksRSI(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getStocksSMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).getStocksSMA(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}getStocksSnapshotDirection(a,e,i){return X(this.configuration).getStocksSnapshotDirection(a,e,i).then(n=>n(this.axios,this.basePath))}getStocksSnapshotTicker(a,e){return X(this.configuration).getStocksSnapshotTicker(a,e).then(i=>i(this.axios,this.basePath))}getStocksSnapshotTickers(a,e,i){return X(this.configuration).getStocksSnapshotTickers(a,e,i).then(n=>n(this.axios,this.basePath))}getStocksTrades(a,e,i,n,r,s,t,o,g,u){return X(this.configuration).getStocksTrades(a,e,i,n,r,s,t,o,g,u).then(d=>d(this.axios,this.basePath))}getStocksV1Exchanges(a,e){return X(this.configuration).getStocksV1Exchanges(a,e).then(i=>i(this.axios,this.basePath))}getStocksV1ShortInterest(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w){return X(this.configuration).getStocksV1ShortInterest(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w).then(q=>q(this.axios,this.basePath))}getStocksV1ShortVolume(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w){return X(this.configuration).getStocksV1ShortVolume(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w).then(q=>q(this.axios,this.basePath))}getTicker(a,e,i){return X(this.configuration).getTicker(a,e,i).then(n=>n(this.axios,this.basePath))}getTmxV1CorporateEvents(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re){return X(this.configuration).getTmxV1CorporateEvents(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B,W,J,Z,ee,L,U,E,S,ae,ce,ue,de,me,re).then(te=>te(this.axios,this.basePath))}listConditions(a,e,i,n,r,s,t,o){return X(this.configuration).listConditions(a,e,i,n,r,s,t,o).then(g=>g(this.axios,this.basePath))}listDividends(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B){return X(this.configuration).listDividends(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V,P,O,k,w,q,I,F,G,v,C,T,D,B).then(W=>W(this.axios,this.basePath))}listExchanges(a,e,i){return X(this.configuration).listExchanges(a,e,i).then(n=>n(this.axios,this.basePath))}listFinancials(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A){return X(this.configuration).listFinancials(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A).then(y=>y(this.axios,this.basePath))}listIPOs(a,e,i,n,r,s,t,o,g,u,d,l,m){return X(this.configuration).listIPOs(a,e,i,n,r,s,t,o,g,u,d,l,m).then(f=>f(this.axios,this.basePath))}listNews(a,e,i,n,r,s,t,o,g,u,d,l,m,f){return X(this.configuration).listNews(a,e,i,n,r,s,t,o,g,u,d,l,m,f).then(p=>p(this.axios,this.basePath))}listOptionsContracts(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V){return X(this.configuration).listOptionsContracts(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R,_,x,h,A,y,V).then(P=>P(this.axios,this.basePath))}listStockSplits(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p){return X(this.configuration).listStockSplits(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p).then(b=>b(this.axios,this.basePath))}listTickerTypes(a,e,i){return X(this.configuration).listTickerTypes(a,e,i).then(n=>n(this.axios,this.basePath))}listTickers(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R){return X(this.configuration).listTickers(a,e,i,n,r,s,t,o,g,u,d,l,m,f,p,b,R).then(_=>_(this.axios,this.basePath))}},tt=(o=>(o.Second="second",o.Minute="minute",o.Hour="hour",o.Day="day",o.Week="week",o.Month="month",o.Quarter="quarter",o.Year="year",o))(tt||{}),st=(e=>(e.Asc="asc",e.Desc="desc",e))(st||{}),it=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(it||{}),at=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(at||{}),ot=(e=>(e.Asc="asc",e.Desc="desc",e))(ot||{}),gt=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(gt||{}),ut=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ut||{}),dt=(e=>(e.Asc="asc",e.Desc="desc",e))(dt||{}),lt=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(lt||{}),ct=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ct||{}),mt=(e=>(e.Asc="asc",e.Desc="desc",e))(mt||{}),pt=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(pt||{}),ft=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ft||{}),bt=(e=>(e.Asc="asc",e.Desc="desc",e))(bt||{}),ht=(e=>(e.Gainers="gainers",e.Losers="losers",e))(ht||{}),Rt=(e=>(e.Asc="asc",e.Desc="desc",e))(Rt||{}),_t=(a=>(a.Timestamp="timestamp",a))(_t||{}),xt=(r=>(r[r.NUMBER_0=0]="NUMBER_0",r[r.NUMBER_1=1]="NUMBER_1",r[r.NUMBER_2=2]="NUMBER_2",r[r.NUMBER_3=3]="NUMBER_3",r[r.NUMBER_4=4]="NUMBER_4",r))(xt||{}),yt=(o=>(o.Second="second",o.Minute="minute",o.Hour="hour",o.Day="day",o.Week="week",o.Month="month",o.Quarter="quarter",o.Year="year",o))(yt||{}),At=(e=>(e.Asc="asc",e.Desc="desc",e))(At||{}),Vt=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(Vt||{}),Ot=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Ot||{}),Ct=(e=>(e.Asc="asc",e.Desc="desc",e))(Ct||{}),St=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(St||{}),Pt=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Pt||{}),wt=(e=>(e.Asc="asc",e.Desc="desc",e))(wt||{}),kt=(e=>(e.Asc="asc",e.Desc="desc",e))(kt||{}),It=(a=>(a.Timestamp="timestamp",a))(It||{}),vt=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(vt||{}),qt=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(qt||{}),Ft=(e=>(e.Asc="asc",e.Desc="desc",e))(Ft||{}),Tt=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(Tt||{}),Bt=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Bt||{}),Gt=(e=>(e.Asc="asc",e.Desc="desc",e))(Gt||{}),Ut=(e=>(e.Gainers="gainers",e.Losers="losers",e))(Ut||{}),Mt=(e=>(e.WindowStartAsc="window_start.asc",e.WindowStartDesc="window_start.desc",e))(Mt||{}),Et=(i=>(i.All="all",i.True="true",i.False="false",i))(Et||{}),Dt=(i=>(i.All="all",i.Single="single",i.Combo="combo",i))(Dt||{}),Qt=(s=>(s.ProductCodeAsc="product_code.asc",s.ProductCodeDesc="product_code.desc",s.FirstTradeDateAsc="first_trade_date.asc",s.FirstTradeDateDesc="first_trade_date.desc",s.LastTradeDateAsc="last_trade_date.asc",s.LastTradeDateDesc="last_trade_date.desc",s))(Qt||{}),Ht=(e=>(e.TradingVenueAsc="trading_venue.asc",e.TradingVenueDesc="trading_venue.desc",e))(Ht||{}),zt=(e=>(e.ProductCodeAsc="product_code.asc",e.ProductCodeDesc="product_code.desc",e))(zt||{}),jt=(e=>(e.Single="single",e.Combo="combo",e))(jt||{}),Kt=(e=>(e.SessionEndDateAsc="session_end_date.asc",e.SessionEndDateDesc="session_end_date.desc",e))(Kt||{}),Nt=(T=>(T.Asia="asia",T.Base="base",T.Biofuels="biofuels",T.Coal="coal",T.CrossRates="cross_rates",T.CrudeOil="crude_oil",T.CustomIndex="custom_index",T.Dairy="dairy",T.DjUbsCi="dj_ubs_ci",T.Electricity="electricity",T.Emissions="emissions",T.Europe="europe",T.Fertilizer="fertilizer",T.Forestry="forestry",T.GrainsAndOilseeds="grains_and_oilseeds",T.IntlIndex="intl_index",T.LiqNatGasLng="liq_nat_gas_lng",T.Livestock="livestock",T.LongTermGov="long_term_gov",T.LongTermNonGov="long_term_non_gov",T.Majors="majors",T.Minors="minors",T.NatGas="nat_gas",T.NatGasLiqPetro="nat_gas_liq_petro",T.Precious="precious",T.RefinedProducts="refined_products",T.SAndPGsci="s_and_p_gsci",T.SelSectorIndex="sel_sector_index",T.ShortTermGov="short_term_gov",T.ShortTermNonGov="short_term_non_gov",T.Softs="softs",T.Us="us",T.UsIndex="us_index",T.WetBulk="wet_bulk",T))(Nt||{}),$t=(_=>(_.Asian="asian",_.Canadian="canadian",_.Cat="cat",_.CoolingDegreeDays="cooling_degree_days",_.Ercot="ercot",_.European="european",_.Gulf="gulf",_.HeatingDegreeDays="heating_degree_days",_.IsoNe="iso_ne",_.LargeCapIndex="large_cap_index",_.MidCapIndex="mid_cap_index",_.Miso="miso",_.NorthAmerican="north_american",_.Nyiso="nyiso",_.Pjm="pjm",_.SmallCapIndex="small_cap_index",_.West="west",_.WesternPower="western_power",_))($t||{}),Xt=(i=>(i.AltInvestment="alt_investment",i.Commodity="commodity",i.Financials="financials",i))(Xt||{}),Wt=(u=>(u.Agricultural="agricultural",u.CommodityIndex="commodity_index",u.Energy="energy",u.Equity="equity",u.ForeignExchange="foreign_exchange",u.Freight="freight",u.Housing="housing",u.InterestRate="interest_rate",u.Metals="metals",u.Weather="weather",u))(Wt||{}),Yt=(i=>(i.All="all",i.Single="single",i.Combo="combo",i))(Yt||{}),Jt=(f=>(f.NameAsc="name.asc",f.NameDesc="name.desc",f.TradingVenueAsc="trading_venue.asc",f.TradingVenueDesc="trading_venue.desc",f.SectorAsc="sector.asc",f.SectorDesc="sector.desc",f.SubSectorAsc="sub_sector.asc",f.SubSectorDesc="sub_sector.desc",f.AssetClassAsc="asset_class.asc",f.AssetClassDesc="asset_class.desc",f.AssetSubClassAsc="asset_sub_class.asc",f.AssetSubClassDesc="asset_sub_class.desc",f.TypeAsc="type.asc",f.TypeDesc="type.desc",f))(Jt||{}),Zt=(e=>(e.TimestampAsc="timestamp.asc",e.TimestampDesc="timestamp.desc",e))(Zt||{}),Lt=(e=>(e.TimestampAsc="timestamp.asc",e.TimestampDesc="timestamp.desc",e))(Lt||{}),es=(o=>(o.Second="second",o.Minute="minute",o.Hour="hour",o.Day="day",o.Week="week",o.Month="month",o.Quarter="quarter",o.Year="year",o))(es||{}),ns=(e=>(e.Asc="asc",e.Desc="desc",e))(ns||{}),rs=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(rs||{}),ts=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ts||{}),ss=(e=>(e.Asc="asc",e.Desc="desc",e))(ss||{}),is=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(is||{}),as=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(as||{}),os=(e=>(e.Asc="asc",e.Desc="desc",e))(os||{}),gs=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(gs||{}),us=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(us||{}),ds=(e=>(e.Asc="asc",e.Desc="desc",e))(ds||{}),ls=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(ls||{}),cs=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(cs||{}),ms=(e=>(e.Asc="asc",e.Desc="desc",e))(ms||{}),ps=(e=>(e.Asc="asc",e.Desc="desc",e))(ps||{}),fs=(a=>(a.Ticker="ticker",a))(fs||{}),bs=(o=>(o.Second="second",o.Minute="minute",o.Hour="hour",o.Day="day",o.Week="week",o.Month="month",o.Quarter="quarter",o.Year="year",o))(bs||{}),hs=(e=>(e.Asc="asc",e.Desc="desc",e))(hs||{}),Rs=(e=>(e.Call="call",e.Put="put",e))(Rs||{}),_s=(e=>(e.Asc="asc",e.Desc="desc",e))(_s||{}),xs=(i=>(i.Ticker="ticker",i.ExpirationDate="expiration_date",i.StrikePrice="strike_price",i))(xs||{}),ys=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(ys||{}),As=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(As||{}),Vs=(e=>(e.Asc="asc",e.Desc="desc",e))(Vs||{}),Os=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(Os||{}),Cs=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Cs||{}),Ss=(e=>(e.Asc="asc",e.Desc="desc",e))(Ss||{}),Ps=(e=>(e.Asc="asc",e.Desc="desc",e))(Ps||{}),ws=(a=>(a.Timestamp="timestamp",a))(ws||{}),ks=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(ks||{}),Is=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Is||{}),vs=(e=>(e.Asc="asc",e.Desc="desc",e))(vs||{}),qs=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(qs||{}),Fs=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Fs||{}),Ts=(e=>(e.Asc="asc",e.Desc="desc",e))(Ts||{}),Bs=(e=>(e.Asc="asc",e.Desc="desc",e))(Bs||{}),Gs=(a=>(a.Timestamp="timestamp",a))(Gs||{}),Us=(r=>(r.Stocks="stocks",r.Options="options",r.Crypto="crypto",r.Fx="fx",r.Indices="indices",r))(Us||{}),Ms=(e=>(e.Asc="asc",e.Desc="desc",e))(Ms||{}),Es=(a=>(a.Ticker="ticker",a))(Es||{}),Ds=(o=>(o.Second="second",o.Minute="minute",o.Hour="hour",o.Day="day",o.Week="week",o.Month="month",o.Quarter="quarter",o.Year="year",o))(Ds||{}),Qs=(e=>(e.Asc="asc",e.Desc="desc",e))(Qs||{}),Hs=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(Hs||{}),zs=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(zs||{}),js=(e=>(e.Asc="asc",e.Desc="desc",e))(js||{}),Ks=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(Ks||{}),Ns=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Ns||{}),$s=(e=>(e.Asc="asc",e.Desc="desc",e))($s||{}),Xs=(e=>(e.Asc="asc",e.Desc="desc",e))(Xs||{}),Ws=(a=>(a.Timestamp="timestamp",a))(Ws||{}),Ys=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(Ys||{}),Js=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Js||{}),Zs=(e=>(e.Asc="asc",e.Desc="desc",e))(Zs||{}),Ls=(t=>(t.Minute="minute",t.Hour="hour",t.Day="day",t.Week="week",t.Month="month",t.Quarter="quarter",t.Year="year",t))(Ls||{}),ei=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ei||{}),ni=(e=>(e.Asc="asc",e.Desc="desc",e))(ni||{}),ri=(e=>(e.Gainers="gainers",e.Losers="losers",e))(ri||{}),ti=(e=>(e.Asc="asc",e.Desc="desc",e))(ti||{}),si=(a=>(a.Timestamp="timestamp",a))(si||{}),ii=(n=>(n.Stocks="stocks",n.Options="options",n.Crypto="crypto",n.Fx="fx",n))(ii||{}),ai=(i=>(i.Trade="trade",i.Bbo="bbo",i.Nbbo="nbbo",i))(ai||{}),oi=(i=>(i.Cta="CTA",i.Utp="UTP",i.Opra="OPRA",i))(oi||{}),gi=(e=>(e.Asc="asc",e.Desc="desc",e))(gi||{}),ui=(s=>(s.AssetClass="asset_class",s.Id="id",s.Type="type",s.Name="name",s.DataTypes="data_types",s.Legacy="legacy",s))(ui||{}),di=(t=>(t[t.NUMBER_0=0]="NUMBER_0",t[t.NUMBER_1=1]="NUMBER_1",t[t.NUMBER_2=2]="NUMBER_2",t[t.NUMBER_4=4]="NUMBER_4",t[t.NUMBER_12=12]="NUMBER_12",t[t.NUMBER_24=24]="NUMBER_24",t[t.NUMBER_52=52]="NUMBER_52",t))(di||{}),li=(n=>(n.Cd="CD",n.Sc="SC",n.Lt="LT",n.St="ST",n))(li||{}),ci=(e=>(e.Asc="asc",e.Desc="desc",e))(ci||{}),mi=(s=>(s.ExDividendDate="ex_dividend_date",s.PayDate="pay_date",s.DeclarationDate="declaration_date",s.RecordDate="record_date",s.CashAmount="cash_amount",s.Ticker="ticker",s))(mi||{}),pi=(r=>(r.Stocks="stocks",r.Options="options",r.Crypto="crypto",r.Fx="fx",r.Futures="futures",r))(pi||{}),fi=(e=>(e.Us="us",e.Global="global",e))(fi||{}),bi=(i=>(i.Annual="annual",i.Quarterly="quarterly",i.Ttm="ttm",i))(bi||{}),hi=(e=>(e.Asc="asc",e.Desc="desc",e))(hi||{}),Ri=(e=>(e.FilingDate="filing_date",e.PeriodOfReportDate="period_of_report_date",e))(Ri||{}),_i=(t=>(t.DirectListingProcess="direct_listing_process",t.History="history",t.New="new",t.Pending="pending",t.Postponed="postponed",t.Rumor="rumor",t.Withdrawn="withdrawn",t))(_i||{}),xi=(e=>(e.Asc="asc",e.Desc="desc",e))(xi||{}),yi=(h=>(h.ListingDate="listing_date",h.Ticker="ticker",h.LastUpdated="last_updated",h.SecurityType="security_type",h.IssuerName="issuer_name",h.CurrencyCode="currency_code",h.Isin="isin",h.UsCode="us_code",h.FinalIssuePrice="final_issue_price",h.MinSharesOffered="min_shares_offered",h.MaxSharesOffered="max_shares_offered",h.LowestOfferPrice="lowest_offer_price",h.HighestOfferPrice="highest_offer_price",h.TotalOfferSize="total_offer_size",h.SharesOutstanding="shares_outstanding",h.PrimaryExchange="primary_exchange",h.LotSize="lot_size",h.SecurityDescription="security_description",h.IpoStatus="ipo_status",h.AnnouncedDate="announced_date",h))(yi||{}),Ai=(e=>(e.Asc="asc",e.Desc="desc",e))(Ai||{}),Vi=(a=>(a.PublishedUtc="published_utc",a))(Vi||{}),Oi=(e=>(e.Call="call",e.Put="put",e))(Oi||{}),Ci=(e=>(e.Asc="asc",e.Desc="desc",e))(Ci||{}),Si=(n=>(n.Ticker="ticker",n.UnderlyingTicker="underlying_ticker",n.ExpirationDate="expiration_date",n.StrikePrice="strike_price",n))(Si||{}),Pi=(e=>(e.Asc="asc",e.Desc="desc",e))(Pi||{}),wi=(e=>(e.ExecutionDate="execution_date",e.Ticker="ticker",e))(wi||{}),ki=(r=>(r.Stocks="stocks",r.Options="options",r.Crypto="crypto",r.Fx="fx",r.Indices="indices",r))(ki||{}),Ii=(e=>(e.Us="us",e.Global="global",e))(Ii||{}),vi=(V=>(V.Cs="CS",V.Adrc="ADRC",V.Adrp="ADRP",V.Adrr="ADRR",V.Unit="UNIT",V.Right="RIGHT",V.Pfd="PFD",V.Fund="FUND",V.Sp="SP",V.Warrant="WARRANT",V.Index="INDEX",V.Etf="ETF",V.Etn="ETN",V.Os="OS",V.Gdr="GDR",V.Other="OTHER",V.Nyrs="NYRS",V.Agen="AGEN",V.Eqlk="EQLK",V.Bond="BOND",V.Adrw="ADRW",V.Basket="BASKET",V.Lt="LT",V))(vi||{}),qi=(r=>(r.Stocks="stocks",r.Crypto="crypto",r.Fx="fx",r.Otc="otc",r.Indices="indices",r))(qi||{}),Fi=(e=>(e.Asc="asc",e.Desc="desc",e))(Fi||{}),Ti=(p=>(p.Ticker="ticker",p.Name="name",p.Market="market",p.Locale="locale",p.PrimaryExchange="primary_exchange",p.Type="type",p.CurrencySymbol="currency_symbol",p.CurrencyName="currency_name",p.BaseCurrencySymbol="base_currency_symbol",p.BaseCurrencyName="base_currency_name",p.Cik="cik",p.CompositeFigi="composite_figi",p.ShareClassFigi="share_class_figi",p.LastUpdatedUtc="last_updated_utc",p.DelistedUtc="delisted_utc",p))(Ti||{});var wn=class{constructor(a={}){this.apiKey=a.apiKey,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.serverIndex=a.serverIndex,this.baseOptions={...a.baseOptions,headers:{...a.baseOptions?.headers}},this.formDataCtor=a.formDataCtor}isJsonMime(a){let e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return a!==null&&(e.test(a)||a.toLowerCase()==="application/json-patch+json")}};import Bi from"websocket";var Te=(c,a)=>{if(!a)throw new Error("api key not provided.");let e=new Bi.w3cwebsocket(c);return e.onopen=()=>{e.send(JSON.stringify({action:"auth",params:a}))},e};var vn=(c,a="wss://socket.massive.com")=>Te(`${a}/crypto`,c);var qn=(c,a="wss://socket.massive.com")=>Te(`${a}/forex`,c);var Fn=(c,a="wss://socket.massive.com")=>Te(`${a}/indices`,c);var Tn=(c,a="wss://socket.massive.com")=>Te(`${a}/options`,c);var Bn=(c,a="wss://socket.massive.com")=>Te(`${a}/stocks`,c);var Gn=(c,a="wss://socket.massive.com",e)=>Te(`${a}/futures${e?`/${e}`:""}`,c);var Gi=(c,a,e)=>({crypto:()=>vn(c,a),forex:()=>qn(c,a),indices:()=>Fn(c,a),options:()=>Tn(c,a),stocks:()=>Bn(c,a),futures:()=>Gn(c,a,e)}),Un=Gi;import Ui from"axios";var Mi=(c,a,e)=>{let i=new wn({apiKey:c}),n="https://api.massive.com",r=Ui.create();return r.interceptors.response.use(async s=>{if(e?.pagination&&s?.data?.next_url){let t=await r.get(`${s.data.next_url}&apiKey=${c}`),{results:o,count:g}=t;return{...s.data,results:[...o,...s.data?.results],...s.data?.count&&{count:s.data.count+g}}}return s?.data}),new Pn(i,a||n,r)},Ei=(c,a,e,i)=>({rest:Mi(c,a,i),websockets:Un(c,e)}),Ga=Ei;export{wn as Configuration,Pn as DefaultApi,rt as DefaultApiAxiosParamCreator,Li as DefaultApiFactory,X as DefaultApiFp,Dn as FinancialsPeriodEnum,Qn as GetBenzingaV1AnalystInsights200ResponseStatusEnum,Hn as GetBenzingaV1AnalystInsights400ResponseStatusEnum,zn as GetBenzingaV1Analysts200ResponseStatusEnum,jn as GetBenzingaV1ConsensusRatings200ResponseStatusEnum,Kn as GetBenzingaV1Earnings200ResponseStatusEnum,Nn as GetBenzingaV1Firms200ResponseStatusEnum,$n as GetBenzingaV1Guidance200ResponseStatusEnum,Xn as GetBenzingaV1News200ResponseStatusEnum,Wn as GetBenzingaV1Ratings200ResponseStatusEnum,Yn as GetBenzingaV2News200ResponseStatusEnum,st as GetCryptoAggregatesSortEnum,tt as GetCryptoAggregatesTimespanEnum,ot as GetCryptoEMAOrderEnum,at as GetCryptoEMASeriesTypeEnum,it as GetCryptoEMATimespanEnum,dt as GetCryptoMACDOrderEnum,ut as GetCryptoMACDSeriesTypeEnum,gt as GetCryptoMACDTimespanEnum,mt as GetCryptoRSIOrderEnum,ct as GetCryptoRSISeriesTypeEnum,lt as GetCryptoRSITimespanEnum,bt as GetCryptoSMAOrderEnum,ft as GetCryptoSMASeriesTypeEnum,pt as GetCryptoSMATimespanEnum,ht as GetCryptoSnapshotDirectionDirectionEnum,Rt as GetCryptoTradesOrderEnum,_t as GetCryptoTradesSortEnum,Jn as GetCryptoV1Exchanges200ResponseStatusEnum,xt as GetCurrencyConversionPrecisionEnum,Zn as GetEtfGlobalV1Analytics200ResponseStatusEnum,Ln as GetEtfGlobalV1Constituents200ResponseStatusEnum,er as GetEtfGlobalV1FundFlows200ResponseStatusEnum,nr as GetEtfGlobalV1Profiles200ResponseStatusEnum,rr as GetEtfGlobalV1Taxonomies200ResponseStatusEnum,tr as GetFedV1Inflation200ResponseStatusEnum,sr as GetFedV1InflationExpectations200ResponseStatusEnum,ir as GetFedV1TreasuryYields200ResponseStatusEnum,At as GetForexAggregatesSortEnum,yt as GetForexAggregatesTimespanEnum,Ct as GetForexEMAOrderEnum,Ot as GetForexEMASeriesTypeEnum,Vt as GetForexEMATimespanEnum,wt as GetForexMACDOrderEnum,Pt as GetForexMACDSeriesTypeEnum,St as GetForexMACDTimespanEnum,kt as GetForexQuotesOrderEnum,It as GetForexQuotesSortEnum,Ft as GetForexRSIOrderEnum,qt as GetForexRSISeriesTypeEnum,vt as GetForexRSITimespanEnum,Gt as GetForexSMAOrderEnum,Bt as GetForexSMASeriesTypeEnum,Tt as GetForexSMATimespanEnum,Ut as GetForexSnapshotDirectionDirectionEnum,ar as GetForexV1Exchanges200ResponseStatusEnum,Mt as GetFuturesAggregatesSortEnum,Et as GetFuturesContractsActiveEnum,Qt as GetFuturesContractsSortEnum,Dt as GetFuturesContractsTypeEnum,Ht as GetFuturesDailySchedulesSortEnum,or as GetFuturesMarketStatuses200ResponseResultsInnerMarketStatusEnum,zt as GetFuturesMarketStatusesSortEnum,jt as GetFuturesProductDetailsTypeEnum,gr as GetFuturesProductSchedules200ResponseResultsInnerScheduleInnerEventEnum,Kt as GetFuturesProductSchedulesSortEnum,ur as GetFuturesProducts200ResponseResultsInnerClearingChannelEnum,Xt as GetFuturesProductsAssetClassEnum,Wt as GetFuturesProductsAssetSubClassEnum,Nt as GetFuturesProductsSectorEnum,Jt as GetFuturesProductsSortEnum,$t as GetFuturesProductsSubSectorEnum,Yt as GetFuturesProductsTypeEnum,Zt as GetFuturesQuotesSortEnum,Lt as GetFuturesTradesSortEnum,dr as GetFuturesVXContractsNew200ResponseStatusEnum,lr as GetFuturesVXExchanges200ResponseStatusEnum,cr as GetFuturesVXProductsNew200ResponseStatusEnum,mr as GetFuturesVXSnapshot200ResponseStatusEnum,ns as GetIndicesAggregatesSortEnum,es as GetIndicesAggregatesTimespanEnum,ss as GetIndicesEMAOrderEnum,ts as GetIndicesEMASeriesTypeEnum,rs as GetIndicesEMATimespanEnum,os as GetIndicesMACDOrderEnum,as as GetIndicesMACDSeriesTypeEnum,is as GetIndicesMACDTimespanEnum,ds as GetIndicesRSIOrderEnum,us as GetIndicesRSISeriesTypeEnum,gs as GetIndicesRSITimespanEnum,ms as GetIndicesSMAOrderEnum,cs as GetIndicesSMASeriesTypeEnum,ls as GetIndicesSMATimespanEnum,pr as GetIndicesSnapshot200ResponseResultsInnerTimeframeEnum,fr as GetIndicesSnapshot200ResponseResultsInnerTypeEnum,ps as GetIndicesSnapshotOrderEnum,fs as GetIndicesSnapshotSortEnum,hs as GetOptionsAggregatesSortEnum,bs as GetOptionsAggregatesTimespanEnum,br as GetOptionsChain200ResponseResultsInnerDetailsContractTypeEnum,hr as GetOptionsChain200ResponseResultsInnerDetailsExerciseStyleEnum,Rr as GetOptionsChain200ResponseResultsInnerLastQuoteTimeframeEnum,_r as GetOptionsChain200ResponseResultsInnerLastTradeTimeframeEnum,Rs as GetOptionsChainContractTypeEnum,_s as GetOptionsChainOrderEnum,xs as GetOptionsChainSortEnum,Vs as GetOptionsEMAOrderEnum,As as GetOptionsEMASeriesTypeEnum,ys as GetOptionsEMATimespanEnum,Ss as GetOptionsMACDOrderEnum,Cs as GetOptionsMACDSeriesTypeEnum,Os as GetOptionsMACDTimespanEnum,Ps as GetOptionsQuotesOrderEnum,ws as GetOptionsQuotesSortEnum,vs as GetOptionsRSIOrderEnum,Is as GetOptionsRSISeriesTypeEnum,ks as GetOptionsRSITimespanEnum,Ts as GetOptionsSMAOrderEnum,Fs as GetOptionsSMASeriesTypeEnum,qs as GetOptionsSMATimespanEnum,Bs as GetOptionsTradesOrderEnum,Gs as GetOptionsTradesSortEnum,xr as GetOptionsV1Exchanges200ResponseStatusEnum,Ar as GetSnapshotSummary200ResponseResultsInnerOptionsContractTypeEnum,Vr as GetSnapshotSummary200ResponseResultsInnerOptionsExerciseStyleEnum,yr as GetSnapshotSummary200ResponseResultsInnerTypeEnum,Sr as GetSnapshots200ResponseResultsInnerDetailsContractTypeEnum,Pr as GetSnapshots200ResponseResultsInnerDetailsExerciseStyleEnum,wr as GetSnapshots200ResponseResultsInnerLastQuoteTimeframeEnum,kr as GetSnapshots200ResponseResultsInnerLastTradeTimeframeEnum,Or as GetSnapshots200ResponseResultsInnerTimeframeEnum,Cr as GetSnapshots200ResponseResultsInnerTypeEnum,Ir as GetSnapshots200ResponseResultsInnerUnderlyingAssetTimeframeEnum,Ms as GetSnapshotsOrderEnum,Es as GetSnapshotsSortEnum,Us as GetSnapshotsTypeEnum,Qs as GetStocksAggregatesSortEnum,Ds as GetStocksAggregatesTimespanEnum,js as GetStocksEMAOrderEnum,zs as GetStocksEMASeriesTypeEnum,Hs as GetStocksEMATimespanEnum,vr as GetStocksFinancialsV1BalanceSheets200ResponseStatusEnum,qr as GetStocksFinancialsV1CashFlowStatements200ResponseStatusEnum,Fr as GetStocksFinancialsV1IncomeStatements200ResponseStatusEnum,Tr as GetStocksFinancialsV1Ratios200ResponseStatusEnum,$s as GetStocksMACDOrderEnum,Ns as GetStocksMACDSeriesTypeEnum,Ks as GetStocksMACDTimespanEnum,Xs as GetStocksQuotesOrderEnum,Ws as GetStocksQuotesSortEnum,Zs as GetStocksRSIOrderEnum,Js as GetStocksRSISeriesTypeEnum,Ys as GetStocksRSITimespanEnum,ni as GetStocksSMAOrderEnum,ei as GetStocksSMASeriesTypeEnum,Ls as GetStocksSMATimespanEnum,ri as GetStocksSnapshotDirectionDirectionEnum,ti as GetStocksTradesOrderEnum,si as GetStocksTradesSortEnum,Br as GetStocksV1Exchanges200ResponseStatusEnum,Gr as GetStocksV1ShortInterest200ResponseStatusEnum,Ur as GetStocksV1ShortVolume200ResponseStatusEnum,Mr as GetTicker200ResponseResultsLocaleEnum,Er as GetTicker200ResponseResultsMarketEnum,Dr as GetTmxV1CorporateEvents200ResponseStatusEnum,Qr as ListConditions200ResponseResultsInnerAssetClassEnum,Hr as ListConditions200ResponseResultsInnerDataTypesEnum,zr as ListConditions200ResponseResultsInnerTypeEnum,ii as ListConditionsAssetClassEnum,ai as ListConditionsDataTypeEnum,gi as ListConditionsOrderEnum,oi as ListConditionsSipEnum,ui as ListConditionsSortEnum,jr as ListDividends200ResponseResultsInnerDividendTypeEnum,li as ListDividendsDividendTypeEnum,di as ListDividendsFrequencyEnum,ci as ListDividendsOrderEnum,mi as ListDividendsSortEnum,Kr as ListExchanges200ResponseResultsInnerAssetClassEnum,Nr as ListExchanges200ResponseResultsInnerLocaleEnum,$r as ListExchanges200ResponseResultsInnerTypeEnum,pi as ListExchangesAssetClassEnum,fi as ListExchangesLocaleEnum,hi as ListFinancialsOrderEnum,Ri as ListFinancialsSortEnum,bi as ListFinancialsTimeframeEnum,Xr as ListIPOs200ResponseResultsInnerIpoStatusEnum,_i as ListIPOsIpoStatusEnum,xi as ListIPOsOrderEnum,yi as ListIPOsSortEnum,Wr as ListNews200ResponseResultsInnerInsightsInnerSentimentEnum,Ai as ListNewsOrderEnum,Vi as ListNewsSortEnum,Yr as ListOptionsContracts200ResponseResultsInnerExerciseStyleEnum,Oi as ListOptionsContractsContractTypeEnum,Ci as ListOptionsContractsOrderEnum,Si as ListOptionsContractsSortEnum,Pi as ListStockSplitsOrderEnum,wi as ListStockSplitsSortEnum,Jr as ListTickerTypes200ResponseResultsInnerAssetClassEnum,Zr as ListTickerTypes200ResponseResultsInnerLocaleEnum,ki as ListTickerTypesAssetClassEnum,Ii as ListTickerTypesLocaleEnum,Lr as ListTickers200ResponseResultsInnerLocaleEnum,et as ListTickers200ResponseResultsInnerMarketEnum,qi as ListTickersMarketEnum,Fi as ListTickersOrderEnum,Ti as ListTickersSortEnum,vi as ListTickersTypeEnum,nt as MapKeyTypeEnum,Ei as MassiveClient,Ga as default,vn as getCryptoWebsocket,qn as getForexWebsocket,Gn as getFuturesWebsocket,Fn as getIndicesWebsocket,Tn as getOptionsWebsocket,Bn as getStocksWebsocket,Mi as restClient,Gi as websocketClient};
1
+ import Q from"axios";import Qn from"axios";var V="https://api.massive.com".replace(/\/+$/,"");var Gn=class{constructor(e,t=V,i=Qn){this.basePath=t;this.axios=i;e&&(this.configuration=e,this.basePath=e.basePath??t)}},On=class extends Error{constructor(t,i){super(i);this.field=t;this.name="RequiredError"}},v={};var I="https://example.com",K=function(a,e,t){if(t==null)throw new On(e,`Required parameter ${e} was null or undefined when calling ${a}.`)},D=async function(a,e,t){if(t&&t.apiKey){let i=typeof t.apiKey=="function"?await t.apiKey(e):await t.apiKey;a[e]=i}};function vn(a,e,t=""){e!=null&&(typeof e=="object"?Array.isArray(e)?e.forEach(i=>vn(a,i,t)):Object.keys(e).forEach(i=>vn(a,e[i],`${t}${t!==""?".":""}${i}`)):a.has(t)?a.append(t,e):a.set(t,e))}var L=function(a,...e){let t=new URLSearchParams(a.search);vn(t,e),a.search=t.toString()};var T=function(a){return a.pathname+a.search+a.hash},F=function(a,e,t,i){return(n=e,s=t)=>{let o={...a.options,url:(n.defaults.baseURL?"":i?.basePath??s)+a.url};return n.request(o)}};var zn=(o=>(o.Q="Q",o.T="T",o.Qa="QA",o.Ta="TA",o.Y="Y",o.Ya="YA",o))(zn||{}),Mn=(e=>(e.Ok="OK",e))(Mn||{}),Hn=(e=>(e.Error="ERROR",e))(Hn||{}),jn=(e=>(e.Ok="OK",e))(jn||{}),Nn=(e=>(e.Ok="OK",e))(Nn||{}),Kn=(e=>(e.Ok="OK",e))(Kn||{}),$n=(e=>(e.Ok="OK",e))($n||{}),Yn=(e=>(e.Ok="OK",e))(Yn||{}),Xn=(e=>(e.Ok="OK",e))(Xn||{}),Wn=(e=>(e.Ok="OK",e))(Wn||{}),Jn=(e=>(e.Ok="OK",e))(Jn||{}),Zn=(e=>(e.Ok="OK",e))(Zn||{}),qn=(e=>(e.Ok="OK",e))(qn||{}),Pn=(e=>(e.Ok="OK",e))(Pn||{}),et=(e=>(e.Ok="OK",e))(et||{}),nt=(e=>(e.Ok="OK",e))(nt||{}),tt=(e=>(e.Ok="OK",e))(tt||{}),it=(e=>(e.Ok="OK",e))(it||{}),st=(e=>(e.Ok="OK",e))(st||{}),ot=(e=>(e.Ok="OK",e))(ot||{}),rt=(s=>(s.PreOpen="pre_open",s.Open="open",s.Close="close",s.Pause="pause",s.PostClosePreOpen="post_close_pre_open",s))(rt||{}),at=(s=>(s.PreOpen="pre_open",s.Open="open",s.Close="close",s.Pause="pause",s.PostClosePreOpen="post_close_pre_open",s))(at||{}),dt=(t=>(t.ExchangeOnly="exchange_only",t.ExchangeAndOtc="exchange_and_otc",t))(dt||{}),lt=(e=>(e.Ok="OK",e))(lt||{}),gt=(e=>(e.Ok="OK",e))(gt||{}),ct=(e=>(e.Ok="OK",e))(ct||{}),pt=(e=>(e.Ok="OK",e))(pt||{}),ut=(t=>(t.Delayed="DELAYED",t.RealTime="REAL-TIME",t))(ut||{}),ft=(e=>(e.Indices="indices",e))(ft||{}),yt=(i=>(i.Put="put",i.Call="call",i.Other="other",i))(yt||{}),bt=(i=>(i.American="american",i.European="european",i.Bermudan="bermudan",i))(bt||{}),mt=(t=>(t.Delayed="DELAYED",t.RealTime="REAL-TIME",t))(mt||{}),ht=(t=>(t.Delayed="DELAYED",t.RealTime="REAL-TIME",t))(ht||{}),Rt=(e=>(e.Ok="OK",e))(Rt||{}),xt=(n=>(n.Stocks="stocks",n.Crypto="crypto",n.Options="options",n.Fx="fx",n))(xt||{}),At=(i=>(i.Put="put",i.Call="call",i.Other="other",i))(At||{}),_t=(i=>(i.American="american",i.European="european",i.Bermudan="bermudan",i))(_t||{}),kt=(t=>(t.Delayed="DELAYED",t.RealTime="REAL-TIME",t))(kt||{}),Gt=(s=>(s.Stocks="stocks",s.Options="options",s.Fx="fx",s.Crypto="crypto",s.Indices="indices",s))(Gt||{}),Ot=(i=>(i.Put="put",i.Call="call",i.Other="other",i))(Ot||{}),Ct=(i=>(i.American="american",i.European="european",i.Bermudan="bermudan",i))(Ct||{}),St=(t=>(t.Delayed="DELAYED",t.RealTime="REAL-TIME",t))(St||{}),Vt=(t=>(t.Delayed="DELAYED",t.RealTime="REAL-TIME",t))(Vt||{}),wt=(t=>(t.Delayed="DELAYED",t.RealTime="REAL-TIME",t))(wt||{}),vt=(e=>(e.Ok="OK",e))(vt||{}),It=(e=>(e.Ok="OK",e))(It||{}),Dt=(e=>(e.Ok="OK",e))(Dt||{}),Lt=(e=>(e.Ok="OK",e))(Lt||{}),Tt=(e=>(e.Ok="OK",e))(Tt||{}),Ft=(e=>(e.Ok="OK",e))(Ft||{}),Ut=(e=>(e.Ok="OK",e))(Ut||{}),Bt=(e=>(e.Ok="OK",e))(Bt||{}),Et=(e=>(e.Ok="OK",e))(Et||{}),Qt=(t=>(t.Us="us",t.Global="global",t))(Qt||{}),zt=(s=>(s.Stocks="stocks",s.Crypto="crypto",s.Fx="fx",s.Otc="otc",s.Indices="indices",s))(zt||{}),Mt=(e=>(e.Ok="OK",e))(Mt||{}),Ht=(n=>(n.Stocks="stocks",n.Options="options",n.Crypto="crypto",n.Fx="fx",n))(Ht||{}),jt=(i=>(i.Trade="trade",i.Bbo="bbo",i.Nbbo="nbbo",i))(jt||{}),Nt=(d=>(d.SaleCondition="sale_condition",d.QuoteCondition="quote_condition",d.SipGeneratedFlag="sip_generated_flag",d.FinancialStatusIndicator="financial_status_indicator",d.ShortSaleRestrictionIndicator="short_sale_restriction_indicator",d.SettlementCondition="settlement_condition",d.MarketCondition="market_condition",d.TradeThruExempt="trade_thru_exempt",d))(Nt||{}),Kt=(n=>(n.Cd="CD",n.Sc="SC",n.Lt="LT",n.St="ST",n))(Kt||{}),$t=(s=>(s.Stocks="stocks",s.Options="options",s.Crypto="crypto",s.Fx="fx",s.Futures="futures",s))($t||{}),Yt=(t=>(t.Us="us",t.Global="global",t))(Yt||{}),Xt=(i=>(i.Exchange="exchange",i.Trf="TRF",i.Sip="SIP",i))(Xt||{}),Wt=(r=>(r.DirectListingProcess="direct_listing_process",r.History="history",r.New="new",r.Pending="pending",r.Postponed="postponed",r.Rumor="rumor",r.Withdrawn="withdrawn",r))(Wt||{}),Jt=(i=>(i.Positive="positive",i.Neutral="neutral",i.Negative="negative",i))(Jt||{}),Zt=(i=>(i.American="american",i.European="european",i.Bermudan="bermudan",i))(Zt||{}),qt=(s=>(s.Stocks="stocks",s.Options="options",s.Crypto="crypto",s.Fx="fx",s.Indices="indices",s))(qt||{}),Pt=(t=>(t.Us="us",t.Global="global",t))(Pt||{}),ei=(t=>(t.Us="us",t.Global="global",t))(ei||{}),ni=(s=>(s.Stocks="stocks",s.Crypto="crypto",s.Fx="fx",s.Otc="otc",s.Indices="indices",s))(ni||{}),ti=(n=>(n.String="string",n.Int="int",n.Int64="int64",n.Float64="float64",n))(ti||{}),ii=function(a){return{deprecatedGetCryptoSnapshotTickerBook:async(e,t={})=>{K("deprecatedGetCryptoSnapshotTickerBook","ticker",e);let i="/v2/snapshot/locale/global/markets/crypto/tickers/{ticker}/book".replace("{ticker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},deprecatedGetHistoricCryptoTrades:async(e,t,i,n,s,o={})=>{K("deprecatedGetHistoricCryptoTrades","from",e),K("deprecatedGetHistoricCryptoTrades","to",t),K("deprecatedGetHistoricCryptoTrades","date",i);let r="/v1/historic/crypto/{from}/{to}/{date}".replace("{from}",encodeURIComponent(String(e))).replace("{to}",encodeURIComponent(String(t))).replace("{date}",encodeURIComponent(String(i))),d=new URL(r,I),l;a&&(l=a.baseOptions);let g={method:"GET",...l,...o},f={},p={};await D(p,"apiKey",a),n!==void 0&&(p.offset=n),s!==void 0&&(p.limit=s),L(d,p);let y=l&&l.headers?l.headers:{};return g.headers={...f,...y,...o.headers},{url:T(d),options:g}},deprecatedGetHistoricForexQuotes:async(e,t,i,n,s,o={})=>{K("deprecatedGetHistoricForexQuotes","from",e),K("deprecatedGetHistoricForexQuotes","to",t),K("deprecatedGetHistoricForexQuotes","date",i);let r="/v1/historic/forex/{from}/{to}/{date}".replace("{from}",encodeURIComponent(String(e))).replace("{to}",encodeURIComponent(String(t))).replace("{date}",encodeURIComponent(String(i))),d=new URL(r,I),l;a&&(l=a.baseOptions);let g={method:"GET",...l,...o},f={},p={};await D(p,"apiKey",a),n!==void 0&&(p.offset=n),s!==void 0&&(p.limit=s),L(d,p);let y=l&&l.headers?l.headers:{};return g.headers={...f,...y,...o.headers},{url:T(d),options:g}},deprecatedGetHistoricStocksQuotes:async(e,t,i,n,s,o,r={})=>{K("deprecatedGetHistoricStocksQuotes","ticker",e),K("deprecatedGetHistoricStocksQuotes","date",t);let d="/v2/ticks/stocks/nbbo/{ticker}/{date}".replace("{ticker}",encodeURIComponent(String(e))).replace("{date}",encodeURIComponent(String(t))),l=new URL(d,I),g;a&&(g=a.baseOptions);let f={method:"GET",...g,...r},p={},y={};await D(y,"apiKey",a),i!==void 0&&(y.timestamp=i),n!==void 0&&(y.timestampLimit=n),s!==void 0&&(y.reverse=s),o!==void 0&&(y.limit=o),L(l,y);let m=g&&g.headers?g.headers:{};return f.headers={...p,...m,...r.headers},{url:T(l),options:f}},deprecatedGetHistoricStocksTrades:async(e,t,i,n,s,o,r={})=>{K("deprecatedGetHistoricStocksTrades","ticker",e),K("deprecatedGetHistoricStocksTrades","date",t);let d="/v2/ticks/stocks/trades/{ticker}/{date}".replace("{ticker}",encodeURIComponent(String(e))).replace("{date}",encodeURIComponent(String(t))),l=new URL(d,I),g;a&&(g=a.baseOptions);let f={method:"GET",...g,...r},p={},y={};await D(y,"apiKey",a),i!==void 0&&(y.timestamp=i),n!==void 0&&(y.timestampLimit=n),s!==void 0&&(y.reverse=s),o!==void 0&&(y.limit=o),L(l,y);let m=g&&g.headers?g.headers:{};return f.headers={...p,...m,...r.headers},{url:T(l),options:f}},getBenzingaV1AnalystInsights:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O={})=>{let le="/benzinga/v1/analyst-insights",pe=new URL(le,I),ge;a&&(ge=a.baseOptions);let ce={method:"GET",...ge,...O},ue={},J={};await D(J,"apiKey",a),e!==void 0&&(J.date=e),t!==void 0&&(J["date.any_of"]=t),i!==void 0&&(J["date.gt"]=i),n!==void 0&&(J["date.gte"]=n),s!==void 0&&(J["date.lt"]=s),o!==void 0&&(J["date.lte"]=o),r!==void 0&&(J.ticker=r),d!==void 0&&(J["ticker.any_of"]=d),l!==void 0&&(J["ticker.gt"]=l),g!==void 0&&(J["ticker.gte"]=g),f!==void 0&&(J["ticker.lt"]=f),p!==void 0&&(J["ticker.lte"]=p),y!==void 0&&(J.last_updated=y),m!==void 0&&(J["last_updated.gt"]=m),u!==void 0&&(J["last_updated.gte"]=u),b!==void 0&&(J["last_updated.lt"]=b),h!==void 0&&(J["last_updated.lte"]=h),x!==void 0&&(J.firm=x),R!==void 0&&(J["firm.any_of"]=R),c!==void 0&&(J["firm.gt"]=c),_!==void 0&&(J["firm.gte"]=_),A!==void 0&&(J["firm.lt"]=A),k!==void 0&&(J["firm.lte"]=k),B!==void 0&&(J.rating_action=B),G!==void 0&&(J["rating_action.any_of"]=G),S!==void 0&&(J["rating_action.gt"]=S),E!==void 0&&(J["rating_action.gte"]=E),X!==void 0&&(J["rating_action.lt"]=X),z!==void 0&&(J["rating_action.lte"]=z),$!==void 0&&(J.benzinga_firm_id=$),H!==void 0&&(J["benzinga_firm_id.any_of"]=H),j!==void 0&&(J["benzinga_firm_id.gt"]=j),C!==void 0&&(J["benzinga_firm_id.gte"]=C),N!==void 0&&(J["benzinga_firm_id.lt"]=N),se!==void 0&&(J["benzinga_firm_id.lte"]=se),oe!==void 0&&(J.benzinga_rating_id=oe),ae!==void 0&&(J["benzinga_rating_id.any_of"]=ae),de!==void 0&&(J["benzinga_rating_id.gt"]=de),re!==void 0&&(J["benzinga_rating_id.gte"]=re),te!==void 0&&(J["benzinga_rating_id.lt"]=te),ee!==void 0&&(J["benzinga_rating_id.lte"]=ee),Y!==void 0&&(J.limit=Y),W!==void 0&&(J.sort=W),L(pe,J);let Z=ge&&ge.headers?ge.headers:{};return ce.headers={...ue,...Z,...O.headers},{url:T(pe),options:ce}},getBenzingaV1Analysts:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E={})=>{let X="/benzinga/v1/analysts",z=new URL(X,I),$;a&&($=a.baseOptions);let H={method:"GET",...$,...E},j={},C={};await D(C,"apiKey",a),e!==void 0&&(C.benzinga_id=e),t!==void 0&&(C["benzinga_id.any_of"]=t),i!==void 0&&(C["benzinga_id.gt"]=i),n!==void 0&&(C["benzinga_id.gte"]=n),s!==void 0&&(C["benzinga_id.lt"]=s),o!==void 0&&(C["benzinga_id.lte"]=o),r!==void 0&&(C.benzinga_firm_id=r),d!==void 0&&(C["benzinga_firm_id.any_of"]=d),l!==void 0&&(C["benzinga_firm_id.gt"]=l),g!==void 0&&(C["benzinga_firm_id.gte"]=g),f!==void 0&&(C["benzinga_firm_id.lt"]=f),p!==void 0&&(C["benzinga_firm_id.lte"]=p),y!==void 0&&(C.firm_name=y),m!==void 0&&(C["firm_name.any_of"]=m),u!==void 0&&(C["firm_name.gt"]=u),b!==void 0&&(C["firm_name.gte"]=b),h!==void 0&&(C["firm_name.lt"]=h),x!==void 0&&(C["firm_name.lte"]=x),R!==void 0&&(C.full_name=R),c!==void 0&&(C["full_name.any_of"]=c),_!==void 0&&(C["full_name.gt"]=_),A!==void 0&&(C["full_name.gte"]=A),k!==void 0&&(C["full_name.lt"]=k),B!==void 0&&(C["full_name.lte"]=B),G!==void 0&&(C.limit=G),S!==void 0&&(C.sort=S),L(z,C);let N=$&&$.headers?$.headers:{};return H.headers={...j,...N,...E.headers},{url:T(z),options:H}},getBenzingaV1ConsensusRatings:async(e,t,i,n,s,o,r,d,l={})=>{K("getBenzingaV1ConsensusRatings","ticker",e);let g="/benzinga/v1/consensus-ratings/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),t!==void 0&&(u.date=t),i!==void 0&&(u["date.any_of"]=i),n!==void 0&&(u["date.gt"]=n),s!==void 0&&(u["date.gte"]=s),o!==void 0&&(u["date.lt"]=o),r!==void 0&&(u["date.lte"]=r),d!==void 0&&(u.limit=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getBenzingaV1Earnings:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me={})=>{let he="/benzinga/v1/earnings",xe=new URL(he,I),Re;a&&(Re=a.baseOptions);let ne={method:"GET",...Re,...me},Ae={},ie={};await D(ie,"apiKey",a),e!==void 0&&(ie.date=e),t!==void 0&&(ie["date.any_of"]=t),i!==void 0&&(ie["date.gt"]=i),n!==void 0&&(ie["date.gte"]=n),s!==void 0&&(ie["date.lt"]=s),o!==void 0&&(ie["date.lte"]=o),r!==void 0&&(ie.ticker=r),d!==void 0&&(ie["ticker.any_of"]=d),l!==void 0&&(ie["ticker.gt"]=l),g!==void 0&&(ie["ticker.gte"]=g),f!==void 0&&(ie["ticker.lt"]=f),p!==void 0&&(ie["ticker.lte"]=p),y!==void 0&&(ie.importance=y),m!==void 0&&(ie["importance.any_of"]=m),u!==void 0&&(ie["importance.gt"]=u),b!==void 0&&(ie["importance.gte"]=b),h!==void 0&&(ie["importance.lt"]=h),x!==void 0&&(ie["importance.lte"]=x),R!==void 0&&(ie.last_updated=R),c!==void 0&&(ie["last_updated.any_of"]=c),_!==void 0&&(ie["last_updated.gt"]=_),A!==void 0&&(ie["last_updated.gte"]=A),k!==void 0&&(ie["last_updated.lt"]=k),B!==void 0&&(ie["last_updated.lte"]=B),G!==void 0&&(ie.date_status=G),S!==void 0&&(ie["date_status.any_of"]=S),E!==void 0&&(ie["date_status.gt"]=E),X!==void 0&&(ie["date_status.gte"]=X),z!==void 0&&(ie["date_status.lt"]=z),$!==void 0&&(ie["date_status.lte"]=$),H!==void 0&&(ie.eps_surprise_percent=H),j!==void 0&&(ie["eps_surprise_percent.any_of"]=j),C!==void 0&&(ie["eps_surprise_percent.gt"]=C),N!==void 0&&(ie["eps_surprise_percent.gte"]=N),se!==void 0&&(ie["eps_surprise_percent.lt"]=se),oe!==void 0&&(ie["eps_surprise_percent.lte"]=oe),ae!==void 0&&(ie.revenue_surprise_percent=ae),de!==void 0&&(ie["revenue_surprise_percent.any_of"]=de),re!==void 0&&(ie["revenue_surprise_percent.gt"]=re),te!==void 0&&(ie["revenue_surprise_percent.gte"]=te),ee!==void 0&&(ie["revenue_surprise_percent.lt"]=ee),Y!==void 0&&(ie["revenue_surprise_percent.lte"]=Y),W!==void 0&&(ie.fiscal_year=W),O!==void 0&&(ie["fiscal_year.any_of"]=O),le!==void 0&&(ie["fiscal_year.gt"]=le),pe!==void 0&&(ie["fiscal_year.gte"]=pe),ge!==void 0&&(ie["fiscal_year.lt"]=ge),ce!==void 0&&(ie["fiscal_year.lte"]=ce),ue!==void 0&&(ie.fiscal_period=ue),J!==void 0&&(ie["fiscal_period.any_of"]=J),Z!==void 0&&(ie["fiscal_period.gt"]=Z),ye!==void 0&&(ie["fiscal_period.gte"]=ye),fe!==void 0&&(ie["fiscal_period.lt"]=fe),be!==void 0&&(ie["fiscal_period.lte"]=be),q!==void 0&&(ie.limit=q),w!==void 0&&(ie.sort=w),L(xe,ie);let Ge=Re&&Re.headers?Re.headers:{};return ne.headers={...Ae,...Ge,...me.headers},{url:T(xe),options:ne}},getBenzingaV1Firms:async(e,t,i,n,s,o,r,d,l={})=>{let g="/benzinga/v1/firms",f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),e!==void 0&&(u.benzinga_id=e),t!==void 0&&(u["benzinga_id.any_of"]=t),i!==void 0&&(u["benzinga_id.gt"]=i),n!==void 0&&(u["benzinga_id.gte"]=n),s!==void 0&&(u["benzinga_id.lt"]=s),o!==void 0&&(u["benzinga_id.lte"]=o),r!==void 0&&(u.limit=r),d!==void 0&&(u.sort=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getBenzingaV1Guidance:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le={})=>{let pe="/benzinga/v1/guidance",ge=new URL(pe,I),ce;a&&(ce=a.baseOptions);let ue={method:"GET",...ce,...le},J={},Z={};await D(Z,"apiKey",a),e!==void 0&&(Z.date=e),t!==void 0&&(Z["date.any_of"]=t),i!==void 0&&(Z["date.gt"]=i),n!==void 0&&(Z["date.gte"]=n),s!==void 0&&(Z["date.lt"]=s),o!==void 0&&(Z["date.lte"]=o),r!==void 0&&(Z.ticker=r),d!==void 0&&(Z["ticker.any_of"]=d),l!==void 0&&(Z["ticker.gt"]=l),g!==void 0&&(Z["ticker.gte"]=g),f!==void 0&&(Z["ticker.lt"]=f),p!==void 0&&(Z["ticker.lte"]=p),y!==void 0&&(Z.positioning=y),m!==void 0&&(Z["positioning.any_of"]=m),u!==void 0&&(Z["positioning.gt"]=u),b!==void 0&&(Z["positioning.gte"]=b),h!==void 0&&(Z["positioning.lt"]=h),x!==void 0&&(Z["positioning.lte"]=x),R!==void 0&&(Z.importance=R),c!==void 0&&(Z["importance.any_of"]=c),_!==void 0&&(Z["importance.gt"]=_),A!==void 0&&(Z["importance.gte"]=A),k!==void 0&&(Z["importance.lt"]=k),B!==void 0&&(Z["importance.lte"]=B),G!==void 0&&(Z.last_updated=G),S!==void 0&&(Z["last_updated.any_of"]=S),E!==void 0&&(Z["last_updated.gt"]=E),X!==void 0&&(Z["last_updated.gte"]=X),z!==void 0&&(Z["last_updated.lt"]=z),$!==void 0&&(Z["last_updated.lte"]=$),H!==void 0&&(Z.fiscal_year=H),j!==void 0&&(Z["fiscal_year.any_of"]=j),C!==void 0&&(Z["fiscal_year.gt"]=C),N!==void 0&&(Z["fiscal_year.gte"]=N),se!==void 0&&(Z["fiscal_year.lt"]=se),oe!==void 0&&(Z["fiscal_year.lte"]=oe),ae!==void 0&&(Z.fiscal_period=ae),de!==void 0&&(Z["fiscal_period.any_of"]=de),re!==void 0&&(Z["fiscal_period.gt"]=re),te!==void 0&&(Z["fiscal_period.gte"]=te),ee!==void 0&&(Z["fiscal_period.lt"]=ee),Y!==void 0&&(Z["fiscal_period.lte"]=Y),W!==void 0&&(Z.limit=W),O!==void 0&&(Z.sort=O),L(ge,Z);let ye=ce&&ce.headers?ce.headers:{};return ue.headers={...J,...ye,...le.headers},{url:T(ge),options:ue}},getBenzingaV1Ratings:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q={})=>{let w="/benzinga/v1/ratings",me=new URL(w,I),he;a&&(he=a.baseOptions);let xe={method:"GET",...he,...q},Re={},ne={};await D(ne,"apiKey",a),e!==void 0&&(ne.date=e),t!==void 0&&(ne["date.any_of"]=t),i!==void 0&&(ne["date.gt"]=i),n!==void 0&&(ne["date.gte"]=n),s!==void 0&&(ne["date.lt"]=s),o!==void 0&&(ne["date.lte"]=o),r!==void 0&&(ne.ticker=r),d!==void 0&&(ne["ticker.any_of"]=d),l!==void 0&&(ne["ticker.gt"]=l),g!==void 0&&(ne["ticker.gte"]=g),f!==void 0&&(ne["ticker.lt"]=f),p!==void 0&&(ne["ticker.lte"]=p),y!==void 0&&(ne.importance=y),m!==void 0&&(ne["importance.gt"]=m),u!==void 0&&(ne["importance.gte"]=u),b!==void 0&&(ne["importance.lt"]=b),h!==void 0&&(ne["importance.lte"]=h),x!==void 0&&(ne.last_updated=x),R!==void 0&&(ne["last_updated.gt"]=R),c!==void 0&&(ne["last_updated.gte"]=c),_!==void 0&&(ne["last_updated.lt"]=_),A!==void 0&&(ne["last_updated.lte"]=A),k!==void 0&&(ne.rating_action=k),B!==void 0&&(ne["rating_action.any_of"]=B),G!==void 0&&(ne["rating_action.gt"]=G),S!==void 0&&(ne["rating_action.gte"]=S),E!==void 0&&(ne["rating_action.lt"]=E),X!==void 0&&(ne["rating_action.lte"]=X),z!==void 0&&(ne.price_target_action=z),$!==void 0&&(ne["price_target_action.any_of"]=$),H!==void 0&&(ne["price_target_action.gt"]=H),j!==void 0&&(ne["price_target_action.gte"]=j),C!==void 0&&(ne["price_target_action.lt"]=C),N!==void 0&&(ne["price_target_action.lte"]=N),se!==void 0&&(ne.benzinga_id=se),oe!==void 0&&(ne["benzinga_id.any_of"]=oe),ae!==void 0&&(ne["benzinga_id.gt"]=ae),de!==void 0&&(ne["benzinga_id.gte"]=de),re!==void 0&&(ne["benzinga_id.lt"]=re),te!==void 0&&(ne["benzinga_id.lte"]=te),ee!==void 0&&(ne.benzinga_analyst_id=ee),Y!==void 0&&(ne["benzinga_analyst_id.any_of"]=Y),W!==void 0&&(ne["benzinga_analyst_id.gt"]=W),O!==void 0&&(ne["benzinga_analyst_id.gte"]=O),le!==void 0&&(ne["benzinga_analyst_id.lt"]=le),pe!==void 0&&(ne["benzinga_analyst_id.lte"]=pe),ge!==void 0&&(ne.benzinga_firm_id=ge),ce!==void 0&&(ne["benzinga_firm_id.any_of"]=ce),ue!==void 0&&(ne["benzinga_firm_id.gt"]=ue),J!==void 0&&(ne["benzinga_firm_id.gte"]=J),Z!==void 0&&(ne["benzinga_firm_id.lt"]=Z),ye!==void 0&&(ne["benzinga_firm_id.lte"]=ye),fe!==void 0&&(ne.limit=fe),be!==void 0&&(ne.sort=be),L(me,ne);let Ae=he&&he.headers?he.headers:{};return xe.headers={...Re,...Ae,...q.headers},{url:T(me),options:xe}},getBenzingaV2News:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S={})=>{let E="/benzinga/v2/news",X=new URL(E,I),z;a&&(z=a.baseOptions);let $={method:"GET",...z,...S},H={},j={};await D(j,"apiKey",a),e!==void 0&&(j.published=e),t!==void 0&&(j["published.gt"]=t),i!==void 0&&(j["published.gte"]=i),n!==void 0&&(j["published.lt"]=n),s!==void 0&&(j["published.lte"]=s),o!==void 0&&(j.channels=o),r!==void 0&&(j["channels.all_of"]=r),d!==void 0&&(j["channels.any_of"]=d),l!==void 0&&(j.tags=l),g!==void 0&&(j["tags.all_of"]=g),f!==void 0&&(j["tags.any_of"]=f),p!==void 0&&(j.author=p),y!==void 0&&(j["author.any_of"]=y),m!==void 0&&(j["author.gt"]=m),u!==void 0&&(j["author.gte"]=u),b!==void 0&&(j["author.lt"]=b),h!==void 0&&(j["author.lte"]=h),x!==void 0&&(j.stocks=x),R!==void 0&&(j["stocks.all_of"]=R),c!==void 0&&(j["stocks.any_of"]=c),_!==void 0&&(j.tickers=_),A!==void 0&&(j["tickers.all_of"]=A),k!==void 0&&(j["tickers.any_of"]=k),B!==void 0&&(j.limit=B),G!==void 0&&(j.sort=G),L(X,j);let C=z&&z.headers?z.headers:{};return $.headers={...H,...C,...S.headers},{url:T(X),options:$}},getCryptoAggregates:async(e,t,i,n,s,o,r,d,l={})=>{K("getCryptoAggregates","cryptoTicker",e),K("getCryptoAggregates","multiplier",t),K("getCryptoAggregates","timespan",i),K("getCryptoAggregates","from",n),K("getCryptoAggregates","to",s);let g="/v2/aggs/ticker/{cryptoTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{cryptoTicker}",encodeURIComponent(String(e))).replace("{multiplier}",encodeURIComponent(String(t))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(s))),f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),o!==void 0&&(u.adjusted=o),r!==void 0&&(u.sort=r),d!==void 0&&(u.limit=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getCryptoEMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y={})=>{K("getCryptoEMA","cryptoTicker",e);let m="/v1/indicators/ema/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(e))),u=new URL(m,I),b;a&&(b=a.baseOptions);let h={method:"GET",...b,...y},x={},R={};await D(R,"apiKey",a),t!==void 0&&(R.timestamp=t),i!==void 0&&(R.timespan=i),n!==void 0&&(R.window=n),s!==void 0&&(R.series_type=s),o!==void 0&&(R.expand_underlying=o),r!==void 0&&(R.order=r),d!==void 0&&(R.limit=d),l!==void 0&&(R["timestamp.gte"]=l),g!==void 0&&(R["timestamp.gt"]=g),f!==void 0&&(R["timestamp.lte"]=f),p!==void 0&&(R["timestamp.lt"]=p),L(u,R);let c=b&&b.headers?b.headers:{};return h.headers={...x,...c,...y.headers},{url:T(u),options:h}},getCryptoMACD:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u={})=>{K("getCryptoMACD","cryptoTicker",e);let b="/v1/indicators/macd/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(e))),h=new URL(b,I),x;a&&(x=a.baseOptions);let R={method:"GET",...x,...u},c={},_={};await D(_,"apiKey",a),t!==void 0&&(_.timestamp=t),i!==void 0&&(_.timespan=i),n!==void 0&&(_.short_window=n),s!==void 0&&(_.long_window=s),o!==void 0&&(_.signal_window=o),r!==void 0&&(_.series_type=r),d!==void 0&&(_.expand_underlying=d),l!==void 0&&(_.order=l),g!==void 0&&(_.limit=g),f!==void 0&&(_["timestamp.gte"]=f),p!==void 0&&(_["timestamp.gt"]=p),y!==void 0&&(_["timestamp.lte"]=y),m!==void 0&&(_["timestamp.lt"]=m),L(h,_);let A=x&&x.headers?x.headers:{};return R.headers={...c,...A,...u.headers},{url:T(h),options:R}},getCryptoOpenClose:async(e,t,i,n,s={})=>{K("getCryptoOpenClose","from",e),K("getCryptoOpenClose","to",t),K("getCryptoOpenClose","date",i);let o="/v1/open-close/crypto/{from}/{to}/{date}".replace("{from}",encodeURIComponent(String(e))).replace("{to}",encodeURIComponent(String(t))).replace("{date}",encodeURIComponent(String(i))),r=new URL(o,I),d;a&&(d=a.baseOptions);let l={method:"GET",...d,...s},g={},f={};await D(f,"apiKey",a),n!==void 0&&(f.adjusted=n),L(r,f);let p=d&&d.headers?d.headers:{};return l.headers={...g,...p,...s.headers},{url:T(r),options:l}},getCryptoRSI:async(e,t,i,n,s,o,r,d,l,g,f,p,y={})=>{K("getCryptoRSI","cryptoTicker",e);let m="/v1/indicators/rsi/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(e))),u=new URL(m,I),b;a&&(b=a.baseOptions);let h={method:"GET",...b,...y},x={},R={};await D(R,"apiKey",a),t!==void 0&&(R.timestamp=t),i!==void 0&&(R.timespan=i),n!==void 0&&(R.window=n),s!==void 0&&(R.series_type=s),o!==void 0&&(R.expand_underlying=o),r!==void 0&&(R.order=r),d!==void 0&&(R.limit=d),l!==void 0&&(R["timestamp.gte"]=l),g!==void 0&&(R["timestamp.gt"]=g),f!==void 0&&(R["timestamp.lte"]=f),p!==void 0&&(R["timestamp.lt"]=p),L(u,R);let c=b&&b.headers?b.headers:{};return h.headers={...x,...c,...y.headers},{url:T(u),options:h}},getCryptoSMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y={})=>{K("getCryptoSMA","cryptoTicker",e);let m="/v1/indicators/sma/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(e))),u=new URL(m,I),b;a&&(b=a.baseOptions);let h={method:"GET",...b,...y},x={},R={};await D(R,"apiKey",a),t!==void 0&&(R.timestamp=t),i!==void 0&&(R.timespan=i),n!==void 0&&(R.window=n),s!==void 0&&(R.series_type=s),o!==void 0&&(R.expand_underlying=o),r!==void 0&&(R.order=r),d!==void 0&&(R.limit=d),l!==void 0&&(R["timestamp.gte"]=l),g!==void 0&&(R["timestamp.gt"]=g),f!==void 0&&(R["timestamp.lte"]=f),p!==void 0&&(R["timestamp.lt"]=p),L(u,R);let c=b&&b.headers?b.headers:{};return h.headers={...x,...c,...y.headers},{url:T(u),options:h}},getCryptoSnapshotDirection:async(e,t={})=>{K("getCryptoSnapshotDirection","direction",e);let i="/v2/snapshot/locale/global/markets/crypto/{direction}".replace("{direction}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getCryptoSnapshotTicker:async(e,t={})=>{K("getCryptoSnapshotTicker","ticker",e);let i="/v2/snapshot/locale/global/markets/crypto/tickers/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getCryptoSnapshotTickers:async(e,t={})=>{let i="/v2/snapshot/locale/global/markets/crypto/tickers",n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),e&&(d.tickers=e),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getCryptoTrades:async(e,t,i,n,s,o,r,d,l,g={})=>{K("getCryptoTrades","cryptoTicker",e);let f="/v3/trades/{cryptoTicker}".replace("{cryptoTicker}",encodeURIComponent(String(e))),p=new URL(f,I),y;a&&(y=a.baseOptions);let m={method:"GET",...y,...g},u={},b={};await D(b,"apiKey",a),t!==void 0&&(b.timestamp=t),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),s!==void 0&&(b["timestamp.lte"]=s),o!==void 0&&(b["timestamp.lt"]=o),r!==void 0&&(b.order=r),d!==void 0&&(b.limit=d),l!==void 0&&(b.sort=l),L(p,b);let h=y&&y.headers?y.headers:{};return m.headers={...u,...h,...g.headers},{url:T(p),options:m}},getCryptoV1Exchanges:async(e,t={})=>{let i="/crypto/v1/exchanges",n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),e!==void 0&&(d.limit=e),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getCurrencyConversion:async(e,t,i,n,s={})=>{K("getCurrencyConversion","from",e),K("getCurrencyConversion","to",t);let o="/v1/conversion/{from}/{to}".replace("{from}",encodeURIComponent(String(e))).replace("{to}",encodeURIComponent(String(t))),r=new URL(o,I),d;a&&(d=a.baseOptions);let l={method:"GET",...d,...s},g={},f={};await D(f,"apiKey",a),i!==void 0&&(f.amount=i),n!==void 0&&(f.precision=n),L(r,f);let p=d&&d.headers?d.headers:{};return l.headers={...g,...p,...s.headers},{url:T(r),options:l}},getEtfGlobalV1Analytics:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me,he,xe,Re,ne,Ae,ie,Ge,Oe,Ce,Se,Ve,we,ve={})=>{let Le="/etf-global/v1/analytics",Ie=new URL(Le,I),_e;a&&(_e=a.baseOptions);let De={method:"GET",..._e,...ve},Te={},P={};await D(P,"apiKey",a),e!==void 0&&(P.composite_ticker=e),t!==void 0&&(P["composite_ticker.any_of"]=t),i!==void 0&&(P["composite_ticker.gt"]=i),n!==void 0&&(P["composite_ticker.gte"]=n),s!==void 0&&(P["composite_ticker.lt"]=s),o!==void 0&&(P["composite_ticker.lte"]=o),r!==void 0&&(P.processed_date=r),d!==void 0&&(P["processed_date.gt"]=d),l!==void 0&&(P["processed_date.gte"]=l),g!==void 0&&(P["processed_date.lt"]=g),f!==void 0&&(P["processed_date.lte"]=f),p!==void 0&&(P.effective_date=p),y!==void 0&&(P["effective_date.gt"]=y),m!==void 0&&(P["effective_date.gte"]=m),u!==void 0&&(P["effective_date.lt"]=u),b!==void 0&&(P["effective_date.lte"]=b),h!==void 0&&(P.risk_total_score=h),x!==void 0&&(P["risk_total_score.gt"]=x),R!==void 0&&(P["risk_total_score.gte"]=R),c!==void 0&&(P["risk_total_score.lt"]=c),_!==void 0&&(P["risk_total_score.lte"]=_),A!==void 0&&(P.reward_score=A),k!==void 0&&(P["reward_score.gt"]=k),B!==void 0&&(P["reward_score.gte"]=B),G!==void 0&&(P["reward_score.lt"]=G),S!==void 0&&(P["reward_score.lte"]=S),E!==void 0&&(P.quant_total_score=E),X!==void 0&&(P["quant_total_score.gt"]=X),z!==void 0&&(P["quant_total_score.gte"]=z),$!==void 0&&(P["quant_total_score.lt"]=$),H!==void 0&&(P["quant_total_score.lte"]=H),j!==void 0&&(P.quant_grade=j),C!==void 0&&(P["quant_grade.any_of"]=C),N!==void 0&&(P["quant_grade.gt"]=N),se!==void 0&&(P["quant_grade.gte"]=se),oe!==void 0&&(P["quant_grade.lt"]=oe),ae!==void 0&&(P["quant_grade.lte"]=ae),de!==void 0&&(P.quant_composite_technical=de),re!==void 0&&(P["quant_composite_technical.gt"]=re),te!==void 0&&(P["quant_composite_technical.gte"]=te),ee!==void 0&&(P["quant_composite_technical.lt"]=ee),Y!==void 0&&(P["quant_composite_technical.lte"]=Y),W!==void 0&&(P.quant_composite_sentiment=W),O!==void 0&&(P["quant_composite_sentiment.gt"]=O),le!==void 0&&(P["quant_composite_sentiment.gte"]=le),pe!==void 0&&(P["quant_composite_sentiment.lt"]=pe),ge!==void 0&&(P["quant_composite_sentiment.lte"]=ge),ce!==void 0&&(P.quant_composite_behavioral=ce),ue!==void 0&&(P["quant_composite_behavioral.gt"]=ue),J!==void 0&&(P["quant_composite_behavioral.gte"]=J),Z!==void 0&&(P["quant_composite_behavioral.lt"]=Z),ye!==void 0&&(P["quant_composite_behavioral.lte"]=ye),fe!==void 0&&(P.quant_composite_fundamental=fe),be!==void 0&&(P["quant_composite_fundamental.gt"]=be),q!==void 0&&(P["quant_composite_fundamental.gte"]=q),w!==void 0&&(P["quant_composite_fundamental.lt"]=w),me!==void 0&&(P["quant_composite_fundamental.lte"]=me),he!==void 0&&(P.quant_composite_global=he),xe!==void 0&&(P["quant_composite_global.gt"]=xe),Re!==void 0&&(P["quant_composite_global.gte"]=Re),ne!==void 0&&(P["quant_composite_global.lt"]=ne),Ae!==void 0&&(P["quant_composite_global.lte"]=Ae),ie!==void 0&&(P.quant_composite_quality=ie),Ge!==void 0&&(P["quant_composite_quality.gt"]=Ge),Oe!==void 0&&(P["quant_composite_quality.gte"]=Oe),Ce!==void 0&&(P["quant_composite_quality.lt"]=Ce),Se!==void 0&&(P["quant_composite_quality.lte"]=Se),Ve!==void 0&&(P.limit=Ve),we!==void 0&&(P.sort=we),L(Ie,P);let Ue=_e&&_e.headers?_e.headers:{};return De.headers={...Te,...Ue,...ve.headers},{url:T(Ie),options:De}},getEtfGlobalV1Constituents:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue={})=>{let J="/etf-global/v1/constituents",Z=new URL(J,I),ye;a&&(ye=a.baseOptions);let fe={method:"GET",...ye,...ue},be={},q={};await D(q,"apiKey",a),e!==void 0&&(q.composite_ticker=e),t!==void 0&&(q["composite_ticker.any_of"]=t),i!==void 0&&(q["composite_ticker.gt"]=i),n!==void 0&&(q["composite_ticker.gte"]=n),s!==void 0&&(q["composite_ticker.lt"]=s),o!==void 0&&(q["composite_ticker.lte"]=o),r!==void 0&&(q.constituent_ticker=r),d!==void 0&&(q["constituent_ticker.any_of"]=d),l!==void 0&&(q["constituent_ticker.gt"]=l),g!==void 0&&(q["constituent_ticker.gte"]=g),f!==void 0&&(q["constituent_ticker.lt"]=f),p!==void 0&&(q["constituent_ticker.lte"]=p),y!==void 0&&(q.effective_date=y),m!==void 0&&(q["effective_date.gt"]=m),u!==void 0&&(q["effective_date.gte"]=u),b!==void 0&&(q["effective_date.lt"]=b),h!==void 0&&(q["effective_date.lte"]=h),x!==void 0&&(q.processed_date=x),R!==void 0&&(q["processed_date.gt"]=R),c!==void 0&&(q["processed_date.gte"]=c),_!==void 0&&(q["processed_date.lt"]=_),A!==void 0&&(q["processed_date.lte"]=A),k!==void 0&&(q.us_code=k),B!==void 0&&(q["us_code.any_of"]=B),G!==void 0&&(q["us_code.gt"]=G),S!==void 0&&(q["us_code.gte"]=S),E!==void 0&&(q["us_code.lt"]=E),X!==void 0&&(q["us_code.lte"]=X),z!==void 0&&(q.isin=z),$!==void 0&&(q["isin.any_of"]=$),H!==void 0&&(q["isin.gt"]=H),j!==void 0&&(q["isin.gte"]=j),C!==void 0&&(q["isin.lt"]=C),N!==void 0&&(q["isin.lte"]=N),se!==void 0&&(q.figi=se),oe!==void 0&&(q["figi.any_of"]=oe),ae!==void 0&&(q["figi.gt"]=ae),de!==void 0&&(q["figi.gte"]=de),re!==void 0&&(q["figi.lt"]=re),te!==void 0&&(q["figi.lte"]=te),ee!==void 0&&(q.sedol=ee),Y!==void 0&&(q["sedol.any_of"]=Y),W!==void 0&&(q["sedol.gt"]=W),O!==void 0&&(q["sedol.gte"]=O),le!==void 0&&(q["sedol.lt"]=le),pe!==void 0&&(q["sedol.lte"]=pe),ge!==void 0&&(q.limit=ge),ce!==void 0&&(q.sort=ce),L(Z,q);let w=ye&&ye.headers?ye.headers:{};return fe.headers={...be,...w,...ue.headers},{url:T(Z),options:fe}},getEtfGlobalV1FundFlows:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R={})=>{let c="/etf-global/v1/fund-flows",_=new URL(c,I),A;a&&(A=a.baseOptions);let k={method:"GET",...A,...R},B={},G={};await D(G,"apiKey",a),e!==void 0&&(G.processed_date=e),t!==void 0&&(G["processed_date.gt"]=t),i!==void 0&&(G["processed_date.gte"]=i),n!==void 0&&(G["processed_date.lt"]=n),s!==void 0&&(G["processed_date.lte"]=s),o!==void 0&&(G.effective_date=o),r!==void 0&&(G["effective_date.gt"]=r),d!==void 0&&(G["effective_date.gte"]=d),l!==void 0&&(G["effective_date.lt"]=l),g!==void 0&&(G["effective_date.lte"]=g),f!==void 0&&(G.composite_ticker=f),p!==void 0&&(G["composite_ticker.any_of"]=p),y!==void 0&&(G["composite_ticker.gt"]=y),m!==void 0&&(G["composite_ticker.gte"]=m),u!==void 0&&(G["composite_ticker.lt"]=u),b!==void 0&&(G["composite_ticker.lte"]=b),h!==void 0&&(G.limit=h),x!==void 0&&(G.sort=x),L(_,G);let S=A&&A.headers?A.headers:{};return k.headers={...B,...S,...R.headers},{url:T(_),options:k}},getEtfGlobalV1Profiles:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R={})=>{let c="/etf-global/v1/profiles",_=new URL(c,I),A;a&&(A=a.baseOptions);let k={method:"GET",...A,...R},B={},G={};await D(G,"apiKey",a),e!==void 0&&(G.processed_date=e),t!==void 0&&(G["processed_date.gt"]=t),i!==void 0&&(G["processed_date.gte"]=i),n!==void 0&&(G["processed_date.lt"]=n),s!==void 0&&(G["processed_date.lte"]=s),o!==void 0&&(G.effective_date=o),r!==void 0&&(G["effective_date.gt"]=r),d!==void 0&&(G["effective_date.gte"]=d),l!==void 0&&(G["effective_date.lt"]=l),g!==void 0&&(G["effective_date.lte"]=g),f!==void 0&&(G.composite_ticker=f),p!==void 0&&(G["composite_ticker.any_of"]=p),y!==void 0&&(G["composite_ticker.gt"]=y),m!==void 0&&(G["composite_ticker.gte"]=m),u!==void 0&&(G["composite_ticker.lt"]=u),b!==void 0&&(G["composite_ticker.lte"]=b),h!==void 0&&(G.limit=h),x!==void 0&&(G.sort=x),L(_,G);let S=A&&A.headers?A.headers:{};return k.headers={...B,...S,...R.headers},{url:T(_),options:k}},getEtfGlobalV1Taxonomies:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R={})=>{let c="/etf-global/v1/taxonomies",_=new URL(c,I),A;a&&(A=a.baseOptions);let k={method:"GET",...A,...R},B={},G={};await D(G,"apiKey",a),e!==void 0&&(G.processed_date=e),t!==void 0&&(G["processed_date.gt"]=t),i!==void 0&&(G["processed_date.gte"]=i),n!==void 0&&(G["processed_date.lt"]=n),s!==void 0&&(G["processed_date.lte"]=s),o!==void 0&&(G.effective_date=o),r!==void 0&&(G["effective_date.gt"]=r),d!==void 0&&(G["effective_date.gte"]=d),l!==void 0&&(G["effective_date.lt"]=l),g!==void 0&&(G["effective_date.lte"]=g),f!==void 0&&(G.composite_ticker=f),p!==void 0&&(G["composite_ticker.any_of"]=p),y!==void 0&&(G["composite_ticker.gt"]=y),m!==void 0&&(G["composite_ticker.gte"]=m),u!==void 0&&(G["composite_ticker.lt"]=u),b!==void 0&&(G["composite_ticker.lte"]=b),h!==void 0&&(G.limit=h),x!==void 0&&(G.sort=x),L(_,G);let S=A&&A.headers?A.headers:{};return k.headers={...B,...S,...R.headers},{url:T(_),options:k}},getEvents:async(e,t,i={})=>{K("getEvents","id",e);let n="/vX/reference/tickers/{id}/events".replace("{id}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.types=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getFedV1Inflation:async(e,t,i,n,s,o,r,d,l={})=>{let g="/fed/v1/inflation",f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),e!==void 0&&(u.date=e),t!==void 0&&(u["date.any_of"]=t),i!==void 0&&(u["date.gt"]=i),n!==void 0&&(u["date.gte"]=n),s!==void 0&&(u["date.lt"]=s),o!==void 0&&(u["date.lte"]=o),r!==void 0&&(u.limit=r),d!==void 0&&(u.sort=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getFedV1InflationExpectations:async(e,t,i,n,s,o,r,d,l={})=>{let g="/fed/v1/inflation-expectations",f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),e!==void 0&&(u.date=e),t!==void 0&&(u["date.any_of"]=t),i!==void 0&&(u["date.gt"]=i),n!==void 0&&(u["date.gte"]=n),s!==void 0&&(u["date.lt"]=s),o!==void 0&&(u["date.lte"]=o),r!==void 0&&(u.limit=r),d!==void 0&&(u.sort=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getFedV1TreasuryYields:async(e,t,i,n,s,o,r,d,l={})=>{let g="/fed/v1/treasury-yields",f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),e!==void 0&&(u.date=e),t!==void 0&&(u["date.any_of"]=t),i!==void 0&&(u["date.gt"]=i),n!==void 0&&(u["date.gte"]=n),s!==void 0&&(u["date.lt"]=s),o!==void 0&&(u["date.lte"]=o),r!==void 0&&(u.limit=r),d!==void 0&&(u.sort=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getForexAggregates:async(e,t,i,n,s,o,r,d,l={})=>{K("getForexAggregates","forexTicker",e),K("getForexAggregates","multiplier",t),K("getForexAggregates","timespan",i),K("getForexAggregates","from",n),K("getForexAggregates","to",s);let g="/v2/aggs/ticker/{forexTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{forexTicker}",encodeURIComponent(String(e))).replace("{multiplier}",encodeURIComponent(String(t))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(s))),f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),o!==void 0&&(u.adjusted=o),r!==void 0&&(u.sort=r),d!==void 0&&(u.limit=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getForexEMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getForexEMA","fxTicker",e);let u="/v1/indicators/ema/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getForexMACD:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b={})=>{K("getForexMACD","fxTicker",e);let h="/v1/indicators/macd/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(e))),x=new URL(h,I),R;a&&(R=a.baseOptions);let c={method:"GET",...R,...b},_={},A={};await D(A,"apiKey",a),t!==void 0&&(A.timestamp=t),i!==void 0&&(A.timespan=i),n!==void 0&&(A.adjusted=n),s!==void 0&&(A.short_window=s),o!==void 0&&(A.long_window=o),r!==void 0&&(A.signal_window=r),d!==void 0&&(A.series_type=d),l!==void 0&&(A.expand_underlying=l),g!==void 0&&(A.order=g),f!==void 0&&(A.limit=f),p!==void 0&&(A["timestamp.gte"]=p),y!==void 0&&(A["timestamp.gt"]=y),m!==void 0&&(A["timestamp.lte"]=m),u!==void 0&&(A["timestamp.lt"]=u),L(x,A);let k=R&&R.headers?R.headers:{};return c.headers={..._,...k,...b.headers},{url:T(x),options:c}},getForexQuotes:async(e,t,i,n,s,o,r,d,l,g={})=>{K("getForexQuotes","fxTicker",e);let f="/v3/quotes/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(e))),p=new URL(f,I),y;a&&(y=a.baseOptions);let m={method:"GET",...y,...g},u={},b={};await D(b,"apiKey",a),t!==void 0&&(b.timestamp=t),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),s!==void 0&&(b["timestamp.lte"]=s),o!==void 0&&(b["timestamp.lt"]=o),r!==void 0&&(b.order=r),d!==void 0&&(b.limit=d),l!==void 0&&(b.sort=l),L(p,b);let h=y&&y.headers?y.headers:{};return m.headers={...u,...h,...g.headers},{url:T(p),options:m}},getForexRSI:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getForexRSI","fxTicker",e);let u="/v1/indicators/rsi/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getForexSMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getForexSMA","fxTicker",e);let u="/v1/indicators/sma/{fxTicker}".replace("{fxTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getForexSnapshotDirection:async(e,t={})=>{K("getForexSnapshotDirection","direction",e);let i="/v2/snapshot/locale/global/markets/forex/{direction}".replace("{direction}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getForexSnapshotTicker:async(e,t={})=>{K("getForexSnapshotTicker","ticker",e);let i="/v2/snapshot/locale/global/markets/forex/tickers/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getForexSnapshotTickers:async(e,t={})=>{let i="/v2/snapshot/locale/global/markets/forex/tickers",n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),e&&(d.tickers=e),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getForexV1Exchanges:async(e,t={})=>{let i="/forex/v1/exchanges",n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),e!==void 0&&(d.limit=e),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getFuturesAggregates:async(e,t,i,n,s,o,r,d,l,g={})=>{K("getFuturesAggregates","ticker",e);let f="/futures/vX/aggs/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),p=new URL(f,I),y;a&&(y=a.baseOptions);let m={method:"GET",...y,...g},u={},b={};await D(b,"apiKey",a),t!==void 0&&(b.resolution=t),i!==void 0&&(b.window_start=i),n!==void 0&&(b.limit=n),s!==void 0&&(b["window_start.gte"]=s),o!==void 0&&(b["window_start.gt"]=o),r!==void 0&&(b["window_start.lte"]=r),d!==void 0&&(b["window_start.lt"]=d),l!==void 0&&(b.sort=l),L(p,b);let h=y&&y.headers?y.headers:{};return m.headers={...u,...h,...g.headers},{url:T(p),options:m}},getFuturesContractDetails:async(e,t,i={})=>{K("getFuturesContractDetails","ticker",e);let n="/futures/vX/contracts/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.as_of=t instanceof Date?t.toISOString().substring(0,10):t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getFuturesContracts:async(e,t,i,n,s,o,r,d,l={})=>{let g="/futures/vX/contracts",f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),e!==void 0&&(u.product_code=e),t!==void 0&&(u.first_trade_date=t instanceof Date?t.toISOString().substring(0,10):t),i!==void 0&&(u.last_trade_date=i instanceof Date?i.toISOString().substring(0,10):i),n!==void 0&&(u.as_of=n instanceof Date?n.toISOString().substring(0,10):n),s!==void 0&&(u.active=s),o!==void 0&&(u.type=o),r!==void 0&&(u.limit=r),d!==void 0&&(u.sort=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getFuturesDailySchedules:async(e,t,i,n,s={})=>{let o="/futures/vX/schedules",r=new URL(o,I),d;a&&(d=a.baseOptions);let l={method:"GET",...d,...s},g={},f={};await D(f,"apiKey",a),e!==void 0&&(f.session_end_date=e instanceof Date?e.toISOString().substring(0,10):e),t!==void 0&&(f.trading_venue=t),i!==void 0&&(f.limit=i),n!==void 0&&(f.sort=n),L(r,f);let p=d&&d.headers?d.headers:{};return l.headers={...g,...p,...s.headers},{url:T(r),options:l}},getFuturesMarketStatuses:async(e,t,i,n,s={})=>{let o="/futures/vX/market-status",r=new URL(o,I),d;a&&(d=a.baseOptions);let l={method:"GET",...d,...s},g={},f={};await D(f,"apiKey",a),e!==void 0&&(f["product_code.any_of"]=e),t!==void 0&&(f.product_code=t),i!==void 0&&(f.limit=i),n!==void 0&&(f.sort=n),L(r,f);let p=d&&d.headers?d.headers:{};return l.headers={...g,...p,...s.headers},{url:T(r),options:l}},getFuturesProductDetails:async(e,t,i,n={})=>{K("getFuturesProductDetails","productCode",e);let s="/futures/vX/products/{product_code}".replace("{product_code}",encodeURIComponent(String(e))),o=new URL(s,I),r;a&&(r=a.baseOptions);let d={method:"GET",...r,...n},l={},g={};await D(g,"apiKey",a),t!==void 0&&(g.type=t),i!==void 0&&(g.as_of=i instanceof Date?i.toISOString().substring(0,10):i),L(o,g);let f=r&&r.headers?r.headers:{};return d.headers={...l,...f,...n.headers},{url:T(o),options:d}},getFuturesProductSchedules:async(e,t,i,n,s,o,r,d,l={})=>{K("getFuturesProductSchedules","productCode",e);let g="/futures/vX/products/{product_code}/schedules".replace("{product_code}",encodeURIComponent(String(e))),f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),t!==void 0&&(u.session_end_date=t instanceof Date?t.toISOString().substring(0,10):t),i!==void 0&&(u.limit=i),n!==void 0&&(u["session_end_date.gte"]=n instanceof Date?n.toISOString().substring(0,10):n),s!==void 0&&(u["session_end_date.gt"]=s instanceof Date?s.toISOString().substring(0,10):s),o!==void 0&&(u["session_end_date.lte"]=o instanceof Date?o.toISOString().substring(0,10):o),r!==void 0&&(u["session_end_date.lt"]=r instanceof Date?r.toISOString().substring(0,10):r),d!==void 0&&(u.sort=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getFuturesProducts:async(e,t,i,n,s,o,r,d,l,g,f,p={})=>{let y="/futures/vX/products",m=new URL(y,I),u;a&&(u=a.baseOptions);let b={method:"GET",...u,...p},h={},x={};await D(x,"apiKey",a),e!==void 0&&(x.name=e),t!==void 0&&(x.as_of=t instanceof Date?t.toISOString().substring(0,10):t),i!==void 0&&(x.trading_venue=i),n!==void 0&&(x.sector=n),s!==void 0&&(x.sub_sector=s),o!==void 0&&(x.asset_class=o),r!==void 0&&(x.asset_sub_class=r),d!==void 0&&(x.type=d),l!==void 0&&(x.limit=l),g!==void 0&&(x["name.search"]=g),f!==void 0&&(x.sort=f),L(m,x);let R=u&&u.headers?u.headers:{};return b.headers={...h,...R,...p.headers},{url:T(m),options:b}},getFuturesQuotes:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getFuturesQuotes","ticker",e);let u="/futures/vX/quotes/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.session_end_date=i),n!==void 0&&(c.limit=n),s!==void 0&&(c["timestamp.gte"]=s),o!==void 0&&(c["timestamp.gt"]=o),r!==void 0&&(c["timestamp.lte"]=r),d!==void 0&&(c["timestamp.lt"]=d),l!==void 0&&(c["session_end_date.gte"]=l),g!==void 0&&(c["session_end_date.gt"]=g),f!==void 0&&(c["session_end_date.lte"]=f),p!==void 0&&(c["session_end_date.lt"]=p),y!==void 0&&(c.sort=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getFuturesTrades:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getFuturesTrades","ticker",e);let u="/futures/vX/trades/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.session_end_date=i),n!==void 0&&(c.limit=n),s!==void 0&&(c["timestamp.gte"]=s),o!==void 0&&(c["timestamp.gt"]=o),r!==void 0&&(c["timestamp.lte"]=r),d!==void 0&&(c["timestamp.lt"]=d),l!==void 0&&(c["session_end_date.gte"]=l),g!==void 0&&(c["session_end_date.gt"]=g),f!==void 0&&(c["session_end_date.lte"]=f),p!==void 0&&(c["session_end_date.lt"]=p),y!==void 0&&(c.sort=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getFuturesVXContractsNew:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae={})=>{let de="/futures/vX/contracts-new",re=new URL(de,I),te;a&&(te=a.baseOptions);let ee={method:"GET",...te,...ae},Y={},W={};await D(W,"apiKey",a),e!==void 0&&(W.date=e),t!==void 0&&(W["date.gt"]=t),i!==void 0&&(W["date.gte"]=i),n!==void 0&&(W["date.lt"]=n),s!==void 0&&(W["date.lte"]=s),o!==void 0&&(W.product_code=o),r!==void 0&&(W["product_code.any_of"]=r),d!==void 0&&(W["product_code.gt"]=d),l!==void 0&&(W["product_code.gte"]=l),g!==void 0&&(W["product_code.lt"]=g),f!==void 0&&(W["product_code.lte"]=f),p!==void 0&&(W.ticker=p),y!==void 0&&(W["ticker.any_of"]=y),m!==void 0&&(W["ticker.gt"]=m),u!==void 0&&(W["ticker.gte"]=u),b!==void 0&&(W["ticker.lt"]=b),h!==void 0&&(W["ticker.lte"]=h),x!==void 0&&(W.active=x),R!==void 0&&(W.type=R),c!==void 0&&(W["type.any_of"]=c),_!==void 0&&(W["type.gt"]=_),A!==void 0&&(W["type.gte"]=A),k!==void 0&&(W["type.lt"]=k),B!==void 0&&(W["type.lte"]=B),G!==void 0&&(W.first_trade_date=G),S!==void 0&&(W["first_trade_date.gt"]=S),E!==void 0&&(W["first_trade_date.gte"]=E),X!==void 0&&(W["first_trade_date.lt"]=X),z!==void 0&&(W["first_trade_date.lte"]=z),$!==void 0&&(W.last_trade_date=$),H!==void 0&&(W["last_trade_date.gt"]=H),j!==void 0&&(W["last_trade_date.gte"]=j),C!==void 0&&(W["last_trade_date.lt"]=C),N!==void 0&&(W["last_trade_date.lte"]=N),se!==void 0&&(W.limit=se),oe!==void 0&&(W.sort=oe),L(re,W);let O=te&&te.headers?te.headers:{};return ee.headers={...Y,...O,...ae.headers},{url:T(re),options:ee}},getFuturesVXExchanges:async(e,t={})=>{let i="/futures/vX/exchanges",n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),e!==void 0&&(d.limit=e),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getFuturesVXProductsNew:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J={})=>{let Z="/futures/vX/products-new",ye=new URL(Z,I),fe;a&&(fe=a.baseOptions);let be={method:"GET",...fe,...J},q={},w={};await D(w,"apiKey",a),e!==void 0&&(w.name=e),t!==void 0&&(w["name.any_of"]=t),i!==void 0&&(w["name.gt"]=i),n!==void 0&&(w["name.gte"]=n),s!==void 0&&(w["name.lt"]=s),o!==void 0&&(w["name.lte"]=o),r!==void 0&&(w.product_code=r),d!==void 0&&(w["product_code.any_of"]=d),l!==void 0&&(w["product_code.gt"]=l),g!==void 0&&(w["product_code.gte"]=g),f!==void 0&&(w["product_code.lt"]=f),p!==void 0&&(w["product_code.lte"]=p),y!==void 0&&(w.date=y),m!==void 0&&(w["date.gt"]=m),u!==void 0&&(w["date.gte"]=u),b!==void 0&&(w["date.lt"]=b),h!==void 0&&(w["date.lte"]=h),x!==void 0&&(w.sector=x),R!==void 0&&(w["sector.any_of"]=R),c!==void 0&&(w["sector.gt"]=c),_!==void 0&&(w["sector.gte"]=_),A!==void 0&&(w["sector.lt"]=A),k!==void 0&&(w["sector.lte"]=k),B!==void 0&&(w.sub_sector=B),G!==void 0&&(w["sub_sector.any_of"]=G),S!==void 0&&(w["sub_sector.gt"]=S),E!==void 0&&(w["sub_sector.gte"]=E),X!==void 0&&(w["sub_sector.lt"]=X),z!==void 0&&(w["sub_sector.lte"]=z),$!==void 0&&(w.asset_class=$),H!==void 0&&(w["asset_class.any_of"]=H),j!==void 0&&(w["asset_class.gt"]=j),C!==void 0&&(w["asset_class.gte"]=C),N!==void 0&&(w["asset_class.lt"]=N),se!==void 0&&(w["asset_class.lte"]=se),oe!==void 0&&(w.asset_sub_class=oe),ae!==void 0&&(w["asset_sub_class.any_of"]=ae),de!==void 0&&(w["asset_sub_class.gt"]=de),re!==void 0&&(w["asset_sub_class.gte"]=re),te!==void 0&&(w["asset_sub_class.lt"]=te),ee!==void 0&&(w["asset_sub_class.lte"]=ee),Y!==void 0&&(w.type=Y),W!==void 0&&(w["type.any_of"]=W),O!==void 0&&(w["type.gt"]=O),le!==void 0&&(w["type.gte"]=le),pe!==void 0&&(w["type.lt"]=pe),ge!==void 0&&(w["type.lte"]=ge),ce!==void 0&&(w.limit=ce),ue!==void 0&&(w.sort=ue),L(ye,w);let me=fe&&fe.headers?fe.headers:{};return be.headers={...q,...me,...J.headers},{url:T(ye),options:be}},getFuturesVXSnapshot:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u={})=>{let b="/futures/vX/snapshot",h=new URL(b,I),x;a&&(x=a.baseOptions);let R={method:"GET",...x,...u},c={},_={};await D(_,"apiKey",a),e!==void 0&&(_.product_code=e),t!==void 0&&(_["product_code.any_of"]=t),i!==void 0&&(_["product_code.gt"]=i),n!==void 0&&(_["product_code.gte"]=n),s!==void 0&&(_["product_code.lt"]=s),o!==void 0&&(_["product_code.lte"]=o),r!==void 0&&(_.ticker=r),d!==void 0&&(_["ticker.any_of"]=d),l!==void 0&&(_["ticker.gt"]=l),g!==void 0&&(_["ticker.gte"]=g),f!==void 0&&(_["ticker.lt"]=f),p!==void 0&&(_["ticker.lte"]=p),y!==void 0&&(_.limit=y),m!==void 0&&(_.sort=m),L(h,_);let A=x&&x.headers?x.headers:{};return R.headers={...c,...A,...u.headers},{url:T(h),options:R}},getGroupedCryptoAggregates:async(e,t,i={})=>{K("getGroupedCryptoAggregates","date",e);let n="/v2/aggs/grouped/locale/global/market/crypto/{date}".replace("{date}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.adjusted=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getGroupedForexAggregates:async(e,t,i={})=>{K("getGroupedForexAggregates","date",e);let n="/v2/aggs/grouped/locale/global/market/fx/{date}".replace("{date}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.adjusted=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getGroupedStocksAggregates:async(e,t,i,n={})=>{K("getGroupedStocksAggregates","date",e);let s="/v2/aggs/grouped/locale/us/market/stocks/{date}".replace("{date}",encodeURIComponent(String(e))),o=new URL(s,I),r;a&&(r=a.baseOptions);let d={method:"GET",...r,...n},l={},g={};await D(g,"apiKey",a),t!==void 0&&(g.adjusted=t),i!==void 0&&(g.include_otc=i),L(o,g);let f=r&&r.headers?r.headers:{};return d.headers={...l,...f,...n.headers},{url:T(o),options:d}},getIndicesAggregates:async(e,t,i,n,s,o,r,d={})=>{K("getIndicesAggregates","indicesTicker",e),K("getIndicesAggregates","multiplier",t),K("getIndicesAggregates","timespan",i),K("getIndicesAggregates","from",n),K("getIndicesAggregates","to",s);let l="/v2/aggs/ticker/{indicesTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{indicesTicker}",encodeURIComponent(String(e))).replace("{multiplier}",encodeURIComponent(String(t))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(s))),g=new URL(l,I),f;a&&(f=a.baseOptions);let p={method:"GET",...f,...d},y={},m={};await D(m,"apiKey",a),o!==void 0&&(m.sort=o),r!==void 0&&(m.limit=r),L(g,m);let u=f&&f.headers?f.headers:{};return p.headers={...y,...u,...d.headers},{url:T(g),options:p}},getIndicesEMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getIndicesEMA","indicesTicker",e);let u="/v1/indicators/ema/{indicesTicker}".replace("{indicesTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getIndicesMACD:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b={})=>{K("getIndicesMACD","indicesTicker",e);let h="/v1/indicators/macd/{indicesTicker}".replace("{indicesTicker}",encodeURIComponent(String(e))),x=new URL(h,I),R;a&&(R=a.baseOptions);let c={method:"GET",...R,...b},_={},A={};await D(A,"apiKey",a),t!==void 0&&(A.timestamp=t),i!==void 0&&(A.timespan=i),n!==void 0&&(A.adjusted=n),s!==void 0&&(A.short_window=s),o!==void 0&&(A.long_window=o),r!==void 0&&(A.signal_window=r),d!==void 0&&(A.series_type=d),l!==void 0&&(A.expand_underlying=l),g!==void 0&&(A.order=g),f!==void 0&&(A.limit=f),p!==void 0&&(A["timestamp.gte"]=p),y!==void 0&&(A["timestamp.gt"]=y),m!==void 0&&(A["timestamp.lte"]=m),u!==void 0&&(A["timestamp.lt"]=u),L(x,A);let k=R&&R.headers?R.headers:{};return c.headers={..._,...k,...b.headers},{url:T(x),options:c}},getIndicesOpenClose:async(e,t,i={})=>{K("getIndicesOpenClose","indicesTicker",e),K("getIndicesOpenClose","date",t);let n="/v1/open-close/{indicesTicker}/{date}".replace("{indicesTicker}",encodeURIComponent(String(e))).replace("{date}",encodeURIComponent(String(t))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getIndicesRSI:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getIndicesRSI","indicesTicker",e);let u="/v1/indicators/rsi/{indicesTicker}".replace("{indicesTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getIndicesSMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getIndicesSMA","indicesTicker",e);let u="/v1/indicators/sma/{indicesTicker}".replace("{indicesTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getIndicesSnapshot:async(e,t,i,n,s,o,r,d,l,g={})=>{let f="/v3/snapshot/indices",p=new URL(f,I),y;a&&(y=a.baseOptions);let m={method:"GET",...y,...g},u={},b={};await D(b,"apiKey",a),e!==void 0&&(b["ticker.any_of"]=e),t!==void 0&&(b.ticker=t),i!==void 0&&(b["ticker.gte"]=i),n!==void 0&&(b["ticker.gt"]=n),s!==void 0&&(b["ticker.lte"]=s),o!==void 0&&(b["ticker.lt"]=o),r!==void 0&&(b.order=r),d!==void 0&&(b.limit=d),l!==void 0&&(b.sort=l),L(p,b);let h=y&&y.headers?y.headers:{};return m.headers={...u,...h,...g.headers},{url:T(p),options:m}},getLastCryptoTrade:async(e,t,i={})=>{K("getLastCryptoTrade","from",e),K("getLastCryptoTrade","to",t);let n="/v1/last/crypto/{from}/{to}".replace("{from}",encodeURIComponent(String(e))).replace("{to}",encodeURIComponent(String(t))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getLastCurrencyQuote:async(e,t,i={})=>{K("getLastCurrencyQuote","from",e),K("getLastCurrencyQuote","to",t);let n="/v1/last_quote/currencies/{from}/{to}".replace("{from}",encodeURIComponent(String(e))).replace("{to}",encodeURIComponent(String(t))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getLastOptionsTrade:async(e,t={})=>{K("getLastOptionsTrade","optionsTicker",e);let i="/v2/last/trade/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getLastStocksQuote:async(e,t={})=>{K("getLastStocksQuote","stocksTicker",e);let i="/v2/last/nbbo/{stocksTicker}".replace("{stocksTicker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getLastStocksTrade:async(e,t={})=>{K("getLastStocksTrade","stocksTicker",e);let i="/v2/last/trade/{stocksTicker}".replace("{stocksTicker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getMarketHolidays:async(e={})=>{let t="/v1/marketstatus/upcoming",i=new URL(t,I),n;a&&(n=a.baseOptions);let s={method:"GET",...n,...e},o={},r={};await D(r,"apiKey",a),L(i,r);let d=n&&n.headers?n.headers:{};return s.headers={...o,...d,...e.headers},{url:T(i),options:s}},getMarketStatus:async(e={})=>{let t="/v1/marketstatus/now",i=new URL(t,I),n;a&&(n=a.baseOptions);let s={method:"GET",...n,...e},o={},r={};await D(r,"apiKey",a),L(i,r);let d=n&&n.headers?n.headers:{};return s.headers={...o,...d,...e.headers},{url:T(i),options:s}},getOptionContract:async(e,t,i={})=>{K("getOptionContract","underlyingAsset",e),K("getOptionContract","optionContract",t);let n="/v3/snapshot/options/{underlyingAsset}/{optionContract}".replace("{underlyingAsset}",encodeURIComponent(String(e))).replace("{optionContract}",encodeURIComponent(String(t))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getOptionsAggregates:async(e,t,i,n,s,o,r,d,l={})=>{K("getOptionsAggregates","optionsTicker",e),K("getOptionsAggregates","multiplier",t),K("getOptionsAggregates","timespan",i),K("getOptionsAggregates","from",n),K("getOptionsAggregates","to",s);let g="/v2/aggs/ticker/{optionsTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{optionsTicker}",encodeURIComponent(String(e))).replace("{multiplier}",encodeURIComponent(String(t))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(s))),f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),o!==void 0&&(u.adjusted=o),r!==void 0&&(u.sort=r),d!==void 0&&(u.limit=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getOptionsChain:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b={})=>{K("getOptionsChain","underlyingAsset",e);let h="/v3/snapshot/options/{underlyingAsset}".replace("{underlyingAsset}",encodeURIComponent(String(e))),x=new URL(h,I),R;a&&(R=a.baseOptions);let c={method:"GET",...R,...b},_={},A={};await D(A,"apiKey",a),t!==void 0&&(A.strike_price=t),i!==void 0&&(A.expiration_date=i),n!==void 0&&(A.contract_type=n),s!==void 0&&(A["strike_price.gte"]=s),o!==void 0&&(A["strike_price.gt"]=o),r!==void 0&&(A["strike_price.lte"]=r),d!==void 0&&(A["strike_price.lt"]=d),l!==void 0&&(A["expiration_date.gte"]=l),g!==void 0&&(A["expiration_date.gt"]=g),f!==void 0&&(A["expiration_date.lte"]=f),p!==void 0&&(A["expiration_date.lt"]=p),y!==void 0&&(A.order=y),m!==void 0&&(A.limit=m),u!==void 0&&(A.sort=u),L(x,A);let k=R&&R.headers?R.headers:{};return c.headers={..._,...k,...b.headers},{url:T(x),options:c}},getOptionsContract:async(e,t,i={})=>{K("getOptionsContract","optionsTicker",e);let n="/v3/reference/options/contracts/{options_ticker}".replace("{options_ticker}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.as_of=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getOptionsEMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getOptionsEMA","optionsTicker",e);let u="/v1/indicators/ema/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getOptionsMACD:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b={})=>{K("getOptionsMACD","optionsTicker",e);let h="/v1/indicators/macd/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(e))),x=new URL(h,I),R;a&&(R=a.baseOptions);let c={method:"GET",...R,...b},_={},A={};await D(A,"apiKey",a),t!==void 0&&(A.timestamp=t),i!==void 0&&(A.timespan=i),n!==void 0&&(A.adjusted=n),s!==void 0&&(A.short_window=s),o!==void 0&&(A.long_window=o),r!==void 0&&(A.signal_window=r),d!==void 0&&(A.series_type=d),l!==void 0&&(A.expand_underlying=l),g!==void 0&&(A.order=g),f!==void 0&&(A.limit=f),p!==void 0&&(A["timestamp.gte"]=p),y!==void 0&&(A["timestamp.gt"]=y),m!==void 0&&(A["timestamp.lte"]=m),u!==void 0&&(A["timestamp.lt"]=u),L(x,A);let k=R&&R.headers?R.headers:{};return c.headers={..._,...k,...b.headers},{url:T(x),options:c}},getOptionsOpenClose:async(e,t,i,n={})=>{K("getOptionsOpenClose","optionsTicker",e),K("getOptionsOpenClose","date",t);let s="/v1/open-close/{optionsTicker}/{date}".replace("{optionsTicker}",encodeURIComponent(String(e))).replace("{date}",encodeURIComponent(String(t))),o=new URL(s,I),r;a&&(r=a.baseOptions);let d={method:"GET",...r,...n},l={},g={};await D(g,"apiKey",a),i!==void 0&&(g.adjusted=i),L(o,g);let f=r&&r.headers?r.headers:{};return d.headers={...l,...f,...n.headers},{url:T(o),options:d}},getOptionsQuotes:async(e,t,i,n,s,o,r,d,l,g={})=>{K("getOptionsQuotes","optionsTicker",e);let f="/v3/quotes/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(e))),p=new URL(f,I),y;a&&(y=a.baseOptions);let m={method:"GET",...y,...g},u={},b={};await D(b,"apiKey",a),t!==void 0&&(b.timestamp=t),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),s!==void 0&&(b["timestamp.lte"]=s),o!==void 0&&(b["timestamp.lt"]=o),r!==void 0&&(b.order=r),d!==void 0&&(b.limit=d),l!==void 0&&(b.sort=l),L(p,b);let h=y&&y.headers?y.headers:{};return m.headers={...u,...h,...g.headers},{url:T(p),options:m}},getOptionsRSI:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getOptionsRSI","optionsTicker",e);let u="/v1/indicators/rsi/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getOptionsSMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getOptionsSMA","optionsTicker",e);let u="/v1/indicators/sma/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getOptionsTrades:async(e,t,i,n,s,o,r,d,l,g={})=>{K("getOptionsTrades","optionsTicker",e);let f="/v3/trades/{optionsTicker}".replace("{optionsTicker}",encodeURIComponent(String(e))),p=new URL(f,I),y;a&&(y=a.baseOptions);let m={method:"GET",...y,...g},u={},b={};await D(b,"apiKey",a),t!==void 0&&(b.timestamp=t),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),s!==void 0&&(b["timestamp.lte"]=s),o!==void 0&&(b["timestamp.lt"]=o),r!==void 0&&(b.order=r),d!==void 0&&(b.limit=d),l!==void 0&&(b.sort=l),L(p,b);let h=y&&y.headers?y.headers:{};return m.headers={...u,...h,...g.headers},{url:T(p),options:m}},getOptionsV1Exchanges:async(e,t={})=>{let i="/options/v1/exchanges",n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),e!==void 0&&(d.limit=e),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getPreviousCryptoAggregates:async(e,t,i={})=>{K("getPreviousCryptoAggregates","cryptoTicker",e);let n="/v2/aggs/ticker/{cryptoTicker}/prev".replace("{cryptoTicker}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.adjusted=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getPreviousForexAggregates:async(e,t,i={})=>{K("getPreviousForexAggregates","forexTicker",e);let n="/v2/aggs/ticker/{forexTicker}/prev".replace("{forexTicker}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.adjusted=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getPreviousIndicesAggregates:async(e,t={})=>{K("getPreviousIndicesAggregates","indicesTicker",e);let i="/v2/aggs/ticker/{indicesTicker}/prev".replace("{indicesTicker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getPreviousOptionsAggregates:async(e,t,i={})=>{K("getPreviousOptionsAggregates","optionsTicker",e);let n="/v2/aggs/ticker/{optionsTicker}/prev".replace("{optionsTicker}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.adjusted=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getPreviousStocksAggregates:async(e,t,i={})=>{K("getPreviousStocksAggregates","stocksTicker",e);let n="/v2/aggs/ticker/{stocksTicker}/prev".replace("{stocksTicker}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.adjusted=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getRelatedCompanies:async(e,t={})=>{K("getRelatedCompanies","ticker",e);let i="/v1/related-companies/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getSnapshotSummary:async(e,t={})=>{let i="/v1/summaries",n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),e!==void 0&&(d["ticker.any_of"]=e),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getSnapshots:async(e,t,i,n,s,o,r,d,l,g,f={})=>{let p="/v3/snapshot",y=new URL(p,I),m;a&&(m=a.baseOptions);let u={method:"GET",...m,...f},b={},h={};await D(h,"apiKey",a),e!==void 0&&(h.ticker=e),t!==void 0&&(h.type=t),i!==void 0&&(h["ticker.gte"]=i),n!==void 0&&(h["ticker.gt"]=n),s!==void 0&&(h["ticker.lte"]=s),o!==void 0&&(h["ticker.lt"]=o),r!==void 0&&(h["ticker.any_of"]=r),d!==void 0&&(h.order=d),l!==void 0&&(h.limit=l),g!==void 0&&(h.sort=g),L(y,h);let x=m&&m.headers?m.headers:{};return u.headers={...b,...x,...f.headers},{url:T(y),options:u}},getStocksAggregates:async(e,t,i,n,s,o,r,d,l={})=>{K("getStocksAggregates","stocksTicker",e),K("getStocksAggregates","multiplier",t),K("getStocksAggregates","timespan",i),K("getStocksAggregates","from",n),K("getStocksAggregates","to",s);let g="/v2/aggs/ticker/{stocksTicker}/range/{multiplier}/{timespan}/{from}/{to}".replace("{stocksTicker}",encodeURIComponent(String(e))).replace("{multiplier}",encodeURIComponent(String(t))).replace("{timespan}",encodeURIComponent(String(i))).replace("{from}",encodeURIComponent(String(n))).replace("{to}",encodeURIComponent(String(s))),f=new URL(g,I),p;a&&(p=a.baseOptions);let y={method:"GET",...p,...l},m={},u={};await D(u,"apiKey",a),o!==void 0&&(u.adjusted=o),r!==void 0&&(u.sort=r),d!==void 0&&(u.limit=d),L(f,u);let b=p&&p.headers?p.headers:{};return y.headers={...m,...b,...l.headers},{url:T(f),options:y}},getStocksEMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getStocksEMA","stockTicker",e);let u="/v1/indicators/ema/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getStocksFinancialsV1BalanceSheets:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de={})=>{let re="/stocks/financials/v1/balance-sheets",te=new URL(re,I),ee;a&&(ee=a.baseOptions);let Y={method:"GET",...ee,...de},W={},O={};await D(O,"apiKey",a),e!==void 0&&(O.cik=e),t!==void 0&&(O["cik.any_of"]=t),i!==void 0&&(O["cik.gt"]=i),n!==void 0&&(O["cik.gte"]=n),s!==void 0&&(O["cik.lt"]=s),o!==void 0&&(O["cik.lte"]=o),r!==void 0&&(O.tickers=r),d!==void 0&&(O["tickers.all_of"]=d),l!==void 0&&(O["tickers.any_of"]=l),g!==void 0&&(O.period_end=g),f!==void 0&&(O["period_end.gt"]=f),p!==void 0&&(O["period_end.gte"]=p),y!==void 0&&(O["period_end.lt"]=y),m!==void 0&&(O["period_end.lte"]=m),u!==void 0&&(O.filing_date=u),b!==void 0&&(O["filing_date.gt"]=b),h!==void 0&&(O["filing_date.gte"]=h),x!==void 0&&(O["filing_date.lt"]=x),R!==void 0&&(O["filing_date.lte"]=R),c!==void 0&&(O.fiscal_year=c),_!==void 0&&(O["fiscal_year.gt"]=_),A!==void 0&&(O["fiscal_year.gte"]=A),k!==void 0&&(O["fiscal_year.lt"]=k),B!==void 0&&(O["fiscal_year.lte"]=B),G!==void 0&&(O.fiscal_quarter=G),S!==void 0&&(O["fiscal_quarter.gt"]=S),E!==void 0&&(O["fiscal_quarter.gte"]=E),X!==void 0&&(O["fiscal_quarter.lt"]=X),z!==void 0&&(O["fiscal_quarter.lte"]=z),$!==void 0&&(O.timeframe=$),H!==void 0&&(O["timeframe.any_of"]=H),j!==void 0&&(O["timeframe.gt"]=j),C!==void 0&&(O["timeframe.gte"]=C),N!==void 0&&(O["timeframe.lt"]=N),se!==void 0&&(O["timeframe.lte"]=se),oe!==void 0&&(O.limit=oe),ae!==void 0&&(O.sort=ae),L(te,O);let le=ee&&ee.headers?ee.headers:{};return Y.headers={...W,...le,...de.headers},{url:T(te),options:Y}},getStocksFinancialsV1CashFlowStatements:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de={})=>{let re="/stocks/financials/v1/cash-flow-statements",te=new URL(re,I),ee;a&&(ee=a.baseOptions);let Y={method:"GET",...ee,...de},W={},O={};await D(O,"apiKey",a),e!==void 0&&(O.cik=e),t!==void 0&&(O["cik.any_of"]=t),i!==void 0&&(O["cik.gt"]=i),n!==void 0&&(O["cik.gte"]=n),s!==void 0&&(O["cik.lt"]=s),o!==void 0&&(O["cik.lte"]=o),r!==void 0&&(O.period_end=r),d!==void 0&&(O["period_end.gt"]=d),l!==void 0&&(O["period_end.gte"]=l),g!==void 0&&(O["period_end.lt"]=g),f!==void 0&&(O["period_end.lte"]=f),p!==void 0&&(O.filing_date=p),y!==void 0&&(O["filing_date.gt"]=y),m!==void 0&&(O["filing_date.gte"]=m),u!==void 0&&(O["filing_date.lt"]=u),b!==void 0&&(O["filing_date.lte"]=b),h!==void 0&&(O.tickers=h),x!==void 0&&(O["tickers.all_of"]=x),R!==void 0&&(O["tickers.any_of"]=R),c!==void 0&&(O.fiscal_year=c),_!==void 0&&(O["fiscal_year.gt"]=_),A!==void 0&&(O["fiscal_year.gte"]=A),k!==void 0&&(O["fiscal_year.lt"]=k),B!==void 0&&(O["fiscal_year.lte"]=B),G!==void 0&&(O.fiscal_quarter=G),S!==void 0&&(O["fiscal_quarter.gt"]=S),E!==void 0&&(O["fiscal_quarter.gte"]=E),X!==void 0&&(O["fiscal_quarter.lt"]=X),z!==void 0&&(O["fiscal_quarter.lte"]=z),$!==void 0&&(O.timeframe=$),H!==void 0&&(O["timeframe.any_of"]=H),j!==void 0&&(O["timeframe.gt"]=j),C!==void 0&&(O["timeframe.gte"]=C),N!==void 0&&(O["timeframe.lt"]=N),se!==void 0&&(O["timeframe.lte"]=se),oe!==void 0&&(O.limit=oe),ae!==void 0&&(O.sort=ae),L(te,O);let le=ee&&ee.headers?ee.headers:{};return Y.headers={...W,...le,...de.headers},{url:T(te),options:Y}},getStocksFinancialsV1IncomeStatements:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de={})=>{let re="/stocks/financials/v1/income-statements",te=new URL(re,I),ee;a&&(ee=a.baseOptions);let Y={method:"GET",...ee,...de},W={},O={};await D(O,"apiKey",a),e!==void 0&&(O.cik=e),t!==void 0&&(O["cik.any_of"]=t),i!==void 0&&(O["cik.gt"]=i),n!==void 0&&(O["cik.gte"]=n),s!==void 0&&(O["cik.lt"]=s),o!==void 0&&(O["cik.lte"]=o),r!==void 0&&(O.tickers=r),d!==void 0&&(O["tickers.all_of"]=d),l!==void 0&&(O["tickers.any_of"]=l),g!==void 0&&(O.period_end=g),f!==void 0&&(O["period_end.gt"]=f),p!==void 0&&(O["period_end.gte"]=p),y!==void 0&&(O["period_end.lt"]=y),m!==void 0&&(O["period_end.lte"]=m),u!==void 0&&(O.filing_date=u),b!==void 0&&(O["filing_date.gt"]=b),h!==void 0&&(O["filing_date.gte"]=h),x!==void 0&&(O["filing_date.lt"]=x),R!==void 0&&(O["filing_date.lte"]=R),c!==void 0&&(O.fiscal_year=c),_!==void 0&&(O["fiscal_year.gt"]=_),A!==void 0&&(O["fiscal_year.gte"]=A),k!==void 0&&(O["fiscal_year.lt"]=k),B!==void 0&&(O["fiscal_year.lte"]=B),G!==void 0&&(O.fiscal_quarter=G),S!==void 0&&(O["fiscal_quarter.gt"]=S),E!==void 0&&(O["fiscal_quarter.gte"]=E),X!==void 0&&(O["fiscal_quarter.lt"]=X),z!==void 0&&(O["fiscal_quarter.lte"]=z),$!==void 0&&(O.timeframe=$),H!==void 0&&(O["timeframe.any_of"]=H),j!==void 0&&(O["timeframe.gt"]=j),C!==void 0&&(O["timeframe.gte"]=C),N!==void 0&&(O["timeframe.lt"]=N),se!==void 0&&(O["timeframe.lte"]=se),oe!==void 0&&(O.limit=oe),ae!==void 0&&(O.sort=ae),L(te,O);let le=ee&&ee.headers?ee.headers:{};return Y.headers={...W,...le,...de.headers},{url:T(te),options:Y}},getStocksFinancialsV1Ratios:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me,he,xe,Re,ne,Ae,ie,Ge,Oe,Ce,Se,Ve,we,ve,Le,Ie,_e,De,Te,P,Ue,Be,Ee,Qe,ze,Me,He,je,Ne,Ke,$e,Ye,Xe,We,Je,Ze,qe,Pe,en,nn,tn,sn,on,rn,an,dn,ln,gn,cn,pn,un,fn,yn,bn,mn,hn,Rn,xn,An={})=>{let Vn="/stocks/financials/v1/ratios",_n=new URL(Vn,I),Fe;a&&(Fe=a.baseOptions);let kn={method:"GET",...Fe,...An},wn={},M={};await D(M,"apiKey",a),e!==void 0&&(M.ticker=e),t!==void 0&&(M["ticker.any_of"]=t),i!==void 0&&(M["ticker.gt"]=i),n!==void 0&&(M["ticker.gte"]=n),s!==void 0&&(M["ticker.lt"]=s),o!==void 0&&(M["ticker.lte"]=o),r!==void 0&&(M.cik=r),d!==void 0&&(M["cik.any_of"]=d),l!==void 0&&(M["cik.gt"]=l),g!==void 0&&(M["cik.gte"]=g),f!==void 0&&(M["cik.lt"]=f),p!==void 0&&(M["cik.lte"]=p),y!==void 0&&(M.price=y),m!==void 0&&(M["price.gt"]=m),u!==void 0&&(M["price.gte"]=u),b!==void 0&&(M["price.lt"]=b),h!==void 0&&(M["price.lte"]=h),x!==void 0&&(M.average_volume=x),R!==void 0&&(M["average_volume.gt"]=R),c!==void 0&&(M["average_volume.gte"]=c),_!==void 0&&(M["average_volume.lt"]=_),A!==void 0&&(M["average_volume.lte"]=A),k!==void 0&&(M.market_cap=k),B!==void 0&&(M["market_cap.gt"]=B),G!==void 0&&(M["market_cap.gte"]=G),S!==void 0&&(M["market_cap.lt"]=S),E!==void 0&&(M["market_cap.lte"]=E),X!==void 0&&(M.earnings_per_share=X),z!==void 0&&(M["earnings_per_share.gt"]=z),$!==void 0&&(M["earnings_per_share.gte"]=$),H!==void 0&&(M["earnings_per_share.lt"]=H),j!==void 0&&(M["earnings_per_share.lte"]=j),C!==void 0&&(M.price_to_earnings=C),N!==void 0&&(M["price_to_earnings.gt"]=N),se!==void 0&&(M["price_to_earnings.gte"]=se),oe!==void 0&&(M["price_to_earnings.lt"]=oe),ae!==void 0&&(M["price_to_earnings.lte"]=ae),de!==void 0&&(M.price_to_book=de),re!==void 0&&(M["price_to_book.gt"]=re),te!==void 0&&(M["price_to_book.gte"]=te),ee!==void 0&&(M["price_to_book.lt"]=ee),Y!==void 0&&(M["price_to_book.lte"]=Y),W!==void 0&&(M.price_to_sales=W),O!==void 0&&(M["price_to_sales.gt"]=O),le!==void 0&&(M["price_to_sales.gte"]=le),pe!==void 0&&(M["price_to_sales.lt"]=pe),ge!==void 0&&(M["price_to_sales.lte"]=ge),ce!==void 0&&(M.price_to_cash_flow=ce),ue!==void 0&&(M["price_to_cash_flow.gt"]=ue),J!==void 0&&(M["price_to_cash_flow.gte"]=J),Z!==void 0&&(M["price_to_cash_flow.lt"]=Z),ye!==void 0&&(M["price_to_cash_flow.lte"]=ye),fe!==void 0&&(M.price_to_free_cash_flow=fe),be!==void 0&&(M["price_to_free_cash_flow.gt"]=be),q!==void 0&&(M["price_to_free_cash_flow.gte"]=q),w!==void 0&&(M["price_to_free_cash_flow.lt"]=w),me!==void 0&&(M["price_to_free_cash_flow.lte"]=me),he!==void 0&&(M.dividend_yield=he),xe!==void 0&&(M["dividend_yield.gt"]=xe),Re!==void 0&&(M["dividend_yield.gte"]=Re),ne!==void 0&&(M["dividend_yield.lt"]=ne),Ae!==void 0&&(M["dividend_yield.lte"]=Ae),ie!==void 0&&(M.return_on_assets=ie),Ge!==void 0&&(M["return_on_assets.gt"]=Ge),Oe!==void 0&&(M["return_on_assets.gte"]=Oe),Ce!==void 0&&(M["return_on_assets.lt"]=Ce),Se!==void 0&&(M["return_on_assets.lte"]=Se),Ve!==void 0&&(M.return_on_equity=Ve),we!==void 0&&(M["return_on_equity.gt"]=we),ve!==void 0&&(M["return_on_equity.gte"]=ve),Le!==void 0&&(M["return_on_equity.lt"]=Le),Ie!==void 0&&(M["return_on_equity.lte"]=Ie),_e!==void 0&&(M.debt_to_equity=_e),De!==void 0&&(M["debt_to_equity.gt"]=De),Te!==void 0&&(M["debt_to_equity.gte"]=Te),P!==void 0&&(M["debt_to_equity.lt"]=P),Ue!==void 0&&(M["debt_to_equity.lte"]=Ue),Be!==void 0&&(M.current=Be),Ee!==void 0&&(M["current.gt"]=Ee),Qe!==void 0&&(M["current.gte"]=Qe),ze!==void 0&&(M["current.lt"]=ze),Me!==void 0&&(M["current.lte"]=Me),He!==void 0&&(M.quick=He),je!==void 0&&(M["quick.gt"]=je),Ne!==void 0&&(M["quick.gte"]=Ne),Ke!==void 0&&(M["quick.lt"]=Ke),$e!==void 0&&(M["quick.lte"]=$e),Ye!==void 0&&(M.cash=Ye),Xe!==void 0&&(M["cash.gt"]=Xe),We!==void 0&&(M["cash.gte"]=We),Je!==void 0&&(M["cash.lt"]=Je),Ze!==void 0&&(M["cash.lte"]=Ze),qe!==void 0&&(M.ev_to_sales=qe),Pe!==void 0&&(M["ev_to_sales.gt"]=Pe),en!==void 0&&(M["ev_to_sales.gte"]=en),nn!==void 0&&(M["ev_to_sales.lt"]=nn),tn!==void 0&&(M["ev_to_sales.lte"]=tn),sn!==void 0&&(M.ev_to_ebitda=sn),on!==void 0&&(M["ev_to_ebitda.gt"]=on),rn!==void 0&&(M["ev_to_ebitda.gte"]=rn),an!==void 0&&(M["ev_to_ebitda.lt"]=an),dn!==void 0&&(M["ev_to_ebitda.lte"]=dn),ln!==void 0&&(M.enterprise_value=ln),gn!==void 0&&(M["enterprise_value.gt"]=gn),cn!==void 0&&(M["enterprise_value.gte"]=cn),pn!==void 0&&(M["enterprise_value.lt"]=pn),un!==void 0&&(M["enterprise_value.lte"]=un),fn!==void 0&&(M.free_cash_flow=fn),yn!==void 0&&(M["free_cash_flow.gt"]=yn),bn!==void 0&&(M["free_cash_flow.gte"]=bn),mn!==void 0&&(M["free_cash_flow.lt"]=mn),hn!==void 0&&(M["free_cash_flow.lte"]=hn),Rn!==void 0&&(M.limit=Rn),xn!==void 0&&(M.sort=xn),L(_n,M);let En=Fe&&Fe.headers?Fe.headers:{};return kn.headers={...wn,...En,...An.headers},{url:T(_n),options:kn}},getStocksMACD:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b={})=>{K("getStocksMACD","stockTicker",e);let h="/v1/indicators/macd/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(e))),x=new URL(h,I),R;a&&(R=a.baseOptions);let c={method:"GET",...R,...b},_={},A={};await D(A,"apiKey",a),t!==void 0&&(A.timestamp=t),i!==void 0&&(A.timespan=i),n!==void 0&&(A.adjusted=n),s!==void 0&&(A.short_window=s),o!==void 0&&(A.long_window=o),r!==void 0&&(A.signal_window=r),d!==void 0&&(A.series_type=d),l!==void 0&&(A.expand_underlying=l),g!==void 0&&(A.order=g),f!==void 0&&(A.limit=f),p!==void 0&&(A["timestamp.gte"]=p),y!==void 0&&(A["timestamp.gt"]=y),m!==void 0&&(A["timestamp.lte"]=m),u!==void 0&&(A["timestamp.lt"]=u),L(x,A);let k=R&&R.headers?R.headers:{};return c.headers={..._,...k,...b.headers},{url:T(x),options:c}},getStocksOpenClose:async(e,t,i,n={})=>{K("getStocksOpenClose","stocksTicker",e),K("getStocksOpenClose","date",t);let s="/v1/open-close/{stocksTicker}/{date}".replace("{stocksTicker}",encodeURIComponent(String(e))).replace("{date}",encodeURIComponent(String(t))),o=new URL(s,I),r;a&&(r=a.baseOptions);let d={method:"GET",...r,...n},l={},g={};await D(g,"apiKey",a),i!==void 0&&(g.adjusted=i),L(o,g);let f=r&&r.headers?r.headers:{};return d.headers={...l,...f,...n.headers},{url:T(o),options:d}},getStocksQuotes:async(e,t,i,n,s,o,r,d,l,g={})=>{K("getStocksQuotes","stockTicker",e);let f="/v3/quotes/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(e))),p=new URL(f,I),y;a&&(y=a.baseOptions);let m={method:"GET",...y,...g},u={},b={};await D(b,"apiKey",a),t!==void 0&&(b.timestamp=t),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),s!==void 0&&(b["timestamp.lte"]=s),o!==void 0&&(b["timestamp.lt"]=o),r!==void 0&&(b.order=r),d!==void 0&&(b.limit=d),l!==void 0&&(b.sort=l),L(p,b);let h=y&&y.headers?y.headers:{};return m.headers={...u,...h,...g.headers},{url:T(p),options:m}},getStocksRSI:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getStocksRSI","stockTicker",e);let u="/v1/indicators/rsi/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getStocksSMA:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{K("getStocksSMA","stockTicker",e);let u="/v1/indicators/sma/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(e))),b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};await D(c,"apiKey",a),t!==void 0&&(c.timestamp=t),i!==void 0&&(c.timespan=i),n!==void 0&&(c.adjusted=n),s!==void 0&&(c.window=s),o!==void 0&&(c.series_type=o),r!==void 0&&(c.expand_underlying=r),d!==void 0&&(c.order=d),l!==void 0&&(c.limit=l),g!==void 0&&(c["timestamp.gte"]=g),f!==void 0&&(c["timestamp.gt"]=f),p!==void 0&&(c["timestamp.lte"]=p),y!==void 0&&(c["timestamp.lt"]=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},getStocksSnapshotDirection:async(e,t,i={})=>{K("getStocksSnapshotDirection","direction",e);let n="/v2/snapshot/locale/us/markets/stocks/{direction}".replace("{direction}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.include_otc=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getStocksSnapshotTicker:async(e,t={})=>{K("getStocksSnapshotTicker","stocksTicker",e);let i="/v2/snapshot/locale/us/markets/stocks/tickers/{stocksTicker}".replace("{stocksTicker}",encodeURIComponent(String(e))),n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getStocksSnapshotTickers:async(e,t,i={})=>{let n="/v2/snapshot/locale/us/markets/stocks/tickers",s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),e&&(l.tickers=e),t!==void 0&&(l.include_otc=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getStocksTrades:async(e,t,i,n,s,o,r,d,l,g={})=>{K("getStocksTrades","stockTicker",e);let f="/v3/trades/{stockTicker}".replace("{stockTicker}",encodeURIComponent(String(e))),p=new URL(f,I),y;a&&(y=a.baseOptions);let m={method:"GET",...y,...g},u={},b={};await D(b,"apiKey",a),t!==void 0&&(b.timestamp=t),i!==void 0&&(b["timestamp.gte"]=i),n!==void 0&&(b["timestamp.gt"]=n),s!==void 0&&(b["timestamp.lte"]=s),o!==void 0&&(b["timestamp.lt"]=o),r!==void 0&&(b.order=r),d!==void 0&&(b.limit=d),l!==void 0&&(b.sort=l),L(p,b);let h=y&&y.headers?y.headers:{};return m.headers={...u,...h,...g.headers},{url:T(p),options:m}},getStocksV1Dividends:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G={})=>{let S="/stocks/v1/dividends",E=new URL(S,I),X;a&&(X=a.baseOptions);let z={method:"GET",...X,...G},$={},H={};await D(H,"apiKey",a),e!==void 0&&(H.ticker=e),t!==void 0&&(H["ticker.any_of"]=t),i!==void 0&&(H["ticker.gt"]=i),n!==void 0&&(H["ticker.gte"]=n),s!==void 0&&(H["ticker.lt"]=s),o!==void 0&&(H["ticker.lte"]=o),r!==void 0&&(H.ex_dividend_date=r),d!==void 0&&(H["ex_dividend_date.gt"]=d),l!==void 0&&(H["ex_dividend_date.gte"]=l),g!==void 0&&(H["ex_dividend_date.lt"]=g),f!==void 0&&(H["ex_dividend_date.lte"]=f),p!==void 0&&(H.frequency=p),y!==void 0&&(H["frequency.gt"]=y),m!==void 0&&(H["frequency.gte"]=m),u!==void 0&&(H["frequency.lt"]=u),b!==void 0&&(H["frequency.lte"]=b),h!==void 0&&(H.distribution_type=h),x!==void 0&&(H["distribution_type.any_of"]=x),R!==void 0&&(H["distribution_type.gt"]=R),c!==void 0&&(H["distribution_type.gte"]=c),_!==void 0&&(H["distribution_type.lt"]=_),A!==void 0&&(H["distribution_type.lte"]=A),k!==void 0&&(H.limit=k),B!==void 0&&(H.sort=B),L(E,H);let j=X&&X.headers?X.headers:{};return z.headers={...$,...j,...G.headers},{url:T(E),options:z}},getStocksV1Exchanges:async(e,t={})=>{let i="/stocks/v1/exchanges",n=new URL(i,I),s;a&&(s=a.baseOptions);let o={method:"GET",...s,...t},r={},d={};await D(d,"apiKey",a),e!==void 0&&(d.limit=e),L(n,d);let l=s&&s.headers?s.headers:{};return o.headers={...r,...l,...t.headers},{url:T(n),options:o}},getStocksV1ShortInterest:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E={})=>{let X="/stocks/v1/short-interest",z=new URL(X,I),$;a&&($=a.baseOptions);let H={method:"GET",...$,...E},j={},C={};await D(C,"apiKey",a),e!==void 0&&(C.ticker=e),t!==void 0&&(C["ticker.any_of"]=t),i!==void 0&&(C["ticker.gt"]=i),n!==void 0&&(C["ticker.gte"]=n),s!==void 0&&(C["ticker.lt"]=s),o!==void 0&&(C["ticker.lte"]=o),r!==void 0&&(C.days_to_cover=r),d!==void 0&&(C["days_to_cover.any_of"]=d),l!==void 0&&(C["days_to_cover.gt"]=l),g!==void 0&&(C["days_to_cover.gte"]=g),f!==void 0&&(C["days_to_cover.lt"]=f),p!==void 0&&(C["days_to_cover.lte"]=p),y!==void 0&&(C.settlement_date=y),m!==void 0&&(C["settlement_date.any_of"]=m),u!==void 0&&(C["settlement_date.gt"]=u),b!==void 0&&(C["settlement_date.gte"]=b),h!==void 0&&(C["settlement_date.lt"]=h),x!==void 0&&(C["settlement_date.lte"]=x),R!==void 0&&(C.avg_daily_volume=R),c!==void 0&&(C["avg_daily_volume.any_of"]=c),_!==void 0&&(C["avg_daily_volume.gt"]=_),A!==void 0&&(C["avg_daily_volume.gte"]=A),k!==void 0&&(C["avg_daily_volume.lt"]=k),B!==void 0&&(C["avg_daily_volume.lte"]=B),G!==void 0&&(C.limit=G),S!==void 0&&(C.sort=S),L(z,C);let N=$&&$.headers?$.headers:{};return H.headers={...j,...N,...E.headers},{url:T(z),options:H}},getStocksV1ShortVolume:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E={})=>{let X="/stocks/v1/short-volume",z=new URL(X,I),$;a&&($=a.baseOptions);let H={method:"GET",...$,...E},j={},C={};await D(C,"apiKey",a),e!==void 0&&(C.ticker=e),t!==void 0&&(C["ticker.any_of"]=t),i!==void 0&&(C["ticker.gt"]=i),n!==void 0&&(C["ticker.gte"]=n),s!==void 0&&(C["ticker.lt"]=s),o!==void 0&&(C["ticker.lte"]=o),r!==void 0&&(C.date=r),d!==void 0&&(C["date.any_of"]=d),l!==void 0&&(C["date.gt"]=l),g!==void 0&&(C["date.gte"]=g),f!==void 0&&(C["date.lt"]=f),p!==void 0&&(C["date.lte"]=p),y!==void 0&&(C.short_volume_ratio=y),m!==void 0&&(C["short_volume_ratio.any_of"]=m),u!==void 0&&(C["short_volume_ratio.gt"]=u),b!==void 0&&(C["short_volume_ratio.gte"]=b),h!==void 0&&(C["short_volume_ratio.lt"]=h),x!==void 0&&(C["short_volume_ratio.lte"]=x),R!==void 0&&(C.total_volume=R),c!==void 0&&(C["total_volume.any_of"]=c),_!==void 0&&(C["total_volume.gt"]=_),A!==void 0&&(C["total_volume.gte"]=A),k!==void 0&&(C["total_volume.lt"]=k),B!==void 0&&(C["total_volume.lte"]=B),G!==void 0&&(C.limit=G),S!==void 0&&(C.sort=S),L(z,C);let N=$&&$.headers?$.headers:{};return H.headers={...j,...N,...E.headers},{url:T(z),options:H}},getStocksV1Splits:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c={})=>{let _="/stocks/v1/splits",A=new URL(_,I),k;a&&(k=a.baseOptions);let B={method:"GET",...k,...c},G={},S={};await D(S,"apiKey",a),e!==void 0&&(S.ticker=e),t!==void 0&&(S["ticker.any_of"]=t),i!==void 0&&(S["ticker.gt"]=i),n!==void 0&&(S["ticker.gte"]=n),s!==void 0&&(S["ticker.lt"]=s),o!==void 0&&(S["ticker.lte"]=o),r!==void 0&&(S.execution_date=r),d!==void 0&&(S["execution_date.gt"]=d),l!==void 0&&(S["execution_date.gte"]=l),g!==void 0&&(S["execution_date.lt"]=g),f!==void 0&&(S["execution_date.lte"]=f),p!==void 0&&(S.adjustment_type=p),y!==void 0&&(S["adjustment_type.any_of"]=y),m!==void 0&&(S["adjustment_type.gt"]=m),u!==void 0&&(S["adjustment_type.gte"]=u),b!==void 0&&(S["adjustment_type.lt"]=b),h!==void 0&&(S["adjustment_type.lte"]=h),x!==void 0&&(S.limit=x),R!==void 0&&(S.sort=R),L(A,S);let E=k&&k.headers?k.headers:{};return B.headers={...G,...E,...c.headers},{url:T(A),options:B}},getTicker:async(e,t,i={})=>{K("getTicker","ticker",e);let n="/v3/reference/tickers/{ticker}".replace("{ticker}",encodeURIComponent(String(e))),s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),t!==void 0&&(l.date=t instanceof Date?t.toISOString().substring(0,10):t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},getTmxV1CorporateEvents:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J={})=>{let Z="/tmx/v1/corporate-events",ye=new URL(Z,I),fe;a&&(fe=a.baseOptions);let be={method:"GET",...fe,...J},q={},w={};await D(w,"apiKey",a),e!==void 0&&(w.date=e),t!==void 0&&(w["date.any_of"]=t),i!==void 0&&(w["date.gt"]=i),n!==void 0&&(w["date.gte"]=n),s!==void 0&&(w["date.lt"]=s),o!==void 0&&(w["date.lte"]=o),r!==void 0&&(w.type=r),d!==void 0&&(w["type.any_of"]=d),l!==void 0&&(w["type.gt"]=l),g!==void 0&&(w["type.gte"]=g),f!==void 0&&(w["type.lt"]=f),p!==void 0&&(w["type.lte"]=p),y!==void 0&&(w.status=y),m!==void 0&&(w["status.any_of"]=m),u!==void 0&&(w["status.gt"]=u),b!==void 0&&(w["status.gte"]=b),h!==void 0&&(w["status.lt"]=h),x!==void 0&&(w["status.lte"]=x),R!==void 0&&(w.ticker=R),c!==void 0&&(w["ticker.any_of"]=c),_!==void 0&&(w["ticker.gt"]=_),A!==void 0&&(w["ticker.gte"]=A),k!==void 0&&(w["ticker.lt"]=k),B!==void 0&&(w["ticker.lte"]=B),G!==void 0&&(w.isin=G),S!==void 0&&(w["isin.any_of"]=S),E!==void 0&&(w["isin.gt"]=E),X!==void 0&&(w["isin.gte"]=X),z!==void 0&&(w["isin.lt"]=z),$!==void 0&&(w["isin.lte"]=$),H!==void 0&&(w.trading_venue=H),j!==void 0&&(w["trading_venue.any_of"]=j),C!==void 0&&(w["trading_venue.gt"]=C),N!==void 0&&(w["trading_venue.gte"]=N),se!==void 0&&(w["trading_venue.lt"]=se),oe!==void 0&&(w["trading_venue.lte"]=oe),ae!==void 0&&(w.tmx_company_id=ae),de!==void 0&&(w["tmx_company_id.gt"]=de),re!==void 0&&(w["tmx_company_id.gte"]=re),te!==void 0&&(w["tmx_company_id.lt"]=te),ee!==void 0&&(w["tmx_company_id.lte"]=ee),Y!==void 0&&(w.tmx_record_id=Y),W!==void 0&&(w["tmx_record_id.any_of"]=W),O!==void 0&&(w["tmx_record_id.gt"]=O),le!==void 0&&(w["tmx_record_id.gte"]=le),pe!==void 0&&(w["tmx_record_id.lt"]=pe),ge!==void 0&&(w["tmx_record_id.lte"]=ge),ce!==void 0&&(w.limit=ce),ue!==void 0&&(w.sort=ue),L(ye,w);let me=fe&&fe.headers?fe.headers:{};return be.headers={...q,...me,...J.headers},{url:T(ye),options:be}},listConditions:async(e,t,i,n,s,o,r,d={})=>{let l="/v3/reference/conditions",g=new URL(l,I),f;a&&(f=a.baseOptions);let p={method:"GET",...f,...d},y={},m={};await D(m,"apiKey",a),e!==void 0&&(m.asset_class=e),t!==void 0&&(m.data_type=t),i!==void 0&&(m.id=i),n!==void 0&&(m.sip=n),s!==void 0&&(m.order=s),o!==void 0&&(m.limit=o),r!==void 0&&(m.sort=r),L(g,m);let u=f&&f.headers?f.headers:{};return p.headers={...y,...u,...d.headers},{url:T(g),options:p}},listDividends:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe={})=>{let ae="/v3/reference/dividends",de=new URL(ae,I),re;a&&(re=a.baseOptions);let te={method:"GET",...re,...oe},ee={},Y={};await D(Y,"apiKey",a),e!==void 0&&(Y.ticker=e),t!==void 0&&(Y.ex_dividend_date=t instanceof Date?t.toISOString().substring(0,10):t),i!==void 0&&(Y.record_date=i instanceof Date?i.toISOString().substring(0,10):i),n!==void 0&&(Y.declaration_date=n instanceof Date?n.toISOString().substring(0,10):n),s!==void 0&&(Y.pay_date=s instanceof Date?s.toISOString().substring(0,10):s),o!==void 0&&(Y.frequency=o),r!==void 0&&(Y.cash_amount=r),d!==void 0&&(Y.dividend_type=d),l!==void 0&&(Y["ticker.gte"]=l),g!==void 0&&(Y["ticker.gt"]=g),f!==void 0&&(Y["ticker.lte"]=f),p!==void 0&&(Y["ticker.lt"]=p),y!==void 0&&(Y["ex_dividend_date.gte"]=y instanceof Date?y.toISOString().substring(0,10):y),m!==void 0&&(Y["ex_dividend_date.gt"]=m instanceof Date?m.toISOString().substring(0,10):m),u!==void 0&&(Y["ex_dividend_date.lte"]=u instanceof Date?u.toISOString().substring(0,10):u),b!==void 0&&(Y["ex_dividend_date.lt"]=b instanceof Date?b.toISOString().substring(0,10):b),h!==void 0&&(Y["record_date.gte"]=h instanceof Date?h.toISOString().substring(0,10):h),x!==void 0&&(Y["record_date.gt"]=x instanceof Date?x.toISOString().substring(0,10):x),R!==void 0&&(Y["record_date.lte"]=R instanceof Date?R.toISOString().substring(0,10):R),c!==void 0&&(Y["record_date.lt"]=c instanceof Date?c.toISOString().substring(0,10):c),_!==void 0&&(Y["declaration_date.gte"]=_ instanceof Date?_.toISOString().substring(0,10):_),A!==void 0&&(Y["declaration_date.gt"]=A instanceof Date?A.toISOString().substring(0,10):A),k!==void 0&&(Y["declaration_date.lte"]=k instanceof Date?k.toISOString().substring(0,10):k),B!==void 0&&(Y["declaration_date.lt"]=B instanceof Date?B.toISOString().substring(0,10):B),G!==void 0&&(Y["pay_date.gte"]=G instanceof Date?G.toISOString().substring(0,10):G),S!==void 0&&(Y["pay_date.gt"]=S instanceof Date?S.toISOString().substring(0,10):S),E!==void 0&&(Y["pay_date.lte"]=E instanceof Date?E.toISOString().substring(0,10):E),X!==void 0&&(Y["pay_date.lt"]=X instanceof Date?X.toISOString().substring(0,10):X),z!==void 0&&(Y["cash_amount.gte"]=z),$!==void 0&&(Y["cash_amount.gt"]=$),H!==void 0&&(Y["cash_amount.lte"]=H),j!==void 0&&(Y["cash_amount.lt"]=j),C!==void 0&&(Y.order=C),N!==void 0&&(Y.limit=N),se!==void 0&&(Y.sort=se),L(de,Y);let W=re&&re.headers?re.headers:{};return te.headers={...ee,...W,...oe.headers},{url:T(de),options:te}},listExchanges:async(e,t,i={})=>{let n="/v3/reference/exchanges",s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),e!==void 0&&(l.asset_class=e),t!==void 0&&(l.locale=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},listFinancials:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_={})=>{let A="/vX/reference/financials",k=new URL(A,I),B;a&&(B=a.baseOptions);let G={method:"GET",...B,..._},S={},E={};await D(E,"apiKey",a),e!==void 0&&(E.ticker=e),t!==void 0&&(E.cik=t),i!==void 0&&(E.company_name=i),n!==void 0&&(E.sic=n),s!==void 0&&(E.filing_date=s instanceof Date?s.toISOString().substring(0,10):s),o!==void 0&&(E.period_of_report_date=o instanceof Date?o.toISOString().substring(0,10):o),r!==void 0&&(E.timeframe=r),d!==void 0&&(E.include_sources=d),l!==void 0&&(E["company_name.search"]=l),g!==void 0&&(E["filing_date.gte"]=g instanceof Date?g.toISOString().substring(0,10):g),f!==void 0&&(E["filing_date.gt"]=f instanceof Date?f.toISOString().substring(0,10):f),p!==void 0&&(E["filing_date.lte"]=p instanceof Date?p.toISOString().substring(0,10):p),y!==void 0&&(E["filing_date.lt"]=y instanceof Date?y.toISOString().substring(0,10):y),m!==void 0&&(E["period_of_report_date.gte"]=m instanceof Date?m.toISOString().substring(0,10):m),u!==void 0&&(E["period_of_report_date.gt"]=u instanceof Date?u.toISOString().substring(0,10):u),b!==void 0&&(E["period_of_report_date.lte"]=b instanceof Date?b.toISOString().substring(0,10):b),h!==void 0&&(E["period_of_report_date.lt"]=h instanceof Date?h.toISOString().substring(0,10):h),x!==void 0&&(E.order=x),R!==void 0&&(E.limit=R),c!==void 0&&(E.sort=c),L(k,E);let X=B&&B.headers?B.headers:{};return G.headers={...S,...X,..._.headers},{url:T(k),options:G}},listIPOs:async(e,t,i,n,s,o,r,d,l,g,f,p,y={})=>{let m="/vX/reference/ipos",u=new URL(m,I),b;a&&(b=a.baseOptions);let h={method:"GET",...b,...y},x={},R={};await D(R,"apiKey",a),e!==void 0&&(R.ticker=e),t!==void 0&&(R.us_code=t),i!==void 0&&(R.isin=i),n!==void 0&&(R.listing_date=n instanceof Date?n.toISOString().substring(0,10):n),s!==void 0&&(R.ipo_status=s),o!==void 0&&(R["listing_date.gte"]=o instanceof Date?o.toISOString().substring(0,10):o),r!==void 0&&(R["listing_date.gt"]=r instanceof Date?r.toISOString().substring(0,10):r),d!==void 0&&(R["listing_date.lte"]=d instanceof Date?d.toISOString().substring(0,10):d),l!==void 0&&(R["listing_date.lt"]=l instanceof Date?l.toISOString().substring(0,10):l),g!==void 0&&(R.order=g),f!==void 0&&(R.limit=f),p!==void 0&&(R.sort=p),L(u,R);let c=b&&b.headers?b.headers:{};return h.headers={...x,...c,...y.headers},{url:T(u),options:h}},listNews:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m={})=>{let u="/v2/reference/news",b=new URL(u,I),h;a&&(h=a.baseOptions);let x={method:"GET",...h,...m},R={},c={};if(await D(c,"apiKey",a),e!==void 0&&(c.ticker=e),t!==void 0)for(let[A,k]of Object.entries(t))c[A]=k;if(i!==void 0&&(c["ticker.gte"]=i),n!==void 0&&(c["ticker.gt"]=n),s!==void 0&&(c["ticker.lte"]=s),o!==void 0&&(c["ticker.lt"]=o),r!==void 0)for(let[A,k]of Object.entries(r))c[A]=k;if(d!==void 0)for(let[A,k]of Object.entries(d))c[A]=k;if(l!==void 0)for(let[A,k]of Object.entries(l))c[A]=k;if(g!==void 0)for(let[A,k]of Object.entries(g))c[A]=k;f!==void 0&&(c.order=f),p!==void 0&&(c.limit=p),y!==void 0&&(c.sort=y),L(b,c);let _=h&&h.headers?h.headers:{};return x.headers={...R,..._,...m.headers},{url:T(b),options:x}},listOptionsContracts:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k={})=>{let B="/v3/reference/options/contracts",G=new URL(B,I),S;a&&(S=a.baseOptions);let E={method:"GET",...S,...k},X={},z={};await D(z,"apiKey",a),e!==void 0&&(z.underlying_ticker=e),t!==void 0&&(z.ticker=t),i!==void 0&&(z.contract_type=i),n!==void 0&&(z.expiration_date=n),s!==void 0&&(z.as_of=s),o!==void 0&&(z.strike_price=o),r!==void 0&&(z.expired=r),d!==void 0&&(z["underlying_ticker.gte"]=d),l!==void 0&&(z["underlying_ticker.gt"]=l),g!==void 0&&(z["underlying_ticker.lte"]=g),f!==void 0&&(z["underlying_ticker.lt"]=f),p!==void 0&&(z["expiration_date.gte"]=p),y!==void 0&&(z["expiration_date.gt"]=y),m!==void 0&&(z["expiration_date.lte"]=m),u!==void 0&&(z["expiration_date.lt"]=u),b!==void 0&&(z["strike_price.gte"]=b),h!==void 0&&(z["strike_price.gt"]=h),x!==void 0&&(z["strike_price.lte"]=x),R!==void 0&&(z["strike_price.lt"]=R),c!==void 0&&(z.order=c),_!==void 0&&(z.limit=_),A!==void 0&&(z.sort=A),L(G,z);let $=S&&S.headers?S.headers:{};return E.headers={...X,...$,...k.headers},{url:T(G),options:E}},listStockSplits:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u={})=>{let b="/v3/reference/splits",h=new URL(b,I),x;a&&(x=a.baseOptions);let R={method:"GET",...x,...u},c={},_={};await D(_,"apiKey",a),e!==void 0&&(_.ticker=e),t!==void 0&&(_.execution_date=t instanceof Date?t.toISOString().substring(0,10):t),i!==void 0&&(_.reverse_split=i),n!==void 0&&(_["ticker.gte"]=n),s!==void 0&&(_["ticker.gt"]=s),o!==void 0&&(_["ticker.lte"]=o),r!==void 0&&(_["ticker.lt"]=r),d!==void 0&&(_["execution_date.gte"]=d instanceof Date?d.toISOString().substring(0,10):d),l!==void 0&&(_["execution_date.gt"]=l instanceof Date?l.toISOString().substring(0,10):l),g!==void 0&&(_["execution_date.lte"]=g instanceof Date?g.toISOString().substring(0,10):g),f!==void 0&&(_["execution_date.lt"]=f instanceof Date?f.toISOString().substring(0,10):f),p!==void 0&&(_.order=p),y!==void 0&&(_.limit=y),m!==void 0&&(_.sort=m),L(h,_);let A=x&&x.headers?x.headers:{};return R.headers={...c,...A,...u.headers},{url:T(h),options:R}},listTickerTypes:async(e,t,i={})=>{let n="/v3/reference/tickers/types",s=new URL(n,I),o;a&&(o=a.baseOptions);let r={method:"GET",...o,...i},d={},l={};await D(l,"apiKey",a),e!==void 0&&(l.asset_class=e),t!==void 0&&(l.locale=t),L(s,l);let g=o&&o.headers?o.headers:{};return r.headers={...d,...g,...i.headers},{url:T(s),options:r}},listTickers:async(e,t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h={})=>{let x="/v3/reference/tickers",R=new URL(x,I),c;a&&(c=a.baseOptions);let _={method:"GET",...c,...h},A={},k={};await D(k,"apiKey",a),e!==void 0&&(k.ticker=e),t!==void 0&&(k.type=t),i!==void 0&&(k.market=i),n!==void 0&&(k.exchange=n),s!==void 0&&(k.cusip=s),o!==void 0&&(k.cik=o),r!==void 0&&(k.date=r instanceof Date?r.toISOString().substring(0,10):r),d!==void 0&&(k.search=d),l!==void 0&&(k.active=l),g!==void 0&&(k["ticker.gte"]=g),f!==void 0&&(k["ticker.gt"]=f),p!==void 0&&(k["ticker.lte"]=p),y!==void 0&&(k["ticker.lt"]=y),m!==void 0&&(k.order=m),u!==void 0&&(k.limit=u),b!==void 0&&(k.sort=b),L(R,k);let B=c&&c.headers?c.headers:{};return _.headers={...A,...B,...h.headers},{url:T(R),options:_}}}},U=function(a){let e=ii(a);return{async deprecatedGetCryptoSnapshotTickerBook(t,i){let n=await e.deprecatedGetCryptoSnapshotTickerBook(t,i),s=a?.serverIndex??0,o=v["DefaultApi.deprecatedGetCryptoSnapshotTickerBook"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async deprecatedGetHistoricCryptoTrades(t,i,n,s,o,r){let d=await e.deprecatedGetHistoricCryptoTrades(t,i,n,s,o,r),l=a?.serverIndex??0,g=v["DefaultApi.deprecatedGetHistoricCryptoTrades"]?.[l]?.url;return(f,p)=>F(d,Q,V,a)(f,g||p)},async deprecatedGetHistoricForexQuotes(t,i,n,s,o,r){let d=await e.deprecatedGetHistoricForexQuotes(t,i,n,s,o,r),l=a?.serverIndex??0,g=v["DefaultApi.deprecatedGetHistoricForexQuotes"]?.[l]?.url;return(f,p)=>F(d,Q,V,a)(f,g||p)},async deprecatedGetHistoricStocksQuotes(t,i,n,s,o,r,d){let l=await e.deprecatedGetHistoricStocksQuotes(t,i,n,s,o,r,d),g=a?.serverIndex??0,f=v["DefaultApi.deprecatedGetHistoricStocksQuotes"]?.[g]?.url;return(p,y)=>F(l,Q,V,a)(p,f||y)},async deprecatedGetHistoricStocksTrades(t,i,n,s,o,r,d){let l=await e.deprecatedGetHistoricStocksTrades(t,i,n,s,o,r,d),g=a?.serverIndex??0,f=v["DefaultApi.deprecatedGetHistoricStocksTrades"]?.[g]?.url;return(p,y)=>F(l,Q,V,a)(p,f||y)},async getBenzingaV1AnalystInsights(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le){let pe=await e.getBenzingaV1AnalystInsights(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le),ge=a?.serverIndex??0,ce=v["DefaultApi.getBenzingaV1AnalystInsights"]?.[ge]?.url;return(ue,J)=>F(pe,Q,V,a)(ue,ce||J)},async getBenzingaV1Analysts(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X){let z=await e.getBenzingaV1Analysts(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X),$=a?.serverIndex??0,H=v["DefaultApi.getBenzingaV1Analysts"]?.[$]?.url;return(j,C)=>F(z,Q,V,a)(j,H||C)},async getBenzingaV1ConsensusRatings(t,i,n,s,o,r,d,l,g){let f=await e.getBenzingaV1ConsensusRatings(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getBenzingaV1ConsensusRatings"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getBenzingaV1Earnings(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me,he){let xe=await e.getBenzingaV1Earnings(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me,he),Re=a?.serverIndex??0,ne=v["DefaultApi.getBenzingaV1Earnings"]?.[Re]?.url;return(Ae,ie)=>F(xe,Q,V,a)(Ae,ne||ie)},async getBenzingaV1Firms(t,i,n,s,o,r,d,l,g){let f=await e.getBenzingaV1Firms(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getBenzingaV1Firms"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getBenzingaV1Guidance(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe){let ge=await e.getBenzingaV1Guidance(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe),ce=a?.serverIndex??0,ue=v["DefaultApi.getBenzingaV1Guidance"]?.[ce]?.url;return(J,Z)=>F(ge,Q,V,a)(J,ue||Z)},async getBenzingaV1Ratings(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w){let me=await e.getBenzingaV1Ratings(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w),he=a?.serverIndex??0,xe=v["DefaultApi.getBenzingaV1Ratings"]?.[he]?.url;return(Re,ne)=>F(me,Q,V,a)(Re,xe||ne)},async getBenzingaV2News(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E){let X=await e.getBenzingaV2News(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E),z=a?.serverIndex??0,$=v["DefaultApi.getBenzingaV2News"]?.[z]?.url;return(H,j)=>F(X,Q,V,a)(H,$||j)},async getCryptoAggregates(t,i,n,s,o,r,d,l,g){let f=await e.getCryptoAggregates(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getCryptoAggregates"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getCryptoEMA(t,i,n,s,o,r,d,l,g,f,p,y,m){let u=await e.getCryptoEMA(t,i,n,s,o,r,d,l,g,f,p,y,m),b=a?.serverIndex??0,h=v["DefaultApi.getCryptoEMA"]?.[b]?.url;return(x,R)=>F(u,Q,V,a)(x,h||R)},async getCryptoMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b){let h=await e.getCryptoMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b),x=a?.serverIndex??0,R=v["DefaultApi.getCryptoMACD"]?.[x]?.url;return(c,_)=>F(h,Q,V,a)(c,R||_)},async getCryptoOpenClose(t,i,n,s,o){let r=await e.getCryptoOpenClose(t,i,n,s,o),d=a?.serverIndex??0,l=v["DefaultApi.getCryptoOpenClose"]?.[d]?.url;return(g,f)=>F(r,Q,V,a)(g,l||f)},async getCryptoRSI(t,i,n,s,o,r,d,l,g,f,p,y,m){let u=await e.getCryptoRSI(t,i,n,s,o,r,d,l,g,f,p,y,m),b=a?.serverIndex??0,h=v["DefaultApi.getCryptoRSI"]?.[b]?.url;return(x,R)=>F(u,Q,V,a)(x,h||R)},async getCryptoSMA(t,i,n,s,o,r,d,l,g,f,p,y,m){let u=await e.getCryptoSMA(t,i,n,s,o,r,d,l,g,f,p,y,m),b=a?.serverIndex??0,h=v["DefaultApi.getCryptoSMA"]?.[b]?.url;return(x,R)=>F(u,Q,V,a)(x,h||R)},async getCryptoSnapshotDirection(t,i){let n=await e.getCryptoSnapshotDirection(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getCryptoSnapshotDirection"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getCryptoSnapshotTicker(t,i){let n=await e.getCryptoSnapshotTicker(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getCryptoSnapshotTicker"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getCryptoSnapshotTickers(t,i){let n=await e.getCryptoSnapshotTickers(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getCryptoSnapshotTickers"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getCryptoTrades(t,i,n,s,o,r,d,l,g,f){let p=await e.getCryptoTrades(t,i,n,s,o,r,d,l,g,f),y=a?.serverIndex??0,m=v["DefaultApi.getCryptoTrades"]?.[y]?.url;return(u,b)=>F(p,Q,V,a)(u,m||b)},async getCryptoV1Exchanges(t,i){let n=await e.getCryptoV1Exchanges(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getCryptoV1Exchanges"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getCurrencyConversion(t,i,n,s,o){let r=await e.getCurrencyConversion(t,i,n,s,o),d=a?.serverIndex??0,l=v["DefaultApi.getCurrencyConversion"]?.[d]?.url;return(g,f)=>F(r,Q,V,a)(g,l||f)},async getEtfGlobalV1Analytics(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me,he,xe,Re,ne,Ae,ie,Ge,Oe,Ce,Se,Ve,we,ve,Le){let Ie=await e.getEtfGlobalV1Analytics(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me,he,xe,Re,ne,Ae,ie,Ge,Oe,Ce,Se,Ve,we,ve,Le),_e=a?.serverIndex??0,De=v["DefaultApi.getEtfGlobalV1Analytics"]?.[_e]?.url;return(Te,P)=>F(Ie,Q,V,a)(Te,De||P)},async getEtfGlobalV1Constituents(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J){let Z=await e.getEtfGlobalV1Constituents(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J),ye=a?.serverIndex??0,fe=v["DefaultApi.getEtfGlobalV1Constituents"]?.[ye]?.url;return(be,q)=>F(Z,Q,V,a)(be,fe||q)},async getEtfGlobalV1FundFlows(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c){let _=await e.getEtfGlobalV1FundFlows(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c),A=a?.serverIndex??0,k=v["DefaultApi.getEtfGlobalV1FundFlows"]?.[A]?.url;return(B,G)=>F(_,Q,V,a)(B,k||G)},async getEtfGlobalV1Profiles(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c){let _=await e.getEtfGlobalV1Profiles(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c),A=a?.serverIndex??0,k=v["DefaultApi.getEtfGlobalV1Profiles"]?.[A]?.url;return(B,G)=>F(_,Q,V,a)(B,k||G)},async getEtfGlobalV1Taxonomies(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c){let _=await e.getEtfGlobalV1Taxonomies(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c),A=a?.serverIndex??0,k=v["DefaultApi.getEtfGlobalV1Taxonomies"]?.[A]?.url;return(B,G)=>F(_,Q,V,a)(B,k||G)},async getEvents(t,i,n){let s=await e.getEvents(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getEvents"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getFedV1Inflation(t,i,n,s,o,r,d,l,g){let f=await e.getFedV1Inflation(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getFedV1Inflation"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getFedV1InflationExpectations(t,i,n,s,o,r,d,l,g){let f=await e.getFedV1InflationExpectations(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getFedV1InflationExpectations"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getFedV1TreasuryYields(t,i,n,s,o,r,d,l,g){let f=await e.getFedV1TreasuryYields(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getFedV1TreasuryYields"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getForexAggregates(t,i,n,s,o,r,d,l,g){let f=await e.getForexAggregates(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getForexAggregates"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getForexEMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getForexEMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getForexEMA"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getForexMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h){let x=await e.getForexMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h),R=a?.serverIndex??0,c=v["DefaultApi.getForexMACD"]?.[R]?.url;return(_,A)=>F(x,Q,V,a)(_,c||A)},async getForexQuotes(t,i,n,s,o,r,d,l,g,f){let p=await e.getForexQuotes(t,i,n,s,o,r,d,l,g,f),y=a?.serverIndex??0,m=v["DefaultApi.getForexQuotes"]?.[y]?.url;return(u,b)=>F(p,Q,V,a)(u,m||b)},async getForexRSI(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getForexRSI(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getForexRSI"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getForexSMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getForexSMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getForexSMA"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getForexSnapshotDirection(t,i){let n=await e.getForexSnapshotDirection(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getForexSnapshotDirection"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getForexSnapshotTicker(t,i){let n=await e.getForexSnapshotTicker(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getForexSnapshotTicker"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getForexSnapshotTickers(t,i){let n=await e.getForexSnapshotTickers(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getForexSnapshotTickers"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getForexV1Exchanges(t,i){let n=await e.getForexV1Exchanges(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getForexV1Exchanges"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getFuturesAggregates(t,i,n,s,o,r,d,l,g,f){let p=await e.getFuturesAggregates(t,i,n,s,o,r,d,l,g,f),y=a?.serverIndex??0,m=v["DefaultApi.getFuturesAggregates"]?.[y]?.url;return(u,b)=>F(p,Q,V,a)(u,m||b)},async getFuturesContractDetails(t,i,n){let s=await e.getFuturesContractDetails(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getFuturesContractDetails"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getFuturesContracts(t,i,n,s,o,r,d,l,g){let f=await e.getFuturesContracts(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getFuturesContracts"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getFuturesDailySchedules(t,i,n,s,o){let r=await e.getFuturesDailySchedules(t,i,n,s,o),d=a?.serverIndex??0,l=v["DefaultApi.getFuturesDailySchedules"]?.[d]?.url;return(g,f)=>F(r,Q,V,a)(g,l||f)},async getFuturesMarketStatuses(t,i,n,s,o){let r=await e.getFuturesMarketStatuses(t,i,n,s,o),d=a?.serverIndex??0,l=v["DefaultApi.getFuturesMarketStatuses"]?.[d]?.url;return(g,f)=>F(r,Q,V,a)(g,l||f)},async getFuturesProductDetails(t,i,n,s){let o=await e.getFuturesProductDetails(t,i,n,s),r=a?.serverIndex??0,d=v["DefaultApi.getFuturesProductDetails"]?.[r]?.url;return(l,g)=>F(o,Q,V,a)(l,d||g)},async getFuturesProductSchedules(t,i,n,s,o,r,d,l,g){let f=await e.getFuturesProductSchedules(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getFuturesProductSchedules"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getFuturesProducts(t,i,n,s,o,r,d,l,g,f,p,y){let m=await e.getFuturesProducts(t,i,n,s,o,r,d,l,g,f,p,y),u=a?.serverIndex??0,b=v["DefaultApi.getFuturesProducts"]?.[u]?.url;return(h,x)=>F(m,Q,V,a)(h,b||x)},async getFuturesQuotes(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getFuturesQuotes(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getFuturesQuotes"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getFuturesTrades(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getFuturesTrades(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getFuturesTrades"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getFuturesVXContractsNew(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de){let re=await e.getFuturesVXContractsNew(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de),te=a?.serverIndex??0,ee=v["DefaultApi.getFuturesVXContractsNew"]?.[te]?.url;return(Y,W)=>F(re,Q,V,a)(Y,ee||W)},async getFuturesVXExchanges(t,i){let n=await e.getFuturesVXExchanges(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getFuturesVXExchanges"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getFuturesVXProductsNew(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z){let ye=await e.getFuturesVXProductsNew(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z),fe=a?.serverIndex??0,be=v["DefaultApi.getFuturesVXProductsNew"]?.[fe]?.url;return(q,w)=>F(ye,Q,V,a)(q,be||w)},async getFuturesVXSnapshot(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b){let h=await e.getFuturesVXSnapshot(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b),x=a?.serverIndex??0,R=v["DefaultApi.getFuturesVXSnapshot"]?.[x]?.url;return(c,_)=>F(h,Q,V,a)(c,R||_)},async getGroupedCryptoAggregates(t,i,n){let s=await e.getGroupedCryptoAggregates(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getGroupedCryptoAggregates"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getGroupedForexAggregates(t,i,n){let s=await e.getGroupedForexAggregates(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getGroupedForexAggregates"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getGroupedStocksAggregates(t,i,n,s){let o=await e.getGroupedStocksAggregates(t,i,n,s),r=a?.serverIndex??0,d=v["DefaultApi.getGroupedStocksAggregates"]?.[r]?.url;return(l,g)=>F(o,Q,V,a)(l,d||g)},async getIndicesAggregates(t,i,n,s,o,r,d,l){let g=await e.getIndicesAggregates(t,i,n,s,o,r,d,l),f=a?.serverIndex??0,p=v["DefaultApi.getIndicesAggregates"]?.[f]?.url;return(y,m)=>F(g,Q,V,a)(y,p||m)},async getIndicesEMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getIndicesEMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getIndicesEMA"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getIndicesMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h){let x=await e.getIndicesMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h),R=a?.serverIndex??0,c=v["DefaultApi.getIndicesMACD"]?.[R]?.url;return(_,A)=>F(x,Q,V,a)(_,c||A)},async getIndicesOpenClose(t,i,n){let s=await e.getIndicesOpenClose(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getIndicesOpenClose"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getIndicesRSI(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getIndicesRSI(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getIndicesRSI"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getIndicesSMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getIndicesSMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getIndicesSMA"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getIndicesSnapshot(t,i,n,s,o,r,d,l,g,f){let p=await e.getIndicesSnapshot(t,i,n,s,o,r,d,l,g,f),y=a?.serverIndex??0,m=v["DefaultApi.getIndicesSnapshot"]?.[y]?.url;return(u,b)=>F(p,Q,V,a)(u,m||b)},async getLastCryptoTrade(t,i,n){let s=await e.getLastCryptoTrade(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getLastCryptoTrade"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getLastCurrencyQuote(t,i,n){let s=await e.getLastCurrencyQuote(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getLastCurrencyQuote"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getLastOptionsTrade(t,i){let n=await e.getLastOptionsTrade(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getLastOptionsTrade"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getLastStocksQuote(t,i){let n=await e.getLastStocksQuote(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getLastStocksQuote"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getLastStocksTrade(t,i){let n=await e.getLastStocksTrade(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getLastStocksTrade"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getMarketHolidays(t){let i=await e.getMarketHolidays(t),n=a?.serverIndex??0,s=v["DefaultApi.getMarketHolidays"]?.[n]?.url;return(o,r)=>F(i,Q,V,a)(o,s||r)},async getMarketStatus(t){let i=await e.getMarketStatus(t),n=a?.serverIndex??0,s=v["DefaultApi.getMarketStatus"]?.[n]?.url;return(o,r)=>F(i,Q,V,a)(o,s||r)},async getOptionContract(t,i,n){let s=await e.getOptionContract(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getOptionContract"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getOptionsAggregates(t,i,n,s,o,r,d,l,g){let f=await e.getOptionsAggregates(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getOptionsAggregates"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getOptionsChain(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h){let x=await e.getOptionsChain(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h),R=a?.serverIndex??0,c=v["DefaultApi.getOptionsChain"]?.[R]?.url;return(_,A)=>F(x,Q,V,a)(_,c||A)},async getOptionsContract(t,i,n){let s=await e.getOptionsContract(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getOptionsContract"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getOptionsEMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getOptionsEMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getOptionsEMA"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getOptionsMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h){let x=await e.getOptionsMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h),R=a?.serverIndex??0,c=v["DefaultApi.getOptionsMACD"]?.[R]?.url;return(_,A)=>F(x,Q,V,a)(_,c||A)},async getOptionsOpenClose(t,i,n,s){let o=await e.getOptionsOpenClose(t,i,n,s),r=a?.serverIndex??0,d=v["DefaultApi.getOptionsOpenClose"]?.[r]?.url;return(l,g)=>F(o,Q,V,a)(l,d||g)},async getOptionsQuotes(t,i,n,s,o,r,d,l,g,f){let p=await e.getOptionsQuotes(t,i,n,s,o,r,d,l,g,f),y=a?.serverIndex??0,m=v["DefaultApi.getOptionsQuotes"]?.[y]?.url;return(u,b)=>F(p,Q,V,a)(u,m||b)},async getOptionsRSI(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getOptionsRSI(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getOptionsRSI"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getOptionsSMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getOptionsSMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getOptionsSMA"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getOptionsTrades(t,i,n,s,o,r,d,l,g,f){let p=await e.getOptionsTrades(t,i,n,s,o,r,d,l,g,f),y=a?.serverIndex??0,m=v["DefaultApi.getOptionsTrades"]?.[y]?.url;return(u,b)=>F(p,Q,V,a)(u,m||b)},async getOptionsV1Exchanges(t,i){let n=await e.getOptionsV1Exchanges(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getOptionsV1Exchanges"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getPreviousCryptoAggregates(t,i,n){let s=await e.getPreviousCryptoAggregates(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getPreviousCryptoAggregates"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getPreviousForexAggregates(t,i,n){let s=await e.getPreviousForexAggregates(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getPreviousForexAggregates"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getPreviousIndicesAggregates(t,i){let n=await e.getPreviousIndicesAggregates(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getPreviousIndicesAggregates"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getPreviousOptionsAggregates(t,i,n){let s=await e.getPreviousOptionsAggregates(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getPreviousOptionsAggregates"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getPreviousStocksAggregates(t,i,n){let s=await e.getPreviousStocksAggregates(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getPreviousStocksAggregates"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getRelatedCompanies(t,i){let n=await e.getRelatedCompanies(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getRelatedCompanies"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getSnapshotSummary(t,i){let n=await e.getSnapshotSummary(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getSnapshotSummary"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getSnapshots(t,i,n,s,o,r,d,l,g,f,p){let y=await e.getSnapshots(t,i,n,s,o,r,d,l,g,f,p),m=a?.serverIndex??0,u=v["DefaultApi.getSnapshots"]?.[m]?.url;return(b,h)=>F(y,Q,V,a)(b,u||h)},async getStocksAggregates(t,i,n,s,o,r,d,l,g){let f=await e.getStocksAggregates(t,i,n,s,o,r,d,l,g),p=a?.serverIndex??0,y=v["DefaultApi.getStocksAggregates"]?.[p]?.url;return(m,u)=>F(f,Q,V,a)(m,y||u)},async getStocksEMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getStocksEMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getStocksEMA"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getStocksFinancialsV1BalanceSheets(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re){let te=await e.getStocksFinancialsV1BalanceSheets(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re),ee=a?.serverIndex??0,Y=v["DefaultApi.getStocksFinancialsV1BalanceSheets"]?.[ee]?.url;return(W,O)=>F(te,Q,V,a)(W,Y||O)},async getStocksFinancialsV1CashFlowStatements(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re){let te=await e.getStocksFinancialsV1CashFlowStatements(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re),ee=a?.serverIndex??0,Y=v["DefaultApi.getStocksFinancialsV1CashFlowStatements"]?.[ee]?.url;return(W,O)=>F(te,Q,V,a)(W,Y||O)},async getStocksFinancialsV1IncomeStatements(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re){let te=await e.getStocksFinancialsV1IncomeStatements(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re),ee=a?.serverIndex??0,Y=v["DefaultApi.getStocksFinancialsV1IncomeStatements"]?.[ee]?.url;return(W,O)=>F(te,Q,V,a)(W,Y||O)},async getStocksFinancialsV1Ratios(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me,he,xe,Re,ne,Ae,ie,Ge,Oe,Ce,Se,Ve,we,ve,Le,Ie,_e,De,Te,P,Ue,Be,Ee,Qe,ze,Me,He,je,Ne,Ke,$e,Ye,Xe,We,Je,Ze,qe,Pe,en,nn,tn,sn,on,rn,an,dn,ln,gn,cn,pn,un,fn,yn,bn,mn,hn,Rn,xn,An,Vn){let _n=await e.getStocksFinancialsV1Ratios(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z,ye,fe,be,q,w,me,he,xe,Re,ne,Ae,ie,Ge,Oe,Ce,Se,Ve,we,ve,Le,Ie,_e,De,Te,P,Ue,Be,Ee,Qe,ze,Me,He,je,Ne,Ke,$e,Ye,Xe,We,Je,Ze,qe,Pe,en,nn,tn,sn,on,rn,an,dn,ln,gn,cn,pn,un,fn,yn,bn,mn,hn,Rn,xn,An,Vn),Fe=a?.serverIndex??0,kn=v["DefaultApi.getStocksFinancialsV1Ratios"]?.[Fe]?.url;return(wn,M)=>F(_n,Q,V,a)(wn,kn||M)},async getStocksMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h){let x=await e.getStocksMACD(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h),R=a?.serverIndex??0,c=v["DefaultApi.getStocksMACD"]?.[R]?.url;return(_,A)=>F(x,Q,V,a)(_,c||A)},async getStocksOpenClose(t,i,n,s){let o=await e.getStocksOpenClose(t,i,n,s),r=a?.serverIndex??0,d=v["DefaultApi.getStocksOpenClose"]?.[r]?.url;return(l,g)=>F(o,Q,V,a)(l,d||g)},async getStocksQuotes(t,i,n,s,o,r,d,l,g,f){let p=await e.getStocksQuotes(t,i,n,s,o,r,d,l,g,f),y=a?.serverIndex??0,m=v["DefaultApi.getStocksQuotes"]?.[y]?.url;return(u,b)=>F(p,Q,V,a)(u,m||b)},async getStocksRSI(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getStocksRSI(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getStocksRSI"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getStocksSMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.getStocksSMA(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.getStocksSMA"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async getStocksSnapshotDirection(t,i,n){let s=await e.getStocksSnapshotDirection(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getStocksSnapshotDirection"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getStocksSnapshotTicker(t,i){let n=await e.getStocksSnapshotTicker(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getStocksSnapshotTicker"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getStocksSnapshotTickers(t,i,n){let s=await e.getStocksSnapshotTickers(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getStocksSnapshotTickers"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getStocksTrades(t,i,n,s,o,r,d,l,g,f){let p=await e.getStocksTrades(t,i,n,s,o,r,d,l,g,f),y=a?.serverIndex??0,m=v["DefaultApi.getStocksTrades"]?.[y]?.url;return(u,b)=>F(p,Q,V,a)(u,m||b)},async getStocksV1Dividends(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S){let E=await e.getStocksV1Dividends(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S),X=a?.serverIndex??0,z=v["DefaultApi.getStocksV1Dividends"]?.[X]?.url;return($,H)=>F(E,Q,V,a)($,z||H)},async getStocksV1Exchanges(t,i){let n=await e.getStocksV1Exchanges(t,i),s=a?.serverIndex??0,o=v["DefaultApi.getStocksV1Exchanges"]?.[s]?.url;return(r,d)=>F(n,Q,V,a)(r,o||d)},async getStocksV1ShortInterest(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X){let z=await e.getStocksV1ShortInterest(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X),$=a?.serverIndex??0,H=v["DefaultApi.getStocksV1ShortInterest"]?.[$]?.url;return(j,C)=>F(z,Q,V,a)(j,H||C)},async getStocksV1ShortVolume(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X){let z=await e.getStocksV1ShortVolume(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X),$=a?.serverIndex??0,H=v["DefaultApi.getStocksV1ShortVolume"]?.[$]?.url;return(j,C)=>F(z,Q,V,a)(j,H||C)},async getStocksV1Splits(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_){let A=await e.getStocksV1Splits(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_),k=a?.serverIndex??0,B=v["DefaultApi.getStocksV1Splits"]?.[k]?.url;return(G,S)=>F(A,Q,V,a)(G,B||S)},async getTicker(t,i,n){let s=await e.getTicker(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.getTicker"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async getTmxV1CorporateEvents(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z){let ye=await e.getTmxV1CorporateEvents(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae,de,re,te,ee,Y,W,O,le,pe,ge,ce,ue,J,Z),fe=a?.serverIndex??0,be=v["DefaultApi.getTmxV1CorporateEvents"]?.[fe]?.url;return(q,w)=>F(ye,Q,V,a)(q,be||w)},async listConditions(t,i,n,s,o,r,d,l){let g=await e.listConditions(t,i,n,s,o,r,d,l),f=a?.serverIndex??0,p=v["DefaultApi.listConditions"]?.[f]?.url;return(y,m)=>F(g,Q,V,a)(y,p||m)},async listDividends(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae){let de=await e.listDividends(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B,G,S,E,X,z,$,H,j,C,N,se,oe,ae),re=a?.serverIndex??0,te=v["DefaultApi.listDividends"]?.[re]?.url;return(ee,Y)=>F(de,Q,V,a)(ee,te||Y)},async listExchanges(t,i,n){let s=await e.listExchanges(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.listExchanges"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async listFinancials(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A){let k=await e.listFinancials(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A),B=a?.serverIndex??0,G=v["DefaultApi.listFinancials"]?.[B]?.url;return(S,E)=>F(k,Q,V,a)(S,G||E)},async listIPOs(t,i,n,s,o,r,d,l,g,f,p,y,m){let u=await e.listIPOs(t,i,n,s,o,r,d,l,g,f,p,y,m),b=a?.serverIndex??0,h=v["DefaultApi.listIPOs"]?.[b]?.url;return(x,R)=>F(u,Q,V,a)(x,h||R)},async listNews(t,i,n,s,o,r,d,l,g,f,p,y,m,u){let b=await e.listNews(t,i,n,s,o,r,d,l,g,f,p,y,m,u),h=a?.serverIndex??0,x=v["DefaultApi.listNews"]?.[h]?.url;return(R,c)=>F(b,Q,V,a)(R,x||c)},async listOptionsContracts(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B){let G=await e.listOptionsContracts(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x,R,c,_,A,k,B),S=a?.serverIndex??0,E=v["DefaultApi.listOptionsContracts"]?.[S]?.url;return(X,z)=>F(G,Q,V,a)(X,E||z)},async listStockSplits(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b){let h=await e.listStockSplits(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b),x=a?.serverIndex??0,R=v["DefaultApi.listStockSplits"]?.[x]?.url;return(c,_)=>F(h,Q,V,a)(c,R||_)},async listTickerTypes(t,i,n){let s=await e.listTickerTypes(t,i,n),o=a?.serverIndex??0,r=v["DefaultApi.listTickerTypes"]?.[o]?.url;return(d,l)=>F(s,Q,V,a)(d,r||l)},async listTickers(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x){let R=await e.listTickers(t,i,n,s,o,r,d,l,g,f,p,y,m,u,b,h,x),c=a?.serverIndex??0,_=v["DefaultApi.listTickers"]?.[c]?.url;return(A,k)=>F(R,Q,V,a)(A,_||k)}}},nr=function(a,e,t){let i=U(a);return{deprecatedGetCryptoSnapshotTickerBook(n,s){return i.deprecatedGetCryptoSnapshotTickerBook(n.ticker,s).then(o=>o(t,e))},deprecatedGetHistoricCryptoTrades(n,s){return i.deprecatedGetHistoricCryptoTrades(n.from,n.to,n.date,n.offset,n.limit,s).then(o=>o(t,e))},deprecatedGetHistoricForexQuotes(n,s){return i.deprecatedGetHistoricForexQuotes(n.from,n.to,n.date,n.offset,n.limit,s).then(o=>o(t,e))},deprecatedGetHistoricStocksQuotes(n,s){return i.deprecatedGetHistoricStocksQuotes(n.ticker,n.date,n.timestamp,n.timestampLimit,n.reverse,n.limit,s).then(o=>o(t,e))},deprecatedGetHistoricStocksTrades(n,s){return i.deprecatedGetHistoricStocksTrades(n.ticker,n.date,n.timestamp,n.timestampLimit,n.reverse,n.limit,s).then(o=>o(t,e))},getBenzingaV1AnalystInsights(n={},s){return i.getBenzingaV1AnalystInsights(n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.lastUpdated,n.lastUpdatedGt,n.lastUpdatedGte,n.lastUpdatedLt,n.lastUpdatedLte,n.firm,n.firmAnyOf,n.firmGt,n.firmGte,n.firmLt,n.firmLte,n.ratingAction,n.ratingActionAnyOf,n.ratingActionGt,n.ratingActionGte,n.ratingActionLt,n.ratingActionLte,n.benzingaFirmId,n.benzingaFirmIdAnyOf,n.benzingaFirmIdGt,n.benzingaFirmIdGte,n.benzingaFirmIdLt,n.benzingaFirmIdLte,n.benzingaRatingId,n.benzingaRatingIdAnyOf,n.benzingaRatingIdGt,n.benzingaRatingIdGte,n.benzingaRatingIdLt,n.benzingaRatingIdLte,n.limit,n.sort,s).then(o=>o(t,e))},getBenzingaV1Analysts(n={},s){return i.getBenzingaV1Analysts(n.benzingaId,n.benzingaIdAnyOf,n.benzingaIdGt,n.benzingaIdGte,n.benzingaIdLt,n.benzingaIdLte,n.benzingaFirmId,n.benzingaFirmIdAnyOf,n.benzingaFirmIdGt,n.benzingaFirmIdGte,n.benzingaFirmIdLt,n.benzingaFirmIdLte,n.firmName,n.firmNameAnyOf,n.firmNameGt,n.firmNameGte,n.firmNameLt,n.firmNameLte,n.fullName,n.fullNameAnyOf,n.fullNameGt,n.fullNameGte,n.fullNameLt,n.fullNameLte,n.limit,n.sort,s).then(o=>o(t,e))},getBenzingaV1ConsensusRatings(n,s){return i.getBenzingaV1ConsensusRatings(n.ticker,n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.limit,s).then(o=>o(t,e))},getBenzingaV1Earnings(n={},s){return i.getBenzingaV1Earnings(n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.importance,n.importanceAnyOf,n.importanceGt,n.importanceGte,n.importanceLt,n.importanceLte,n.lastUpdated,n.lastUpdatedAnyOf,n.lastUpdatedGt,n.lastUpdatedGte,n.lastUpdatedLt,n.lastUpdatedLte,n.dateStatus,n.dateStatusAnyOf,n.dateStatusGt,n.dateStatusGte,n.dateStatusLt,n.dateStatusLte,n.epsSurprisePercent,n.epsSurprisePercentAnyOf,n.epsSurprisePercentGt,n.epsSurprisePercentGte,n.epsSurprisePercentLt,n.epsSurprisePercentLte,n.revenueSurprisePercent,n.revenueSurprisePercentAnyOf,n.revenueSurprisePercentGt,n.revenueSurprisePercentGte,n.revenueSurprisePercentLt,n.revenueSurprisePercentLte,n.fiscalYear,n.fiscalYearAnyOf,n.fiscalYearGt,n.fiscalYearGte,n.fiscalYearLt,n.fiscalYearLte,n.fiscalPeriod,n.fiscalPeriodAnyOf,n.fiscalPeriodGt,n.fiscalPeriodGte,n.fiscalPeriodLt,n.fiscalPeriodLte,n.limit,n.sort,s).then(o=>o(t,e))},getBenzingaV1Firms(n={},s){return i.getBenzingaV1Firms(n.benzingaId,n.benzingaIdAnyOf,n.benzingaIdGt,n.benzingaIdGte,n.benzingaIdLt,n.benzingaIdLte,n.limit,n.sort,s).then(o=>o(t,e))},getBenzingaV1Guidance(n={},s){return i.getBenzingaV1Guidance(n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.positioning,n.positioningAnyOf,n.positioningGt,n.positioningGte,n.positioningLt,n.positioningLte,n.importance,n.importanceAnyOf,n.importanceGt,n.importanceGte,n.importanceLt,n.importanceLte,n.lastUpdated,n.lastUpdatedAnyOf,n.lastUpdatedGt,n.lastUpdatedGte,n.lastUpdatedLt,n.lastUpdatedLte,n.fiscalYear,n.fiscalYearAnyOf,n.fiscalYearGt,n.fiscalYearGte,n.fiscalYearLt,n.fiscalYearLte,n.fiscalPeriod,n.fiscalPeriodAnyOf,n.fiscalPeriodGt,n.fiscalPeriodGte,n.fiscalPeriodLt,n.fiscalPeriodLte,n.limit,n.sort,s).then(o=>o(t,e))},getBenzingaV1Ratings(n={},s){return i.getBenzingaV1Ratings(n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.importance,n.importanceGt,n.importanceGte,n.importanceLt,n.importanceLte,n.lastUpdated,n.lastUpdatedGt,n.lastUpdatedGte,n.lastUpdatedLt,n.lastUpdatedLte,n.ratingAction,n.ratingActionAnyOf,n.ratingActionGt,n.ratingActionGte,n.ratingActionLt,n.ratingActionLte,n.priceTargetAction,n.priceTargetActionAnyOf,n.priceTargetActionGt,n.priceTargetActionGte,n.priceTargetActionLt,n.priceTargetActionLte,n.benzingaId,n.benzingaIdAnyOf,n.benzingaIdGt,n.benzingaIdGte,n.benzingaIdLt,n.benzingaIdLte,n.benzingaAnalystId,n.benzingaAnalystIdAnyOf,n.benzingaAnalystIdGt,n.benzingaAnalystIdGte,n.benzingaAnalystIdLt,n.benzingaAnalystIdLte,n.benzingaFirmId,n.benzingaFirmIdAnyOf,n.benzingaFirmIdGt,n.benzingaFirmIdGte,n.benzingaFirmIdLt,n.benzingaFirmIdLte,n.limit,n.sort,s).then(o=>o(t,e))},getBenzingaV2News(n={},s){return i.getBenzingaV2News(n.published,n.publishedGt,n.publishedGte,n.publishedLt,n.publishedLte,n.channels,n.channelsAllOf,n.channelsAnyOf,n.tags,n.tagsAllOf,n.tagsAnyOf,n.author,n.authorAnyOf,n.authorGt,n.authorGte,n.authorLt,n.authorLte,n.stocks,n.stocksAllOf,n.stocksAnyOf,n.tickers,n.tickersAllOf,n.tickersAnyOf,n.limit,n.sort,s).then(o=>o(t,e))},getCryptoAggregates(n,s){return i.getCryptoAggregates(n.cryptoTicker,n.multiplier,n.timespan,n.from,n.to,n.adjusted,n.sort,n.limit,s).then(o=>o(t,e))},getCryptoEMA(n,s){return i.getCryptoEMA(n.cryptoTicker,n.timestamp,n.timespan,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getCryptoMACD(n,s){return i.getCryptoMACD(n.cryptoTicker,n.timestamp,n.timespan,n.shortWindow,n.longWindow,n.signalWindow,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getCryptoOpenClose(n,s){return i.getCryptoOpenClose(n.from,n.to,n.date,n.adjusted,s).then(o=>o(t,e))},getCryptoRSI(n,s){return i.getCryptoRSI(n.cryptoTicker,n.timestamp,n.timespan,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getCryptoSMA(n,s){return i.getCryptoSMA(n.cryptoTicker,n.timestamp,n.timespan,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getCryptoSnapshotDirection(n,s){return i.getCryptoSnapshotDirection(n.direction,s).then(o=>o(t,e))},getCryptoSnapshotTicker(n,s){return i.getCryptoSnapshotTicker(n.ticker,s).then(o=>o(t,e))},getCryptoSnapshotTickers(n={},s){return i.getCryptoSnapshotTickers(n.tickers,s).then(o=>o(t,e))},getCryptoTrades(n,s){return i.getCryptoTrades(n.cryptoTicker,n.timestamp,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getCryptoV1Exchanges(n={},s){return i.getCryptoV1Exchanges(n.limit,s).then(o=>o(t,e))},getCurrencyConversion(n,s){return i.getCurrencyConversion(n.from,n.to,n.amount,n.precision,s).then(o=>o(t,e))},getEtfGlobalV1Analytics(n={},s){return i.getEtfGlobalV1Analytics(n.compositeTicker,n.compositeTickerAnyOf,n.compositeTickerGt,n.compositeTickerGte,n.compositeTickerLt,n.compositeTickerLte,n.processedDate,n.processedDateGt,n.processedDateGte,n.processedDateLt,n.processedDateLte,n.effectiveDate,n.effectiveDateGt,n.effectiveDateGte,n.effectiveDateLt,n.effectiveDateLte,n.riskTotalScore,n.riskTotalScoreGt,n.riskTotalScoreGte,n.riskTotalScoreLt,n.riskTotalScoreLte,n.rewardScore,n.rewardScoreGt,n.rewardScoreGte,n.rewardScoreLt,n.rewardScoreLte,n.quantTotalScore,n.quantTotalScoreGt,n.quantTotalScoreGte,n.quantTotalScoreLt,n.quantTotalScoreLte,n.quantGrade,n.quantGradeAnyOf,n.quantGradeGt,n.quantGradeGte,n.quantGradeLt,n.quantGradeLte,n.quantCompositeTechnical,n.quantCompositeTechnicalGt,n.quantCompositeTechnicalGte,n.quantCompositeTechnicalLt,n.quantCompositeTechnicalLte,n.quantCompositeSentiment,n.quantCompositeSentimentGt,n.quantCompositeSentimentGte,n.quantCompositeSentimentLt,n.quantCompositeSentimentLte,n.quantCompositeBehavioral,n.quantCompositeBehavioralGt,n.quantCompositeBehavioralGte,n.quantCompositeBehavioralLt,n.quantCompositeBehavioralLte,n.quantCompositeFundamental,n.quantCompositeFundamentalGt,n.quantCompositeFundamentalGte,n.quantCompositeFundamentalLt,n.quantCompositeFundamentalLte,n.quantCompositeGlobal,n.quantCompositeGlobalGt,n.quantCompositeGlobalGte,n.quantCompositeGlobalLt,n.quantCompositeGlobalLte,n.quantCompositeQuality,n.quantCompositeQualityGt,n.quantCompositeQualityGte,n.quantCompositeQualityLt,n.quantCompositeQualityLte,n.limit,n.sort,s).then(o=>o(t,e))},getEtfGlobalV1Constituents(n={},s){return i.getEtfGlobalV1Constituents(n.compositeTicker,n.compositeTickerAnyOf,n.compositeTickerGt,n.compositeTickerGte,n.compositeTickerLt,n.compositeTickerLte,n.constituentTicker,n.constituentTickerAnyOf,n.constituentTickerGt,n.constituentTickerGte,n.constituentTickerLt,n.constituentTickerLte,n.effectiveDate,n.effectiveDateGt,n.effectiveDateGte,n.effectiveDateLt,n.effectiveDateLte,n.processedDate,n.processedDateGt,n.processedDateGte,n.processedDateLt,n.processedDateLte,n.usCode,n.usCodeAnyOf,n.usCodeGt,n.usCodeGte,n.usCodeLt,n.usCodeLte,n.isin,n.isinAnyOf,n.isinGt,n.isinGte,n.isinLt,n.isinLte,n.figi,n.figiAnyOf,n.figiGt,n.figiGte,n.figiLt,n.figiLte,n.sedol,n.sedolAnyOf,n.sedolGt,n.sedolGte,n.sedolLt,n.sedolLte,n.limit,n.sort,s).then(o=>o(t,e))},getEtfGlobalV1FundFlows(n={},s){return i.getEtfGlobalV1FundFlows(n.processedDate,n.processedDateGt,n.processedDateGte,n.processedDateLt,n.processedDateLte,n.effectiveDate,n.effectiveDateGt,n.effectiveDateGte,n.effectiveDateLt,n.effectiveDateLte,n.compositeTicker,n.compositeTickerAnyOf,n.compositeTickerGt,n.compositeTickerGte,n.compositeTickerLt,n.compositeTickerLte,n.limit,n.sort,s).then(o=>o(t,e))},getEtfGlobalV1Profiles(n={},s){return i.getEtfGlobalV1Profiles(n.processedDate,n.processedDateGt,n.processedDateGte,n.processedDateLt,n.processedDateLte,n.effectiveDate,n.effectiveDateGt,n.effectiveDateGte,n.effectiveDateLt,n.effectiveDateLte,n.compositeTicker,n.compositeTickerAnyOf,n.compositeTickerGt,n.compositeTickerGte,n.compositeTickerLt,n.compositeTickerLte,n.limit,n.sort,s).then(o=>o(t,e))},getEtfGlobalV1Taxonomies(n={},s){return i.getEtfGlobalV1Taxonomies(n.processedDate,n.processedDateGt,n.processedDateGte,n.processedDateLt,n.processedDateLte,n.effectiveDate,n.effectiveDateGt,n.effectiveDateGte,n.effectiveDateLt,n.effectiveDateLte,n.compositeTicker,n.compositeTickerAnyOf,n.compositeTickerGt,n.compositeTickerGte,n.compositeTickerLt,n.compositeTickerLte,n.limit,n.sort,s).then(o=>o(t,e))},getEvents(n,s){return i.getEvents(n.id,n.types,s).then(o=>o(t,e))},getFedV1Inflation(n={},s){return i.getFedV1Inflation(n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.limit,n.sort,s).then(o=>o(t,e))},getFedV1InflationExpectations(n={},s){return i.getFedV1InflationExpectations(n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.limit,n.sort,s).then(o=>o(t,e))},getFedV1TreasuryYields(n={},s){return i.getFedV1TreasuryYields(n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.limit,n.sort,s).then(o=>o(t,e))},getForexAggregates(n,s){return i.getForexAggregates(n.forexTicker,n.multiplier,n.timespan,n.from,n.to,n.adjusted,n.sort,n.limit,s).then(o=>o(t,e))},getForexEMA(n,s){return i.getForexEMA(n.fxTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getForexMACD(n,s){return i.getForexMACD(n.fxTicker,n.timestamp,n.timespan,n.adjusted,n.shortWindow,n.longWindow,n.signalWindow,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getForexQuotes(n,s){return i.getForexQuotes(n.fxTicker,n.timestamp,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getForexRSI(n,s){return i.getForexRSI(n.fxTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getForexSMA(n,s){return i.getForexSMA(n.fxTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getForexSnapshotDirection(n,s){return i.getForexSnapshotDirection(n.direction,s).then(o=>o(t,e))},getForexSnapshotTicker(n,s){return i.getForexSnapshotTicker(n.ticker,s).then(o=>o(t,e))},getForexSnapshotTickers(n={},s){return i.getForexSnapshotTickers(n.tickers,s).then(o=>o(t,e))},getForexV1Exchanges(n={},s){return i.getForexV1Exchanges(n.limit,s).then(o=>o(t,e))},getFuturesAggregates(n,s){return i.getFuturesAggregates(n.ticker,n.resolution,n.windowStart,n.limit,n.windowStartGte,n.windowStartGt,n.windowStartLte,n.windowStartLt,n.sort,s).then(o=>o(t,e))},getFuturesContractDetails(n,s){return i.getFuturesContractDetails(n.ticker,n.asOf,s).then(o=>o(t,e))},getFuturesContracts(n={},s){return i.getFuturesContracts(n.productCode,n.firstTradeDate,n.lastTradeDate,n.asOf,n.active,n.type,n.limit,n.sort,s).then(o=>o(t,e))},getFuturesDailySchedules(n={},s){return i.getFuturesDailySchedules(n.sessionEndDate,n.tradingVenue,n.limit,n.sort,s).then(o=>o(t,e))},getFuturesMarketStatuses(n={},s){return i.getFuturesMarketStatuses(n.productCodeAnyOf,n.productCode,n.limit,n.sort,s).then(o=>o(t,e))},getFuturesProductDetails(n,s){return i.getFuturesProductDetails(n.productCode,n.type,n.asOf,s).then(o=>o(t,e))},getFuturesProductSchedules(n,s){return i.getFuturesProductSchedules(n.productCode,n.sessionEndDate,n.limit,n.sessionEndDateGte,n.sessionEndDateGt,n.sessionEndDateLte,n.sessionEndDateLt,n.sort,s).then(o=>o(t,e))},getFuturesProducts(n={},s){return i.getFuturesProducts(n.name,n.asOf,n.tradingVenue,n.sector,n.subSector,n.assetClass,n.assetSubClass,n.type,n.limit,n.nameSearch,n.sort,s).then(o=>o(t,e))},getFuturesQuotes(n,s){return i.getFuturesQuotes(n.ticker,n.timestamp,n.sessionEndDate,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,n.sessionEndDateGte,n.sessionEndDateGt,n.sessionEndDateLte,n.sessionEndDateLt,n.sort,s).then(o=>o(t,e))},getFuturesTrades(n,s){return i.getFuturesTrades(n.ticker,n.timestamp,n.sessionEndDate,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,n.sessionEndDateGte,n.sessionEndDateGt,n.sessionEndDateLte,n.sessionEndDateLt,n.sort,s).then(o=>o(t,e))},getFuturesVXContractsNew(n={},s){return i.getFuturesVXContractsNew(n.date,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.productCode,n.productCodeAnyOf,n.productCodeGt,n.productCodeGte,n.productCodeLt,n.productCodeLte,n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.active,n.type,n.typeAnyOf,n.typeGt,n.typeGte,n.typeLt,n.typeLte,n.firstTradeDate,n.firstTradeDateGt,n.firstTradeDateGte,n.firstTradeDateLt,n.firstTradeDateLte,n.lastTradeDate,n.lastTradeDateGt,n.lastTradeDateGte,n.lastTradeDateLt,n.lastTradeDateLte,n.limit,n.sort,s).then(o=>o(t,e))},getFuturesVXExchanges(n={},s){return i.getFuturesVXExchanges(n.limit,s).then(o=>o(t,e))},getFuturesVXProductsNew(n={},s){return i.getFuturesVXProductsNew(n.name,n.nameAnyOf,n.nameGt,n.nameGte,n.nameLt,n.nameLte,n.productCode,n.productCodeAnyOf,n.productCodeGt,n.productCodeGte,n.productCodeLt,n.productCodeLte,n.date,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.sector,n.sectorAnyOf,n.sectorGt,n.sectorGte,n.sectorLt,n.sectorLte,n.subSector,n.subSectorAnyOf,n.subSectorGt,n.subSectorGte,n.subSectorLt,n.subSectorLte,n.assetClass,n.assetClassAnyOf,n.assetClassGt,n.assetClassGte,n.assetClassLt,n.assetClassLte,n.assetSubClass,n.assetSubClassAnyOf,n.assetSubClassGt,n.assetSubClassGte,n.assetSubClassLt,n.assetSubClassLte,n.type,n.typeAnyOf,n.typeGt,n.typeGte,n.typeLt,n.typeLte,n.limit,n.sort,s).then(o=>o(t,e))},getFuturesVXSnapshot(n={},s){return i.getFuturesVXSnapshot(n.productCode,n.productCodeAnyOf,n.productCodeGt,n.productCodeGte,n.productCodeLt,n.productCodeLte,n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.limit,n.sort,s).then(o=>o(t,e))},getGroupedCryptoAggregates(n,s){return i.getGroupedCryptoAggregates(n.date,n.adjusted,s).then(o=>o(t,e))},getGroupedForexAggregates(n,s){return i.getGroupedForexAggregates(n.date,n.adjusted,s).then(o=>o(t,e))},getGroupedStocksAggregates(n,s){return i.getGroupedStocksAggregates(n.date,n.adjusted,n.includeOtc,s).then(o=>o(t,e))},getIndicesAggregates(n,s){return i.getIndicesAggregates(n.indicesTicker,n.multiplier,n.timespan,n.from,n.to,n.sort,n.limit,s).then(o=>o(t,e))},getIndicesEMA(n,s){return i.getIndicesEMA(n.indicesTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getIndicesMACD(n,s){return i.getIndicesMACD(n.indicesTicker,n.timestamp,n.timespan,n.adjusted,n.shortWindow,n.longWindow,n.signalWindow,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getIndicesOpenClose(n,s){return i.getIndicesOpenClose(n.indicesTicker,n.date,s).then(o=>o(t,e))},getIndicesRSI(n,s){return i.getIndicesRSI(n.indicesTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getIndicesSMA(n,s){return i.getIndicesSMA(n.indicesTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getIndicesSnapshot(n={},s){return i.getIndicesSnapshot(n.tickerAnyOf,n.ticker,n.tickerGte,n.tickerGt,n.tickerLte,n.tickerLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getLastCryptoTrade(n,s){return i.getLastCryptoTrade(n.from,n.to,s).then(o=>o(t,e))},getLastCurrencyQuote(n,s){return i.getLastCurrencyQuote(n.from,n.to,s).then(o=>o(t,e))},getLastOptionsTrade(n,s){return i.getLastOptionsTrade(n.optionsTicker,s).then(o=>o(t,e))},getLastStocksQuote(n,s){return i.getLastStocksQuote(n.stocksTicker,s).then(o=>o(t,e))},getLastStocksTrade(n,s){return i.getLastStocksTrade(n.stocksTicker,s).then(o=>o(t,e))},getMarketHolidays(n){return i.getMarketHolidays(n).then(s=>s(t,e))},getMarketStatus(n){return i.getMarketStatus(n).then(s=>s(t,e))},getOptionContract(n,s){return i.getOptionContract(n.underlyingAsset,n.optionContract,s).then(o=>o(t,e))},getOptionsAggregates(n,s){return i.getOptionsAggregates(n.optionsTicker,n.multiplier,n.timespan,n.from,n.to,n.adjusted,n.sort,n.limit,s).then(o=>o(t,e))},getOptionsChain(n,s){return i.getOptionsChain(n.underlyingAsset,n.strikePrice,n.expirationDate,n.contractType,n.strikePriceGte,n.strikePriceGt,n.strikePriceLte,n.strikePriceLt,n.expirationDateGte,n.expirationDateGt,n.expirationDateLte,n.expirationDateLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getOptionsContract(n,s){return i.getOptionsContract(n.optionsTicker,n.asOf,s).then(o=>o(t,e))},getOptionsEMA(n,s){return i.getOptionsEMA(n.optionsTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getOptionsMACD(n,s){return i.getOptionsMACD(n.optionsTicker,n.timestamp,n.timespan,n.adjusted,n.shortWindow,n.longWindow,n.signalWindow,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getOptionsOpenClose(n,s){return i.getOptionsOpenClose(n.optionsTicker,n.date,n.adjusted,s).then(o=>o(t,e))},getOptionsQuotes(n,s){return i.getOptionsQuotes(n.optionsTicker,n.timestamp,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getOptionsRSI(n,s){return i.getOptionsRSI(n.optionsTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getOptionsSMA(n,s){return i.getOptionsSMA(n.optionsTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getOptionsTrades(n,s){return i.getOptionsTrades(n.optionsTicker,n.timestamp,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getOptionsV1Exchanges(n={},s){return i.getOptionsV1Exchanges(n.limit,s).then(o=>o(t,e))},getPreviousCryptoAggregates(n,s){return i.getPreviousCryptoAggregates(n.cryptoTicker,n.adjusted,s).then(o=>o(t,e))},getPreviousForexAggregates(n,s){return i.getPreviousForexAggregates(n.forexTicker,n.adjusted,s).then(o=>o(t,e))},getPreviousIndicesAggregates(n,s){return i.getPreviousIndicesAggregates(n.indicesTicker,s).then(o=>o(t,e))},getPreviousOptionsAggregates(n,s){return i.getPreviousOptionsAggregates(n.optionsTicker,n.adjusted,s).then(o=>o(t,e))},getPreviousStocksAggregates(n,s){return i.getPreviousStocksAggregates(n.stocksTicker,n.adjusted,s).then(o=>o(t,e))},getRelatedCompanies(n,s){return i.getRelatedCompanies(n.ticker,s).then(o=>o(t,e))},getSnapshotSummary(n={},s){return i.getSnapshotSummary(n.tickerAnyOf,s).then(o=>o(t,e))},getSnapshots(n={},s){return i.getSnapshots(n.ticker,n.type,n.tickerGte,n.tickerGt,n.tickerLte,n.tickerLt,n.tickerAnyOf,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getStocksAggregates(n,s){return i.getStocksAggregates(n.stocksTicker,n.multiplier,n.timespan,n.from,n.to,n.adjusted,n.sort,n.limit,s).then(o=>o(t,e))},getStocksEMA(n,s){return i.getStocksEMA(n.stockTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getStocksFinancialsV1BalanceSheets(n={},s){return i.getStocksFinancialsV1BalanceSheets(n.cik,n.cikAnyOf,n.cikGt,n.cikGte,n.cikLt,n.cikLte,n.tickers,n.tickersAllOf,n.tickersAnyOf,n.periodEnd,n.periodEndGt,n.periodEndGte,n.periodEndLt,n.periodEndLte,n.filingDate,n.filingDateGt,n.filingDateGte,n.filingDateLt,n.filingDateLte,n.fiscalYear,n.fiscalYearGt,n.fiscalYearGte,n.fiscalYearLt,n.fiscalYearLte,n.fiscalQuarter,n.fiscalQuarterGt,n.fiscalQuarterGte,n.fiscalQuarterLt,n.fiscalQuarterLte,n.timeframe,n.timeframeAnyOf,n.timeframeGt,n.timeframeGte,n.timeframeLt,n.timeframeLte,n.limit,n.sort,s).then(o=>o(t,e))},getStocksFinancialsV1CashFlowStatements(n={},s){return i.getStocksFinancialsV1CashFlowStatements(n.cik,n.cikAnyOf,n.cikGt,n.cikGte,n.cikLt,n.cikLte,n.periodEnd,n.periodEndGt,n.periodEndGte,n.periodEndLt,n.periodEndLte,n.filingDate,n.filingDateGt,n.filingDateGte,n.filingDateLt,n.filingDateLte,n.tickers,n.tickersAllOf,n.tickersAnyOf,n.fiscalYear,n.fiscalYearGt,n.fiscalYearGte,n.fiscalYearLt,n.fiscalYearLte,n.fiscalQuarter,n.fiscalQuarterGt,n.fiscalQuarterGte,n.fiscalQuarterLt,n.fiscalQuarterLte,n.timeframe,n.timeframeAnyOf,n.timeframeGt,n.timeframeGte,n.timeframeLt,n.timeframeLte,n.limit,n.sort,s).then(o=>o(t,e))},getStocksFinancialsV1IncomeStatements(n={},s){return i.getStocksFinancialsV1IncomeStatements(n.cik,n.cikAnyOf,n.cikGt,n.cikGte,n.cikLt,n.cikLte,n.tickers,n.tickersAllOf,n.tickersAnyOf,n.periodEnd,n.periodEndGt,n.periodEndGte,n.periodEndLt,n.periodEndLte,n.filingDate,n.filingDateGt,n.filingDateGte,n.filingDateLt,n.filingDateLte,n.fiscalYear,n.fiscalYearGt,n.fiscalYearGte,n.fiscalYearLt,n.fiscalYearLte,n.fiscalQuarter,n.fiscalQuarterGt,n.fiscalQuarterGte,n.fiscalQuarterLt,n.fiscalQuarterLte,n.timeframe,n.timeframeAnyOf,n.timeframeGt,n.timeframeGte,n.timeframeLt,n.timeframeLte,n.limit,n.sort,s).then(o=>o(t,e))},getStocksFinancialsV1Ratios(n={},s){return i.getStocksFinancialsV1Ratios(n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.cik,n.cikAnyOf,n.cikGt,n.cikGte,n.cikLt,n.cikLte,n.price,n.priceGt,n.priceGte,n.priceLt,n.priceLte,n.averageVolume,n.averageVolumeGt,n.averageVolumeGte,n.averageVolumeLt,n.averageVolumeLte,n.marketCap,n.marketCapGt,n.marketCapGte,n.marketCapLt,n.marketCapLte,n.earningsPerShare,n.earningsPerShareGt,n.earningsPerShareGte,n.earningsPerShareLt,n.earningsPerShareLte,n.priceToEarnings,n.priceToEarningsGt,n.priceToEarningsGte,n.priceToEarningsLt,n.priceToEarningsLte,n.priceToBook,n.priceToBookGt,n.priceToBookGte,n.priceToBookLt,n.priceToBookLte,n.priceToSales,n.priceToSalesGt,n.priceToSalesGte,n.priceToSalesLt,n.priceToSalesLte,n.priceToCashFlow,n.priceToCashFlowGt,n.priceToCashFlowGte,n.priceToCashFlowLt,n.priceToCashFlowLte,n.priceToFreeCashFlow,n.priceToFreeCashFlowGt,n.priceToFreeCashFlowGte,n.priceToFreeCashFlowLt,n.priceToFreeCashFlowLte,n.dividendYield,n.dividendYieldGt,n.dividendYieldGte,n.dividendYieldLt,n.dividendYieldLte,n.returnOnAssets,n.returnOnAssetsGt,n.returnOnAssetsGte,n.returnOnAssetsLt,n.returnOnAssetsLte,n.returnOnEquity,n.returnOnEquityGt,n.returnOnEquityGte,n.returnOnEquityLt,n.returnOnEquityLte,n.debtToEquity,n.debtToEquityGt,n.debtToEquityGte,n.debtToEquityLt,n.debtToEquityLte,n.current,n.currentGt,n.currentGte,n.currentLt,n.currentLte,n.quick,n.quickGt,n.quickGte,n.quickLt,n.quickLte,n.cash,n.cashGt,n.cashGte,n.cashLt,n.cashLte,n.evToSales,n.evToSalesGt,n.evToSalesGte,n.evToSalesLt,n.evToSalesLte,n.evToEbitda,n.evToEbitdaGt,n.evToEbitdaGte,n.evToEbitdaLt,n.evToEbitdaLte,n.enterpriseValue,n.enterpriseValueGt,n.enterpriseValueGte,n.enterpriseValueLt,n.enterpriseValueLte,n.freeCashFlow,n.freeCashFlowGt,n.freeCashFlowGte,n.freeCashFlowLt,n.freeCashFlowLte,n.limit,n.sort,s).then(o=>o(t,e))},getStocksMACD(n,s){return i.getStocksMACD(n.stockTicker,n.timestamp,n.timespan,n.adjusted,n.shortWindow,n.longWindow,n.signalWindow,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getStocksOpenClose(n,s){return i.getStocksOpenClose(n.stocksTicker,n.date,n.adjusted,s).then(o=>o(t,e))},getStocksQuotes(n,s){return i.getStocksQuotes(n.stockTicker,n.timestamp,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getStocksRSI(n,s){return i.getStocksRSI(n.stockTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getStocksSMA(n,s){return i.getStocksSMA(n.stockTicker,n.timestamp,n.timespan,n.adjusted,n.window,n.seriesType,n.expandUnderlying,n.order,n.limit,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,s).then(o=>o(t,e))},getStocksSnapshotDirection(n,s){return i.getStocksSnapshotDirection(n.direction,n.includeOtc,s).then(o=>o(t,e))},getStocksSnapshotTicker(n,s){return i.getStocksSnapshotTicker(n.stocksTicker,s).then(o=>o(t,e))},getStocksSnapshotTickers(n={},s){return i.getStocksSnapshotTickers(n.tickers,n.includeOtc,s).then(o=>o(t,e))},getStocksTrades(n,s){return i.getStocksTrades(n.stockTicker,n.timestamp,n.timestampGte,n.timestampGt,n.timestampLte,n.timestampLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},getStocksV1Dividends(n={},s){return i.getStocksV1Dividends(n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.exDividendDate,n.exDividendDateGt,n.exDividendDateGte,n.exDividendDateLt,n.exDividendDateLte,n.frequency,n.frequencyGt,n.frequencyGte,n.frequencyLt,n.frequencyLte,n.distributionType,n.distributionTypeAnyOf,n.distributionTypeGt,n.distributionTypeGte,n.distributionTypeLt,n.distributionTypeLte,n.limit,n.sort,s).then(o=>o(t,e))},getStocksV1Exchanges(n={},s){return i.getStocksV1Exchanges(n.limit,s).then(o=>o(t,e))},getStocksV1ShortInterest(n={},s){return i.getStocksV1ShortInterest(n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.daysToCover,n.daysToCoverAnyOf,n.daysToCoverGt,n.daysToCoverGte,n.daysToCoverLt,n.daysToCoverLte,n.settlementDate,n.settlementDateAnyOf,n.settlementDateGt,n.settlementDateGte,n.settlementDateLt,n.settlementDateLte,n.avgDailyVolume,n.avgDailyVolumeAnyOf,n.avgDailyVolumeGt,n.avgDailyVolumeGte,n.avgDailyVolumeLt,n.avgDailyVolumeLte,n.limit,n.sort,s).then(o=>o(t,e))},getStocksV1ShortVolume(n={},s){return i.getStocksV1ShortVolume(n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.shortVolumeRatio,n.shortVolumeRatioAnyOf,n.shortVolumeRatioGt,n.shortVolumeRatioGte,n.shortVolumeRatioLt,n.shortVolumeRatioLte,n.totalVolume,n.totalVolumeAnyOf,n.totalVolumeGt,n.totalVolumeGte,n.totalVolumeLt,n.totalVolumeLte,n.limit,n.sort,s).then(o=>o(t,e))},getStocksV1Splits(n={},s){return i.getStocksV1Splits(n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.executionDate,n.executionDateGt,n.executionDateGte,n.executionDateLt,n.executionDateLte,n.adjustmentType,n.adjustmentTypeAnyOf,n.adjustmentTypeGt,n.adjustmentTypeGte,n.adjustmentTypeLt,n.adjustmentTypeLte,n.limit,n.sort,s).then(o=>o(t,e))},getTicker(n,s){return i.getTicker(n.ticker,n.date,s).then(o=>o(t,e))},getTmxV1CorporateEvents(n={},s){return i.getTmxV1CorporateEvents(n.date,n.dateAnyOf,n.dateGt,n.dateGte,n.dateLt,n.dateLte,n.type,n.typeAnyOf,n.typeGt,n.typeGte,n.typeLt,n.typeLte,n.status,n.statusAnyOf,n.statusGt,n.statusGte,n.statusLt,n.statusLte,n.ticker,n.tickerAnyOf,n.tickerGt,n.tickerGte,n.tickerLt,n.tickerLte,n.isin,n.isinAnyOf,n.isinGt,n.isinGte,n.isinLt,n.isinLte,n.tradingVenue,n.tradingVenueAnyOf,n.tradingVenueGt,n.tradingVenueGte,n.tradingVenueLt,n.tradingVenueLte,n.tmxCompanyId,n.tmxCompanyIdGt,n.tmxCompanyIdGte,n.tmxCompanyIdLt,n.tmxCompanyIdLte,n.tmxRecordId,n.tmxRecordIdAnyOf,n.tmxRecordIdGt,n.tmxRecordIdGte,n.tmxRecordIdLt,n.tmxRecordIdLte,n.limit,n.sort,s).then(o=>o(t,e))},listConditions(n={},s){return i.listConditions(n.assetClass,n.dataType,n.id,n.sip,n.order,n.limit,n.sort,s).then(o=>o(t,e))},listDividends(n={},s){return i.listDividends(n.ticker,n.exDividendDate,n.recordDate,n.declarationDate,n.payDate,n.frequency,n.cashAmount,n.dividendType,n.tickerGte,n.tickerGt,n.tickerLte,n.tickerLt,n.exDividendDateGte,n.exDividendDateGt,n.exDividendDateLte,n.exDividendDateLt,n.recordDateGte,n.recordDateGt,n.recordDateLte,n.recordDateLt,n.declarationDateGte,n.declarationDateGt,n.declarationDateLte,n.declarationDateLt,n.payDateGte,n.payDateGt,n.payDateLte,n.payDateLt,n.cashAmountGte,n.cashAmountGt,n.cashAmountLte,n.cashAmountLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},listExchanges(n={},s){return i.listExchanges(n.assetClass,n.locale,s).then(o=>o(t,e))},listFinancials(n={},s){return i.listFinancials(n.ticker,n.cik,n.companyName,n.sic,n.filingDate,n.periodOfReportDate,n.timeframe,n.includeSources,n.companyNameSearch,n.filingDateGte,n.filingDateGt,n.filingDateLte,n.filingDateLt,n.periodOfReportDateGte,n.periodOfReportDateGt,n.periodOfReportDateLte,n.periodOfReportDateLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},listIPOs(n={},s){return i.listIPOs(n.ticker,n.usCode,n.isin,n.listingDate,n.ipoStatus,n.listingDateGte,n.listingDateGt,n.listingDateLte,n.listingDateLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},listNews(n={},s){return i.listNews(n.ticker,n.publishedUtc,n.tickerGte,n.tickerGt,n.tickerLte,n.tickerLt,n.publishedUtcGte,n.publishedUtcGt,n.publishedUtcLte,n.publishedUtcLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},listOptionsContracts(n={},s){return i.listOptionsContracts(n.underlyingTicker,n.ticker,n.contractType,n.expirationDate,n.asOf,n.strikePrice,n.expired,n.underlyingTickerGte,n.underlyingTickerGt,n.underlyingTickerLte,n.underlyingTickerLt,n.expirationDateGte,n.expirationDateGt,n.expirationDateLte,n.expirationDateLt,n.strikePriceGte,n.strikePriceGt,n.strikePriceLte,n.strikePriceLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},listStockSplits(n={},s){return i.listStockSplits(n.ticker,n.executionDate,n.reverseSplit,n.tickerGte,n.tickerGt,n.tickerLte,n.tickerLt,n.executionDateGte,n.executionDateGt,n.executionDateLte,n.executionDateLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))},listTickerTypes(n={},s){return i.listTickerTypes(n.assetClass,n.locale,s).then(o=>o(t,e))},listTickers(n={},s){return i.listTickers(n.ticker,n.type,n.market,n.exchange,n.cusip,n.cik,n.date,n.search,n.active,n.tickerGte,n.tickerGt,n.tickerLte,n.tickerLt,n.order,n.limit,n.sort,s).then(o=>o(t,e))}}},Cn=class extends Gn{deprecatedGetCryptoSnapshotTickerBook(e,t){return U(this.configuration).deprecatedGetCryptoSnapshotTickerBook(e.ticker,t).then(i=>i(this.axios,this.basePath))}deprecatedGetHistoricCryptoTrades(e,t){return U(this.configuration).deprecatedGetHistoricCryptoTrades(e.from,e.to,e.date,e.offset,e.limit,t).then(i=>i(this.axios,this.basePath))}deprecatedGetHistoricForexQuotes(e,t){return U(this.configuration).deprecatedGetHistoricForexQuotes(e.from,e.to,e.date,e.offset,e.limit,t).then(i=>i(this.axios,this.basePath))}deprecatedGetHistoricStocksQuotes(e,t){return U(this.configuration).deprecatedGetHistoricStocksQuotes(e.ticker,e.date,e.timestamp,e.timestampLimit,e.reverse,e.limit,t).then(i=>i(this.axios,this.basePath))}deprecatedGetHistoricStocksTrades(e,t){return U(this.configuration).deprecatedGetHistoricStocksTrades(e.ticker,e.date,e.timestamp,e.timestampLimit,e.reverse,e.limit,t).then(i=>i(this.axios,this.basePath))}getBenzingaV1AnalystInsights(e={},t){return U(this.configuration).getBenzingaV1AnalystInsights(e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.lastUpdated,e.lastUpdatedGt,e.lastUpdatedGte,e.lastUpdatedLt,e.lastUpdatedLte,e.firm,e.firmAnyOf,e.firmGt,e.firmGte,e.firmLt,e.firmLte,e.ratingAction,e.ratingActionAnyOf,e.ratingActionGt,e.ratingActionGte,e.ratingActionLt,e.ratingActionLte,e.benzingaFirmId,e.benzingaFirmIdAnyOf,e.benzingaFirmIdGt,e.benzingaFirmIdGte,e.benzingaFirmIdLt,e.benzingaFirmIdLte,e.benzingaRatingId,e.benzingaRatingIdAnyOf,e.benzingaRatingIdGt,e.benzingaRatingIdGte,e.benzingaRatingIdLt,e.benzingaRatingIdLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getBenzingaV1Analysts(e={},t){return U(this.configuration).getBenzingaV1Analysts(e.benzingaId,e.benzingaIdAnyOf,e.benzingaIdGt,e.benzingaIdGte,e.benzingaIdLt,e.benzingaIdLte,e.benzingaFirmId,e.benzingaFirmIdAnyOf,e.benzingaFirmIdGt,e.benzingaFirmIdGte,e.benzingaFirmIdLt,e.benzingaFirmIdLte,e.firmName,e.firmNameAnyOf,e.firmNameGt,e.firmNameGte,e.firmNameLt,e.firmNameLte,e.fullName,e.fullNameAnyOf,e.fullNameGt,e.fullNameGte,e.fullNameLt,e.fullNameLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getBenzingaV1ConsensusRatings(e,t){return U(this.configuration).getBenzingaV1ConsensusRatings(e.ticker,e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.limit,t).then(i=>i(this.axios,this.basePath))}getBenzingaV1Earnings(e={},t){return U(this.configuration).getBenzingaV1Earnings(e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.importance,e.importanceAnyOf,e.importanceGt,e.importanceGte,e.importanceLt,e.importanceLte,e.lastUpdated,e.lastUpdatedAnyOf,e.lastUpdatedGt,e.lastUpdatedGte,e.lastUpdatedLt,e.lastUpdatedLte,e.dateStatus,e.dateStatusAnyOf,e.dateStatusGt,e.dateStatusGte,e.dateStatusLt,e.dateStatusLte,e.epsSurprisePercent,e.epsSurprisePercentAnyOf,e.epsSurprisePercentGt,e.epsSurprisePercentGte,e.epsSurprisePercentLt,e.epsSurprisePercentLte,e.revenueSurprisePercent,e.revenueSurprisePercentAnyOf,e.revenueSurprisePercentGt,e.revenueSurprisePercentGte,e.revenueSurprisePercentLt,e.revenueSurprisePercentLte,e.fiscalYear,e.fiscalYearAnyOf,e.fiscalYearGt,e.fiscalYearGte,e.fiscalYearLt,e.fiscalYearLte,e.fiscalPeriod,e.fiscalPeriodAnyOf,e.fiscalPeriodGt,e.fiscalPeriodGte,e.fiscalPeriodLt,e.fiscalPeriodLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getBenzingaV1Firms(e={},t){return U(this.configuration).getBenzingaV1Firms(e.benzingaId,e.benzingaIdAnyOf,e.benzingaIdGt,e.benzingaIdGte,e.benzingaIdLt,e.benzingaIdLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getBenzingaV1Guidance(e={},t){return U(this.configuration).getBenzingaV1Guidance(e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.positioning,e.positioningAnyOf,e.positioningGt,e.positioningGte,e.positioningLt,e.positioningLte,e.importance,e.importanceAnyOf,e.importanceGt,e.importanceGte,e.importanceLt,e.importanceLte,e.lastUpdated,e.lastUpdatedAnyOf,e.lastUpdatedGt,e.lastUpdatedGte,e.lastUpdatedLt,e.lastUpdatedLte,e.fiscalYear,e.fiscalYearAnyOf,e.fiscalYearGt,e.fiscalYearGte,e.fiscalYearLt,e.fiscalYearLte,e.fiscalPeriod,e.fiscalPeriodAnyOf,e.fiscalPeriodGt,e.fiscalPeriodGte,e.fiscalPeriodLt,e.fiscalPeriodLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getBenzingaV1Ratings(e={},t){return U(this.configuration).getBenzingaV1Ratings(e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.importance,e.importanceGt,e.importanceGte,e.importanceLt,e.importanceLte,e.lastUpdated,e.lastUpdatedGt,e.lastUpdatedGte,e.lastUpdatedLt,e.lastUpdatedLte,e.ratingAction,e.ratingActionAnyOf,e.ratingActionGt,e.ratingActionGte,e.ratingActionLt,e.ratingActionLte,e.priceTargetAction,e.priceTargetActionAnyOf,e.priceTargetActionGt,e.priceTargetActionGte,e.priceTargetActionLt,e.priceTargetActionLte,e.benzingaId,e.benzingaIdAnyOf,e.benzingaIdGt,e.benzingaIdGte,e.benzingaIdLt,e.benzingaIdLte,e.benzingaAnalystId,e.benzingaAnalystIdAnyOf,e.benzingaAnalystIdGt,e.benzingaAnalystIdGte,e.benzingaAnalystIdLt,e.benzingaAnalystIdLte,e.benzingaFirmId,e.benzingaFirmIdAnyOf,e.benzingaFirmIdGt,e.benzingaFirmIdGte,e.benzingaFirmIdLt,e.benzingaFirmIdLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getBenzingaV2News(e={},t){return U(this.configuration).getBenzingaV2News(e.published,e.publishedGt,e.publishedGte,e.publishedLt,e.publishedLte,e.channels,e.channelsAllOf,e.channelsAnyOf,e.tags,e.tagsAllOf,e.tagsAnyOf,e.author,e.authorAnyOf,e.authorGt,e.authorGte,e.authorLt,e.authorLte,e.stocks,e.stocksAllOf,e.stocksAnyOf,e.tickers,e.tickersAllOf,e.tickersAnyOf,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getCryptoAggregates(e,t){return U(this.configuration).getCryptoAggregates(e.cryptoTicker,e.multiplier,e.timespan,e.from,e.to,e.adjusted,e.sort,e.limit,t).then(i=>i(this.axios,this.basePath))}getCryptoEMA(e,t){return U(this.configuration).getCryptoEMA(e.cryptoTicker,e.timestamp,e.timespan,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getCryptoMACD(e,t){return U(this.configuration).getCryptoMACD(e.cryptoTicker,e.timestamp,e.timespan,e.shortWindow,e.longWindow,e.signalWindow,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getCryptoOpenClose(e,t){return U(this.configuration).getCryptoOpenClose(e.from,e.to,e.date,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getCryptoRSI(e,t){return U(this.configuration).getCryptoRSI(e.cryptoTicker,e.timestamp,e.timespan,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getCryptoSMA(e,t){return U(this.configuration).getCryptoSMA(e.cryptoTicker,e.timestamp,e.timespan,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getCryptoSnapshotDirection(e,t){return U(this.configuration).getCryptoSnapshotDirection(e.direction,t).then(i=>i(this.axios,this.basePath))}getCryptoSnapshotTicker(e,t){return U(this.configuration).getCryptoSnapshotTicker(e.ticker,t).then(i=>i(this.axios,this.basePath))}getCryptoSnapshotTickers(e={},t){return U(this.configuration).getCryptoSnapshotTickers(e.tickers,t).then(i=>i(this.axios,this.basePath))}getCryptoTrades(e,t){return U(this.configuration).getCryptoTrades(e.cryptoTicker,e.timestamp,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getCryptoV1Exchanges(e={},t){return U(this.configuration).getCryptoV1Exchanges(e.limit,t).then(i=>i(this.axios,this.basePath))}getCurrencyConversion(e,t){return U(this.configuration).getCurrencyConversion(e.from,e.to,e.amount,e.precision,t).then(i=>i(this.axios,this.basePath))}getEtfGlobalV1Analytics(e={},t){return U(this.configuration).getEtfGlobalV1Analytics(e.compositeTicker,e.compositeTickerAnyOf,e.compositeTickerGt,e.compositeTickerGte,e.compositeTickerLt,e.compositeTickerLte,e.processedDate,e.processedDateGt,e.processedDateGte,e.processedDateLt,e.processedDateLte,e.effectiveDate,e.effectiveDateGt,e.effectiveDateGte,e.effectiveDateLt,e.effectiveDateLte,e.riskTotalScore,e.riskTotalScoreGt,e.riskTotalScoreGte,e.riskTotalScoreLt,e.riskTotalScoreLte,e.rewardScore,e.rewardScoreGt,e.rewardScoreGte,e.rewardScoreLt,e.rewardScoreLte,e.quantTotalScore,e.quantTotalScoreGt,e.quantTotalScoreGte,e.quantTotalScoreLt,e.quantTotalScoreLte,e.quantGrade,e.quantGradeAnyOf,e.quantGradeGt,e.quantGradeGte,e.quantGradeLt,e.quantGradeLte,e.quantCompositeTechnical,e.quantCompositeTechnicalGt,e.quantCompositeTechnicalGte,e.quantCompositeTechnicalLt,e.quantCompositeTechnicalLte,e.quantCompositeSentiment,e.quantCompositeSentimentGt,e.quantCompositeSentimentGte,e.quantCompositeSentimentLt,e.quantCompositeSentimentLte,e.quantCompositeBehavioral,e.quantCompositeBehavioralGt,e.quantCompositeBehavioralGte,e.quantCompositeBehavioralLt,e.quantCompositeBehavioralLte,e.quantCompositeFundamental,e.quantCompositeFundamentalGt,e.quantCompositeFundamentalGte,e.quantCompositeFundamentalLt,e.quantCompositeFundamentalLte,e.quantCompositeGlobal,e.quantCompositeGlobalGt,e.quantCompositeGlobalGte,e.quantCompositeGlobalLt,e.quantCompositeGlobalLte,e.quantCompositeQuality,e.quantCompositeQualityGt,e.quantCompositeQualityGte,e.quantCompositeQualityLt,e.quantCompositeQualityLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getEtfGlobalV1Constituents(e={},t){return U(this.configuration).getEtfGlobalV1Constituents(e.compositeTicker,e.compositeTickerAnyOf,e.compositeTickerGt,e.compositeTickerGte,e.compositeTickerLt,e.compositeTickerLte,e.constituentTicker,e.constituentTickerAnyOf,e.constituentTickerGt,e.constituentTickerGte,e.constituentTickerLt,e.constituentTickerLte,e.effectiveDate,e.effectiveDateGt,e.effectiveDateGte,e.effectiveDateLt,e.effectiveDateLte,e.processedDate,e.processedDateGt,e.processedDateGte,e.processedDateLt,e.processedDateLte,e.usCode,e.usCodeAnyOf,e.usCodeGt,e.usCodeGte,e.usCodeLt,e.usCodeLte,e.isin,e.isinAnyOf,e.isinGt,e.isinGte,e.isinLt,e.isinLte,e.figi,e.figiAnyOf,e.figiGt,e.figiGte,e.figiLt,e.figiLte,e.sedol,e.sedolAnyOf,e.sedolGt,e.sedolGte,e.sedolLt,e.sedolLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getEtfGlobalV1FundFlows(e={},t){return U(this.configuration).getEtfGlobalV1FundFlows(e.processedDate,e.processedDateGt,e.processedDateGte,e.processedDateLt,e.processedDateLte,e.effectiveDate,e.effectiveDateGt,e.effectiveDateGte,e.effectiveDateLt,e.effectiveDateLte,e.compositeTicker,e.compositeTickerAnyOf,e.compositeTickerGt,e.compositeTickerGte,e.compositeTickerLt,e.compositeTickerLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getEtfGlobalV1Profiles(e={},t){return U(this.configuration).getEtfGlobalV1Profiles(e.processedDate,e.processedDateGt,e.processedDateGte,e.processedDateLt,e.processedDateLte,e.effectiveDate,e.effectiveDateGt,e.effectiveDateGte,e.effectiveDateLt,e.effectiveDateLte,e.compositeTicker,e.compositeTickerAnyOf,e.compositeTickerGt,e.compositeTickerGte,e.compositeTickerLt,e.compositeTickerLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getEtfGlobalV1Taxonomies(e={},t){return U(this.configuration).getEtfGlobalV1Taxonomies(e.processedDate,e.processedDateGt,e.processedDateGte,e.processedDateLt,e.processedDateLte,e.effectiveDate,e.effectiveDateGt,e.effectiveDateGte,e.effectiveDateLt,e.effectiveDateLte,e.compositeTicker,e.compositeTickerAnyOf,e.compositeTickerGt,e.compositeTickerGte,e.compositeTickerLt,e.compositeTickerLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getEvents(e,t){return U(this.configuration).getEvents(e.id,e.types,t).then(i=>i(this.axios,this.basePath))}getFedV1Inflation(e={},t){return U(this.configuration).getFedV1Inflation(e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getFedV1InflationExpectations(e={},t){return U(this.configuration).getFedV1InflationExpectations(e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getFedV1TreasuryYields(e={},t){return U(this.configuration).getFedV1TreasuryYields(e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getForexAggregates(e,t){return U(this.configuration).getForexAggregates(e.forexTicker,e.multiplier,e.timespan,e.from,e.to,e.adjusted,e.sort,e.limit,t).then(i=>i(this.axios,this.basePath))}getForexEMA(e,t){return U(this.configuration).getForexEMA(e.fxTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getForexMACD(e,t){return U(this.configuration).getForexMACD(e.fxTicker,e.timestamp,e.timespan,e.adjusted,e.shortWindow,e.longWindow,e.signalWindow,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getForexQuotes(e,t){return U(this.configuration).getForexQuotes(e.fxTicker,e.timestamp,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getForexRSI(e,t){return U(this.configuration).getForexRSI(e.fxTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getForexSMA(e,t){return U(this.configuration).getForexSMA(e.fxTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getForexSnapshotDirection(e,t){return U(this.configuration).getForexSnapshotDirection(e.direction,t).then(i=>i(this.axios,this.basePath))}getForexSnapshotTicker(e,t){return U(this.configuration).getForexSnapshotTicker(e.ticker,t).then(i=>i(this.axios,this.basePath))}getForexSnapshotTickers(e={},t){return U(this.configuration).getForexSnapshotTickers(e.tickers,t).then(i=>i(this.axios,this.basePath))}getForexV1Exchanges(e={},t){return U(this.configuration).getForexV1Exchanges(e.limit,t).then(i=>i(this.axios,this.basePath))}getFuturesAggregates(e,t){return U(this.configuration).getFuturesAggregates(e.ticker,e.resolution,e.windowStart,e.limit,e.windowStartGte,e.windowStartGt,e.windowStartLte,e.windowStartLt,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesContractDetails(e,t){return U(this.configuration).getFuturesContractDetails(e.ticker,e.asOf,t).then(i=>i(this.axios,this.basePath))}getFuturesContracts(e={},t){return U(this.configuration).getFuturesContracts(e.productCode,e.firstTradeDate,e.lastTradeDate,e.asOf,e.active,e.type,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesDailySchedules(e={},t){return U(this.configuration).getFuturesDailySchedules(e.sessionEndDate,e.tradingVenue,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesMarketStatuses(e={},t){return U(this.configuration).getFuturesMarketStatuses(e.productCodeAnyOf,e.productCode,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesProductDetails(e,t){return U(this.configuration).getFuturesProductDetails(e.productCode,e.type,e.asOf,t).then(i=>i(this.axios,this.basePath))}getFuturesProductSchedules(e,t){return U(this.configuration).getFuturesProductSchedules(e.productCode,e.sessionEndDate,e.limit,e.sessionEndDateGte,e.sessionEndDateGt,e.sessionEndDateLte,e.sessionEndDateLt,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesProducts(e={},t){return U(this.configuration).getFuturesProducts(e.name,e.asOf,e.tradingVenue,e.sector,e.subSector,e.assetClass,e.assetSubClass,e.type,e.limit,e.nameSearch,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesQuotes(e,t){return U(this.configuration).getFuturesQuotes(e.ticker,e.timestamp,e.sessionEndDate,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,e.sessionEndDateGte,e.sessionEndDateGt,e.sessionEndDateLte,e.sessionEndDateLt,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesTrades(e,t){return U(this.configuration).getFuturesTrades(e.ticker,e.timestamp,e.sessionEndDate,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,e.sessionEndDateGte,e.sessionEndDateGt,e.sessionEndDateLte,e.sessionEndDateLt,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesVXContractsNew(e={},t){return U(this.configuration).getFuturesVXContractsNew(e.date,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.productCode,e.productCodeAnyOf,e.productCodeGt,e.productCodeGte,e.productCodeLt,e.productCodeLte,e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.active,e.type,e.typeAnyOf,e.typeGt,e.typeGte,e.typeLt,e.typeLte,e.firstTradeDate,e.firstTradeDateGt,e.firstTradeDateGte,e.firstTradeDateLt,e.firstTradeDateLte,e.lastTradeDate,e.lastTradeDateGt,e.lastTradeDateGte,e.lastTradeDateLt,e.lastTradeDateLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesVXExchanges(e={},t){return U(this.configuration).getFuturesVXExchanges(e.limit,t).then(i=>i(this.axios,this.basePath))}getFuturesVXProductsNew(e={},t){return U(this.configuration).getFuturesVXProductsNew(e.name,e.nameAnyOf,e.nameGt,e.nameGte,e.nameLt,e.nameLte,e.productCode,e.productCodeAnyOf,e.productCodeGt,e.productCodeGte,e.productCodeLt,e.productCodeLte,e.date,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.sector,e.sectorAnyOf,e.sectorGt,e.sectorGte,e.sectorLt,e.sectorLte,e.subSector,e.subSectorAnyOf,e.subSectorGt,e.subSectorGte,e.subSectorLt,e.subSectorLte,e.assetClass,e.assetClassAnyOf,e.assetClassGt,e.assetClassGte,e.assetClassLt,e.assetClassLte,e.assetSubClass,e.assetSubClassAnyOf,e.assetSubClassGt,e.assetSubClassGte,e.assetSubClassLt,e.assetSubClassLte,e.type,e.typeAnyOf,e.typeGt,e.typeGte,e.typeLt,e.typeLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getFuturesVXSnapshot(e={},t){return U(this.configuration).getFuturesVXSnapshot(e.productCode,e.productCodeAnyOf,e.productCodeGt,e.productCodeGte,e.productCodeLt,e.productCodeLte,e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getGroupedCryptoAggregates(e,t){return U(this.configuration).getGroupedCryptoAggregates(e.date,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getGroupedForexAggregates(e,t){return U(this.configuration).getGroupedForexAggregates(e.date,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getGroupedStocksAggregates(e,t){return U(this.configuration).getGroupedStocksAggregates(e.date,e.adjusted,e.includeOtc,t).then(i=>i(this.axios,this.basePath))}getIndicesAggregates(e,t){return U(this.configuration).getIndicesAggregates(e.indicesTicker,e.multiplier,e.timespan,e.from,e.to,e.sort,e.limit,t).then(i=>i(this.axios,this.basePath))}getIndicesEMA(e,t){return U(this.configuration).getIndicesEMA(e.indicesTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getIndicesMACD(e,t){return U(this.configuration).getIndicesMACD(e.indicesTicker,e.timestamp,e.timespan,e.adjusted,e.shortWindow,e.longWindow,e.signalWindow,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getIndicesOpenClose(e,t){return U(this.configuration).getIndicesOpenClose(e.indicesTicker,e.date,t).then(i=>i(this.axios,this.basePath))}getIndicesRSI(e,t){return U(this.configuration).getIndicesRSI(e.indicesTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getIndicesSMA(e,t){return U(this.configuration).getIndicesSMA(e.indicesTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getIndicesSnapshot(e={},t){return U(this.configuration).getIndicesSnapshot(e.tickerAnyOf,e.ticker,e.tickerGte,e.tickerGt,e.tickerLte,e.tickerLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getLastCryptoTrade(e,t){return U(this.configuration).getLastCryptoTrade(e.from,e.to,t).then(i=>i(this.axios,this.basePath))}getLastCurrencyQuote(e,t){return U(this.configuration).getLastCurrencyQuote(e.from,e.to,t).then(i=>i(this.axios,this.basePath))}getLastOptionsTrade(e,t){return U(this.configuration).getLastOptionsTrade(e.optionsTicker,t).then(i=>i(this.axios,this.basePath))}getLastStocksQuote(e,t){return U(this.configuration).getLastStocksQuote(e.stocksTicker,t).then(i=>i(this.axios,this.basePath))}getLastStocksTrade(e,t){return U(this.configuration).getLastStocksTrade(e.stocksTicker,t).then(i=>i(this.axios,this.basePath))}getMarketHolidays(e){return U(this.configuration).getMarketHolidays(e).then(t=>t(this.axios,this.basePath))}getMarketStatus(e){return U(this.configuration).getMarketStatus(e).then(t=>t(this.axios,this.basePath))}getOptionContract(e,t){return U(this.configuration).getOptionContract(e.underlyingAsset,e.optionContract,t).then(i=>i(this.axios,this.basePath))}getOptionsAggregates(e,t){return U(this.configuration).getOptionsAggregates(e.optionsTicker,e.multiplier,e.timespan,e.from,e.to,e.adjusted,e.sort,e.limit,t).then(i=>i(this.axios,this.basePath))}getOptionsChain(e,t){return U(this.configuration).getOptionsChain(e.underlyingAsset,e.strikePrice,e.expirationDate,e.contractType,e.strikePriceGte,e.strikePriceGt,e.strikePriceLte,e.strikePriceLt,e.expirationDateGte,e.expirationDateGt,e.expirationDateLte,e.expirationDateLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getOptionsContract(e,t){return U(this.configuration).getOptionsContract(e.optionsTicker,e.asOf,t).then(i=>i(this.axios,this.basePath))}getOptionsEMA(e,t){return U(this.configuration).getOptionsEMA(e.optionsTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getOptionsMACD(e,t){return U(this.configuration).getOptionsMACD(e.optionsTicker,e.timestamp,e.timespan,e.adjusted,e.shortWindow,e.longWindow,e.signalWindow,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getOptionsOpenClose(e,t){return U(this.configuration).getOptionsOpenClose(e.optionsTicker,e.date,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getOptionsQuotes(e,t){return U(this.configuration).getOptionsQuotes(e.optionsTicker,e.timestamp,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getOptionsRSI(e,t){return U(this.configuration).getOptionsRSI(e.optionsTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getOptionsSMA(e,t){return U(this.configuration).getOptionsSMA(e.optionsTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getOptionsTrades(e,t){return U(this.configuration).getOptionsTrades(e.optionsTicker,e.timestamp,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getOptionsV1Exchanges(e={},t){return U(this.configuration).getOptionsV1Exchanges(e.limit,t).then(i=>i(this.axios,this.basePath))}getPreviousCryptoAggregates(e,t){return U(this.configuration).getPreviousCryptoAggregates(e.cryptoTicker,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getPreviousForexAggregates(e,t){return U(this.configuration).getPreviousForexAggregates(e.forexTicker,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getPreviousIndicesAggregates(e,t){return U(this.configuration).getPreviousIndicesAggregates(e.indicesTicker,t).then(i=>i(this.axios,this.basePath))}getPreviousOptionsAggregates(e,t){return U(this.configuration).getPreviousOptionsAggregates(e.optionsTicker,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getPreviousStocksAggregates(e,t){return U(this.configuration).getPreviousStocksAggregates(e.stocksTicker,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getRelatedCompanies(e,t){return U(this.configuration).getRelatedCompanies(e.ticker,t).then(i=>i(this.axios,this.basePath))}getSnapshotSummary(e={},t){return U(this.configuration).getSnapshotSummary(e.tickerAnyOf,t).then(i=>i(this.axios,this.basePath))}getSnapshots(e={},t){return U(this.configuration).getSnapshots(e.ticker,e.type,e.tickerGte,e.tickerGt,e.tickerLte,e.tickerLt,e.tickerAnyOf,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksAggregates(e,t){return U(this.configuration).getStocksAggregates(e.stocksTicker,e.multiplier,e.timespan,e.from,e.to,e.adjusted,e.sort,e.limit,t).then(i=>i(this.axios,this.basePath))}getStocksEMA(e,t){return U(this.configuration).getStocksEMA(e.stockTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getStocksFinancialsV1BalanceSheets(e={},t){return U(this.configuration).getStocksFinancialsV1BalanceSheets(e.cik,e.cikAnyOf,e.cikGt,e.cikGte,e.cikLt,e.cikLte,e.tickers,e.tickersAllOf,e.tickersAnyOf,e.periodEnd,e.periodEndGt,e.periodEndGte,e.periodEndLt,e.periodEndLte,e.filingDate,e.filingDateGt,e.filingDateGte,e.filingDateLt,e.filingDateLte,e.fiscalYear,e.fiscalYearGt,e.fiscalYearGte,e.fiscalYearLt,e.fiscalYearLte,e.fiscalQuarter,e.fiscalQuarterGt,e.fiscalQuarterGte,e.fiscalQuarterLt,e.fiscalQuarterLte,e.timeframe,e.timeframeAnyOf,e.timeframeGt,e.timeframeGte,e.timeframeLt,e.timeframeLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksFinancialsV1CashFlowStatements(e={},t){return U(this.configuration).getStocksFinancialsV1CashFlowStatements(e.cik,e.cikAnyOf,e.cikGt,e.cikGte,e.cikLt,e.cikLte,e.periodEnd,e.periodEndGt,e.periodEndGte,e.periodEndLt,e.periodEndLte,e.filingDate,e.filingDateGt,e.filingDateGte,e.filingDateLt,e.filingDateLte,e.tickers,e.tickersAllOf,e.tickersAnyOf,e.fiscalYear,e.fiscalYearGt,e.fiscalYearGte,e.fiscalYearLt,e.fiscalYearLte,e.fiscalQuarter,e.fiscalQuarterGt,e.fiscalQuarterGte,e.fiscalQuarterLt,e.fiscalQuarterLte,e.timeframe,e.timeframeAnyOf,e.timeframeGt,e.timeframeGte,e.timeframeLt,e.timeframeLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksFinancialsV1IncomeStatements(e={},t){return U(this.configuration).getStocksFinancialsV1IncomeStatements(e.cik,e.cikAnyOf,e.cikGt,e.cikGte,e.cikLt,e.cikLte,e.tickers,e.tickersAllOf,e.tickersAnyOf,e.periodEnd,e.periodEndGt,e.periodEndGte,e.periodEndLt,e.periodEndLte,e.filingDate,e.filingDateGt,e.filingDateGte,e.filingDateLt,e.filingDateLte,e.fiscalYear,e.fiscalYearGt,e.fiscalYearGte,e.fiscalYearLt,e.fiscalYearLte,e.fiscalQuarter,e.fiscalQuarterGt,e.fiscalQuarterGte,e.fiscalQuarterLt,e.fiscalQuarterLte,e.timeframe,e.timeframeAnyOf,e.timeframeGt,e.timeframeGte,e.timeframeLt,e.timeframeLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksFinancialsV1Ratios(e={},t){return U(this.configuration).getStocksFinancialsV1Ratios(e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.cik,e.cikAnyOf,e.cikGt,e.cikGte,e.cikLt,e.cikLte,e.price,e.priceGt,e.priceGte,e.priceLt,e.priceLte,e.averageVolume,e.averageVolumeGt,e.averageVolumeGte,e.averageVolumeLt,e.averageVolumeLte,e.marketCap,e.marketCapGt,e.marketCapGte,e.marketCapLt,e.marketCapLte,e.earningsPerShare,e.earningsPerShareGt,e.earningsPerShareGte,e.earningsPerShareLt,e.earningsPerShareLte,e.priceToEarnings,e.priceToEarningsGt,e.priceToEarningsGte,e.priceToEarningsLt,e.priceToEarningsLte,e.priceToBook,e.priceToBookGt,e.priceToBookGte,e.priceToBookLt,e.priceToBookLte,e.priceToSales,e.priceToSalesGt,e.priceToSalesGte,e.priceToSalesLt,e.priceToSalesLte,e.priceToCashFlow,e.priceToCashFlowGt,e.priceToCashFlowGte,e.priceToCashFlowLt,e.priceToCashFlowLte,e.priceToFreeCashFlow,e.priceToFreeCashFlowGt,e.priceToFreeCashFlowGte,e.priceToFreeCashFlowLt,e.priceToFreeCashFlowLte,e.dividendYield,e.dividendYieldGt,e.dividendYieldGte,e.dividendYieldLt,e.dividendYieldLte,e.returnOnAssets,e.returnOnAssetsGt,e.returnOnAssetsGte,e.returnOnAssetsLt,e.returnOnAssetsLte,e.returnOnEquity,e.returnOnEquityGt,e.returnOnEquityGte,e.returnOnEquityLt,e.returnOnEquityLte,e.debtToEquity,e.debtToEquityGt,e.debtToEquityGte,e.debtToEquityLt,e.debtToEquityLte,e.current,e.currentGt,e.currentGte,e.currentLt,e.currentLte,e.quick,e.quickGt,e.quickGte,e.quickLt,e.quickLte,e.cash,e.cashGt,e.cashGte,e.cashLt,e.cashLte,e.evToSales,e.evToSalesGt,e.evToSalesGte,e.evToSalesLt,e.evToSalesLte,e.evToEbitda,e.evToEbitdaGt,e.evToEbitdaGte,e.evToEbitdaLt,e.evToEbitdaLte,e.enterpriseValue,e.enterpriseValueGt,e.enterpriseValueGte,e.enterpriseValueLt,e.enterpriseValueLte,e.freeCashFlow,e.freeCashFlowGt,e.freeCashFlowGte,e.freeCashFlowLt,e.freeCashFlowLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksMACD(e,t){return U(this.configuration).getStocksMACD(e.stockTicker,e.timestamp,e.timespan,e.adjusted,e.shortWindow,e.longWindow,e.signalWindow,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getStocksOpenClose(e,t){return U(this.configuration).getStocksOpenClose(e.stocksTicker,e.date,e.adjusted,t).then(i=>i(this.axios,this.basePath))}getStocksQuotes(e,t){return U(this.configuration).getStocksQuotes(e.stockTicker,e.timestamp,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksRSI(e,t){return U(this.configuration).getStocksRSI(e.stockTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getStocksSMA(e,t){return U(this.configuration).getStocksSMA(e.stockTicker,e.timestamp,e.timespan,e.adjusted,e.window,e.seriesType,e.expandUnderlying,e.order,e.limit,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,t).then(i=>i(this.axios,this.basePath))}getStocksSnapshotDirection(e,t){return U(this.configuration).getStocksSnapshotDirection(e.direction,e.includeOtc,t).then(i=>i(this.axios,this.basePath))}getStocksSnapshotTicker(e,t){return U(this.configuration).getStocksSnapshotTicker(e.stocksTicker,t).then(i=>i(this.axios,this.basePath))}getStocksSnapshotTickers(e={},t){return U(this.configuration).getStocksSnapshotTickers(e.tickers,e.includeOtc,t).then(i=>i(this.axios,this.basePath))}getStocksTrades(e,t){return U(this.configuration).getStocksTrades(e.stockTicker,e.timestamp,e.timestampGte,e.timestampGt,e.timestampLte,e.timestampLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksV1Dividends(e={},t){return U(this.configuration).getStocksV1Dividends(e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.exDividendDate,e.exDividendDateGt,e.exDividendDateGte,e.exDividendDateLt,e.exDividendDateLte,e.frequency,e.frequencyGt,e.frequencyGte,e.frequencyLt,e.frequencyLte,e.distributionType,e.distributionTypeAnyOf,e.distributionTypeGt,e.distributionTypeGte,e.distributionTypeLt,e.distributionTypeLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksV1Exchanges(e={},t){return U(this.configuration).getStocksV1Exchanges(e.limit,t).then(i=>i(this.axios,this.basePath))}getStocksV1ShortInterest(e={},t){return U(this.configuration).getStocksV1ShortInterest(e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.daysToCover,e.daysToCoverAnyOf,e.daysToCoverGt,e.daysToCoverGte,e.daysToCoverLt,e.daysToCoverLte,e.settlementDate,e.settlementDateAnyOf,e.settlementDateGt,e.settlementDateGte,e.settlementDateLt,e.settlementDateLte,e.avgDailyVolume,e.avgDailyVolumeAnyOf,e.avgDailyVolumeGt,e.avgDailyVolumeGte,e.avgDailyVolumeLt,e.avgDailyVolumeLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksV1ShortVolume(e={},t){return U(this.configuration).getStocksV1ShortVolume(e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.shortVolumeRatio,e.shortVolumeRatioAnyOf,e.shortVolumeRatioGt,e.shortVolumeRatioGte,e.shortVolumeRatioLt,e.shortVolumeRatioLte,e.totalVolume,e.totalVolumeAnyOf,e.totalVolumeGt,e.totalVolumeGte,e.totalVolumeLt,e.totalVolumeLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getStocksV1Splits(e={},t){return U(this.configuration).getStocksV1Splits(e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.executionDate,e.executionDateGt,e.executionDateGte,e.executionDateLt,e.executionDateLte,e.adjustmentType,e.adjustmentTypeAnyOf,e.adjustmentTypeGt,e.adjustmentTypeGte,e.adjustmentTypeLt,e.adjustmentTypeLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}getTicker(e,t){return U(this.configuration).getTicker(e.ticker,e.date,t).then(i=>i(this.axios,this.basePath))}getTmxV1CorporateEvents(e={},t){return U(this.configuration).getTmxV1CorporateEvents(e.date,e.dateAnyOf,e.dateGt,e.dateGte,e.dateLt,e.dateLte,e.type,e.typeAnyOf,e.typeGt,e.typeGte,e.typeLt,e.typeLte,e.status,e.statusAnyOf,e.statusGt,e.statusGte,e.statusLt,e.statusLte,e.ticker,e.tickerAnyOf,e.tickerGt,e.tickerGte,e.tickerLt,e.tickerLte,e.isin,e.isinAnyOf,e.isinGt,e.isinGte,e.isinLt,e.isinLte,e.tradingVenue,e.tradingVenueAnyOf,e.tradingVenueGt,e.tradingVenueGte,e.tradingVenueLt,e.tradingVenueLte,e.tmxCompanyId,e.tmxCompanyIdGt,e.tmxCompanyIdGte,e.tmxCompanyIdLt,e.tmxCompanyIdLte,e.tmxRecordId,e.tmxRecordIdAnyOf,e.tmxRecordIdGt,e.tmxRecordIdGte,e.tmxRecordIdLt,e.tmxRecordIdLte,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}listConditions(e={},t){return U(this.configuration).listConditions(e.assetClass,e.dataType,e.id,e.sip,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}listDividends(e={},t){return U(this.configuration).listDividends(e.ticker,e.exDividendDate,e.recordDate,e.declarationDate,e.payDate,e.frequency,e.cashAmount,e.dividendType,e.tickerGte,e.tickerGt,e.tickerLte,e.tickerLt,e.exDividendDateGte,e.exDividendDateGt,e.exDividendDateLte,e.exDividendDateLt,e.recordDateGte,e.recordDateGt,e.recordDateLte,e.recordDateLt,e.declarationDateGte,e.declarationDateGt,e.declarationDateLte,e.declarationDateLt,e.payDateGte,e.payDateGt,e.payDateLte,e.payDateLt,e.cashAmountGte,e.cashAmountGt,e.cashAmountLte,e.cashAmountLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}listExchanges(e={},t){return U(this.configuration).listExchanges(e.assetClass,e.locale,t).then(i=>i(this.axios,this.basePath))}listFinancials(e={},t){return U(this.configuration).listFinancials(e.ticker,e.cik,e.companyName,e.sic,e.filingDate,e.periodOfReportDate,e.timeframe,e.includeSources,e.companyNameSearch,e.filingDateGte,e.filingDateGt,e.filingDateLte,e.filingDateLt,e.periodOfReportDateGte,e.periodOfReportDateGt,e.periodOfReportDateLte,e.periodOfReportDateLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}listIPOs(e={},t){return U(this.configuration).listIPOs(e.ticker,e.usCode,e.isin,e.listingDate,e.ipoStatus,e.listingDateGte,e.listingDateGt,e.listingDateLte,e.listingDateLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}listNews(e={},t){return U(this.configuration).listNews(e.ticker,e.publishedUtc,e.tickerGte,e.tickerGt,e.tickerLte,e.tickerLt,e.publishedUtcGte,e.publishedUtcGt,e.publishedUtcLte,e.publishedUtcLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}listOptionsContracts(e={},t){return U(this.configuration).listOptionsContracts(e.underlyingTicker,e.ticker,e.contractType,e.expirationDate,e.asOf,e.strikePrice,e.expired,e.underlyingTickerGte,e.underlyingTickerGt,e.underlyingTickerLte,e.underlyingTickerLt,e.expirationDateGte,e.expirationDateGt,e.expirationDateLte,e.expirationDateLt,e.strikePriceGte,e.strikePriceGt,e.strikePriceLte,e.strikePriceLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}listStockSplits(e={},t){return U(this.configuration).listStockSplits(e.ticker,e.executionDate,e.reverseSplit,e.tickerGte,e.tickerGt,e.tickerLte,e.tickerLt,e.executionDateGte,e.executionDateGt,e.executionDateLte,e.executionDateLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}listTickerTypes(e={},t){return U(this.configuration).listTickerTypes(e.assetClass,e.locale,t).then(i=>i(this.axios,this.basePath))}listTickers(e={},t){return U(this.configuration).listTickers(e.ticker,e.type,e.market,e.exchange,e.cusip,e.cik,e.date,e.search,e.active,e.tickerGte,e.tickerGt,e.tickerLte,e.tickerLt,e.order,e.limit,e.sort,t).then(i=>i(this.axios,this.basePath))}},si=(d=>(d.Second="second",d.Minute="minute",d.Hour="hour",d.Day="day",d.Week="week",d.Month="month",d.Quarter="quarter",d.Year="year",d))(si||{}),oi=(t=>(t.Asc="asc",t.Desc="desc",t))(oi||{}),ri=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(ri||{}),ai=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ai||{}),di=(t=>(t.Asc="asc",t.Desc="desc",t))(di||{}),li=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(li||{}),gi=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(gi||{}),ci=(t=>(t.Asc="asc",t.Desc="desc",t))(ci||{}),pi=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(pi||{}),ui=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ui||{}),fi=(t=>(t.Asc="asc",t.Desc="desc",t))(fi||{}),yi=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(yi||{}),bi=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(bi||{}),mi=(t=>(t.Asc="asc",t.Desc="desc",t))(mi||{}),hi=(t=>(t.Gainers="gainers",t.Losers="losers",t))(hi||{}),Ri=(t=>(t.Asc="asc",t.Desc="desc",t))(Ri||{}),xi=(e=>(e.Timestamp="timestamp",e))(xi||{}),Ai=(s=>(s[s.NUMBER_0=0]="NUMBER_0",s[s.NUMBER_1=1]="NUMBER_1",s[s.NUMBER_2=2]="NUMBER_2",s[s.NUMBER_3=3]="NUMBER_3",s[s.NUMBER_4=4]="NUMBER_4",s))(Ai||{}),_i=(d=>(d.Second="second",d.Minute="minute",d.Hour="hour",d.Day="day",d.Week="week",d.Month="month",d.Quarter="quarter",d.Year="year",d))(_i||{}),ki=(t=>(t.Asc="asc",t.Desc="desc",t))(ki||{}),Gi=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(Gi||{}),Oi=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Oi||{}),Ci=(t=>(t.Asc="asc",t.Desc="desc",t))(Ci||{}),Si=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(Si||{}),Vi=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Vi||{}),wi=(t=>(t.Asc="asc",t.Desc="desc",t))(wi||{}),vi=(t=>(t.Asc="asc",t.Desc="desc",t))(vi||{}),Ii=(e=>(e.Timestamp="timestamp",e))(Ii||{}),Di=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(Di||{}),Li=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Li||{}),Ti=(t=>(t.Asc="asc",t.Desc="desc",t))(Ti||{}),Fi=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(Fi||{}),Ui=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Ui||{}),Bi=(t=>(t.Asc="asc",t.Desc="desc",t))(Bi||{}),Ei=(t=>(t.Gainers="gainers",t.Losers="losers",t))(Ei||{}),Qi=(t=>(t.WindowStartAsc="window_start.asc",t.WindowStartDesc="window_start.desc",t))(Qi||{}),zi=(i=>(i.All="all",i.True="true",i.False="false",i))(zi||{}),Mi=(i=>(i.All="all",i.Single="single",i.Combo="combo",i))(Mi||{}),Hi=(o=>(o.ProductCodeAsc="product_code.asc",o.ProductCodeDesc="product_code.desc",o.FirstTradeDateAsc="first_trade_date.asc",o.FirstTradeDateDesc="first_trade_date.desc",o.LastTradeDateAsc="last_trade_date.asc",o.LastTradeDateDesc="last_trade_date.desc",o))(Hi||{}),ji=(t=>(t.TradingVenueAsc="trading_venue.asc",t.TradingVenueDesc="trading_venue.desc",t))(ji||{}),Ni=(t=>(t.ProductCodeAsc="product_code.asc",t.ProductCodeDesc="product_code.desc",t))(Ni||{}),Ki=(t=>(t.Single="single",t.Combo="combo",t))(Ki||{}),$i=(t=>(t.SessionEndDateAsc="session_end_date.asc",t.SessionEndDateDesc="session_end_date.desc",t))($i||{}),Yi=(N=>(N.Asia="asia",N.Base="base",N.Biofuels="biofuels",N.Coal="coal",N.CrossRates="cross_rates",N.CrudeOil="crude_oil",N.CustomIndex="custom_index",N.Dairy="dairy",N.DjUbsCi="dj_ubs_ci",N.Electricity="electricity",N.Emissions="emissions",N.Europe="europe",N.Fertilizer="fertilizer",N.Forestry="forestry",N.GrainsAndOilseeds="grains_and_oilseeds",N.IntlIndex="intl_index",N.LiqNatGasLng="liq_nat_gas_lng",N.Livestock="livestock",N.LongTermGov="long_term_gov",N.LongTermNonGov="long_term_non_gov",N.Majors="majors",N.Minors="minors",N.NatGas="nat_gas",N.NatGasLiqPetro="nat_gas_liq_petro",N.Precious="precious",N.RefinedProducts="refined_products",N.SAndPGsci="s_and_p_gsci",N.SelSectorIndex="sel_sector_index",N.ShortTermGov="short_term_gov",N.ShortTermNonGov="short_term_non_gov",N.Softs="softs",N.Us="us",N.UsIndex="us_index",N.WetBulk="wet_bulk",N))(Yi||{}),Xi=(x=>(x.Asian="asian",x.Canadian="canadian",x.Cat="cat",x.CoolingDegreeDays="cooling_degree_days",x.Ercot="ercot",x.European="european",x.Gulf="gulf",x.HeatingDegreeDays="heating_degree_days",x.IsoNe="iso_ne",x.LargeCapIndex="large_cap_index",x.MidCapIndex="mid_cap_index",x.Miso="miso",x.NorthAmerican="north_american",x.Nyiso="nyiso",x.Pjm="pjm",x.SmallCapIndex="small_cap_index",x.West="west",x.WesternPower="western_power",x))(Xi||{}),Wi=(i=>(i.AltInvestment="alt_investment",i.Commodity="commodity",i.Financials="financials",i))(Wi||{}),Ji=(g=>(g.Agricultural="agricultural",g.CommodityIndex="commodity_index",g.Energy="energy",g.Equity="equity",g.ForeignExchange="foreign_exchange",g.Freight="freight",g.Housing="housing",g.InterestRate="interest_rate",g.Metals="metals",g.Weather="weather",g))(Ji||{}),Zi=(i=>(i.All="all",i.Single="single",i.Combo="combo",i))(Zi||{}),qi=(m=>(m.NameAsc="name.asc",m.NameDesc="name.desc",m.TradingVenueAsc="trading_venue.asc",m.TradingVenueDesc="trading_venue.desc",m.SectorAsc="sector.asc",m.SectorDesc="sector.desc",m.SubSectorAsc="sub_sector.asc",m.SubSectorDesc="sub_sector.desc",m.AssetClassAsc="asset_class.asc",m.AssetClassDesc="asset_class.desc",m.AssetSubClassAsc="asset_sub_class.asc",m.AssetSubClassDesc="asset_sub_class.desc",m.TypeAsc="type.asc",m.TypeDesc="type.desc",m))(qi||{}),Pi=(t=>(t.TimestampAsc="timestamp.asc",t.TimestampDesc="timestamp.desc",t))(Pi||{}),es=(t=>(t.TimestampAsc="timestamp.asc",t.TimestampDesc="timestamp.desc",t))(es||{}),ns=(d=>(d.Second="second",d.Minute="minute",d.Hour="hour",d.Day="day",d.Week="week",d.Month="month",d.Quarter="quarter",d.Year="year",d))(ns||{}),ts=(t=>(t.Asc="asc",t.Desc="desc",t))(ts||{}),is=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(is||{}),ss=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ss||{}),os=(t=>(t.Asc="asc",t.Desc="desc",t))(os||{}),rs=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(rs||{}),as=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(as||{}),ds=(t=>(t.Asc="asc",t.Desc="desc",t))(ds||{}),ls=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(ls||{}),gs=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(gs||{}),cs=(t=>(t.Asc="asc",t.Desc="desc",t))(cs||{}),ps=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(ps||{}),us=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(us||{}),fs=(t=>(t.Asc="asc",t.Desc="desc",t))(fs||{}),ys=(t=>(t.Asc="asc",t.Desc="desc",t))(ys||{}),bs=(e=>(e.Ticker="ticker",e))(bs||{}),ms=(d=>(d.Second="second",d.Minute="minute",d.Hour="hour",d.Day="day",d.Week="week",d.Month="month",d.Quarter="quarter",d.Year="year",d))(ms||{}),hs=(t=>(t.Asc="asc",t.Desc="desc",t))(hs||{}),Rs=(t=>(t.Call="call",t.Put="put",t))(Rs||{}),xs=(t=>(t.Asc="asc",t.Desc="desc",t))(xs||{}),As=(i=>(i.Ticker="ticker",i.ExpirationDate="expiration_date",i.StrikePrice="strike_price",i))(As||{}),_s=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(_s||{}),ks=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(ks||{}),Gs=(t=>(t.Asc="asc",t.Desc="desc",t))(Gs||{}),Os=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(Os||{}),Cs=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Cs||{}),Ss=(t=>(t.Asc="asc",t.Desc="desc",t))(Ss||{}),Vs=(t=>(t.Asc="asc",t.Desc="desc",t))(Vs||{}),ws=(e=>(e.Timestamp="timestamp",e))(ws||{}),vs=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(vs||{}),Is=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Is||{}),Ds=(t=>(t.Asc="asc",t.Desc="desc",t))(Ds||{}),Ls=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(Ls||{}),Ts=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Ts||{}),Fs=(t=>(t.Asc="asc",t.Desc="desc",t))(Fs||{}),Us=(t=>(t.Asc="asc",t.Desc="desc",t))(Us||{}),Bs=(e=>(e.Timestamp="timestamp",e))(Bs||{}),Es=(s=>(s.Stocks="stocks",s.Options="options",s.Crypto="crypto",s.Fx="fx",s.Indices="indices",s))(Es||{}),Qs=(t=>(t.Asc="asc",t.Desc="desc",t))(Qs||{}),zs=(e=>(e.Ticker="ticker",e))(zs||{}),Ms=(d=>(d.Second="second",d.Minute="minute",d.Hour="hour",d.Day="day",d.Week="week",d.Month="month",d.Quarter="quarter",d.Year="year",d))(Ms||{}),Hs=(t=>(t.Asc="asc",t.Desc="desc",t))(Hs||{}),js=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(js||{}),Ns=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Ns||{}),Ks=(t=>(t.Asc="asc",t.Desc="desc",t))(Ks||{}),$s=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))($s||{}),Ys=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(Ys||{}),Xs=(t=>(t.Asc="asc",t.Desc="desc",t))(Xs||{}),Ws=(t=>(t.Asc="asc",t.Desc="desc",t))(Ws||{}),Js=(e=>(e.Timestamp="timestamp",e))(Js||{}),Zs=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(Zs||{}),qs=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(qs||{}),Ps=(t=>(t.Asc="asc",t.Desc="desc",t))(Ps||{}),eo=(r=>(r.Minute="minute",r.Hour="hour",r.Day="day",r.Week="week",r.Month="month",r.Quarter="quarter",r.Year="year",r))(eo||{}),no=(n=>(n.Open="open",n.High="high",n.Low="low",n.Close="close",n))(no||{}),to=(t=>(t.Asc="asc",t.Desc="desc",t))(to||{}),io=(t=>(t.Gainers="gainers",t.Losers="losers",t))(io||{}),so=(t=>(t.Asc="asc",t.Desc="desc",t))(so||{}),oo=(e=>(e.Timestamp="timestamp",e))(oo||{}),ro=(n=>(n.Stocks="stocks",n.Options="options",n.Crypto="crypto",n.Fx="fx",n))(ro||{}),ao=(i=>(i.Trade="trade",i.Bbo="bbo",i.Nbbo="nbbo",i))(ao||{}),lo=(i=>(i.Cta="CTA",i.Utp="UTP",i.Opra="OPRA",i))(lo||{}),go=(t=>(t.Asc="asc",t.Desc="desc",t))(go||{}),co=(o=>(o.AssetClass="asset_class",o.Id="id",o.Type="type",o.Name="name",o.DataTypes="data_types",o.Legacy="legacy",o))(co||{}),po=(r=>(r[r.NUMBER_0=0]="NUMBER_0",r[r.NUMBER_1=1]="NUMBER_1",r[r.NUMBER_2=2]="NUMBER_2",r[r.NUMBER_4=4]="NUMBER_4",r[r.NUMBER_12=12]="NUMBER_12",r[r.NUMBER_24=24]="NUMBER_24",r[r.NUMBER_52=52]="NUMBER_52",r))(po||{}),uo=(n=>(n.Cd="CD",n.Sc="SC",n.Lt="LT",n.St="ST",n))(uo||{}),fo=(t=>(t.Asc="asc",t.Desc="desc",t))(fo||{}),yo=(o=>(o.ExDividendDate="ex_dividend_date",o.PayDate="pay_date",o.DeclarationDate="declaration_date",o.RecordDate="record_date",o.CashAmount="cash_amount",o.Ticker="ticker",o))(yo||{}),bo=(s=>(s.Stocks="stocks",s.Options="options",s.Crypto="crypto",s.Fx="fx",s.Futures="futures",s))(bo||{}),mo=(t=>(t.Us="us",t.Global="global",t))(mo||{}),ho=(i=>(i.Annual="annual",i.Quarterly="quarterly",i.Ttm="ttm",i))(ho||{}),Ro=(t=>(t.Asc="asc",t.Desc="desc",t))(Ro||{}),xo=(t=>(t.FilingDate="filing_date",t.PeriodOfReportDate="period_of_report_date",t))(xo||{}),Ao=(r=>(r.DirectListingProcess="direct_listing_process",r.History="history",r.New="new",r.Pending="pending",r.Postponed="postponed",r.Rumor="rumor",r.Withdrawn="withdrawn",r))(Ao||{}),_o=(t=>(t.Asc="asc",t.Desc="desc",t))(_o||{}),ko=(c=>(c.ListingDate="listing_date",c.Ticker="ticker",c.LastUpdated="last_updated",c.SecurityType="security_type",c.IssuerName="issuer_name",c.CurrencyCode="currency_code",c.Isin="isin",c.UsCode="us_code",c.FinalIssuePrice="final_issue_price",c.MinSharesOffered="min_shares_offered",c.MaxSharesOffered="max_shares_offered",c.LowestOfferPrice="lowest_offer_price",c.HighestOfferPrice="highest_offer_price",c.TotalOfferSize="total_offer_size",c.SharesOutstanding="shares_outstanding",c.PrimaryExchange="primary_exchange",c.LotSize="lot_size",c.SecurityDescription="security_description",c.IpoStatus="ipo_status",c.AnnouncedDate="announced_date",c))(ko||{}),Go=(t=>(t.Asc="asc",t.Desc="desc",t))(Go||{}),Oo=(e=>(e.PublishedUtc="published_utc",e))(Oo||{}),Co=(t=>(t.Call="call",t.Put="put",t))(Co||{}),So=(t=>(t.Asc="asc",t.Desc="desc",t))(So||{}),Vo=(n=>(n.Ticker="ticker",n.UnderlyingTicker="underlying_ticker",n.ExpirationDate="expiration_date",n.StrikePrice="strike_price",n))(Vo||{}),wo=(t=>(t.Asc="asc",t.Desc="desc",t))(wo||{}),vo=(t=>(t.ExecutionDate="execution_date",t.Ticker="ticker",t))(vo||{}),Io=(s=>(s.Stocks="stocks",s.Options="options",s.Crypto="crypto",s.Fx="fx",s.Indices="indices",s))(Io||{}),Do=(t=>(t.Us="us",t.Global="global",t))(Do||{}),Lo=(k=>(k.Cs="CS",k.Adrc="ADRC",k.Adrp="ADRP",k.Adrr="ADRR",k.Unit="UNIT",k.Right="RIGHT",k.Pfd="PFD",k.Fund="FUND",k.Sp="SP",k.Warrant="WARRANT",k.Index="INDEX",k.Etf="ETF",k.Etn="ETN",k.Os="OS",k.Gdr="GDR",k.Other="OTHER",k.Nyrs="NYRS",k.Agen="AGEN",k.Eqlk="EQLK",k.Bond="BOND",k.Adrw="ADRW",k.Basket="BASKET",k.Lt="LT",k))(Lo||{}),To=(s=>(s.Stocks="stocks",s.Crypto="crypto",s.Fx="fx",s.Otc="otc",s.Indices="indices",s))(To||{}),Fo=(t=>(t.Asc="asc",t.Desc="desc",t))(Fo||{}),Uo=(u=>(u.Ticker="ticker",u.Name="name",u.Market="market",u.Locale="locale",u.PrimaryExchange="primary_exchange",u.Type="type",u.CurrencySymbol="currency_symbol",u.CurrencyName="currency_name",u.BaseCurrencySymbol="base_currency_symbol",u.BaseCurrencyName="base_currency_name",u.Cik="cik",u.CompositeFigi="composite_figi",u.ShareClassFigi="share_class_figi",u.LastUpdatedUtc="last_updated_utc",u.DelistedUtc="delisted_utc",u))(Uo||{});var Sn=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions={...e.baseOptions,headers:{...e.baseOptions?.headers}},this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(t.test(e)||e.toLowerCase()==="application/json-patch+json")}};import Bo from"websocket";var ke=(a,e)=>{if(!e)throw new Error("api key not provided.");let t=new Bo.w3cwebsocket(a);return t.onopen=()=>{t.send(JSON.stringify({action:"auth",params:e}))},t};var In=(a,e="wss://socket.massive.com")=>ke(`${e}/crypto`,a);var Dn=(a,e="wss://socket.massive.com")=>ke(`${e}/forex`,a);var Ln=(a,e="wss://socket.massive.com")=>ke(`${e}/indices`,a);var Tn=(a,e="wss://socket.massive.com")=>ke(`${e}/options`,a);var Fn=(a,e="wss://socket.massive.com")=>ke(`${e}/stocks`,a);var Un=(a,e="wss://socket.massive.com",t)=>ke(`${e}/futures${t?`/${t}`:""}`,a);var Eo=(a,e,t)=>({crypto:()=>In(a,e),forex:()=>Dn(a,e),indices:()=>Ln(a,e),options:()=>Tn(a,e),stocks:()=>Fn(a,e),futures:()=>Un(a,e,t)}),Bn=Eo;import Qo from"axios";var zo=(a,e,t)=>{let i=new Sn({apiKey:a}),n="https://api.massive.com",s=Qo.create();return s.interceptors.response.use(async o=>{if(t?.pagination&&o?.data?.next_url){let r=await s.get(`${o.data.next_url}&apiKey=${a}`),{results:d,count:l}=r;return{...o.data,results:[...d,...o.data?.results],...o.data?.count&&{count:o.data.count+l}}}return o?.data}),new Cn(i,e||n,s)},Mo=(a,e,t,i)=>({rest:zo(a,e,i),websockets:Bn(a,t)}),Er=Mo;export{Sn as Configuration,Cn as DefaultApi,ii as DefaultApiAxiosParamCreator,nr as DefaultApiFactory,U as DefaultApiFp,zn as FinancialsPeriodEnum,Mn as GetBenzingaV1AnalystInsights200ResponseStatusEnum,Hn as GetBenzingaV1AnalystInsights400ResponseStatusEnum,jn as GetBenzingaV1Analysts200ResponseStatusEnum,Nn as GetBenzingaV1ConsensusRatings200ResponseStatusEnum,Kn as GetBenzingaV1Earnings200ResponseStatusEnum,$n as GetBenzingaV1Firms200ResponseStatusEnum,Yn as GetBenzingaV1Guidance200ResponseStatusEnum,Xn as GetBenzingaV1Ratings200ResponseStatusEnum,Wn as GetBenzingaV2News200ResponseStatusEnum,oi as GetCryptoAggregatesSortEnum,si as GetCryptoAggregatesTimespanEnum,di as GetCryptoEMAOrderEnum,ai as GetCryptoEMASeriesTypeEnum,ri as GetCryptoEMATimespanEnum,ci as GetCryptoMACDOrderEnum,gi as GetCryptoMACDSeriesTypeEnum,li as GetCryptoMACDTimespanEnum,fi as GetCryptoRSIOrderEnum,ui as GetCryptoRSISeriesTypeEnum,pi as GetCryptoRSITimespanEnum,mi as GetCryptoSMAOrderEnum,bi as GetCryptoSMASeriesTypeEnum,yi as GetCryptoSMATimespanEnum,hi as GetCryptoSnapshotDirectionDirectionEnum,Ri as GetCryptoTradesOrderEnum,xi as GetCryptoTradesSortEnum,Jn as GetCryptoV1Exchanges200ResponseStatusEnum,Ai as GetCurrencyConversionPrecisionEnum,Zn as GetEtfGlobalV1Analytics200ResponseStatusEnum,qn as GetEtfGlobalV1Constituents200ResponseStatusEnum,Pn as GetEtfGlobalV1FundFlows200ResponseStatusEnum,et as GetEtfGlobalV1Profiles200ResponseStatusEnum,nt as GetEtfGlobalV1Taxonomies200ResponseStatusEnum,tt as GetFedV1Inflation200ResponseStatusEnum,it as GetFedV1InflationExpectations200ResponseStatusEnum,st as GetFedV1TreasuryYields200ResponseStatusEnum,ki as GetForexAggregatesSortEnum,_i as GetForexAggregatesTimespanEnum,Ci as GetForexEMAOrderEnum,Oi as GetForexEMASeriesTypeEnum,Gi as GetForexEMATimespanEnum,wi as GetForexMACDOrderEnum,Vi as GetForexMACDSeriesTypeEnum,Si as GetForexMACDTimespanEnum,vi as GetForexQuotesOrderEnum,Ii as GetForexQuotesSortEnum,Ti as GetForexRSIOrderEnum,Li as GetForexRSISeriesTypeEnum,Di as GetForexRSITimespanEnum,Bi as GetForexSMAOrderEnum,Ui as GetForexSMASeriesTypeEnum,Fi as GetForexSMATimespanEnum,Ei as GetForexSnapshotDirectionDirectionEnum,ot as GetForexV1Exchanges200ResponseStatusEnum,Qi as GetFuturesAggregatesSortEnum,zi as GetFuturesContractsActiveEnum,Hi as GetFuturesContractsSortEnum,Mi as GetFuturesContractsTypeEnum,ji as GetFuturesDailySchedulesSortEnum,rt as GetFuturesMarketStatuses200ResponseResultsInnerMarketStatusEnum,Ni as GetFuturesMarketStatusesSortEnum,Ki as GetFuturesProductDetailsTypeEnum,at as GetFuturesProductSchedules200ResponseResultsInnerScheduleInnerEventEnum,$i as GetFuturesProductSchedulesSortEnum,dt as GetFuturesProducts200ResponseResultsInnerClearingChannelEnum,Wi as GetFuturesProductsAssetClassEnum,Ji as GetFuturesProductsAssetSubClassEnum,Yi as GetFuturesProductsSectorEnum,qi as GetFuturesProductsSortEnum,Xi as GetFuturesProductsSubSectorEnum,Zi as GetFuturesProductsTypeEnum,Pi as GetFuturesQuotesSortEnum,es as GetFuturesTradesSortEnum,lt as GetFuturesVXContractsNew200ResponseStatusEnum,gt as GetFuturesVXExchanges200ResponseStatusEnum,ct as GetFuturesVXProductsNew200ResponseStatusEnum,pt as GetFuturesVXSnapshot200ResponseStatusEnum,ts as GetIndicesAggregatesSortEnum,ns as GetIndicesAggregatesTimespanEnum,os as GetIndicesEMAOrderEnum,ss as GetIndicesEMASeriesTypeEnum,is as GetIndicesEMATimespanEnum,ds as GetIndicesMACDOrderEnum,as as GetIndicesMACDSeriesTypeEnum,rs as GetIndicesMACDTimespanEnum,cs as GetIndicesRSIOrderEnum,gs as GetIndicesRSISeriesTypeEnum,ls as GetIndicesRSITimespanEnum,fs as GetIndicesSMAOrderEnum,us as GetIndicesSMASeriesTypeEnum,ps as GetIndicesSMATimespanEnum,ut as GetIndicesSnapshot200ResponseResultsInnerTimeframeEnum,ft as GetIndicesSnapshot200ResponseResultsInnerTypeEnum,ys as GetIndicesSnapshotOrderEnum,bs as GetIndicesSnapshotSortEnum,hs as GetOptionsAggregatesSortEnum,ms as GetOptionsAggregatesTimespanEnum,yt as GetOptionsChain200ResponseResultsInnerDetailsContractTypeEnum,bt as GetOptionsChain200ResponseResultsInnerDetailsExerciseStyleEnum,mt as GetOptionsChain200ResponseResultsInnerLastQuoteTimeframeEnum,ht as GetOptionsChain200ResponseResultsInnerLastTradeTimeframeEnum,Rs as GetOptionsChainContractTypeEnum,xs as GetOptionsChainOrderEnum,As as GetOptionsChainSortEnum,Gs as GetOptionsEMAOrderEnum,ks as GetOptionsEMASeriesTypeEnum,_s as GetOptionsEMATimespanEnum,Ss as GetOptionsMACDOrderEnum,Cs as GetOptionsMACDSeriesTypeEnum,Os as GetOptionsMACDTimespanEnum,Vs as GetOptionsQuotesOrderEnum,ws as GetOptionsQuotesSortEnum,Ds as GetOptionsRSIOrderEnum,Is as GetOptionsRSISeriesTypeEnum,vs as GetOptionsRSITimespanEnum,Fs as GetOptionsSMAOrderEnum,Ts as GetOptionsSMASeriesTypeEnum,Ls as GetOptionsSMATimespanEnum,Us as GetOptionsTradesOrderEnum,Bs as GetOptionsTradesSortEnum,Rt as GetOptionsV1Exchanges200ResponseStatusEnum,At as GetSnapshotSummary200ResponseResultsInnerOptionsContractTypeEnum,_t as GetSnapshotSummary200ResponseResultsInnerOptionsExerciseStyleEnum,xt as GetSnapshotSummary200ResponseResultsInnerTypeEnum,Ot as GetSnapshots200ResponseResultsInnerDetailsContractTypeEnum,Ct as GetSnapshots200ResponseResultsInnerDetailsExerciseStyleEnum,St as GetSnapshots200ResponseResultsInnerLastQuoteTimeframeEnum,Vt as GetSnapshots200ResponseResultsInnerLastTradeTimeframeEnum,kt as GetSnapshots200ResponseResultsInnerTimeframeEnum,Gt as GetSnapshots200ResponseResultsInnerTypeEnum,wt as GetSnapshots200ResponseResultsInnerUnderlyingAssetTimeframeEnum,Qs as GetSnapshotsOrderEnum,zs as GetSnapshotsSortEnum,Es as GetSnapshotsTypeEnum,Hs as GetStocksAggregatesSortEnum,Ms as GetStocksAggregatesTimespanEnum,Ks as GetStocksEMAOrderEnum,Ns as GetStocksEMASeriesTypeEnum,js as GetStocksEMATimespanEnum,vt as GetStocksFinancialsV1BalanceSheets200ResponseStatusEnum,It as GetStocksFinancialsV1CashFlowStatements200ResponseStatusEnum,Dt as GetStocksFinancialsV1IncomeStatements200ResponseStatusEnum,Lt as GetStocksFinancialsV1Ratios200ResponseStatusEnum,Xs as GetStocksMACDOrderEnum,Ys as GetStocksMACDSeriesTypeEnum,$s as GetStocksMACDTimespanEnum,Ws as GetStocksQuotesOrderEnum,Js as GetStocksQuotesSortEnum,Ps as GetStocksRSIOrderEnum,qs as GetStocksRSISeriesTypeEnum,Zs as GetStocksRSITimespanEnum,to as GetStocksSMAOrderEnum,no as GetStocksSMASeriesTypeEnum,eo as GetStocksSMATimespanEnum,io as GetStocksSnapshotDirectionDirectionEnum,so as GetStocksTradesOrderEnum,oo as GetStocksTradesSortEnum,Tt as GetStocksV1Dividends200ResponseStatusEnum,Ft as GetStocksV1Exchanges200ResponseStatusEnum,Ut as GetStocksV1ShortInterest200ResponseStatusEnum,Bt as GetStocksV1ShortVolume200ResponseStatusEnum,Et as GetStocksV1Splits200ResponseStatusEnum,Qt as GetTicker200ResponseResultsLocaleEnum,zt as GetTicker200ResponseResultsMarketEnum,Mt as GetTmxV1CorporateEvents200ResponseStatusEnum,Ht as ListConditions200ResponseResultsInnerAssetClassEnum,jt as ListConditions200ResponseResultsInnerDataTypesEnum,Nt as ListConditions200ResponseResultsInnerTypeEnum,ro as ListConditionsAssetClassEnum,ao as ListConditionsDataTypeEnum,go as ListConditionsOrderEnum,lo as ListConditionsSipEnum,co as ListConditionsSortEnum,Kt as ListDividends200ResponseResultsInnerDividendTypeEnum,uo as ListDividendsDividendTypeEnum,po as ListDividendsFrequencyEnum,fo as ListDividendsOrderEnum,yo as ListDividendsSortEnum,$t as ListExchanges200ResponseResultsInnerAssetClassEnum,Yt as ListExchanges200ResponseResultsInnerLocaleEnum,Xt as ListExchanges200ResponseResultsInnerTypeEnum,bo as ListExchangesAssetClassEnum,mo as ListExchangesLocaleEnum,Ro as ListFinancialsOrderEnum,xo as ListFinancialsSortEnum,ho as ListFinancialsTimeframeEnum,Wt as ListIPOs200ResponseResultsInnerIpoStatusEnum,Ao as ListIPOsIpoStatusEnum,_o as ListIPOsOrderEnum,ko as ListIPOsSortEnum,Jt as ListNews200ResponseResultsInnerInsightsInnerSentimentEnum,Go as ListNewsOrderEnum,Oo as ListNewsSortEnum,Zt as ListOptionsContracts200ResponseResultsInnerExerciseStyleEnum,Co as ListOptionsContractsContractTypeEnum,So as ListOptionsContractsOrderEnum,Vo as ListOptionsContractsSortEnum,wo as ListStockSplitsOrderEnum,vo as ListStockSplitsSortEnum,qt as ListTickerTypes200ResponseResultsInnerAssetClassEnum,Pt as ListTickerTypes200ResponseResultsInnerLocaleEnum,Io as ListTickerTypesAssetClassEnum,Do as ListTickerTypesLocaleEnum,ei as ListTickers200ResponseResultsInnerLocaleEnum,ni as ListTickers200ResponseResultsInnerMarketEnum,To as ListTickersMarketEnum,Fo as ListTickersOrderEnum,Uo as ListTickersSortEnum,Lo as ListTickersTypeEnum,ti as MapKeyTypeEnum,Mo as MassiveClient,Er as default,In as getCryptoWebsocket,Dn as getForexWebsocket,Un as getFuturesWebsocket,Ln as getIndicesWebsocket,Tn as getOptionsWebsocket,Fn as getStocksWebsocket,zo as restClient,Eo as websocketClient};