Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}