mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Use API keys of bitcoinaverage for getting the exchange list
This commit is contained in:
parent
39463a3202
commit
e7c06880a8
@ -2,7 +2,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
<Version>1.0.1.88</Version>
|
<Version>1.0.1.89</Version>
|
||||||
<NoWarn>NU1701,CA1816,CA1308,CA1810,CA2208</NoWarn>
|
<NoWarn>NU1701,CA1816,CA1308,CA1810,CA2208</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -67,7 +67,7 @@ namespace BTCPayServer.HostedServices
|
|||||||
return Timer(async () =>
|
return Timer(async () =>
|
||||||
{
|
{
|
||||||
await new SynchronizationContextRemover();
|
await new SynchronizationContextRemover();
|
||||||
var tickers = await new CoinAverageRateProvider("BTC").GetExchangeTickersAsync();
|
var tickers = await new CoinAverageRateProvider("BTC") { Authenticator = _coinAverageSettings }.GetExchangeTickersAsync();
|
||||||
_coinAverageSettings.AvailableExchanges = tickers
|
_coinAverageSettings.AvailableExchanges = tickers
|
||||||
.Exchanges
|
.Exchanges
|
||||||
.Select(c => (c.DisplayName, c.Name))
|
.Select(c => (c.DisplayName, c.Name))
|
||||||
|
Loading…
Reference in New Issue
Block a user