From 50e5ec09d0116242bd8b2914f83ced901b14af45 Mon Sep 17 00:00:00 2001 From: Noam Rodrik Date: Tue, 2 Jul 2024 10:15:18 +0300 Subject: [PATCH] Added internal transfers --- src/fireblocks-sdk.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/fireblocks-sdk.ts b/src/fireblocks-sdk.ts index be905cff..31f9f99e 100644 --- a/src/fireblocks-sdk.ts +++ b/src/fireblocks-sdk.ts @@ -2445,4 +2445,25 @@ export class FireblocksSDK { }; return this.apiClient.issuePostRequest(`/v1/vault/assets/bulk`, body, requestOptions); } + + /** + * Creates a new internal transfer between two trading accounts + * @param exchangeAccountId The exchange account ID + * @param asset The asset to transfer + * @param amount The amount to transfer + * @param sourceType The source account type + * @param destType The destination account type + * @returns The created internal transfer + */ + public exchangeInternalTransfer(exchangeAccountId: string, asset: string, amount: string, sourceType: string, destType: string) { + const body = { + exchangeAccountId, + asset, + amount, + sourceType, + destType + }; + + return this.apiClient.issuePostRequest(`/v1/exchange_accounts/${exchangeAccountId}/internal_transfer`, body); + } }