Skip to content

Commit

Permalink
Skip LinearFutures(USDC Futures) (#27)
Browse files Browse the repository at this point in the history
* Skip LinearFutures(USDC Futures)

* Replaced '==' with 'string.Equals' for string comparisons
  • Loading branch information
JosueNina authored Jan 13, 2025
1 parent f9a7c31 commit 6771562
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,19 @@ public IEnumerable<string> Get()
continue;
}

if (symbol.InstrumentInfo.SettleCoin == "USDC")
if (string.Equals(symbol.InstrumentInfo.SettleCoin, "USDC", StringComparison.InvariantCultureIgnoreCase))
{
// Skip USDC perp and future contracts for now, they'll need some more implementation
continue;
}

if (symbol.InstrumentInfo.ContractType == "InverseFutures")
if (string.Equals(symbol.InstrumentInfo.ContractType, "LinearFutures", StringComparison.InvariantCultureIgnoreCase))
{
// Skip LinearFutures contracts as they have expiration dates (USDC Futures)
continue;
}

if (string.Equals(symbol.InstrumentInfo.ContractType, "InverseFutures", StringComparison.InvariantCultureIgnoreCase))
{
// Skip crypto futures that are not perpetual
continue;
Expand Down

0 comments on commit 6771562

Please sign in to comment.