Skip to content

Commit

Permalink
Merge pull request #75 from fireblocks/add-getExchangeAsset
Browse files Browse the repository at this point in the history
added get exchange by asset
  • Loading branch information
yarinvak authored Feb 17, 2022
2 parents 28fd6e5 + 42d9ded commit 4d19c7b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,15 @@ export class FireblocksSDK {
return await this.apiClient.issueGetRequest(`/v1/exchange_accounts/${exchangeAccountId}`);
}

/**
* Gets a single asset within an Exchange Account
* @param exchangeAccountId The exchange account ID
* @param assetId The ID of the asset
*/
public async getExchangeAsset(exchangeAccountId: string, assetId: string): Promise<ExchangeResponse> {
return await this.apiClient.issueGetRequest(`/v1/exchange_accounts/${exchangeAccountId}/${assetId}`);
}

/**
* Transfer from a main exchange account to a subaccount
* @param exchangeAccountId The exchange ID in Fireblocks
Expand Down

0 comments on commit 4d19c7b

Please sign in to comment.