@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.
- package/build/index.cjs +1 -1
- package/build/index.mjs +1 -1
- package/build/types/sor/TradeScheduler.d.ts +10 -0
- package/package.json +1 -1
|
@@ -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
|
*
|