Skip to content

Commit

Permalink
Move ExchangeLogger.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjxtra committed Oct 31, 2017
1 parent 5d1b179 commit 7140f7e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion ExchangeSharp/API/ExchangeTicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void ToBinary(BinaryWriter writer)

public void FromBinary(BinaryReader reader)
{
Timestamp = new DateTime(reader.ReadInt64()).ToUniversalTime();
Timestamp = new DateTime(reader.ReadInt64(), DateTimeKind.Utc);
PriceSymbol = reader.ReadString();
PriceAmount = (decimal)reader.ReadDouble();
QuantitySymbol = reader.ReadString();
Expand Down
2 changes: 1 addition & 1 deletion ExchangeSharp/ExchangeSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<Compile Include="API\Backend\ExchangeGdaxAPI.cs" />
<Compile Include="API\Backend\ExchangeGeminiAPI.cs" />
<Compile Include="API\Backend\ExchangeKrakenAPI.cs" />
<Compile Include="API\Backend\ExchangeLogger.cs" />
<Compile Include="API\ExchangeLogger.cs" />
<Compile Include="API\Backend\ExchangePoloniexAPI.cs" />
<Compile Include="API\Backend\IExchangeAPI.cs" />
<Compile Include="API\ExchangeOrder.cs" />
Expand Down
3 changes: 1 addition & 2 deletions ExchangeSharp/Traders/MovingAverageCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ public MovingAverageCalculator(int windowSize)
}

/// <summary>
/// Updates the moving average with its next value, and returns the updated average value.
/// Updates the moving average with its next value.
/// When IsMature is true and NextValue is called, a previous value will 'fall out' of the
/// moving average.
/// </summary>
/// <param name="nextValue">The next value to be considered within the moving average.</param>
/// <exception cref="ArgumentOutOfRangeException">If nextValue is equal to double.NaN.</exception>
public void NextValue(double nextValue)
{
// add new value to the sum
Expand Down

0 comments on commit 7140f7e

Please sign in to comment.