Use API keys of bitcoinaverage for getting the exchange list

This commit is contained in:
nicolas.dorier 2018-04-23 15:48:18 +09:00
parent 39463a3202
commit e7c06880a8
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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))