From 488b7b88b64800b5b210fbe1eb4f48a7f5d833c7 Mon Sep 17 00:00:00 2001 From: ruben beck Date: Tue, 11 Jul 2023 14:39:12 +0200 Subject: [PATCH] python exmples for fiat currencies --- src/guide/fiat_currencies.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/guide/fiat_currencies.md b/src/guide/fiat_currencies.md index 6ae92a9..7667872 100644 --- a/src/guide/fiat_currencies.md +++ b/src/guide/fiat_currencies.md @@ -1 +1,28 @@ -# Supporting fiat currencies \ No newline at end of file +# Supporting fiat currencies + + +
python
+
+ + +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 + +``` + +
\ No newline at end of file