mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-18 14:24:19 +01:00
python exmples for fiat currencies
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user