Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonabreul committed Jan 17, 2025
1 parent d64d9d9 commit d00ff8e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
13 changes: 0 additions & 13 deletions Common/Data/UniverseSelection/BaseChainUniverseData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,18 +241,5 @@ public Symbol ToSymbol()
{
return Symbol;
}

/// <summary>
/// Gets the CSV string representation of this universe entry
/// </summary>
public static string ToCsv(Symbol symbol, decimal open, decimal high, decimal low, decimal close, decimal volume, decimal? openInterest)
{
return $"{symbol.ID},{symbol.Value},{open},{high},{low},{close},{volume},{openInterest}";
}

/// <summary>
/// Gets the CSV header string for this universe entry
/// </summary>
public static string CsvHeader => "symbol_id,symbol_value,open,high,low,close,volume,open_interest";
}
}
13 changes: 13 additions & 0 deletions Common/Data/UniverseSelection/FutureUniverse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,18 @@ public static implicit operator Symbol(FutureUniverse data)
{
return data.Symbol;
}

/// <summary>
/// Gets the CSV string representation of this universe entry
/// </summary>
public static string ToCsv(Symbol symbol, decimal open, decimal high, decimal low, decimal close, decimal volume, decimal? openInterest)
{
return $"{symbol.ID},{symbol.Value},{open},{high},{low},{close},{volume},{openInterest}";
}

/// <summary>
/// Gets the CSV header string for this universe entry
/// </summary>
public static string CsvHeader => "symbol_id,symbol_value,open,high,low,close,volume,open_interest";
}
}
2 changes: 1 addition & 1 deletion Common/Data/UniverseSelection/OptionUniverse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static implicit operator Symbol(OptionUniverse data)
/// <summary>
/// Gets the CSV header string for this universe entry
/// </summary>
public static new string CsvHeader => "symbol_id,symbol_value,open,high,low,close,volume,open_interest,implied_volatility,delta,gamma,vega,theta,rho";
public static string CsvHeader => "symbol_id,symbol_value,open,high,low,close,volume,open_interest,implied_volatility,delta,gamma,vega,theta,rho";

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ThrowIfNotAnOption(string propertyName)
Expand Down

0 comments on commit d00ff8e

Please sign in to comment.