mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2025-04-29 11:59:28 -04:00
commit
c14de55cd1
1 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||

|

|
||||||
|
|
||||||
# Revuo Monero Calc
|
# Revuo Monero Calc
|
||||||
|
|
||||||
|
@ -117,18 +117,17 @@ return [
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a `secrets.php` file in the root directory to store CoinGecko API keys. Example:
|
Create a `secrets.php` file in the root directory to store CoinGecko API keys. `use_api_key` can be set to false for testing locally. Example:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'coingecko_api_key' => 'CG-xxxx',
|
'coingecko_api_key' => 'CG-xxxx',
|
||||||
'coingecko_key_is_demo' => true,
|
'coingecko_key_is_demo' => true,
|
||||||
|
'use_api_key' => true,
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** The `secrets.dist.php` file should not be accessible from the web server.
|
|
||||||
|
|
||||||
### Fetching Exchange Rates
|
### Fetching Exchange Rates
|
||||||
|
|
||||||
Exchange rates are fetched from the CoinGecko API. The `coingecko.php` file handles the API requests and attempts to update exchange rates every 5 seconds. Due to the rate limits of the CoinGecko API, actual update intervals may vary and are closer to 60 seconds.
|
Exchange rates are fetched from the CoinGecko API. The `coingecko.php` file handles the API requests and attempts to update exchange rates every 5 seconds. Due to the rate limits of the CoinGecko API, actual update intervals may vary and are closer to 60 seconds.
|
||||||
|
|
Loading…
Add table
Reference in a new issue