snaptrade-typescript-sdk 8.29.9 → 8.29.11

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/npm-v8.29.9-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/8.29.9)
9
+ [![npm](https://img.shields.io/badge/npm-v8.29.11-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/8.29.11)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -1464,7 +1464,6 @@ const getOrderImpactResponse = await snaptrade.trading.getOrderImpact({
1464
1464
  stop: 31.33,
1465
1465
  time_in_force: "Day",
1466
1466
  universal_symbol_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
1467
- notional_value: 100,
1468
1467
  });
1469
1468
  ```
1470
1469
 
@@ -1490,15 +1489,11 @@ Stop Price. If stop loss or stop limit order, the price to trigger the stop
1490
1489
 
1491
1490
  ##### time_in_force:<a id="time_in_force"></a>
1492
1491
 
1493
- ##### units: `number`<a id="units-number"></a>
1494
-
1495
- Trade Units. Cannot work with notional value.
1492
+ ##### units: [`number`](./models/number.ts)<a id="units-numbermodelsnumberts"></a>
1496
1493
 
1497
1494
  ##### universal_symbol_id: `string`<a id="universal_symbol_id-string"></a>
1498
1495
 
1499
- ##### notional_value: `number`<a id="notional_value-number"></a>
1500
-
1501
- Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
1496
+ ##### notional_value: [`number`](./models/number.ts)<a id="notional_value-numbermodelsnumberts"></a>
1502
1497
 
1503
1498
  #### 🔄 Return<a id="🔄-return"></a>
1504
1499
 
@@ -1577,7 +1572,6 @@ const placeForceOrderResponse = await snaptrade.trading.placeForceOrder({
1577
1572
  stop: 31.33,
1578
1573
  time_in_force: "Day",
1579
1574
  universal_symbol_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
1580
- notional_value: 100,
1581
1575
  });
1582
1576
  ```
1583
1577
 
@@ -1603,15 +1597,11 @@ Stop Price. If stop loss or stop limit order, the price to trigger the stop
1603
1597
 
1604
1598
  ##### time_in_force:<a id="time_in_force"></a>
1605
1599
 
1606
- ##### units: `number`<a id="units-number"></a>
1607
-
1608
- Trade Units. Cannot work with notional value.
1600
+ ##### units: [`number`](./models/number.ts)<a id="units-numbermodelsnumberts"></a>
1609
1601
 
1610
1602
  ##### universal_symbol_id: `string`<a id="universal_symbol_id-string"></a>
1611
1603
 
1612
- ##### notional_value: `number`<a id="notional_value-number"></a>
1613
-
1614
- Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
1604
+ ##### notional_value: [`number`](./models/number.ts)<a id="notional_value-numbermodelsnumberts"></a>
1615
1605
 
1616
1606
  #### 🔄 Return<a id="🔄-return"></a>
1617
1607
 
package/dist/browser.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.client=t():e.client=t()}(self,(()=>{return e={9669:(e,t,r)=>{e.exports=r(1609)},5448:(e,t,r)=>{"use strict";var s=r(4867),n=r(6026),i=r(4372),o=r(5327),a=r(4097),c=r(4109),u=r(7985),d=r(7874),l=r(2648),p=r(644),f=r(205);e.exports=function(e){return new Promise((function(t,r){var g,h=e.data,y=e.headers,b=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}s.isFormData(h)&&s.isStandardBrowserEnv()&&delete y["Content-Type"];var A=new XMLHttpRequest;if(e.auth){var O=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(O+":"+v)}var P=a(e.baseURL,e.url);function j(){if(A){var s="getAllResponseHeaders"in A?c(A.getAllResponseHeaders()):null,i={data:b&&"text"!==b&&"json"!==b?A.response:A.responseText,status:A.status,statusText:A.statusText,headers:s,config:e,request:A};n((function(e){t(e),m()}),(function(e){r(e),m()}),i),A=null}}if(A.open(e.method.toUpperCase(),o(P,e.params,e.paramsSerializer),!0),A.timeout=e.timeout,"onloadend"in A?A.onloadend=j:A.onreadystatechange=function(){A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===A.responseURL.indexOf("file:"))&&setTimeout(j)},A.onabort=function(){A&&(r(new l("Request aborted",l.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new l("Network Error",l.ERR_NETWORK,e,A,A)),A=null},A.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",s=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new l(t,s.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,e,A)),A=null},s.isStandardBrowserEnv()){var S=(e.withCredentials||u(P))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(y[e.xsrfHeaderName]=S)}"setRequestHeader"in A&&s.forEach(y,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete y[t]:A.setRequestHeader(t,e)})),s.isUndefined(e.withCredentials)||(A.withCredentials=!!e.withCredentials),b&&"json"!==b&&(A.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&A.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&A.upload&&A.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(e){A&&(r(!e||e&&e.type?new p:e),A.abort(),A=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),h||(h=null);var _=f(P);_&&-1===["http","https","file"].indexOf(_)?r(new l("Unsupported protocol "+_+":",l.ERR_BAD_REQUEST,e)):A.send(h)}))}},1609:(e,t,r)=>{"use strict";var s=r(4867),n=r(1849),i=r(321),o=r(7185),a=function e(t){var r=new i(t),a=n(i.prototype.request,r);return s.extend(a,i.prototype,r),s.extend(a,r),a.create=function(r){return e(o(t,r))},a}(r(5546));a.Axios=i,a.CanceledError=r(644),a.CancelToken=r(4972),a.isCancel=r(6502),a.VERSION=r(7288).version,a.toFormData=r(7675),a.AxiosError=r(2648),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=r(8713),a.isAxiosError=r(6268),e.exports=a,e.exports.default=a},4972:(e,t,r)=>{"use strict";var s=r(644);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,s=r._listeners.length;for(t=0;t<s;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,s=new Promise((function(e){r.subscribe(e),t=e})).then(e);return s.cancel=function(){r.unsubscribe(t)},s},e((function(e){r.reason||(r.reason=new s(e),t(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},n.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},n.source=function(){var e;return{token:new n((function(t){e=t})),cancel:e}},e.exports=n},644:(e,t,r)=>{"use strict";var s=r(2648);function n(e){s.call(this,null==e?"canceled":e,s.ERR_CANCELED),this.name="CanceledError"}r(4867).inherits(n,s,{__CANCEL__:!0}),e.exports=n},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var s=r(4867),n=r(5327),i=r(782),o=r(3572),a=r(7185),c=r(4097),u=r(4875),d=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var s=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!n){var l=[o,void 0];for(Array.prototype.unshift.apply(l,s),l=l.concat(c),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var p=t;s.length;){var f=s.shift(),g=s.shift();try{p=f(p)}catch(e){g(e);break}}try{i=o(p)}catch(e){return Promise.reject(e)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},l.prototype.getUri=function(e){e=a(this.defaults,e);var t=c(e.baseURL,e.url);return n(t,e.params,e.paramsSerializer)},s.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),s.forEach(["post","put","patch"],(function(e){function t(t){return function(r,s,n){return this.request(a(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}l.prototype[e]=t(),l.prototype[e+"Form"]=t(!0)})),e.exports=l},2648:(e,t,r)=>{"use strict";var s=r(4867);function n(e,t,r,s,n){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n)}s.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=n.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(n,o),Object.defineProperty(i,"isAxiosError",{value:!0}),n.from=function(e,t,r,o,a,c){var u=Object.create(i);return s.toFlatObject(e,u,(function(e){return e!==Error.prototype})),n.call(u,e.message,t,r,o,a),u.name=e.name,c&&Object.assign(u,c),u},e.exports=n},782:(e,t,r)=>{"use strict";var s=r(4867);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){s.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},4097:(e,t,r)=>{"use strict";var s=r(1793),n=r(7303);e.exports=function(e,t){return e&&!s(t)?n(e,t):t}},3572:(e,t,r)=>{"use strict";var s=r(4867),n=r(8527),i=r(6502),o=r(5546),a=r(644);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=s.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),s.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return c(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,r)=>{"use strict";var s=r(4867);e.exports=function(e,t){t=t||{};var r={};function n(e,t){return s.isPlainObject(e)&&s.isPlainObject(t)?s.merge(e,t):s.isPlainObject(t)?s.merge({},t):s.isArray(t)?t.slice():t}function i(r){return s.isUndefined(t[r])?s.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!s.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return s.isUndefined(t[r])?s.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function c(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return s.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,n=t(e);s.isUndefined(n)&&t!==c||(r[e]=n)})),r}},6026:(e,t,r)=>{"use strict";var s=r(2648);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new s("Request failed with status code "+r.status,[s.ERR_BAD_REQUEST,s.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},8527:(e,t,r)=>{"use strict";var s=r(4867),n=r(5546);e.exports=function(e,t,r){var i=this||n;return s.forEach(r,(function(r){e=r.call(i,e,t)})),e}},5546:(e,t,r)=>{"use strict";var s=r(4867),n=r(6016),i=r(2648),o=r(7874),a=r(7675),c={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d,l={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(d=r(5448)),d),transformRequest:[function(e,t){if(n(t,"Accept"),n(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e))return e;if(s.isArrayBufferView(e))return e.buffer;if(s.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,i=s.isObject(e),o=t&&t["Content-Type"];if((r=s.isFileList(e))||i&&"multipart/form-data"===o){var c=this.env&&this.env.FormData;return a(r?{"files[]":e}:e,c&&new c)}return i||"application/json"===o?(u(t,"application/json"),function(e,t,r){if(s.isString(e))try{return(0,JSON.parse)(e),s.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&s.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),s.forEach(["post","put","patch"],(function(e){l.headers[e]=s.merge(c)})),e.exports=l},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),s=0;s<r.length;s++)r[s]=arguments[s];return e.apply(t,r)}}},5327:(e,t,r)=>{"use strict";var s=r(4867);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(s.isURLSearchParams(t))i=t.toString();else{var o=[];s.forEach(t,(function(e,t){null!=e&&(s.isArray(e)?t+="[]":e=[e],s.forEach(e,(function(e){s.isDate(e)?e=e.toISOString():s.isObject(e)&&(e=JSON.stringify(e)),o.push(n(t)+"="+n(e))})))})),i=o.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var s=r(4867);e.exports=s.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),s.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),s.isString(n)&&a.push("path="+n),s.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{"use strict";var s=r(4867);e.exports=function(e){return s.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{"use strict";var s=r(4867);e.exports=s.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var s=e;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=s.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{"use strict";var s=r(4867);e.exports=function(e,t){s.forEach(e,(function(r,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[s])}))}},1623:e=>{e.exports=null},4109:(e,t,r)=>{"use strict";var s=r(4867),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,o={};return e?(s.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=s.trim(e.substr(0,i)).toLowerCase(),r=s.trim(e.substr(i+1)),t){if(o[t]&&n.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,r)=>{"use strict";var s=r(4867);e.exports=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":s.isDate(e)?e.toISOString():s.isArrayBuffer(e)||s.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,o){if(s.isPlainObject(i)||s.isArray(i)){if(-1!==r.indexOf(i))throw Error("Circular reference detected in "+o);r.push(i),s.forEach(i,(function(r,i){if(!s.isUndefined(r)){var a,c=o?o+"."+i:i;if(r&&!o&&"object"==typeof r)if(s.endsWith(i,"{}"))r=JSON.stringify(r);else if(s.endsWith(i,"[]")&&(a=s.toArray(r)))return void a.forEach((function(e){!s.isUndefined(e)&&t.append(c,n(e))}));e(r,c)}})),r.pop()}else t.append(o,n(i))}(e),t}},4875:(e,t,r)=>{"use strict";var s=r(7288).version,n=r(2648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+s+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,s,a){if(!1===e)throw new n(i(s," has been removed"+(t?" in "+t:"")),n.ERR_DEPRECATED);return t&&!o[s]&&(o[s]=!0,console.warn(i(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,a)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var s=Object.keys(e),i=s.length;i-- >0;){var o=s[i],a=t[o];if(a){var c=e[o],u=void 0===c||a(c,o,e);if(!0!==u)throw new n("option "+o+" must be "+u,n.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new n("Unknown option "+o,n.ERR_BAD_OPTION)}},validators:i}},4867:(e,t,r)=>{"use strict";var s,n=r(1849),i=Object.prototype.toString,o=(s=Object.create(null),function(e){var t=i.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var d=a("ArrayBuffer");function l(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=a("Date"),g=a("File"),h=a("Blob"),y=a("FileList");function b(e){return"[object Function]"===i.call(e)}var m=a("URLSearchParams");function A(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}var O,v=(O="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return O&&e instanceof O});e.exports={isArray:c,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:p,isUndefined:u,isDate:f,isFile:g,isBlob:h,isFunction:b,isStream:function(e){return l(e)&&b(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:A,merge:function e(){var t={};function r(r,s){p(t[s])&&p(r)?t[s]=e(t[s],r):p(r)?t[s]=e({},r):c(r)?t[s]=r.slice():t[s]=r}for(var s=0,n=arguments.length;s<n;s++)A(arguments[s],r);return t},extend:function(e,t,r){return A(t,(function(t,s){e[s]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,s){e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var s,n,i,o={};t=t||{};do{for(n=(s=Object.getOwnPropertyNames(e)).length;n-- >0;)o[i=s[n]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var s=e.indexOf(t,r);return-1!==s&&s===r},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:v,isFileList:y}},7654:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(9112),t),n(r(7845),t),n(r(3270),t),n(r(5752),t),n(r(100),t),n(r(3972),t),n(r(8760),t),n(r(6562),t),n(r(8874),t)},9063:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.AccountInformationApiAxiosParamCreator=function(e){return{getAllUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const s="/holdings",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),void 0!==n&&(p.brokerage_authorizations=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountBalance:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",n);const s="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountDetails:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountOrders:(t,r,n,o,c,u={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",n);const s="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.state=o),void 0!==c&&(g.days=c);let h=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})),getUserAccountPositions:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",n);const s="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",n);const s="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listUserAccounts:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const s="/accounts",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),updateUserAccount:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"PUT"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.AccountInformationApiFp=function(e){const r=(0,t.AccountInformationApiAxiosParamCreator)(e);return{getAllUserHoldings(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountBalance(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountDetails(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountOrders(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountPositions(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserHoldings(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listUserAccounts(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},updateUserAccount(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.AccountInformationApiFactory=function(e,r,s){const n=(0,t.AccountInformationApiFp)(e);return{getAllUserHoldings:(e,t)=>n.getAllUserHoldings(e,t).then((e=>e(s,r))),getUserAccountBalance:(e,t)=>n.getUserAccountBalance(e,t).then((e=>e(s,r))),getUserAccountDetails:(e,t)=>n.getUserAccountDetails(e,t).then((e=>e(s,r))),getUserAccountOrders:(e,t)=>n.getUserAccountOrders(e,t).then((e=>e(s,r))),getUserAccountPositions:(e,t)=>n.getUserAccountPositions(e,t).then((e=>e(s,r))),getUserHoldings:(e,t)=>n.getUserHoldings(e,t).then((e=>e(s,r))),listUserAccounts:(e,t)=>n.listUserAccounts(e,t).then((e=>e(s,r))),updateUserAccount:(e,t)=>n.updateUserAccount(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{getAllUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAllUserHoldings(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountBalance(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountBalance(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountDetails(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountDetails(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrders(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountPositions(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountPositions(e,r).then((e=>e(this.axios,this.basePath)))}getUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserHoldings(e,r).then((e=>e(this.axios,this.basePath)))}listUserAccounts(e,r){return(0,t.AccountInformationApiFp)(this.configuration).listUserAccounts(e,r).then((e=>e(this.axios,this.basePath)))}updateUserAccount(e,r){return(0,t.AccountInformationApiFp)(this.configuration).updateUserAccount(e,r).then((e=>e(this.axios,this.basePath)))}}t.AccountInformationApiGenerated=c},9112:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(9063);n(r(9063),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},8076:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>s(this,void 0,void 0,(function*(){const r=new URL("/",i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const n=Object.assign(Object.assign({method:"GET"},s),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=s&&s.headers?s.headers:{};return n.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:n,path:"/",configuration:e}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:n}}))}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return s(this,void 0,void 0,(function*(){const s=yield r.check(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.ApiStatusApiFactory=function(e,r,s){const n=(0,t.ApiStatusApiFp)(e);return{check:e=>n.check(e).then((e=>e(s,r)))}};class c extends o.BaseAPI{check(e){return(0,t.ApiStatusApiFp)(this.configuration).check(e).then((e=>e(this.axios,this.basePath)))}}t.ApiStatusApiGenerated=c},7845:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(8076);n(r(8076),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},9194:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const s="/snapTrade/deleteUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"DELETE"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.userId=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})),getUserJWT:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserJWT","userId",t),(0,i.assertParamExists)("getUserJWT","userSecret",r);const s="/snapTrade/encryptedJWT",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),listSnapTradeUsers:(t={})=>s(this,void 0,void 0,(function*(){const r="/snapTrade/listUsers",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),loginSnapTradeUser:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const s="/snapTrade/login",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),registerSnapTradeUser:(t,r={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const s="/snapTrade/registerUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}))}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserJWT(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserJWT(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listSnapTradeUsers(t){return s(this,void 0,void 0,(function*(){const s=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},loginSnapTradeUser(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.loginSnapTradeUser(t.userId,t.userSecret,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},registerSnapTradeUser(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.registerSnapTradeUser(t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.AuthenticationApiFactory=function(e,r,s){const n=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>n.deleteSnapTradeUser(e,t).then((e=>e(s,r))),getUserJWT:(e,t)=>n.getUserJWT(e,t).then((e=>e(s,r))),listSnapTradeUsers:e=>n.listSnapTradeUsers(e).then((e=>e(s,r))),loginSnapTradeUser:(e,t)=>n.loginSnapTradeUser(e,t).then((e=>e(s,r))),registerSnapTradeUser:(e,t)=>n.registerSnapTradeUser(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{deleteSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}getUserJWT(e,r){return(0,t.AuthenticationApiFp)(this.configuration).getUserJWT(e,r).then((e=>e(this.axios,this.basePath)))}listSnapTradeUsers(e){return(0,t.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(e).then((e=>e(this.axios,this.basePath)))}loginSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}registerSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}}t.AuthenticationApiGenerated=c},3270:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(9194);n(r(9194),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},115:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listBrokerageAuthorizations:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const s="/authorizations",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),removeBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"DELETE"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),sessionEvents:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const s="/sessionEvents",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.PartnerClientId=t),void 0!==r&&(p.userId=r),void 0!==n&&(p.sessionId=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.ConnectionsApiFp=function(e){const r=(0,t.ConnectionsApiAxiosParamCreator)(e);return{detailBrokerageAuthorization(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listBrokerageAuthorizations(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},removeBrokerageAuthorization(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},sessionEvents(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.ConnectionsApiFactory=function(e,r,s){const n=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>n.detailBrokerageAuthorization(e,t).then((e=>e(s,r))),listBrokerageAuthorizations:(e,t)=>n.listBrokerageAuthorizations(e,t).then((e=>e(s,r))),removeBrokerageAuthorization:(e,t)=>n.removeBrokerageAuthorization(e,t).then((e=>e(s,r))),sessionEvents:(e,t)=>n.sessionEvents(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{detailBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}listBrokerageAuthorizations(e,r){return(0,t.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(e,r).then((e=>e(this.axios,this.basePath)))}removeBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then((e=>e(this.axios,this.basePath)))}}t.ConnectionsApiGenerated=c},5752:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(115);n(r(115),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},7084:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLogsApiGenerated=t.ErrorLogsApiFactory=t.ErrorLogsApiFp=t.ErrorLogsApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.ErrorLogsApiAxiosParamCreator=function(e){return{listUserErrors:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserErrors","userId",t),(0,i.assertParamExists)("listUserErrors","userSecret",r);const s="/snapTrade/listUserErrors",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}))}},t.ErrorLogsApiFp=function(e){const r=(0,t.ErrorLogsApiAxiosParamCreator)(e);return{listUserErrors(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.listUserErrors(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.ErrorLogsApiFactory=function(e,r,s){const n=(0,t.ErrorLogsApiFp)(e);return{listUserErrors:(e,t)=>n.listUserErrors(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{listUserErrors(e,r){return(0,t.ErrorLogsApiFp)(this.configuration).listUserErrors(e,r).then((e=>e(this.axios,this.basePath)))}}t.ErrorLogsApiGenerated=c},100:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLogsApi=void 0;const i=r(7084);n(r(7084),t);class o extends i.ErrorLogsApiGenerated{}t.ErrorLogsApi=o},2856:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",n),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const s="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:f,requestConfig:l,path:s,configuration:e}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}})),getOptionsChain:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",n),(0,i.assertParamExists)("getOptionsChain","symbol",o);const s="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==o&&(f.symbol=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:l,path:s,configuration:e}),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}})),getOptionsStrategyQuote:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",n),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const s="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:l,path:s,configuration:e}),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}})),listOptionHoldings:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",n);const s="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOptionStrategy:(t,r,n,o,c,u={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",n),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const s="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"POST"},l),u),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),f["Content-Type"]="application/json";let h=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:g,requestConfig:p,path:s,configuration:e}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}))}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getOptionStrategy(t.userId,t.userSecret,t.accountId,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getOptionsChain(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getOptionsStrategyQuote(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listOptionHoldings(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},placeOptionStrategy(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.placeOptionStrategy(t.userId,t.userSecret,t.accountId,t.optionStrategyId,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.OptionsApiFactory=function(e,r,s){const n=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>n.getOptionStrategy(e,t).then((e=>e(s,r))),getOptionsChain:(e,t)=>n.getOptionsChain(e,t).then((e=>e(s,r))),getOptionsStrategyQuote:(e,t)=>n.getOptionsStrategyQuote(e,t).then((e=>e(s,r))),listOptionHoldings:(e,t)=>n.listOptionHoldings(e,t).then((e=>e(s,r))),placeOptionStrategy:(e,t)=>n.placeOptionStrategy(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{getOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsStrategyQuote(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(e,r).then((e=>e(this.axios,this.basePath)))}listOptionHoldings(e,r){return(0,t.OptionsApiFp)(this.configuration).listOptionHoldings(e,r).then((e=>e(this.axios,this.basePath)))}placeOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).placeOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}}t.OptionsApiGenerated=c},3972:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(2856);n(r(2856),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},6744:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const s="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})),getPartnerInfo:(t={})=>s(this,void 0,void 0,(function*(){const r="/snapTrade/partners",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),getSecurityTypes:(t={})=>s(this,void 0,void 0,(function*(){const r="/securityTypes",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),getStockExchanges:(t={})=>s(this,void 0,void 0,(function*(){const r="/exchanges",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),getSymbols:(t,r={})=>s(this,void 0,void 0,(function*(){const s="/symbols",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})),getSymbolsByTicker:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getSymbolsByTicker","ticker",t);const s="/symbols/{ticker}".replace("{ticker}",encodeURIComponent(String(void 0!==t?t:"-ticker-"))),o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==r&&(l.symbolId=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),listAllBrokerageAuthorizationType:(t,r={})=>s(this,void 0,void 0,(function*(){const s="/brokerageAuthorizationTypes",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.brokerage=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})),listAllBrokerages:(t={})=>s(this,void 0,void 0,(function*(){const r="/brokerages",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),listAllCurrencies:(t={})=>s(this,void 0,void 0,(function*(){const r="/currencies",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),listAllCurrenciesRates:(t={})=>s(this,void 0,void 0,(function*(){const r="/currencies/rates",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),symbolSearchUserAccount:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",n);const s="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:f,requestConfig:l,path:s,configuration:e}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}}))}},t.ReferenceDataApiFp=function(e){const r=(0,t.ReferenceDataApiAxiosParamCreator)(e);return{getCurrencyExchangeRatePair(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getPartnerInfo(t){return s(this,void 0,void 0,(function*(){const s=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getSecurityTypes(t){return s(this,void 0,void 0,(function*(){const s=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getStockExchanges(t){return s(this,void 0,void 0,(function*(){const s=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getSymbols(t={},a){return s(this,void 0,void 0,(function*(){const s=yield r.getSymbols(t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getSymbolsByTicker(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getSymbolsByTicker(t.ticker,t.symbolId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listAllBrokerageAuthorizationType(t={},a){return s(this,void 0,void 0,(function*(){const s=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listAllBrokerages(t){return s(this,void 0,void 0,(function*(){const s=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listAllCurrencies(t){return s(this,void 0,void 0,(function*(){const s=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listAllCurrenciesRates(t){return s(this,void 0,void 0,(function*(){const s=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},symbolSearchUserAccount(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.ReferenceDataApiFactory=function(e,r,s){const n=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>n.getCurrencyExchangeRatePair(e,t).then((e=>e(s,r))),getPartnerInfo:e=>n.getPartnerInfo(e).then((e=>e(s,r))),getSecurityTypes:e=>n.getSecurityTypes(e).then((e=>e(s,r))),getStockExchanges:e=>n.getStockExchanges(e).then((e=>e(s,r))),getSymbols:(e={},t)=>n.getSymbols(e,t).then((e=>e(s,r))),getSymbolsByTicker:(e,t)=>n.getSymbolsByTicker(e,t).then((e=>e(s,r))),listAllBrokerageAuthorizationType:(e={},t)=>n.listAllBrokerageAuthorizationType(e,t).then((e=>e(s,r))),listAllBrokerages:e=>n.listAllBrokerages(e).then((e=>e(s,r))),listAllCurrencies:e=>n.listAllCurrencies(e).then((e=>e(s,r))),listAllCurrenciesRates:e=>n.listAllCurrenciesRates(e).then((e=>e(s,r))),symbolSearchUserAccount:(e,t)=>n.symbolSearchUserAccount(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{getCurrencyExchangeRatePair(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(e,r).then((e=>e(this.axios,this.basePath)))}getPartnerInfo(e){return(0,t.ReferenceDataApiFp)(this.configuration).getPartnerInfo(e).then((e=>e(this.axios,this.basePath)))}getSecurityTypes(e){return(0,t.ReferenceDataApiFp)(this.configuration).getSecurityTypes(e).then((e=>e(this.axios,this.basePath)))}getStockExchanges(e){return(0,t.ReferenceDataApiFp)(this.configuration).getStockExchanges(e).then((e=>e(this.axios,this.basePath)))}getSymbols(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbols(e,r).then((e=>e(this.axios,this.basePath)))}getSymbolsByTicker(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(e,r).then((e=>e(this.axios,this.basePath)))}listAllBrokerageAuthorizationType(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(e,r).then((e=>e(this.axios,this.basePath)))}listAllBrokerages(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerages(e).then((e=>e(this.axios,this.basePath)))}listAllCurrencies(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrencies(e).then((e=>e(this.axios,this.basePath)))}listAllCurrenciesRates(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(e).then((e=>e(this.axios,this.basePath)))}symbolSearchUserAccount(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(e,r).then((e=>e(this.axios,this.basePath)))}}t.ReferenceDataApiGenerated=c},8760:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(6744);n(r(6744),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},8298:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.TradingApiAxiosParamCreator=function(e){return{cancelUserAccountOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",n),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const s="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:f,requestConfig:l,path:s,configuration:e}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}})),getOrderImpact:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",n);const s="/trade/impact",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountQuotes:(t,r,n,o,c,u={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",n),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const s="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==n&&(g.symbols=n),void 0!==c&&(g.use_ticker=c);let h=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})),placeForceOrder:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeForm",n);const s="/trade/place",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOCOOrder:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOCOOrder","userId",t),(0,i.assertParamExists)("placeOCOOrder","userSecret",r),(0,i.assertParamExists)("placeOCOOrder","tradingPlaceOCOOrderRequest",n);const s="/trade/oco",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOrder:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",n);const s="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelUserAccountOrder(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getOrderImpact(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getOrderImpact(t.userId,t.userSecret,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountQuotes(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},placeForceOrder(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.placeForceOrder(t.userId,t.userSecret,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},placeOCOOrder(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.placeOCOOrder(t.userId,t.userSecret,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},placeOrder(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.TradingApiFactory=function(e,r,s){const n=(0,t.TradingApiFp)(e);return{cancelUserAccountOrder:(e,t)=>n.cancelUserAccountOrder(e,t).then((e=>e(s,r))),getOrderImpact:(e,t)=>n.getOrderImpact(e,t).then((e=>e(s,r))),getUserAccountQuotes:(e,t)=>n.getUserAccountQuotes(e,t).then((e=>e(s,r))),placeForceOrder:(e,t)=>n.placeForceOrder(e,t).then((e=>e(s,r))),placeOCOOrder:(e,t)=>n.placeOCOOrder(e,t).then((e=>e(s,r))),placeOrder:(e,t)=>n.placeOrder(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(e,r).then((e=>e(this.axios,this.basePath)))}getOrderImpact(e,r){return(0,t.TradingApiFp)(this.configuration).getOrderImpact(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountQuotes(e,r){return(0,t.TradingApiFp)(this.configuration).getUserAccountQuotes(e,r).then((e=>e(this.axios,this.basePath)))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(e,r).then((e=>e(this.axios,this.basePath)))}placeOCOOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOCOOrder(e,r).then((e=>e(this.axios,this.basePath)))}placeOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOrder(e,r).then((e=>e(this.axios,this.basePath)))}}t.TradingApiGenerated=c},6562:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(8298);n(r(8298),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},6168:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const s="/activities",p=new URL(s,i.DUMMY_BASE_URL);let f;e&&(f=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},f),l),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,keyParamName:"timestamp",configuration:e}),void 0!==n&&(y.startDate=n instanceof Date?n.toISOString().substr(0,10):n),void 0!==o&&(y.endDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(y.accounts=c),void 0!==u&&(y.brokerageAuthorizations=u),void 0!==d&&(y.type=d),void 0!==t&&(y.userId=t),void 0!==r&&(y.userSecret=r);let b=f&&f.headers?f.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},h),b),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}})),getReportingCustomRange:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",n),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const s="/performance/custom",p=new URL(s,i.DUMMY_BASE_URL);let f;e&&(f=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},f),l),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,keyParamName:"timestamp",configuration:e}),void 0!==t&&(y.startDate=t instanceof Date?t.toISOString().substr(0,10):t),void 0!==r&&(y.endDate=r instanceof Date?r.toISOString().substr(0,10):r),void 0!==c&&(y.accounts=c),void 0!==u&&(y.detailed=u),void 0!==d&&(y.frequency=d),void 0!==n&&(y.userId=n),void 0!==o&&(y.userSecret=o);let b=f&&f.headers?f.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},h),b),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}}))}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getReportingCustomRange(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.TransactionsAndReportingApiFactory=function(e,r,s){const n=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>n.getActivities(e,t).then((e=>e(s,r))),getReportingCustomRange:(e,t)=>n.getReportingCustomRange(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{getActivities(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getActivities(e,r).then((e=>e(this.axios,this.basePath)))}getReportingCustomRange(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getReportingCustomRange(e,r).then((e=>e(this.axios,this.basePath)))}}t.TransactionsAndReportingApiGenerated=c},8874:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(6168);n(r(6168),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},8280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const s=r(9669);t.BASE_PATH="https://api.snaptrade.com/api/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.BaseAPI=class{constructor(e,r=t.BASE_PATH,n=s.default){this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class n extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=n},9250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},1929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const s=r(7654),n=r(247),i=r(9250);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new n.Configuration(e);this.accountInformation=new s.AccountInformationApi(t),this.apiStatus=new s.ApiStatusApi(t),this.authentication=new s.AuthenticationApi(t),this.connections=new s.ConnectionsApi(t),this.errorLogs=new s.ErrorLogsApi(t),this.options=new s.OptionsApi(t),this.referenceData=new s.ReferenceDataApi(t),this.trading=new s.TradingApi(t),this.transactionsAndReporting=new s.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6090:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.createRequestFunction=t.removeTrailingSlash=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;const n=r(8280),i=r(9669),o=r(8610),a=r(7837),c=r(6578);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach((t=>u(e,t,r))):Object.keys(t).forEach((s=>u(e,t[s],`${r}${""!==r?".":""}${s}`))):e.has(r)?e.append(r,t):e.set(r,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,r){if(null==r)throw new n.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:n,configuration:i,prefix:o}){return s(this,void 0,void 0,(function*(){t=t||n;let s=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)s=yield i.apiKey(n);else if("string"==typeof i.apiKey)s=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);n in i.apiKey&&(s=i.apiKey[n])}s&&(e[t]=void 0!==o?`${o}${s}`:s,"Cookie"===r&&(e[t]=`${n}=${e[t]}`))}))},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return s(this,void 0,void 0,(function*(){if(t&&t.accessToken){const r="function"==typeof t.accessToken?yield t.accessToken():yield t.accessToken;e.Authorization="Bearer "+r}}))},t.setSearchParams=function(e,...t){const r=new URLSearchParams(e.search);u(r,t),e.search=r.toString()},t.serializeDataIfNeeded=function(e,t,r){const s="string"!=typeof e;return(s&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},t.toPathString=function(e){return(0,t.removeTrailingSlash)(e.pathname)+e.search+e.hash},t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")},t.createRequestFunction=function(e,t,r,n){return(u=t,d=r)=>s(this,void 0,void 0,(function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:n});const t=((null==n?void 0:n.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:n}),function(e){var t,r,n;return s(this,void 0,void 0,(function*(){try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError)try{const s=(null===(t=e.response)||void 0===t?void 0:t.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(r=e.response)||void 0===r?void 0:r.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(s))}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(n=e.response)||void 0===n?void 0:n.data);if(t instanceof c.SnaptradeError)throw t;throw e}throw e}}))}((()=>s(this,void 0,void 0,(function*(){return yield u.request(Object.assign(Object.assign({},e.options),{url:t}))}))))}))},t.isBrowser=function(){return"undefined"!=typeof window}},247:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e={}){var t;this.consumerKey=e.consumerKey,this.apiKey=e.apiKey,void 0===this.apiKey&&(this.apiKey={},void 0!==e.clientId&&(this.apiKey.clientId=e.clientId),void 0!==e.signature&&(this.apiKey.Signature=e.signature),void 0!==e.timestamp&&(this.apiKey.timestamp=e.timestamp)),this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=null!==(t=e.baseOptions)&&void 0!==t?t:{},this.userAgent=void 0===e.userAgent?"Konfig/8.29.9/typescript":e.userAgent,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}},6578:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class s extends Error{constructor(e,t){var r,s,n;super(e.message),this.name="SnaptradeError",this.code=e.code,this.method=null===(r=e.config.method)||void 0===r?void 0:r.toUpperCase(),this.url=e.config.url,this.status=null===(s=e.response)||void 0===s?void 0:s.status,this.statusText=null===(n=e.response)||void 0===n?void 0:n.statusText,this.responseBody=t}toJSON(){return{name:this.name,message:this.message,method:this.method,url:this.url,code:this.code,status:this.status,statusText:this.statusText,responseBody:this.responseBody}}}t.SnaptradeError=s,t.readableStreamToString=function(e){return r(this,void 0,void 0,(function*(){const t=new TextDecoder,r=e.getReader();let s="";try{for(;;){const{done:e,value:n}=yield r.read();if(e)break;s+=t.decode(n,{stream:!0})}}finally{r.releaseLock()}return s}))},t.parseIfJson=function(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t?t:e}catch(t){return e}}},8492:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(7654),t),n(r(247),t),n(r(8708),t),n(r(1929),t),n(r(6578),t)},5783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6208:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4962:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7196:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9119:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7049:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1631:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6046:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6563:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2788:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8708:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(7246),t),n(r(8349),t),n(r(5783),t),n(r(4962),t),n(r(6208),t),n(r(3368),t),n(r(2423),t),n(r(7196),t),n(r(1487),t),n(r(7333),t),n(r(3562),t),n(r(3149),t),n(r(9119),t),n(r(3637),t),n(r(5463),t),n(r(3250),t),n(r(1631),t),n(r(7049),t),n(r(547),t),n(r(9516),t),n(r(5062),t),n(r(1402),t),n(r(9417),t),n(r(6046),t),n(r(6563),t),n(r(2788),t),n(r(3810),t),n(r(9003),t),n(r(1988),t),n(r(5650),t),n(r(4983),t),n(r(246),t),n(r(6819),t),n(r(9442),t),n(r(6891),t),n(r(8432),t),n(r(5648),t),n(r(1618),t),n(r(5914),t),n(r(9164),t),n(r(5249),t),n(r(5231),t),n(r(8953),t),n(r(900),t),n(r(6551),t),n(r(7865),t),n(r(5924),t),n(r(5652),t),n(r(3778),t),n(r(1807),t),n(r(1992),t),n(r(7058),t),n(r(6583),t),n(r(6581),t),n(r(4920),t),n(r(7690),t),n(r(3139),t),n(r(3786),t),n(r(5178),t),n(r(5631),t),n(r(4914),t),n(r(3122),t),n(r(6682),t),n(r(7892),t),n(r(1548),t),n(r(1187),t),n(r(5211),t),n(r(357),t),n(r(8166),t),n(r(9588),t),n(r(674),t),n(r(1796),t),n(r(957),t),n(r(5068),t),n(r(7207),t),n(r(7386),t),n(r(9518),t),n(r(8647),t),n(r(4088),t),n(r(4065),t),n(r(6290),t),n(r(7309),t),n(r(4896),t),n(r(8048),t),n(r(2870),t),n(r(9207),t),n(r(5849),t),n(r(2997),t),n(r(1157),t),n(r(340),t),n(r(2003),t),n(r(6189),t),n(r(7346),t),n(r(9064),t),n(r(5410),t),n(r(4586),t),n(r(5907),t),n(r(9405),t),n(r(7311),t),n(r(481),t),n(r(2313),t),n(r(1756),t),n(r(4659),t),n(r(9478),t),n(r(2539),t),n(r(3949),t),n(r(5937),t),n(r(8585),t),n(r(8362),t),n(r(3358),t),n(r(431),t),n(r(6387),t),n(r(135),t),n(r(4987),t),n(r(6937),t)},9442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8432:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1992:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},900:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4920:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5631:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5211:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5068:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4896:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5410:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4586:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9405:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7311:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2313:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5937:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6937:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8610:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return s(this,void 0,void 0,(function*(){const{configuration:t,basePath:n,axiosArgs:i,url:o}=e;if(void 0===(null==t?void 0:t.consumerKey))throw Error("Consumer key is required");const a=encodeURI(t.consumerKey),c=void 0===i.options.data||"{}"===i.options.data?null:JSON.parse(i.options.data),u=-1===i.url.indexOf("?")?`${i.url}`:`${i.url.split("?")[0]}`,d=(l={content:c,path:`/api/v1${u}`,query:o.replace(n,"").replace(u,"").replace("?","")},p=[],f={},JSON.stringify(l,(function(e,t){return e in f||(p.push(e),f[e]=null),t})),p.sort(),JSON.stringify(l,p));var l,p,f;const g=yield function(e,t){return s(this,void 0,void 0,(function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const s=r(6904).createHmac("sha256",t);return s.update(e),s.digest("base64")}{const r=new TextEncoder,s=r.encode(t),n=r.encode(e),i=yield window.crypto.subtle.importKey("raw",s,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield window.crypto.subtle.sign("HMAC",i,n),a=new Uint8Array(o);return btoa(String.fromCharCode.apply(null,a))}}))}(d,a);i.options.headers&&(i.options.headers.Signature=g)}))}},4807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeHook=void 0,t.requestBeforeHook=function(e){const{queryParameters:t}=e;t.timestamp=Math.round((new Date).getTime()/1e3).toString()}},7837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},6904:()=>{}},t={},function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={exports:{}};return e[s].call(i.exports,i,i.exports,r),i.exports}(8492);var e,t}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.client=t():e.client=t()}(self,(()=>{return e={9669:(e,t,r)=>{e.exports=r(1609)},5448:(e,t,r)=>{"use strict";var s=r(4867),n=r(6026),i=r(4372),o=r(5327),a=r(4097),c=r(4109),u=r(7985),d=r(7874),l=r(2648),p=r(644),f=r(205);e.exports=function(e){return new Promise((function(t,r){var g,h=e.data,y=e.headers,b=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}s.isFormData(h)&&s.isStandardBrowserEnv()&&delete y["Content-Type"];var A=new XMLHttpRequest;if(e.auth){var O=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(O+":"+v)}var P=a(e.baseURL,e.url);function j(){if(A){var s="getAllResponseHeaders"in A?c(A.getAllResponseHeaders()):null,i={data:b&&"text"!==b&&"json"!==b?A.response:A.responseText,status:A.status,statusText:A.statusText,headers:s,config:e,request:A};n((function(e){t(e),m()}),(function(e){r(e),m()}),i),A=null}}if(A.open(e.method.toUpperCase(),o(P,e.params,e.paramsSerializer),!0),A.timeout=e.timeout,"onloadend"in A?A.onloadend=j:A.onreadystatechange=function(){A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===A.responseURL.indexOf("file:"))&&setTimeout(j)},A.onabort=function(){A&&(r(new l("Request aborted",l.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new l("Network Error",l.ERR_NETWORK,e,A,A)),A=null},A.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",s=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new l(t,s.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,e,A)),A=null},s.isStandardBrowserEnv()){var S=(e.withCredentials||u(P))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(y[e.xsrfHeaderName]=S)}"setRequestHeader"in A&&s.forEach(y,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete y[t]:A.setRequestHeader(t,e)})),s.isUndefined(e.withCredentials)||(A.withCredentials=!!e.withCredentials),b&&"json"!==b&&(A.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&A.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&A.upload&&A.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(e){A&&(r(!e||e&&e.type?new p:e),A.abort(),A=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),h||(h=null);var _=f(P);_&&-1===["http","https","file"].indexOf(_)?r(new l("Unsupported protocol "+_+":",l.ERR_BAD_REQUEST,e)):A.send(h)}))}},1609:(e,t,r)=>{"use strict";var s=r(4867),n=r(1849),i=r(321),o=r(7185),a=function e(t){var r=new i(t),a=n(i.prototype.request,r);return s.extend(a,i.prototype,r),s.extend(a,r),a.create=function(r){return e(o(t,r))},a}(r(5546));a.Axios=i,a.CanceledError=r(644),a.CancelToken=r(4972),a.isCancel=r(6502),a.VERSION=r(7288).version,a.toFormData=r(7675),a.AxiosError=r(2648),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=r(8713),a.isAxiosError=r(6268),e.exports=a,e.exports.default=a},4972:(e,t,r)=>{"use strict";var s=r(644);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,s=r._listeners.length;for(t=0;t<s;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,s=new Promise((function(e){r.subscribe(e),t=e})).then(e);return s.cancel=function(){r.unsubscribe(t)},s},e((function(e){r.reason||(r.reason=new s(e),t(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},n.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},n.source=function(){var e;return{token:new n((function(t){e=t})),cancel:e}},e.exports=n},644:(e,t,r)=>{"use strict";var s=r(2648);function n(e){s.call(this,null==e?"canceled":e,s.ERR_CANCELED),this.name="CanceledError"}r(4867).inherits(n,s,{__CANCEL__:!0}),e.exports=n},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var s=r(4867),n=r(5327),i=r(782),o=r(3572),a=r(7185),c=r(4097),u=r(4875),d=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var s=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!n){var l=[o,void 0];for(Array.prototype.unshift.apply(l,s),l=l.concat(c),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var p=t;s.length;){var f=s.shift(),g=s.shift();try{p=f(p)}catch(e){g(e);break}}try{i=o(p)}catch(e){return Promise.reject(e)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},l.prototype.getUri=function(e){e=a(this.defaults,e);var t=c(e.baseURL,e.url);return n(t,e.params,e.paramsSerializer)},s.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),s.forEach(["post","put","patch"],(function(e){function t(t){return function(r,s,n){return this.request(a(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}l.prototype[e]=t(),l.prototype[e+"Form"]=t(!0)})),e.exports=l},2648:(e,t,r)=>{"use strict";var s=r(4867);function n(e,t,r,s,n){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n)}s.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=n.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(n,o),Object.defineProperty(i,"isAxiosError",{value:!0}),n.from=function(e,t,r,o,a,c){var u=Object.create(i);return s.toFlatObject(e,u,(function(e){return e!==Error.prototype})),n.call(u,e.message,t,r,o,a),u.name=e.name,c&&Object.assign(u,c),u},e.exports=n},782:(e,t,r)=>{"use strict";var s=r(4867);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){s.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},4097:(e,t,r)=>{"use strict";var s=r(1793),n=r(7303);e.exports=function(e,t){return e&&!s(t)?n(e,t):t}},3572:(e,t,r)=>{"use strict";var s=r(4867),n=r(8527),i=r(6502),o=r(5546),a=r(644);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=s.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),s.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return c(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,r)=>{"use strict";var s=r(4867);e.exports=function(e,t){t=t||{};var r={};function n(e,t){return s.isPlainObject(e)&&s.isPlainObject(t)?s.merge(e,t):s.isPlainObject(t)?s.merge({},t):s.isArray(t)?t.slice():t}function i(r){return s.isUndefined(t[r])?s.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!s.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return s.isUndefined(t[r])?s.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function c(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return s.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,n=t(e);s.isUndefined(n)&&t!==c||(r[e]=n)})),r}},6026:(e,t,r)=>{"use strict";var s=r(2648);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new s("Request failed with status code "+r.status,[s.ERR_BAD_REQUEST,s.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},8527:(e,t,r)=>{"use strict";var s=r(4867),n=r(5546);e.exports=function(e,t,r){var i=this||n;return s.forEach(r,(function(r){e=r.call(i,e,t)})),e}},5546:(e,t,r)=>{"use strict";var s=r(4867),n=r(6016),i=r(2648),o=r(7874),a=r(7675),c={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d,l={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(d=r(5448)),d),transformRequest:[function(e,t){if(n(t,"Accept"),n(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e))return e;if(s.isArrayBufferView(e))return e.buffer;if(s.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,i=s.isObject(e),o=t&&t["Content-Type"];if((r=s.isFileList(e))||i&&"multipart/form-data"===o){var c=this.env&&this.env.FormData;return a(r?{"files[]":e}:e,c&&new c)}return i||"application/json"===o?(u(t,"application/json"),function(e,t,r){if(s.isString(e))try{return(0,JSON.parse)(e),s.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&s.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),s.forEach(["post","put","patch"],(function(e){l.headers[e]=s.merge(c)})),e.exports=l},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),s=0;s<r.length;s++)r[s]=arguments[s];return e.apply(t,r)}}},5327:(e,t,r)=>{"use strict";var s=r(4867);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(s.isURLSearchParams(t))i=t.toString();else{var o=[];s.forEach(t,(function(e,t){null!=e&&(s.isArray(e)?t+="[]":e=[e],s.forEach(e,(function(e){s.isDate(e)?e=e.toISOString():s.isObject(e)&&(e=JSON.stringify(e)),o.push(n(t)+"="+n(e))})))})),i=o.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var s=r(4867);e.exports=s.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),s.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),s.isString(n)&&a.push("path="+n),s.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{"use strict";var s=r(4867);e.exports=function(e){return s.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{"use strict";var s=r(4867);e.exports=s.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var s=e;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=s.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{"use strict";var s=r(4867);e.exports=function(e,t){s.forEach(e,(function(r,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[s])}))}},1623:e=>{e.exports=null},4109:(e,t,r)=>{"use strict";var s=r(4867),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,o={};return e?(s.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=s.trim(e.substr(0,i)).toLowerCase(),r=s.trim(e.substr(i+1)),t){if(o[t]&&n.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,r)=>{"use strict";var s=r(4867);e.exports=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":s.isDate(e)?e.toISOString():s.isArrayBuffer(e)||s.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,o){if(s.isPlainObject(i)||s.isArray(i)){if(-1!==r.indexOf(i))throw Error("Circular reference detected in "+o);r.push(i),s.forEach(i,(function(r,i){if(!s.isUndefined(r)){var a,c=o?o+"."+i:i;if(r&&!o&&"object"==typeof r)if(s.endsWith(i,"{}"))r=JSON.stringify(r);else if(s.endsWith(i,"[]")&&(a=s.toArray(r)))return void a.forEach((function(e){!s.isUndefined(e)&&t.append(c,n(e))}));e(r,c)}})),r.pop()}else t.append(o,n(i))}(e),t}},4875:(e,t,r)=>{"use strict";var s=r(7288).version,n=r(2648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+s+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,s,a){if(!1===e)throw new n(i(s," has been removed"+(t?" in "+t:"")),n.ERR_DEPRECATED);return t&&!o[s]&&(o[s]=!0,console.warn(i(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,a)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var s=Object.keys(e),i=s.length;i-- >0;){var o=s[i],a=t[o];if(a){var c=e[o],u=void 0===c||a(c,o,e);if(!0!==u)throw new n("option "+o+" must be "+u,n.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new n("Unknown option "+o,n.ERR_BAD_OPTION)}},validators:i}},4867:(e,t,r)=>{"use strict";var s,n=r(1849),i=Object.prototype.toString,o=(s=Object.create(null),function(e){var t=i.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var d=a("ArrayBuffer");function l(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=a("Date"),g=a("File"),h=a("Blob"),y=a("FileList");function b(e){return"[object Function]"===i.call(e)}var m=a("URLSearchParams");function A(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}var O,v=(O="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return O&&e instanceof O});e.exports={isArray:c,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:p,isUndefined:u,isDate:f,isFile:g,isBlob:h,isFunction:b,isStream:function(e){return l(e)&&b(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:A,merge:function e(){var t={};function r(r,s){p(t[s])&&p(r)?t[s]=e(t[s],r):p(r)?t[s]=e({},r):c(r)?t[s]=r.slice():t[s]=r}for(var s=0,n=arguments.length;s<n;s++)A(arguments[s],r);return t},extend:function(e,t,r){return A(t,(function(t,s){e[s]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,s){e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var s,n,i,o={};t=t||{};do{for(n=(s=Object.getOwnPropertyNames(e)).length;n-- >0;)o[i=s[n]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var s=e.indexOf(t,r);return-1!==s&&s===r},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:v,isFileList:y}},7654:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(9112),t),n(r(7845),t),n(r(3270),t),n(r(5752),t),n(r(100),t),n(r(3972),t),n(r(8760),t),n(r(6562),t),n(r(8874),t)},9063:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.AccountInformationApiAxiosParamCreator=function(e){return{getAllUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const s="/holdings",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),void 0!==n&&(p.brokerage_authorizations=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountBalance:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",n);const s="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountDetails:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountOrders:(t,r,n,o,c,u={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",n);const s="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.state=o),void 0!==c&&(g.days=c);let h=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})),getUserAccountPositions:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",n);const s="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",n);const s="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listUserAccounts:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const s="/accounts",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),updateUserAccount:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"PUT"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.AccountInformationApiFp=function(e){const r=(0,t.AccountInformationApiAxiosParamCreator)(e);return{getAllUserHoldings(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountBalance(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountDetails(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountOrders(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountPositions(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserHoldings(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listUserAccounts(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},updateUserAccount(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.AccountInformationApiFactory=function(e,r,s){const n=(0,t.AccountInformationApiFp)(e);return{getAllUserHoldings:(e,t)=>n.getAllUserHoldings(e,t).then((e=>e(s,r))),getUserAccountBalance:(e,t)=>n.getUserAccountBalance(e,t).then((e=>e(s,r))),getUserAccountDetails:(e,t)=>n.getUserAccountDetails(e,t).then((e=>e(s,r))),getUserAccountOrders:(e,t)=>n.getUserAccountOrders(e,t).then((e=>e(s,r))),getUserAccountPositions:(e,t)=>n.getUserAccountPositions(e,t).then((e=>e(s,r))),getUserHoldings:(e,t)=>n.getUserHoldings(e,t).then((e=>e(s,r))),listUserAccounts:(e,t)=>n.listUserAccounts(e,t).then((e=>e(s,r))),updateUserAccount:(e,t)=>n.updateUserAccount(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{getAllUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAllUserHoldings(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountBalance(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountBalance(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountDetails(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountDetails(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrders(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountPositions(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountPositions(e,r).then((e=>e(this.axios,this.basePath)))}getUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserHoldings(e,r).then((e=>e(this.axios,this.basePath)))}listUserAccounts(e,r){return(0,t.AccountInformationApiFp)(this.configuration).listUserAccounts(e,r).then((e=>e(this.axios,this.basePath)))}updateUserAccount(e,r){return(0,t.AccountInformationApiFp)(this.configuration).updateUserAccount(e,r).then((e=>e(this.axios,this.basePath)))}}t.AccountInformationApiGenerated=c},9112:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(9063);n(r(9063),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},8076:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>s(this,void 0,void 0,(function*(){const r=new URL("/",i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const n=Object.assign(Object.assign({method:"GET"},s),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=s&&s.headers?s.headers:{};return n.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:n,path:"/",configuration:e}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:n}}))}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return s(this,void 0,void 0,(function*(){const s=yield r.check(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.ApiStatusApiFactory=function(e,r,s){const n=(0,t.ApiStatusApiFp)(e);return{check:e=>n.check(e).then((e=>e(s,r)))}};class c extends o.BaseAPI{check(e){return(0,t.ApiStatusApiFp)(this.configuration).check(e).then((e=>e(this.axios,this.basePath)))}}t.ApiStatusApiGenerated=c},7845:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(8076);n(r(8076),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},9194:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const s="/snapTrade/deleteUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"DELETE"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.userId=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})),getUserJWT:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserJWT","userId",t),(0,i.assertParamExists)("getUserJWT","userSecret",r);const s="/snapTrade/encryptedJWT",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),listSnapTradeUsers:(t={})=>s(this,void 0,void 0,(function*(){const r="/snapTrade/listUsers",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),loginSnapTradeUser:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const s="/snapTrade/login",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),registerSnapTradeUser:(t,r={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const s="/snapTrade/registerUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}))}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserJWT(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserJWT(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listSnapTradeUsers(t){return s(this,void 0,void 0,(function*(){const s=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},loginSnapTradeUser(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.loginSnapTradeUser(t.userId,t.userSecret,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},registerSnapTradeUser(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.registerSnapTradeUser(t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.AuthenticationApiFactory=function(e,r,s){const n=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>n.deleteSnapTradeUser(e,t).then((e=>e(s,r))),getUserJWT:(e,t)=>n.getUserJWT(e,t).then((e=>e(s,r))),listSnapTradeUsers:e=>n.listSnapTradeUsers(e).then((e=>e(s,r))),loginSnapTradeUser:(e,t)=>n.loginSnapTradeUser(e,t).then((e=>e(s,r))),registerSnapTradeUser:(e,t)=>n.registerSnapTradeUser(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{deleteSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}getUserJWT(e,r){return(0,t.AuthenticationApiFp)(this.configuration).getUserJWT(e,r).then((e=>e(this.axios,this.basePath)))}listSnapTradeUsers(e){return(0,t.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(e).then((e=>e(this.axios,this.basePath)))}loginSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}registerSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}}t.AuthenticationApiGenerated=c},3270:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(9194);n(r(9194),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},115:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listBrokerageAuthorizations:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const s="/authorizations",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),removeBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"DELETE"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),sessionEvents:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const s="/sessionEvents",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.PartnerClientId=t),void 0!==r&&(p.userId=r),void 0!==n&&(p.sessionId=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.ConnectionsApiFp=function(e){const r=(0,t.ConnectionsApiAxiosParamCreator)(e);return{detailBrokerageAuthorization(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listBrokerageAuthorizations(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},removeBrokerageAuthorization(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},sessionEvents(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.ConnectionsApiFactory=function(e,r,s){const n=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>n.detailBrokerageAuthorization(e,t).then((e=>e(s,r))),listBrokerageAuthorizations:(e,t)=>n.listBrokerageAuthorizations(e,t).then((e=>e(s,r))),removeBrokerageAuthorization:(e,t)=>n.removeBrokerageAuthorization(e,t).then((e=>e(s,r))),sessionEvents:(e,t)=>n.sessionEvents(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{detailBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}listBrokerageAuthorizations(e,r){return(0,t.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(e,r).then((e=>e(this.axios,this.basePath)))}removeBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then((e=>e(this.axios,this.basePath)))}}t.ConnectionsApiGenerated=c},5752:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(115);n(r(115),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},7084:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLogsApiGenerated=t.ErrorLogsApiFactory=t.ErrorLogsApiFp=t.ErrorLogsApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.ErrorLogsApiAxiosParamCreator=function(e){return{listUserErrors:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserErrors","userId",t),(0,i.assertParamExists)("listUserErrors","userSecret",r);const s="/snapTrade/listUserErrors",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}))}},t.ErrorLogsApiFp=function(e){const r=(0,t.ErrorLogsApiAxiosParamCreator)(e);return{listUserErrors(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.listUserErrors(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.ErrorLogsApiFactory=function(e,r,s){const n=(0,t.ErrorLogsApiFp)(e);return{listUserErrors:(e,t)=>n.listUserErrors(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{listUserErrors(e,r){return(0,t.ErrorLogsApiFp)(this.configuration).listUserErrors(e,r).then((e=>e(this.axios,this.basePath)))}}t.ErrorLogsApiGenerated=c},100:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLogsApi=void 0;const i=r(7084);n(r(7084),t);class o extends i.ErrorLogsApiGenerated{}t.ErrorLogsApi=o},2856:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",n),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const s="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:f,requestConfig:l,path:s,configuration:e}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}})),getOptionsChain:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",n),(0,i.assertParamExists)("getOptionsChain","symbol",o);const s="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==o&&(f.symbol=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:l,path:s,configuration:e}),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}})),getOptionsStrategyQuote:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",n),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const s="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:l,path:s,configuration:e}),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}})),listOptionHoldings:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",n);const s="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOptionStrategy:(t,r,n,o,c,u={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",n),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const s="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"POST"},l),u),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),f["Content-Type"]="application/json";let h=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:g,requestConfig:p,path:s,configuration:e}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}))}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getOptionStrategy(t.userId,t.userSecret,t.accountId,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getOptionsChain(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getOptionsStrategyQuote(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listOptionHoldings(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},placeOptionStrategy(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.placeOptionStrategy(t.userId,t.userSecret,t.accountId,t.optionStrategyId,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.OptionsApiFactory=function(e,r,s){const n=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>n.getOptionStrategy(e,t).then((e=>e(s,r))),getOptionsChain:(e,t)=>n.getOptionsChain(e,t).then((e=>e(s,r))),getOptionsStrategyQuote:(e,t)=>n.getOptionsStrategyQuote(e,t).then((e=>e(s,r))),listOptionHoldings:(e,t)=>n.listOptionHoldings(e,t).then((e=>e(s,r))),placeOptionStrategy:(e,t)=>n.placeOptionStrategy(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{getOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsStrategyQuote(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(e,r).then((e=>e(this.axios,this.basePath)))}listOptionHoldings(e,r){return(0,t.OptionsApiFp)(this.configuration).listOptionHoldings(e,r).then((e=>e(this.axios,this.basePath)))}placeOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).placeOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}}t.OptionsApiGenerated=c},3972:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(2856);n(r(2856),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},6744:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const s="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})),getPartnerInfo:(t={})=>s(this,void 0,void 0,(function*(){const r="/snapTrade/partners",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),getSecurityTypes:(t={})=>s(this,void 0,void 0,(function*(){const r="/securityTypes",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),getStockExchanges:(t={})=>s(this,void 0,void 0,(function*(){const r="/exchanges",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),getSymbols:(t,r={})=>s(this,void 0,void 0,(function*(){const s="/symbols",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})),getSymbolsByTicker:(t,r,n={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getSymbolsByTicker","ticker",t);const s="/symbols/{ticker}".replace("{ticker}",encodeURIComponent(String(void 0!==t?t:"-ticker-"))),o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"timestamp",configuration:e}),void 0!==r&&(l.symbolId=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),listAllBrokerageAuthorizationType:(t,r={})=>s(this,void 0,void 0,(function*(){const s="/brokerageAuthorizationTypes",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.brokerage=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})),listAllBrokerages:(t={})=>s(this,void 0,void 0,(function*(){const r="/brokerages",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),listAllCurrencies:(t={})=>s(this,void 0,void 0,(function*(){const r="/currencies",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),listAllCurrenciesRates:(t={})=>s(this,void 0,void 0,(function*(){const r="/currencies/rates",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}})),symbolSearchUserAccount:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",n);const s="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:f,requestConfig:l,path:s,configuration:e}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}}))}},t.ReferenceDataApiFp=function(e){const r=(0,t.ReferenceDataApiAxiosParamCreator)(e);return{getCurrencyExchangeRatePair(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getPartnerInfo(t){return s(this,void 0,void 0,(function*(){const s=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getSecurityTypes(t){return s(this,void 0,void 0,(function*(){const s=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getStockExchanges(t){return s(this,void 0,void 0,(function*(){const s=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getSymbols(t={},a){return s(this,void 0,void 0,(function*(){const s=yield r.getSymbols(t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getSymbolsByTicker(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getSymbolsByTicker(t.ticker,t.symbolId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listAllBrokerageAuthorizationType(t={},a){return s(this,void 0,void 0,(function*(){const s=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listAllBrokerages(t){return s(this,void 0,void 0,(function*(){const s=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listAllCurrencies(t){return s(this,void 0,void 0,(function*(){const s=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},listAllCurrenciesRates(t){return s(this,void 0,void 0,(function*(){const s=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},symbolSearchUserAccount(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.ReferenceDataApiFactory=function(e,r,s){const n=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>n.getCurrencyExchangeRatePair(e,t).then((e=>e(s,r))),getPartnerInfo:e=>n.getPartnerInfo(e).then((e=>e(s,r))),getSecurityTypes:e=>n.getSecurityTypes(e).then((e=>e(s,r))),getStockExchanges:e=>n.getStockExchanges(e).then((e=>e(s,r))),getSymbols:(e={},t)=>n.getSymbols(e,t).then((e=>e(s,r))),getSymbolsByTicker:(e,t)=>n.getSymbolsByTicker(e,t).then((e=>e(s,r))),listAllBrokerageAuthorizationType:(e={},t)=>n.listAllBrokerageAuthorizationType(e,t).then((e=>e(s,r))),listAllBrokerages:e=>n.listAllBrokerages(e).then((e=>e(s,r))),listAllCurrencies:e=>n.listAllCurrencies(e).then((e=>e(s,r))),listAllCurrenciesRates:e=>n.listAllCurrenciesRates(e).then((e=>e(s,r))),symbolSearchUserAccount:(e,t)=>n.symbolSearchUserAccount(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{getCurrencyExchangeRatePair(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(e,r).then((e=>e(this.axios,this.basePath)))}getPartnerInfo(e){return(0,t.ReferenceDataApiFp)(this.configuration).getPartnerInfo(e).then((e=>e(this.axios,this.basePath)))}getSecurityTypes(e){return(0,t.ReferenceDataApiFp)(this.configuration).getSecurityTypes(e).then((e=>e(this.axios,this.basePath)))}getStockExchanges(e){return(0,t.ReferenceDataApiFp)(this.configuration).getStockExchanges(e).then((e=>e(this.axios,this.basePath)))}getSymbols(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbols(e,r).then((e=>e(this.axios,this.basePath)))}getSymbolsByTicker(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(e,r).then((e=>e(this.axios,this.basePath)))}listAllBrokerageAuthorizationType(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(e,r).then((e=>e(this.axios,this.basePath)))}listAllBrokerages(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerages(e).then((e=>e(this.axios,this.basePath)))}listAllCurrencies(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrencies(e).then((e=>e(this.axios,this.basePath)))}listAllCurrenciesRates(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(e).then((e=>e(this.axios,this.basePath)))}symbolSearchUserAccount(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(e,r).then((e=>e(this.axios,this.basePath)))}}t.ReferenceDataApiGenerated=c},8760:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(6744);n(r(6744),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},8298:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.TradingApiAxiosParamCreator=function(e){return{cancelUserAccountOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",n),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const s="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:f,requestConfig:l,path:s,configuration:e}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,f),{url:(0,i.toPathString)(u),options:l}})),getOrderImpact:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",n);const s="/trade/impact",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountQuotes:(t,r,n,o,c,u={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",n),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const s="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==n&&(g.symbols=n),void 0!==c&&(g.use_ticker=c);let h=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})),placeForceOrder:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeForm",n);const s="/trade/place",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOCOOrder:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOCOOrder","userId",t),(0,i.assertParamExists)("placeOCOOrder","userSecret",r),(0,i.assertParamExists)("placeOCOOrder","tradingPlaceOCOOrderRequest",n);const s="/trade/oco",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOrder:(t,r,n,o={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",n);const s="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let f=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),f),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelUserAccountOrder(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getOrderImpact(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getOrderImpact(t.userId,t.userSecret,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getUserAccountQuotes(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},placeForceOrder(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.placeForceOrder(t.userId,t.userSecret,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},placeOCOOrder(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.placeOCOOrder(t.userId,t.userSecret,t,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},placeOrder(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.TradingApiFactory=function(e,r,s){const n=(0,t.TradingApiFp)(e);return{cancelUserAccountOrder:(e,t)=>n.cancelUserAccountOrder(e,t).then((e=>e(s,r))),getOrderImpact:(e,t)=>n.getOrderImpact(e,t).then((e=>e(s,r))),getUserAccountQuotes:(e,t)=>n.getUserAccountQuotes(e,t).then((e=>e(s,r))),placeForceOrder:(e,t)=>n.placeForceOrder(e,t).then((e=>e(s,r))),placeOCOOrder:(e,t)=>n.placeOCOOrder(e,t).then((e=>e(s,r))),placeOrder:(e,t)=>n.placeOrder(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(e,r).then((e=>e(this.axios,this.basePath)))}getOrderImpact(e,r){return(0,t.TradingApiFp)(this.configuration).getOrderImpact(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountQuotes(e,r){return(0,t.TradingApiFp)(this.configuration).getUserAccountQuotes(e,r).then((e=>e(this.axios,this.basePath)))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(e,r).then((e=>e(this.axios,this.basePath)))}placeOCOOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOCOOrder(e,r).then((e=>e(this.axios,this.basePath)))}placeOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOrder(e,r).then((e=>e(this.axios,this.basePath)))}}t.TradingApiGenerated=c},6562:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(8298);n(r(8298),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},6168:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const n=r(9669),i=r(6090),o=r(8280),a=r(4807);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const s="/activities",p=new URL(s,i.DUMMY_BASE_URL);let f;e&&(f=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},f),l),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,keyParamName:"timestamp",configuration:e}),void 0!==n&&(y.startDate=n instanceof Date?n.toISOString().substr(0,10):n),void 0!==o&&(y.endDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(y.accounts=c),void 0!==u&&(y.brokerageAuthorizations=u),void 0!==d&&(y.type=d),void 0!==t&&(y.userId=t),void 0!==r&&(y.userSecret=r);let b=f&&f.headers?f.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},h),b),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}})),getReportingCustomRange:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",n),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const s="/performance/custom",p=new URL(s,i.DUMMY_BASE_URL);let f;e&&(f=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},f),l),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,keyParamName:"Signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,keyParamName:"timestamp",configuration:e}),void 0!==t&&(y.startDate=t instanceof Date?t.toISOString().substr(0,10):t),void 0!==r&&(y.endDate=r instanceof Date?r.toISOString().substr(0,10):r),void 0!==c&&(y.accounts=c),void 0!==u&&(y.detailed=u),void 0!==d&&(y.frequency=d),void 0!==n&&(y.userId=n),void 0!==o&&(y.userSecret=o);let b=f&&f.headers?f.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},h),b),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}}))}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))},getReportingCustomRange(t,a){return s(this,void 0,void 0,(function*(){const s=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)}))}}},t.TransactionsAndReportingApiFactory=function(e,r,s){const n=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>n.getActivities(e,t).then((e=>e(s,r))),getReportingCustomRange:(e,t)=>n.getReportingCustomRange(e,t).then((e=>e(s,r)))}};class c extends o.BaseAPI{getActivities(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getActivities(e,r).then((e=>e(this.axios,this.basePath)))}getReportingCustomRange(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getReportingCustomRange(e,r).then((e=>e(this.axios,this.basePath)))}}t.TransactionsAndReportingApiGenerated=c},8874:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(6168);n(r(6168),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},8280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const s=r(9669);t.BASE_PATH="https://api.snaptrade.com/api/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.BaseAPI=class{constructor(e,r=t.BASE_PATH,n=s.default){this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class n extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=n},9250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},1929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const s=r(7654),n=r(247),i=r(9250);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new n.Configuration(e);this.accountInformation=new s.AccountInformationApi(t),this.apiStatus=new s.ApiStatusApi(t),this.authentication=new s.AuthenticationApi(t),this.connections=new s.ConnectionsApi(t),this.errorLogs=new s.ErrorLogsApi(t),this.options=new s.OptionsApi(t),this.referenceData=new s.ReferenceDataApi(t),this.trading=new s.TradingApi(t),this.transactionsAndReporting=new s.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6090:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.createRequestFunction=t.removeTrailingSlash=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;const n=r(8280),i=r(9669),o=r(8610),a=r(7837),c=r(6578);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach((t=>u(e,t,r))):Object.keys(t).forEach((s=>u(e,t[s],`${r}${""!==r?".":""}${s}`))):e.has(r)?e.append(r,t):e.set(r,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,r){if(null==r)throw new n.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:n,configuration:i,prefix:o}){return s(this,void 0,void 0,(function*(){t=t||n;let s=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)s=yield i.apiKey(n);else if("string"==typeof i.apiKey)s=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);n in i.apiKey&&(s=i.apiKey[n])}s&&(e[t]=void 0!==o?`${o}${s}`:s,"Cookie"===r&&(e[t]=`${n}=${e[t]}`))}))},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return s(this,void 0,void 0,(function*(){if(t&&t.accessToken){const r="function"==typeof t.accessToken?yield t.accessToken():yield t.accessToken;e.Authorization="Bearer "+r}}))},t.setSearchParams=function(e,...t){const r=new URLSearchParams(e.search);u(r,t),e.search=r.toString()},t.serializeDataIfNeeded=function(e,t,r){const s="string"!=typeof e;return(s&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},t.toPathString=function(e){return(0,t.removeTrailingSlash)(e.pathname)+e.search+e.hash},t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")},t.createRequestFunction=function(e,t,r,n){return(u=t,d=r)=>s(this,void 0,void 0,(function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:n});const t=((null==n?void 0:n.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:n}),function(e){var t,r,n;return s(this,void 0,void 0,(function*(){try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError)try{const s=(null===(t=e.response)||void 0===t?void 0:t.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(r=e.response)||void 0===r?void 0:r.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(s))}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(n=e.response)||void 0===n?void 0:n.data);if(t instanceof c.SnaptradeError)throw t;throw e}throw e}}))}((()=>s(this,void 0,void 0,(function*(){return yield u.request(Object.assign(Object.assign({},e.options),{url:t}))}))))}))},t.isBrowser=function(){return"undefined"!=typeof window}},247:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e={}){var t;this.consumerKey=e.consumerKey,this.apiKey=e.apiKey,void 0===this.apiKey&&(this.apiKey={},void 0!==e.clientId&&(this.apiKey.clientId=e.clientId),void 0!==e.signature&&(this.apiKey.Signature=e.signature),void 0!==e.timestamp&&(this.apiKey.timestamp=e.timestamp)),this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=null!==(t=e.baseOptions)&&void 0!==t?t:{},this.userAgent=void 0===e.userAgent?"Konfig/8.29.11/typescript":e.userAgent,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}},6578:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class s extends Error{constructor(e,t){var r,s,n;super(e.message),this.name="SnaptradeError",this.code=e.code,this.method=null===(r=e.config.method)||void 0===r?void 0:r.toUpperCase(),this.url=e.config.url,this.status=null===(s=e.response)||void 0===s?void 0:s.status,this.statusText=null===(n=e.response)||void 0===n?void 0:n.statusText,this.responseBody=t}toJSON(){return{name:this.name,message:this.message,method:this.method,url:this.url,code:this.code,status:this.status,statusText:this.statusText,responseBody:this.responseBody}}}t.SnaptradeError=s,t.readableStreamToString=function(e){return r(this,void 0,void 0,(function*(){const t=new TextDecoder,r=e.getReader();let s="";try{for(;;){const{done:e,value:n}=yield r.read();if(e)break;s+=t.decode(n,{stream:!0})}}finally{r.releaseLock()}return s}))},t.parseIfJson=function(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t?t:e}catch(t){return e}}},8492:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(7654),t),n(r(247),t),n(r(8708),t),n(r(1929),t),n(r(6578),t)},5783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6208:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4962:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7196:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9119:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7049:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1631:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6046:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6563:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2788:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8708:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(7246),t),n(r(8349),t),n(r(5783),t),n(r(4962),t),n(r(6208),t),n(r(3368),t),n(r(2423),t),n(r(7196),t),n(r(1487),t),n(r(7333),t),n(r(3562),t),n(r(3149),t),n(r(9119),t),n(r(3637),t),n(r(5463),t),n(r(3250),t),n(r(1631),t),n(r(7049),t),n(r(547),t),n(r(9516),t),n(r(5062),t),n(r(1402),t),n(r(9417),t),n(r(6046),t),n(r(6563),t),n(r(2788),t),n(r(3810),t),n(r(9003),t),n(r(1988),t),n(r(5650),t),n(r(4983),t),n(r(246),t),n(r(6819),t),n(r(9442),t),n(r(6891),t),n(r(8432),t),n(r(5648),t),n(r(1618),t),n(r(5914),t),n(r(9164),t),n(r(5249),t),n(r(5231),t),n(r(8953),t),n(r(900),t),n(r(6551),t),n(r(7865),t),n(r(5924),t),n(r(5652),t),n(r(3778),t),n(r(1807),t),n(r(1992),t),n(r(7058),t),n(r(6583),t),n(r(6581),t),n(r(4920),t),n(r(7690),t),n(r(3139),t),n(r(3786),t),n(r(5178),t),n(r(5631),t),n(r(4914),t),n(r(3122),t),n(r(6682),t),n(r(7892),t),n(r(1548),t),n(r(1187),t),n(r(5211),t),n(r(357),t),n(r(8166),t),n(r(9588),t),n(r(674),t),n(r(1796),t),n(r(957),t),n(r(5068),t),n(r(7207),t),n(r(7386),t),n(r(9518),t),n(r(8647),t),n(r(4088),t),n(r(4065),t),n(r(6290),t),n(r(7309),t),n(r(4896),t),n(r(8048),t),n(r(2870),t),n(r(9207),t),n(r(5849),t),n(r(2997),t),n(r(1157),t),n(r(340),t),n(r(2003),t),n(r(6189),t),n(r(7346),t),n(r(9064),t),n(r(5410),t),n(r(4586),t),n(r(5907),t),n(r(9405),t),n(r(7311),t),n(r(481),t),n(r(2313),t),n(r(1756),t),n(r(4659),t),n(r(9478),t),n(r(2539),t),n(r(3949),t),n(r(5937),t),n(r(8585),t),n(r(8362),t),n(r(3358),t),n(r(431),t),n(r(6387),t),n(r(135),t),n(r(4987),t),n(r(6937),t)},9442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8432:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1992:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},900:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4920:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5631:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5211:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5068:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4896:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5410:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4586:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9405:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7311:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2313:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5937:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6937:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8610:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return s(this,void 0,void 0,(function*(){const{configuration:t,basePath:n,axiosArgs:i,url:o}=e;if(void 0===(null==t?void 0:t.consumerKey))throw Error("Consumer key is required");const a=encodeURI(t.consumerKey),c=void 0===i.options.data||"{}"===i.options.data?null:JSON.parse(i.options.data),u=-1===i.url.indexOf("?")?`${i.url}`:`${i.url.split("?")[0]}`,d=(l={content:c,path:`/api/v1${u}`,query:o.replace(n,"").replace(u,"").replace("?","")},p=[],f={},JSON.stringify(l,(function(e,t){return e in f||(p.push(e),f[e]=null),t})),p.sort(),JSON.stringify(l,p));var l,p,f;const g=yield function(e,t){return s(this,void 0,void 0,(function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const s=r(6904).createHmac("sha256",t);return s.update(e),s.digest("base64")}{const r=new TextEncoder,s=r.encode(t),n=r.encode(e),i=yield window.crypto.subtle.importKey("raw",s,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield window.crypto.subtle.sign("HMAC",i,n),a=new Uint8Array(o);return btoa(String.fromCharCode.apply(null,a))}}))}(d,a);i.options.headers&&(i.options.headers.Signature=g)}))}},4807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeHook=void 0,t.requestBeforeHook=function(e){const{queryParameters:t}=e;t.timestamp=Math.round((new Date).getTime()/1e3).toString()}},7837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},6904:()=>{}},t={},function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={exports:{}};return e[s].call(i.exports,i,i.exports,r),i.exports}(8492);var e,t}));
@@ -32,7 +32,7 @@ class Configuration {
32
32
  this.accessToken = param.accessToken;
33
33
  this.basePath = param.basePath;
34
34
  this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
35
- this.userAgent = param.userAgent === undefined ? "Konfig/8.29.9/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/8.29.11/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -44,11 +44,11 @@ export interface ManualTradeForm {
44
44
  */
45
45
  'time_in_force'?: TimeInForce;
46
46
  /**
47
- * Trade Units. Cannot work with notional value.
47
+ *
48
48
  * @type {number}
49
49
  * @memberof ManualTradeForm
50
50
  */
51
- 'units'?: number;
51
+ 'units'?: number | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -56,7 +56,7 @@ export interface ManualTradeForm {
56
56
  */
57
57
  'universal_symbol_id'?: string;
58
58
  /**
59
- * Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
59
+ *
60
60
  * @type {number}
61
61
  * @memberof ManualTradeForm
62
62
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "8.29.9",
3
+ "version": "8.29.11",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {