Skip to content

Commit 2b0c62f

Browse files
committed
[FEATURE] implement getFiatExchangeRate on WalletServices
1 parent 5bbec69 commit 2b0c62f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
File renamed without changes.

examples/services_examples/fiat_exhange_rate/fiat_exchange_rate.md renamed to examples/services_examples/fiat_exchange_rate/fiat_exchange_rate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can replace or update this map with actual rates from a provider or service.
3131
### Method Signature
3232

3333
```go
34-
func (s *WalletServices) FiatExchangeRate(ctx context.Context, currency defs.Currency, base *defs.Currency) (float64, error)
34+
func (s *WalletServices) FiatExchangeRate(currency defs.Currency, base *defs.Currency) float64
3535
```
3636

3737
- **`currency`**: Target fiat currency (e.g., EUR).
@@ -104,4 +104,4 @@ Args: ABC/USD
104104

105105
- [FiatExchangeRate Code](./fiat_exchange_rate.go) - Main example implementation
106106
- [BSVExchangeRate](../bsv_exchange_rate/bsv_exchange_rate.go) - Check BSV/USD rate
107-
- [Currency Definitions](../../pkg/defs/currency.go) - Enum of supported fiat currencies
107+
- [Currency Definitions](../../../pkg/defs/currency.go) - Enum of supported fiat currencies

0 commit comments

Comments
 (0)