Skip to content

Commit

Permalink
add set asset price api
Browse files Browse the repository at this point in the history
  • Loading branch information
vsiskin committed Jul 4, 2024
1 parent bf56b73 commit f20c27e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,22 @@ def get_supported_assets(self):

return self._get_request("/v1/supported_assets")

def set_asset_price(self, id: str, currency: str, price: int):
"""Set asset price
Args:
id (str): The asset ID
currency (str): The currency (according to ISO 4217 currency codes)
price (str): The price in currency
"""

body = {
"currency": currency,
"price": price,
}

return self._post_request(f"/v1/assets/prices/${id}", body)

def get_vault_accounts_with_page_info(
self, paged_vault_accounts_request_filters: PagedVaultAccountsRequestFilters
):
Expand Down

0 comments on commit f20c27e

Please sign in to comment.