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.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/core/user-agent.ts
|
|
8
|
-
var SDK_VERSION = "0.
|
|
8
|
+
var SDK_VERSION = "0.13.0";
|
|
9
9
|
var USER_AGENT = `ault-sdk-ts/${SDK_VERSION}`;
|
|
10
10
|
function isServerRuntime() {
|
|
11
11
|
if (typeof document !== "undefined") return false;
|
|
@@ -31843,13 +31843,6 @@ function getPortfolioHoldings(address, options) {
|
|
|
31843
31843
|
method: "GET"
|
|
31844
31844
|
});
|
|
31845
31845
|
}
|
|
31846
|
-
function getPortfolioFlows(address, range, options) {
|
|
31847
|
-
const query = range ? `?range=${range}` : "";
|
|
31848
|
-
return dexFetch(`/api/v1/portfolio/${enc4(address)}/flows${query}`, {
|
|
31849
|
-
...options,
|
|
31850
|
-
method: "GET"
|
|
31851
|
-
});
|
|
31852
|
-
}
|
|
31853
31846
|
function getPortfolioPnl(address, range, options) {
|
|
31854
31847
|
const query = range ? `?range=${range}` : "";
|
|
31855
31848
|
return dexFetch(`/api/v1/portfolio/${enc4(address)}/pnl${query}`, {
|
|
@@ -31902,7 +31895,6 @@ function createDexApi(context) {
|
|
|
31902
31895
|
getBalance: bind(context, getBalance),
|
|
31903
31896
|
getStats: bind(context, getStats),
|
|
31904
31897
|
getPortfolioHoldings: bind(context, getPortfolioHoldings),
|
|
31905
|
-
getPortfolioFlows: bind(context, getPortfolioFlows),
|
|
31906
31898
|
getPortfolioPnl: bind(context, getPortfolioPnl),
|
|
31907
31899
|
getPortfolioTimeSeries: bind(context, getPortfolioTimeSeries),
|
|
31908
31900
|
getUDFConfig: bind(context, getUDFConfig),
|
|
@@ -42266,7 +42258,6 @@ export {
|
|
|
42266
42258
|
getPerpOrderbookQueryDepthDefault,
|
|
42267
42259
|
getPerpOrderbookQueryDepthMax,
|
|
42268
42260
|
getPerpTickerPathMarketIdRegExp,
|
|
42269
|
-
getPortfolioFlows,
|
|
42270
42261
|
getPortfolioHoldings,
|
|
42271
42262
|
getPortfolioPnl,
|
|
42272
42263
|
getPortfolioTimeSeries,
|