python exmples for fiat currencies

This commit is contained in:
ruben beck
2023-07-11 14:39:12 +02:00
parent 30ee455812
commit 488b7b88b6

View File

@@ -1 +1,28 @@
# Supporting fiat currencies
# Supporting fiat currencies
<custom-tabs category="lang">
<div slot="title">python</div>
<section>
In order to list the availiable fiat currencies.
```python
try:
fiat_currencies = sdk_services.list_fiat_currencies()
except Exception as error:
#Handle error
```
To get the current btc rate for the currencies.
```python
try:
fiat_rates = sdk_services.sdk_services.fetch_fiat_rates()
# print your desired rate
except Exception as error:
# Handle error
```
</section>