diff --git a/Brokerages/ApiPriceProvider.cs b/Brokerages/ApiPriceProvider.cs deleted file mode 100644 index 00a485e24a75..000000000000 --- a/Brokerages/ApiPriceProvider.cs +++ /dev/null @@ -1,61 +0,0 @@ -/* - * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. - * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. -*/ - -using System; -using System.Linq; -using QuantConnect.Interfaces; - -namespace QuantConnect.Brokerages -{ - /// - /// An implementation of which uses QC API to fetch price data - /// - public class ApiPriceProvider : IPriceProvider - { - private readonly IApi _api; - - /// - /// Initializes a new instance of the class - /// - /// The instance - /// The caller is responsible for calling before - public ApiPriceProvider(IApi api) - { - _api = api; - } - - /// - /// Initializes a new instance of the class - /// - /// The QC user id - /// The QC user token - public ApiPriceProvider(int userId, string userToken) - { - _api = new Api.Api(); - _api.Initialize(userId, userToken, ""); - } - - /// - /// Gets the latest price for a given asset - /// - /// The symbol - /// The latest price - public decimal GetLastPrice(Symbol symbol) - { - //NOP ReadPrices endpoint has been removed - throw new InvalidOperationException("Prices endpoint is no longer supported"); - } - } -} diff --git a/Common/Interfaces/IPriceProvider.cs b/Common/Interfaces/IPriceProvider.cs deleted file mode 100644 index ecc32f36d80d..000000000000 --- a/Common/Interfaces/IPriceProvider.cs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. - * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. -*/ - -namespace QuantConnect.Interfaces -{ - /// - /// Provides access to price data for a given asset - /// - public interface IPriceProvider - { - /// - /// Gets the latest price for a given asset - /// - /// The symbol - /// The latest price - decimal GetLastPrice(Symbol symbol); - } -}