@riocrypto/common 1.0.1472 → 1.0.1474

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.
@@ -173,7 +173,8 @@ export declare class RioAdminClient {
173
173
  createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, origin: SwapOrigin, destination: SwapOrigin, provider: SwapProvider): Promise<void>;
174
174
  expediteInternalSwap(id: string): Promise<void>;
175
175
  getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
176
- createMultipartOrder(amount: number, recipe: LiquidityOrderRecipe): Promise<MultipartLiquidityOrder>;
176
+ createMultipartOrder(amount: number, recipe: LiquidityOrderRecipe, amountUSDToLeaveAtCoinbase?: number): Promise<MultipartLiquidityOrder>;
177
+ updateMultipartOrder(amount?: number, recipe?: LiquidityOrderRecipe, amountUSDToLeaveAtCoinbase?: number): Promise<MultipartLiquidityOrder>;
177
178
  getMultipartOrders(page: number, limit?: number): Promise<MultipartLiquidityOrder[]>;
178
179
  getAddressVerification(cryptoAddressId: string): Promise<AddressVerification>;
179
180
  getBankAccountVerification(bankAccountId: string): Promise<BankAccountVerification>;
@@ -596,11 +596,22 @@ class RioAdminClient {
596
596
  return data;
597
597
  });
598
598
  }
599
- createMultipartOrder(amount, recipe) {
599
+ createMultipartOrder(amount, recipe, amountUSDToLeaveAtCoinbase) {
600
600
  return __awaiter(this, void 0, void 0, function* () {
601
601
  const { data } = yield this.axios.post(`/api/liquidity/multipart-orders`, {
602
602
  amount,
603
603
  recipe,
604
+ amountUSDToLeaveAtCoinbase,
605
+ });
606
+ return data;
607
+ });
608
+ }
609
+ updateMultipartOrder(amount, recipe, amountUSDToLeaveAtCoinbase) {
610
+ return __awaiter(this, void 0, void 0, function* () {
611
+ const { data } = yield this.axios.patch(`/api/liquidity/multipart-orders`, {
612
+ amount,
613
+ recipe,
614
+ amountUSDToLeaveAtCoinbase,
604
615
  });
605
616
  return data;
606
617
  });
@@ -12,4 +12,5 @@ export interface MultipartLiquidityOrder {
12
12
  status: "bbvaWithdrawn" | "brexDeposited" | "brexWithdrawing" | "brexWithdrawn" | "coinbaseDeposited" | "coinbaseTrading" | "coinbaseTraded" | "coinbaseWithdrawing" | "coinbaseWithdrawn" | "done";
13
13
  coinbaseOrderId?: string;
14
14
  brexTransferId?: string;
15
+ amountUSDToLeaveAtCoinbase?: number;
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1472",
3
+ "version": "1.0.1474",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",