move fiat api key to headers [skip ci]

This commit is contained in:
OmarHatem 2025-06-27 06:01:42 +03:00
parent 8b2016a1ab
commit 2854285865

View file

@ -15,7 +15,6 @@ Future<double> _fetchPrice(String crypto, String fiat, bool torOnly) async {
'interval_count': '1', 'interval_count': '1',
'base': crypto.split(".").first, 'base': crypto.split(".").first,
'quote': fiat, 'quote': fiat,
'key': secrets.fiatApiKey,
}; };
num price = 0.0; num price = 0.0;
@ -27,6 +26,9 @@ Future<double> _fetchPrice(String crypto, String fiat, bool torOnly) async {
final response = await ProxyWrapper().get( final response = await ProxyWrapper().get(
onionUri: onionUri, onionUri: onionUri,
clearnetUri: torOnly ? onionUri : clearnetUri, clearnetUri: torOnly ? onionUri : clearnetUri,
headers: {
"x-api-key": secrets.fiatApiKey,
}
); );