I am unable to add a forex pair for crypto pairs that require it. I believe this issue is linked to this issue.

Here's the code:

class UncoupledCalibratedAntennaArray(QCAlgorithm):

def Initialize(self):
self.SetStartDate(2020, 1, 1) # Set Start Date
self.SetEndDate(2020,1,7)
self.SetCash(100000) # Set Strategy Cash

self.get_tradeable_symbols_manually()


def get_tradeable_symbols_manually(self):
'''Get some pairs

'''
self.AddForex('BATUSD', Resolution.Minute)
# self.AddForex('USDUSDC', Resolution.Minute) # throws Exception
self.AddForex('USDCUSD', Resolution.Minute) # throws exception
self.AddCrypto('BATUSDC', Resolution.Minute, Market.GDAX)

Here's the output:

Algorithm.Initialize() Error: In order to maintain cash in CUSD you are required to add a subscription for Forex pair CUSDUSD or USDCUSD Stack Trace: System.ArgumentException: In order to maintain cash in CUSD you are required to add a subscription for Forex pair CUSDUSD or USDCUSD
at QuantConnect.Securities.Cash.EnsureCurrencyDataFeed (QuantConnect.Securities.SecurityManager securities, QuantConnect.Data.SubscriptionManager subscriptions, System.Collections.Generic.IReadOnlyDictionary`2[TKey,TValue] marketMap, QuantConnect.Data.UniverseSelection.SecurityChanges changes, QuantConnect.Interfaces.ISecurityService securityService, System.String accountCurrency) [0x00401] in :0
at QuantConnect.Securities.CashBook.EnsureCurrencyDataFeeds (QuantConnect.Securities.SecurityManager securities, QuantConnect.Data.SubscriptionManager subscriptions, System.Collections.Generic.IReadOnlyDictionary`2[TKey,TValue] marketMap, QuantConnect.Data.UniverseSelection.SecurityChanges changes, QuantConnect.Interfaces.ISecurityService securityService) [0x0002f] in :0
at QuantConnect.Lean.Engine.DataFeeds.CurrencySubscriptionDataConfigManager.EnsureCurrencySubscriptionDataConfigs (QuantConnect.Data.UniverseSelection.SecurityChanges securityChanges, QuantConnect.Brokerages.IBrokerageModel brokerageModel) [0x00044] in <66597da26e9342f89a69ea5d680b49ec>:0
at QuantConnect.Lean.Engine.DataFeeds.UniverseSelection.EnsureCurrencyDataFeeds (QuantConnect.Data.UniverseSelection.SecurityChanges securityChanges) [0x00012] in <66597da26e9342f89a69ea5d680b49ec>:0
at QuantConnect.Lean.Engine.Setup.BaseSetupHandler.SetupCurrencyConversions (QuantConnect.Interfaces.IAlgorithm algorithm, QuantConnect.Lean.Engine.DataFeeds.UniverseSelection universeSelection) [0x00006] in <66597da26e9342f89a69ea5d680b49ec>:0
at QuantConnect.Lean.Engine.Setup.BacktestingSetupHandler.Setup (QuantConnect.Lean.Engine.Setup.SetupHandlerParameters parameters) [0x0023e] in <66597da26e9342f89a69ea5d680b49ec>:0
at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath, QuantConnect.Util.WorkerThread workerThread) [0x0051d] in <66597da26e9342f89a69ea5d680b49ec>:0

I believe the problem is the four letter currency code for USDC. Or I could just be doing this wrong. Thoughts anyone? Note I am in the US, so I can't just use Bitfinex.

Author