ccxt 4.2.97 → 4.2.98
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 +3 -3
- package/dist/ccxt.browser.js +1 -1
- package/dist/ccxt.browser.min.js +1 -1
- package/dist/cjs/ccxt.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -212,13 +212,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
212
212
|
|
|
213
213
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
214
214
|
|
|
215
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
|
216
|
-
* unpkg: https://unpkg.com/ccxt@4.2.
|
|
215
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.98/dist/ccxt.browser.js
|
|
216
|
+
* unpkg: https://unpkg.com/ccxt@4.2.98/dist/ccxt.browser.js
|
|
217
217
|
|
|
218
218
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
|
219
219
|
|
|
220
220
|
```HTML
|
|
221
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
|
221
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.98/dist/ccxt.browser.js"></script>
|
|
222
222
|
```
|
|
223
223
|
|
|
224
224
|
Creates a global `ccxt` object:
|
package/dist/ccxt.browser.js
CHANGED
|
@@ -326840,7 +326840,7 @@ SOFTWARE.
|
|
|
326840
326840
|
|
|
326841
326841
|
//-----------------------------------------------------------------------------
|
|
326842
326842
|
// this is updated by vss.js when building
|
|
326843
|
-
const version = '4.2.
|
|
326843
|
+
const version = '4.2.98';
|
|
326844
326844
|
_src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
|
|
326845
326845
|
//-----------------------------------------------------------------------------
|
|
326846
326846
|
|
package/dist/ccxt.browser.min.js
CHANGED
|
@@ -27,4 +27,4 @@ Code licensed under the BSD License:
|
|
|
27
27
|
http://developer.yahoo.com/yui/license.html
|
|
28
28
|
version: 2.9.0
|
|
29
29
|
*/
|
|
30
|
-
var i={};i.lang={extend:function(e,t,s){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),s){var r;for(r in s)e.prototype[r]=s[r];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(e,t){for(r=0;r<o.length;r+=1){var s=o[r],i=t[s];"function"==typeof i&&i!=Object.prototype[s]&&(e[s]=i)}})}catch(e){}a(e.prototype,s)}}}},9948:(e,t,s)=>{function i(e,t){if(t&&t.multiple&&!Array.isArray(e))throw new Error("Invalid argument type: Expected an Array to serialize multiple values.");const s=4294967296;let i,r,a=new Uint8Array(128),o=0;if(t&&t.multiple)for(let t=0;t<e.length;t++)n(e[t]);else n(e);return a.subarray(0,o);function n(e,a){switch(typeof e){case"undefined":d(e);break;case"boolean":!function(e){c(e?195:194)}(e);break;case"number":!function(e){if(isFinite(e)&&Math.floor(e)===e)if(e>=0&&e<=127)c(e);else if(e<0&&e>=-32)c(e);else if(e>0&&e<=255)l([204,e]);else if(e>=-128&&e<=127)l([208,e]);else if(e>0&&e<=65535)l([205,e>>>8,e]);else if(e>=-32768&&e<=32767)l([209,e>>>8,e]);else if(e>0&&e<=4294967295)l([206,e>>>24,e>>>16,e>>>8,e]);else if(e>=-2147483648&&e<=2147483647)l([210,e>>>24,e>>>16,e>>>8,e]);else if(e>0&&e<=0x10000000000000000){let t=e/s,i=e%s;l([207,t>>>24,t>>>16,t>>>8,t,i>>>24,i>>>16,i>>>8,i])}else e>=-0x8000000000000000&&e<=0x8000000000000000?(c(211),u(e)):l(e<0?[211,128,0,0,0,0,0,0,0]:[207,255,255,255,255,255,255,255,255]);else r||(i=new ArrayBuffer(8),r=new DataView(i)),r.setFloat64(0,e),c(203),l(new Uint8Array(i))}(e);break;case"string":!function(e){let t=function(e){let t=!0,s=e.length;for(let i=0;i<s;i++)if(e.charCodeAt(i)>127){t=!1;break}let i=0,r=new Uint8Array(e.length*(t?1:4));for(let t=0;t!==s;t++){let a=e.charCodeAt(t);if(a<128)r[i++]=a;else{if(a<2048)r[i++]=a>>6|192;else{if(a>55295&&a<56320){if(++t>=s)throw new Error("UTF-8 encode: incomplete surrogate pair");let o=e.charCodeAt(t);if(o<56320||o>57343)throw new Error("UTF-8 encode: second surrogate character 0x"+o.toString(16)+" at index "+t+" out of range");a=65536+((1023&a)<<10)+(1023&o),r[i++]=a>>18|240,r[i++]=a>>12&63|128}else r[i++]=a>>12|224;r[i++]=a>>6&63|128}r[i++]=63&a|128}}return t?r:r.subarray(0,i)}(e),s=t.length;s<=31?c(160+s):l(s<=255?[217,s]:s<=65535?[218,s>>>8,s]:[219,s>>>24,s>>>16,s>>>8,s]);l(t)}(e);break;case"object":null===e?d(e):e instanceof Date?function(e){let t=e.getTime()/1e3;if(0===e.getMilliseconds()&&t>=0&&t<4294967296)l([214,255,t>>>24,t>>>16,t>>>8,t]);else if(t>=0&&t<17179869184){let i=1e6*e.getMilliseconds();l([215,255,i>>>22,i>>>14,i>>>6,i<<2>>>0|t/s,t>>>24,t>>>16,t>>>8,t])}else{let s=1e6*e.getMilliseconds();l([199,12,255,s>>>24,s>>>16,s>>>8,s]),u(t)}}(e):Array.isArray(e)?h(e):e instanceof Uint8Array||e instanceof Uint8ClampedArray?function(e){let t=e.length;l(t<=15?[196,t]:t<=65535?[197,t>>>8,t]:[198,t>>>24,t>>>16,t>>>8,t]);l(e)}(e):e instanceof Int8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array?h(e):function(e){let t=0;for(let s in e)void 0!==e[s]&&t++;t<=15?c(128+t):l(t<=65535?[222,t>>>8,t]:[223,t>>>24,t>>>16,t>>>8,t]);for(let t in e){let s=e[t];void 0!==s&&(n(t),n(s))}}(e);break;default:if(a||!t||!t.invalidTypeReplacement)throw new Error("Invalid argument type: The type '"+typeof e+"' cannot be serialized.");"function"==typeof t.invalidTypeReplacement?n(t.invalidTypeReplacement(e),!0):n(t.invalidTypeReplacement,!0)}}function d(e){c(192)}function h(e){let t=e.length;t<=15?c(144+t):l(t<=65535?[220,t>>>8,t]:[221,t>>>24,t>>>16,t>>>8,t]);for(let s=0;s<t;s++)n(e[s])}function c(e){if(a.length<o+1){let e=2*a.length;for(;e<o+1;)e*=2;let t=new Uint8Array(e);t.set(a),a=t}a[o]=e,o++}function l(e){if(a.length<o+e.length){let t=2*a.length;for(;t<o+e.length;)t*=2;let s=new Uint8Array(t);s.set(a),a=s}a.set(e,o),o+=e.length}function u(e){let t,i;e>=0?(t=e/s,i=e%s):(e++,t=Math.abs(e)/s,i=Math.abs(e)%s,t=~t,i=~i),l([t>>>24,t>>>16,t>>>8,t,i>>>24,i>>>16,i>>>8,i])}}s.d(t,{q:()=>i})}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,s),a.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{s.r(i),s.d(i,{AccountNotEnabled:()=>a.AccountNotEnabled,AccountSuspended:()=>a.AccountSuspended,AddressPending:()=>a.AddressPending,ArgumentsRequired:()=>a.ArgumentsRequired,AuthenticationError:()=>a.AuthenticationError,BadRequest:()=>a.BadRequest,BadResponse:()=>a.BadResponse,BadSymbol:()=>a.BadSymbol,BaseError:()=>a.BaseError,CancelPending:()=>a.CancelPending,ContractUnavailable:()=>a.ContractUnavailable,DDoSProtection:()=>a.DDoSProtection,DuplicateOrderId:()=>a.DuplicateOrderId,Exchange:()=>e.e,ExchangeClosedByUser:()=>a.ExchangeClosedByUser,ExchangeError:()=>a.ExchangeError,ExchangeNotAvailable:()=>a.ExchangeNotAvailable,InsufficientFunds:()=>a.InsufficientFunds,InvalidAddress:()=>a.InvalidAddress,InvalidNonce:()=>a.InvalidNonce,InvalidOrder:()=>a.InvalidOrder,MarginModeAlreadySet:()=>a.MarginModeAlreadySet,NetworkError:()=>a.NetworkError,NoChange:()=>a.NoChange,NotSupported:()=>a.NotSupported,NullResponse:()=>a.NullResponse,OnMaintenance:()=>a.OnMaintenance,OperationFailed:()=>a.OperationFailed,OperationRejected:()=>a.OperationRejected,OrderImmediatelyFillable:()=>a.OrderImmediatelyFillable,OrderNotCached:()=>a.OrderNotCached,OrderNotFillable:()=>a.OrderNotFillable,OrderNotFound:()=>a.OrderNotFound,PermissionDenied:()=>a.PermissionDenied,Precise:()=>t.O,ProxyError:()=>a.ProxyError,RateLimitExceeded:()=>a.RateLimitExceeded,RequestTimeout:()=>a.RequestTimeout,ace:()=>o.Z,alpaca:()=>n.Z,ascendex:()=>d.Z,bequant:()=>h.Z,bigone:()=>c.Z,binance:()=>l.Z,binancecoinm:()=>u.Z,binanceus:()=>p.Z,binanceusdm:()=>f.Z,bingx:()=>m.Z,bit2c:()=>g.Z,bitbank:()=>v.Z,bitbay:()=>y.Z,bitbns:()=>w.Z,bitcoincom:()=>b.Z,bitfinex:()=>S.Z,bitfinex2:()=>k.Z,bitflyer:()=>O.Z,bitget:()=>T.Z,bithumb:()=>P.Z,bitmart:()=>x.Z,bitmex:()=>I.Z,bitopro:()=>M.Z,bitpanda:()=>A.Z,bitrue:()=>C.Z,bitso:()=>E.Z,bitstamp:()=>_.Z,bitteam:()=>B.Z,bitvavo:()=>N.Z,bl3p:()=>R.Z,blockchaincom:()=>L.Z,blofin:()=>V.Z,btcalpha:()=>D.Z,btcbox:()=>q.Z,btcmarkets:()=>F.Z,btcturk:()=>G.Z,bybit:()=>H.Z,cex:()=>U.Z,coinbase:()=>W.Z,coinbaseinternational:()=>j.Z,coinbasepro:()=>K.Z,coincheck:()=>z.Z,coinex:()=>Z.Z,coinlist:()=>X.Z,coinmate:()=>Q.Z,coinmetro:()=>Y.Z,coinone:()=>J.Z,coinsph:()=>$.Z,coinspot:()=>ee.Z,cryptocom:()=>te.Z,currencycom:()=>se.Z,default:()=>fs,delta:()=>ie.Z,deribit:()=>re.Z,digifinex:()=>ae.Z,errors:()=>a,exchanges:()=>us,exmo:()=>oe.Z,fmfwio:()=>ne.Z,functions:()=>r,gate:()=>de.Z,gateio:()=>he.Z,gemini:()=>ce.Z,hitbtc:()=>le.Z,hitbtc3:()=>ue.Z,hollaex:()=>pe.Z,htx:()=>fe.Z,huobi:()=>me.Z,huobijp:()=>ge.Z,hyperliquid:()=>ve.Z,idex:()=>ye.Z,independentreserve:()=>we.Z,indodax:()=>be.Z,kraken:()=>Se.Z,krakenfutures:()=>ke.Z,kucoin:()=>Oe.Z,kucoinfutures:()=>Te.Z,kuna:()=>Pe.Z,latoken:()=>xe.Z,lbank:()=>Ie.Z,luno:()=>Me.Z,lykke:()=>Ae.Z,mercado:()=>Ce.Z,mexc:()=>Ee.Z,ndax:()=>_e.Z,novadax:()=>Be.Z,oceanex:()=>Ne.Z,okcoin:()=>Re.Z,okx:()=>Le.Z,onetrading:()=>Ve.Z,p2b:()=>De.Z,paymium:()=>qe.Z,phemex:()=>Fe.Z,poloniex:()=>Ge.Z,poloniexfutures:()=>He.Z,pro:()=>ps,probit:()=>Ue.Z,timex:()=>We.Z,tokocrypto:()=>je.Z,tradeogre:()=>Ke.Z,upbit:()=>ze.Z,version:()=>ls,wavesexchange:()=>Ze.Z,wazirx:()=>Xe.Z,whitebit:()=>Qe.Z,woo:()=>Ye.Z,yobit:()=>Je.Z,zaif:()=>$e.Z,zonda:()=>et.Z});var e=s(3043),t=s(2194),r=s(7100),a=s(6689),o=s(9869),n=s(5660),d=s(9612),h=s(2049),c=s(7679),l=s(9987),u=s(9212),p=s(2723),f=s(3254),m=s(7960),g=s(7691),v=s(7820),y=s(668),w=s(7790),b=s(1819),S=s(6537),k=s(730),O=s(8429),T=s(9051),P=s(5305),x=s(3718),I=s(7077),M=s(172),A=s(2737),C=s(854),E=s(4388),_=s(4667),B=s(8994),N=s(9943),R=s(9476),L=s(182),V=s(687),D=s(6246),q=s(7796),F=s(1776),G=s(6304),H=s(3527),U=s(6445),W=s(437),j=s(9339),K=s(8856),z=s(2117),Z=s(332),X=s(3623),Q=s(9816),Y=s(4759),J=s(7811),$=s(5782),ee=s(7794),te=s(9129),se=s(3214),ie=s(1753),re=s(24),ae=s(8846),oe=s(1729),ne=s(5788),de=s(7290),he=s(7036),ce=s(6743),le=s(4714),ue=s(4815),pe=s(8422),fe=s(5939),me=s(8146),ge=s(7034),ve=s(5959),ye=s(8232),we=s(9570),be=s(1605),Se=s(9922),ke=s(4470),Oe=s(3583),Te=s(1924),Pe=s(7732),xe=s(2545),Ie=s(3944),Me=s(1758),Ae=s(3803),Ce=s(9013),Ee=s(6641),_e=s(4531),Be=s(2449),Ne=s(6749),Re=s(3007),Le=s(4042),Ve=s(6481),De=s(2466),qe=s(7082),Fe=s(79),Ge=s(8891),He=s(6877),Ue=s(3657),We=s(1067),je=s(5261),Ke=s(1911),ze=s(7584),Ze=s(3853),Xe=s(6536),Qe=s(5467),Ye=s(517),Je=s(3850),$e=s(5934),et=s(5140),tt=s(2467),st=s(2383),it=s(8848),rt=s(8764),at=s(5078),ot=s(1326),nt=s(1230),dt=s(6955),ht=s(453),ct=s(9772),lt=s(588),ut=s(1885),pt=s(4922),ft=s(7504),mt=s(2302),gt=s(2191),vt=s(1297),yt=s(3005),wt=s(2317),bt=s(6977),St=s(2519),kt=s(5030),Ot=s(5272),Tt=s(3414),Pt=s(6541),xt=s(8368),It=s(7891),Mt=s(204),At=s(5208),Ct=s(6820),Et=s(2952),_t=s(1788),Bt=s(9004),Nt=s(8335),Rt=s(1465),Lt=s(9488),Vt=s(5189),Dt=s(8559),qt=s(7474),Ft=s(8384),Gt=s(9021),Ht=s(8354),Ut=s(3484),Wt=s(1311),jt=s(736),Kt=s(449),zt=s(2387),Zt=s(7181),Xt=s(1267),Qt=s(627),Yt=s(6484),Jt=s(8080),$t=s(7105),es=s(2214),ts=s(9419),ss=s(8516),is=s(4360),rs=s(7924),as=s(3541),os=s(9782),ns=s(7614),ds=s(4828),hs=s(5630),cs=s(3910);const ls="4.2.96";e.e.ccxtVersion=ls;const us={ace:o.Z,alpaca:n.Z,ascendex:d.Z,bequant:h.Z,bigone:c.Z,binance:l.Z,binancecoinm:u.Z,binanceus:p.Z,binanceusdm:f.Z,bingx:m.Z,bit2c:g.Z,bitbank:v.Z,bitbay:y.Z,bitbns:w.Z,bitcoincom:b.Z,bitfinex:S.Z,bitfinex2:k.Z,bitflyer:O.Z,bitget:T.Z,bithumb:P.Z,bitmart:x.Z,bitmex:I.Z,bitopro:M.Z,bitpanda:A.Z,bitrue:C.Z,bitso:E.Z,bitstamp:_.Z,bitteam:B.Z,bitvavo:N.Z,bl3p:R.Z,blockchaincom:L.Z,blofin:V.Z,btcalpha:D.Z,btcbox:q.Z,btcmarkets:F.Z,btcturk:G.Z,bybit:H.Z,cex:U.Z,coinbase:W.Z,coinbaseinternational:j.Z,coinbasepro:K.Z,coincheck:z.Z,coinex:Z.Z,coinlist:X.Z,coinmate:Q.Z,coinmetro:Y.Z,coinone:J.Z,coinsph:$.Z,coinspot:ee.Z,cryptocom:te.Z,currencycom:se.Z,delta:ie.Z,deribit:re.Z,digifinex:ae.Z,exmo:oe.Z,fmfwio:ne.Z,gate:de.Z,gateio:he.Z,gemini:ce.Z,hitbtc:le.Z,hitbtc3:ue.Z,hollaex:pe.Z,htx:fe.Z,huobi:me.Z,huobijp:ge.Z,hyperliquid:ve.Z,idex:ye.Z,independentreserve:we.Z,indodax:be.Z,kraken:Se.Z,krakenfutures:ke.Z,kucoin:Oe.Z,kucoinfutures:Te.Z,kuna:Pe.Z,latoken:xe.Z,lbank:Ie.Z,luno:Me.Z,lykke:Ae.Z,mercado:Ce.Z,mexc:Ee.Z,ndax:_e.Z,novadax:Be.Z,oceanex:Ne.Z,okcoin:Re.Z,okx:Le.Z,onetrading:Ve.Z,p2b:De.Z,paymium:qe.Z,phemex:Fe.Z,poloniex:Ge.Z,poloniexfutures:He.Z,probit:Ue.Z,timex:We.Z,tokocrypto:je.Z,tradeogre:Ke.Z,upbit:ze.Z,wavesexchange:Ze.Z,wazirx:Xe.Z,whitebit:Qe.Z,woo:Ye.Z,yobit:Je.Z,zaif:$e.Z,zonda:et.Z},ps={alpaca:tt.Z,ascendex:st.Z,bequant:it.Z,binance:rt.Z,binancecoinm:at.Z,binanceus:ot.Z,binanceusdm:nt.Z,bingx:dt.Z,bitcoincom:ht.Z,bitfinex:ct.Z,bitfinex2:lt.Z,bitget:ut.Z,bithumb:pt.Z,bitmart:ft.Z,bitmex:mt.Z,bitopro:gt.Z,bitpanda:vt.Z,bitrue:yt.Z,bitstamp:wt.Z,bitvavo:bt.Z,blockchaincom:St.Z,bybit:kt.Z,cex:Ot.Z,coinbase:Tt.Z,coinbaseinternational:Pt.Z,coinbasepro:xt.Z,coincheck:It.Z,coinex:Mt.Z,coinone:At.Z,cryptocom:Ct.Z,currencycom:Et.Z,deribit:_t.Z,exmo:Bt.Z,gate:Nt.Z,gateio:Rt.Z,gemini:Lt.Z,hitbtc:Vt.Z,hollaex:Dt.Z,htx:qt.Z,huobi:Ft.Z,huobijp:Gt.Z,hyperliquid:Ht.Z,idex:Ut.Z,independentreserve:Wt.Z,kraken:jt.Z,krakenfutures:Kt.Z,kucoin:zt.Z,kucoinfutures:Zt.Z,lbank:Xt.Z,luno:Qt.Z,mexc:Yt.Z,ndax:Jt.Z,okcoin:$t.Z,okx:es.Z,onetrading:ts.Z,p2b:ss.Z,phemex:is.Z,poloniex:rs.Z,poloniexfutures:as.Z,probit:os.Z,upbit:ns.Z,wazirx:ds.Z,whitebit:hs.Z,woo:cs.Z};for(const e in ps);ps.exchanges=Object.keys(ps),ps.Exchange=e.e;const fs=Object.assign({version:ls,Exchange:e.e,Precise:t.O,exchanges:Object.keys(us),pro:ps},us,r,a)})(),self.ccxt=i})();
|
|
30
|
+
var i={};i.lang={extend:function(e,t,s){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),s){var r;for(r in s)e.prototype[r]=s[r];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(e,t){for(r=0;r<o.length;r+=1){var s=o[r],i=t[s];"function"==typeof i&&i!=Object.prototype[s]&&(e[s]=i)}})}catch(e){}a(e.prototype,s)}}}},9948:(e,t,s)=>{function i(e,t){if(t&&t.multiple&&!Array.isArray(e))throw new Error("Invalid argument type: Expected an Array to serialize multiple values.");const s=4294967296;let i,r,a=new Uint8Array(128),o=0;if(t&&t.multiple)for(let t=0;t<e.length;t++)n(e[t]);else n(e);return a.subarray(0,o);function n(e,a){switch(typeof e){case"undefined":d(e);break;case"boolean":!function(e){c(e?195:194)}(e);break;case"number":!function(e){if(isFinite(e)&&Math.floor(e)===e)if(e>=0&&e<=127)c(e);else if(e<0&&e>=-32)c(e);else if(e>0&&e<=255)l([204,e]);else if(e>=-128&&e<=127)l([208,e]);else if(e>0&&e<=65535)l([205,e>>>8,e]);else if(e>=-32768&&e<=32767)l([209,e>>>8,e]);else if(e>0&&e<=4294967295)l([206,e>>>24,e>>>16,e>>>8,e]);else if(e>=-2147483648&&e<=2147483647)l([210,e>>>24,e>>>16,e>>>8,e]);else if(e>0&&e<=0x10000000000000000){let t=e/s,i=e%s;l([207,t>>>24,t>>>16,t>>>8,t,i>>>24,i>>>16,i>>>8,i])}else e>=-0x8000000000000000&&e<=0x8000000000000000?(c(211),u(e)):l(e<0?[211,128,0,0,0,0,0,0,0]:[207,255,255,255,255,255,255,255,255]);else r||(i=new ArrayBuffer(8),r=new DataView(i)),r.setFloat64(0,e),c(203),l(new Uint8Array(i))}(e);break;case"string":!function(e){let t=function(e){let t=!0,s=e.length;for(let i=0;i<s;i++)if(e.charCodeAt(i)>127){t=!1;break}let i=0,r=new Uint8Array(e.length*(t?1:4));for(let t=0;t!==s;t++){let a=e.charCodeAt(t);if(a<128)r[i++]=a;else{if(a<2048)r[i++]=a>>6|192;else{if(a>55295&&a<56320){if(++t>=s)throw new Error("UTF-8 encode: incomplete surrogate pair");let o=e.charCodeAt(t);if(o<56320||o>57343)throw new Error("UTF-8 encode: second surrogate character 0x"+o.toString(16)+" at index "+t+" out of range");a=65536+((1023&a)<<10)+(1023&o),r[i++]=a>>18|240,r[i++]=a>>12&63|128}else r[i++]=a>>12|224;r[i++]=a>>6&63|128}r[i++]=63&a|128}}return t?r:r.subarray(0,i)}(e),s=t.length;s<=31?c(160+s):l(s<=255?[217,s]:s<=65535?[218,s>>>8,s]:[219,s>>>24,s>>>16,s>>>8,s]);l(t)}(e);break;case"object":null===e?d(e):e instanceof Date?function(e){let t=e.getTime()/1e3;if(0===e.getMilliseconds()&&t>=0&&t<4294967296)l([214,255,t>>>24,t>>>16,t>>>8,t]);else if(t>=0&&t<17179869184){let i=1e6*e.getMilliseconds();l([215,255,i>>>22,i>>>14,i>>>6,i<<2>>>0|t/s,t>>>24,t>>>16,t>>>8,t])}else{let s=1e6*e.getMilliseconds();l([199,12,255,s>>>24,s>>>16,s>>>8,s]),u(t)}}(e):Array.isArray(e)?h(e):e instanceof Uint8Array||e instanceof Uint8ClampedArray?function(e){let t=e.length;l(t<=15?[196,t]:t<=65535?[197,t>>>8,t]:[198,t>>>24,t>>>16,t>>>8,t]);l(e)}(e):e instanceof Int8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array?h(e):function(e){let t=0;for(let s in e)void 0!==e[s]&&t++;t<=15?c(128+t):l(t<=65535?[222,t>>>8,t]:[223,t>>>24,t>>>16,t>>>8,t]);for(let t in e){let s=e[t];void 0!==s&&(n(t),n(s))}}(e);break;default:if(a||!t||!t.invalidTypeReplacement)throw new Error("Invalid argument type: The type '"+typeof e+"' cannot be serialized.");"function"==typeof t.invalidTypeReplacement?n(t.invalidTypeReplacement(e),!0):n(t.invalidTypeReplacement,!0)}}function d(e){c(192)}function h(e){let t=e.length;t<=15?c(144+t):l(t<=65535?[220,t>>>8,t]:[221,t>>>24,t>>>16,t>>>8,t]);for(let s=0;s<t;s++)n(e[s])}function c(e){if(a.length<o+1){let e=2*a.length;for(;e<o+1;)e*=2;let t=new Uint8Array(e);t.set(a),a=t}a[o]=e,o++}function l(e){if(a.length<o+e.length){let t=2*a.length;for(;t<o+e.length;)t*=2;let s=new Uint8Array(t);s.set(a),a=s}a.set(e,o),o+=e.length}function u(e){let t,i;e>=0?(t=e/s,i=e%s):(e++,t=Math.abs(e)/s,i=Math.abs(e)%s,t=~t,i=~i),l([t>>>24,t>>>16,t>>>8,t,i>>>24,i>>>16,i>>>8,i])}}s.d(t,{q:()=>i})}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,s),a.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{s.r(i),s.d(i,{AccountNotEnabled:()=>a.AccountNotEnabled,AccountSuspended:()=>a.AccountSuspended,AddressPending:()=>a.AddressPending,ArgumentsRequired:()=>a.ArgumentsRequired,AuthenticationError:()=>a.AuthenticationError,BadRequest:()=>a.BadRequest,BadResponse:()=>a.BadResponse,BadSymbol:()=>a.BadSymbol,BaseError:()=>a.BaseError,CancelPending:()=>a.CancelPending,ContractUnavailable:()=>a.ContractUnavailable,DDoSProtection:()=>a.DDoSProtection,DuplicateOrderId:()=>a.DuplicateOrderId,Exchange:()=>e.e,ExchangeClosedByUser:()=>a.ExchangeClosedByUser,ExchangeError:()=>a.ExchangeError,ExchangeNotAvailable:()=>a.ExchangeNotAvailable,InsufficientFunds:()=>a.InsufficientFunds,InvalidAddress:()=>a.InvalidAddress,InvalidNonce:()=>a.InvalidNonce,InvalidOrder:()=>a.InvalidOrder,MarginModeAlreadySet:()=>a.MarginModeAlreadySet,NetworkError:()=>a.NetworkError,NoChange:()=>a.NoChange,NotSupported:()=>a.NotSupported,NullResponse:()=>a.NullResponse,OnMaintenance:()=>a.OnMaintenance,OperationFailed:()=>a.OperationFailed,OperationRejected:()=>a.OperationRejected,OrderImmediatelyFillable:()=>a.OrderImmediatelyFillable,OrderNotCached:()=>a.OrderNotCached,OrderNotFillable:()=>a.OrderNotFillable,OrderNotFound:()=>a.OrderNotFound,PermissionDenied:()=>a.PermissionDenied,Precise:()=>t.O,ProxyError:()=>a.ProxyError,RateLimitExceeded:()=>a.RateLimitExceeded,RequestTimeout:()=>a.RequestTimeout,ace:()=>o.Z,alpaca:()=>n.Z,ascendex:()=>d.Z,bequant:()=>h.Z,bigone:()=>c.Z,binance:()=>l.Z,binancecoinm:()=>u.Z,binanceus:()=>p.Z,binanceusdm:()=>f.Z,bingx:()=>m.Z,bit2c:()=>g.Z,bitbank:()=>v.Z,bitbay:()=>y.Z,bitbns:()=>w.Z,bitcoincom:()=>b.Z,bitfinex:()=>S.Z,bitfinex2:()=>k.Z,bitflyer:()=>O.Z,bitget:()=>T.Z,bithumb:()=>P.Z,bitmart:()=>x.Z,bitmex:()=>I.Z,bitopro:()=>M.Z,bitpanda:()=>A.Z,bitrue:()=>C.Z,bitso:()=>E.Z,bitstamp:()=>_.Z,bitteam:()=>B.Z,bitvavo:()=>N.Z,bl3p:()=>R.Z,blockchaincom:()=>L.Z,blofin:()=>V.Z,btcalpha:()=>D.Z,btcbox:()=>q.Z,btcmarkets:()=>F.Z,btcturk:()=>G.Z,bybit:()=>H.Z,cex:()=>U.Z,coinbase:()=>W.Z,coinbaseinternational:()=>j.Z,coinbasepro:()=>K.Z,coincheck:()=>z.Z,coinex:()=>Z.Z,coinlist:()=>X.Z,coinmate:()=>Q.Z,coinmetro:()=>Y.Z,coinone:()=>J.Z,coinsph:()=>$.Z,coinspot:()=>ee.Z,cryptocom:()=>te.Z,currencycom:()=>se.Z,default:()=>fs,delta:()=>ie.Z,deribit:()=>re.Z,digifinex:()=>ae.Z,errors:()=>a,exchanges:()=>us,exmo:()=>oe.Z,fmfwio:()=>ne.Z,functions:()=>r,gate:()=>de.Z,gateio:()=>he.Z,gemini:()=>ce.Z,hitbtc:()=>le.Z,hitbtc3:()=>ue.Z,hollaex:()=>pe.Z,htx:()=>fe.Z,huobi:()=>me.Z,huobijp:()=>ge.Z,hyperliquid:()=>ve.Z,idex:()=>ye.Z,independentreserve:()=>we.Z,indodax:()=>be.Z,kraken:()=>Se.Z,krakenfutures:()=>ke.Z,kucoin:()=>Oe.Z,kucoinfutures:()=>Te.Z,kuna:()=>Pe.Z,latoken:()=>xe.Z,lbank:()=>Ie.Z,luno:()=>Me.Z,lykke:()=>Ae.Z,mercado:()=>Ce.Z,mexc:()=>Ee.Z,ndax:()=>_e.Z,novadax:()=>Be.Z,oceanex:()=>Ne.Z,okcoin:()=>Re.Z,okx:()=>Le.Z,onetrading:()=>Ve.Z,p2b:()=>De.Z,paymium:()=>qe.Z,phemex:()=>Fe.Z,poloniex:()=>Ge.Z,poloniexfutures:()=>He.Z,pro:()=>ps,probit:()=>Ue.Z,timex:()=>We.Z,tokocrypto:()=>je.Z,tradeogre:()=>Ke.Z,upbit:()=>ze.Z,version:()=>ls,wavesexchange:()=>Ze.Z,wazirx:()=>Xe.Z,whitebit:()=>Qe.Z,woo:()=>Ye.Z,yobit:()=>Je.Z,zaif:()=>$e.Z,zonda:()=>et.Z});var e=s(3043),t=s(2194),r=s(7100),a=s(6689),o=s(9869),n=s(5660),d=s(9612),h=s(2049),c=s(7679),l=s(9987),u=s(9212),p=s(2723),f=s(3254),m=s(7960),g=s(7691),v=s(7820),y=s(668),w=s(7790),b=s(1819),S=s(6537),k=s(730),O=s(8429),T=s(9051),P=s(5305),x=s(3718),I=s(7077),M=s(172),A=s(2737),C=s(854),E=s(4388),_=s(4667),B=s(8994),N=s(9943),R=s(9476),L=s(182),V=s(687),D=s(6246),q=s(7796),F=s(1776),G=s(6304),H=s(3527),U=s(6445),W=s(437),j=s(9339),K=s(8856),z=s(2117),Z=s(332),X=s(3623),Q=s(9816),Y=s(4759),J=s(7811),$=s(5782),ee=s(7794),te=s(9129),se=s(3214),ie=s(1753),re=s(24),ae=s(8846),oe=s(1729),ne=s(5788),de=s(7290),he=s(7036),ce=s(6743),le=s(4714),ue=s(4815),pe=s(8422),fe=s(5939),me=s(8146),ge=s(7034),ve=s(5959),ye=s(8232),we=s(9570),be=s(1605),Se=s(9922),ke=s(4470),Oe=s(3583),Te=s(1924),Pe=s(7732),xe=s(2545),Ie=s(3944),Me=s(1758),Ae=s(3803),Ce=s(9013),Ee=s(6641),_e=s(4531),Be=s(2449),Ne=s(6749),Re=s(3007),Le=s(4042),Ve=s(6481),De=s(2466),qe=s(7082),Fe=s(79),Ge=s(8891),He=s(6877),Ue=s(3657),We=s(1067),je=s(5261),Ke=s(1911),ze=s(7584),Ze=s(3853),Xe=s(6536),Qe=s(5467),Ye=s(517),Je=s(3850),$e=s(5934),et=s(5140),tt=s(2467),st=s(2383),it=s(8848),rt=s(8764),at=s(5078),ot=s(1326),nt=s(1230),dt=s(6955),ht=s(453),ct=s(9772),lt=s(588),ut=s(1885),pt=s(4922),ft=s(7504),mt=s(2302),gt=s(2191),vt=s(1297),yt=s(3005),wt=s(2317),bt=s(6977),St=s(2519),kt=s(5030),Ot=s(5272),Tt=s(3414),Pt=s(6541),xt=s(8368),It=s(7891),Mt=s(204),At=s(5208),Ct=s(6820),Et=s(2952),_t=s(1788),Bt=s(9004),Nt=s(8335),Rt=s(1465),Lt=s(9488),Vt=s(5189),Dt=s(8559),qt=s(7474),Ft=s(8384),Gt=s(9021),Ht=s(8354),Ut=s(3484),Wt=s(1311),jt=s(736),Kt=s(449),zt=s(2387),Zt=s(7181),Xt=s(1267),Qt=s(627),Yt=s(6484),Jt=s(8080),$t=s(7105),es=s(2214),ts=s(9419),ss=s(8516),is=s(4360),rs=s(7924),as=s(3541),os=s(9782),ns=s(7614),ds=s(4828),hs=s(5630),cs=s(3910);const ls="4.2.97";e.e.ccxtVersion=ls;const us={ace:o.Z,alpaca:n.Z,ascendex:d.Z,bequant:h.Z,bigone:c.Z,binance:l.Z,binancecoinm:u.Z,binanceus:p.Z,binanceusdm:f.Z,bingx:m.Z,bit2c:g.Z,bitbank:v.Z,bitbay:y.Z,bitbns:w.Z,bitcoincom:b.Z,bitfinex:S.Z,bitfinex2:k.Z,bitflyer:O.Z,bitget:T.Z,bithumb:P.Z,bitmart:x.Z,bitmex:I.Z,bitopro:M.Z,bitpanda:A.Z,bitrue:C.Z,bitso:E.Z,bitstamp:_.Z,bitteam:B.Z,bitvavo:N.Z,bl3p:R.Z,blockchaincom:L.Z,blofin:V.Z,btcalpha:D.Z,btcbox:q.Z,btcmarkets:F.Z,btcturk:G.Z,bybit:H.Z,cex:U.Z,coinbase:W.Z,coinbaseinternational:j.Z,coinbasepro:K.Z,coincheck:z.Z,coinex:Z.Z,coinlist:X.Z,coinmate:Q.Z,coinmetro:Y.Z,coinone:J.Z,coinsph:$.Z,coinspot:ee.Z,cryptocom:te.Z,currencycom:se.Z,delta:ie.Z,deribit:re.Z,digifinex:ae.Z,exmo:oe.Z,fmfwio:ne.Z,gate:de.Z,gateio:he.Z,gemini:ce.Z,hitbtc:le.Z,hitbtc3:ue.Z,hollaex:pe.Z,htx:fe.Z,huobi:me.Z,huobijp:ge.Z,hyperliquid:ve.Z,idex:ye.Z,independentreserve:we.Z,indodax:be.Z,kraken:Se.Z,krakenfutures:ke.Z,kucoin:Oe.Z,kucoinfutures:Te.Z,kuna:Pe.Z,latoken:xe.Z,lbank:Ie.Z,luno:Me.Z,lykke:Ae.Z,mercado:Ce.Z,mexc:Ee.Z,ndax:_e.Z,novadax:Be.Z,oceanex:Ne.Z,okcoin:Re.Z,okx:Le.Z,onetrading:Ve.Z,p2b:De.Z,paymium:qe.Z,phemex:Fe.Z,poloniex:Ge.Z,poloniexfutures:He.Z,probit:Ue.Z,timex:We.Z,tokocrypto:je.Z,tradeogre:Ke.Z,upbit:ze.Z,wavesexchange:Ze.Z,wazirx:Xe.Z,whitebit:Qe.Z,woo:Ye.Z,yobit:Je.Z,zaif:$e.Z,zonda:et.Z},ps={alpaca:tt.Z,ascendex:st.Z,bequant:it.Z,binance:rt.Z,binancecoinm:at.Z,binanceus:ot.Z,binanceusdm:nt.Z,bingx:dt.Z,bitcoincom:ht.Z,bitfinex:ct.Z,bitfinex2:lt.Z,bitget:ut.Z,bithumb:pt.Z,bitmart:ft.Z,bitmex:mt.Z,bitopro:gt.Z,bitpanda:vt.Z,bitrue:yt.Z,bitstamp:wt.Z,bitvavo:bt.Z,blockchaincom:St.Z,bybit:kt.Z,cex:Ot.Z,coinbase:Tt.Z,coinbaseinternational:Pt.Z,coinbasepro:xt.Z,coincheck:It.Z,coinex:Mt.Z,coinone:At.Z,cryptocom:Ct.Z,currencycom:Et.Z,deribit:_t.Z,exmo:Bt.Z,gate:Nt.Z,gateio:Rt.Z,gemini:Lt.Z,hitbtc:Vt.Z,hollaex:Dt.Z,htx:qt.Z,huobi:Ft.Z,huobijp:Gt.Z,hyperliquid:Ht.Z,idex:Ut.Z,independentreserve:Wt.Z,kraken:jt.Z,krakenfutures:Kt.Z,kucoin:zt.Z,kucoinfutures:Zt.Z,lbank:Xt.Z,luno:Qt.Z,mexc:Yt.Z,ndax:Jt.Z,okcoin:$t.Z,okx:es.Z,onetrading:ts.Z,p2b:ss.Z,phemex:is.Z,poloniex:rs.Z,poloniexfutures:as.Z,probit:os.Z,upbit:ns.Z,wazirx:ds.Z,whitebit:hs.Z,woo:cs.Z};for(const e in ps);ps.exchanges=Object.keys(ps),ps.Exchange=e.e;const fs=Object.assign({version:ls,Exchange:e.e,Precise:t.O,exchanges:Object.keys(us),pro:ps},us,r,a)})(),self.ccxt=i})();
|
package/dist/cjs/ccxt.js
CHANGED
|
@@ -182,7 +182,7 @@ var woo$1 = require('./src/pro/woo.js');
|
|
|
182
182
|
|
|
183
183
|
//-----------------------------------------------------------------------------
|
|
184
184
|
// this is updated by vss.js when building
|
|
185
|
-
const version = '4.2.
|
|
185
|
+
const version = '4.2.98';
|
|
186
186
|
Exchange["default"].ccxtVersion = version;
|
|
187
187
|
const exchanges = {
|
|
188
188
|
'ace': ace,
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.2.
|
|
7
|
+
declare const version = "4.2.97";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.2.
|
|
41
|
+
const version = '4.2.98';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
package/package.json
CHANGED