ault-sdk-ts 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/rest/dex.d.ts +1 -2
- package/dist/rest/portfolio.d.ts +0 -27
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -410,7 +410,6 @@ __export(index_exports, {
|
|
|
410
410
|
getPerpOrderbookQueryDepthDefault: () => getPerpOrderbookQueryDepthDefault,
|
|
411
411
|
getPerpOrderbookQueryDepthMax: () => getPerpOrderbookQueryDepthMax,
|
|
412
412
|
getPerpTickerPathMarketIdRegExp: () => getPerpTickerPathMarketIdRegExp,
|
|
413
|
-
getPortfolioFlows: () => getPortfolioFlows,
|
|
414
413
|
getPortfolioHoldings: () => getPortfolioHoldings,
|
|
415
414
|
getPortfolioPnl: () => getPortfolioPnl,
|
|
416
415
|
getPortfolioTimeSeries: () => getPortfolioTimeSeries,
|
|
@@ -632,7 +631,7 @@ __export(index_exports, {
|
|
|
632
631
|
module.exports = __toCommonJS(index_exports);
|
|
633
632
|
|
|
634
633
|
// src/core/user-agent.ts
|
|
635
|
-
var SDK_VERSION = "0.
|
|
634
|
+
var SDK_VERSION = "0.13.0";
|
|
636
635
|
var USER_AGENT = `ault-sdk-ts/${SDK_VERSION}`;
|
|
637
636
|
function isServerRuntime() {
|
|
638
637
|
if (typeof document !== "undefined") return false;
|
|
@@ -32470,13 +32469,6 @@ function getPortfolioHoldings(address, options) {
|
|
|
32470
32469
|
method: "GET"
|
|
32471
32470
|
});
|
|
32472
32471
|
}
|
|
32473
|
-
function getPortfolioFlows(address, range, options) {
|
|
32474
|
-
const query = range ? `?range=${range}` : "";
|
|
32475
|
-
return dexFetch(`/api/v1/portfolio/${enc4(address)}/flows${query}`, {
|
|
32476
|
-
...options,
|
|
32477
|
-
method: "GET"
|
|
32478
|
-
});
|
|
32479
|
-
}
|
|
32480
32472
|
function getPortfolioPnl(address, range, options) {
|
|
32481
32473
|
const query = range ? `?range=${range}` : "";
|
|
32482
32474
|
return dexFetch(`/api/v1/portfolio/${enc4(address)}/pnl${query}`, {
|
|
@@ -32529,7 +32521,6 @@ function createDexApi(context) {
|
|
|
32529
32521
|
getBalance: bind(context, getBalance),
|
|
32530
32522
|
getStats: bind(context, getStats),
|
|
32531
32523
|
getPortfolioHoldings: bind(context, getPortfolioHoldings),
|
|
32532
|
-
getPortfolioFlows: bind(context, getPortfolioFlows),
|
|
32533
32524
|
getPortfolioPnl: bind(context, getPortfolioPnl),
|
|
32534
32525
|
getPortfolioTimeSeries: bind(context, getPortfolioTimeSeries),
|
|
32535
32526
|
getUDFConfig: bind(context, getUDFConfig),
|
|
@@ -42894,7 +42885,6 @@ function createDexWs(url, options) {
|
|
|
42894
42885
|
getPerpOrderbookQueryDepthDefault,
|
|
42895
42886
|
getPerpOrderbookQueryDepthMax,
|
|
42896
42887
|
getPerpTickerPathMarketIdRegExp,
|
|
42897
|
-
getPortfolioFlows,
|
|
42898
42888
|
getPortfolioHoldings,
|
|
42899
42889
|
getPortfolioPnl,
|
|
42900
42890
|
getPortfolioTimeSeries,
|