@galacticcouncil/sdk-next 0.30.4 → 0.31.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.
@@ -56,6 +56,16 @@ export declare class TradeScheduler {
56
56
  * @returns optimal number of trades to execute the order
57
57
  */
58
58
  protected getOptimalTradeCount(priceImpact: number): number;
59
+ /**
60
+ * Build an open budget DCA (Dollar Cost Averaging) order.
61
+ *
62
+ * @param assetIn - storage key of assetIn
63
+ * @param assetOut - storage key of assetOut
64
+ * @param amountIn - per-trade amount
65
+ * @param periodMs - interval between trades in ms
66
+ * @returns - dca trade order with amountIn = 0 (open budget)
67
+ */
68
+ getOpenBudgetDcaOrder(assetIn: number, assetOut: number, amountIn: string, periodMs: number): Promise<TradeDcaOrder>;
59
69
  /**
60
70
  * Build a TWAP (Time-Weighted Average Price) sell order
61
71
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacticcouncil/sdk-next",
3
- "version": "0.30.4",
3
+ "version": "0.31.0",
4
4
  "description": "Galactic next gen sdk (papi)",
5
5
  "author": "GalacticCouncil",
6
6
  "repository": {