Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Commit

Permalink
Use currency properties rather than spliting the ticker
Browse files Browse the repository at this point in the history
References #28
  • Loading branch information
andreashuber69 committed Oct 6, 2017
1 parent 4d3dcbc commit fa85bef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SmartTrade/TradeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,10 @@ private DateTime GetStart(List<ITransaction> transactions)
}

var fee = balance.Fee;
var firstCurrency = exchange.TickerSymbol.Substring(0, 3);
var secondCurrency = exchange.TickerSymbol.Substring(3);

Info(
"Current balance is {0} {1}.",
buy ? secondCurrency : firstCurrency,
buy ? this.Settings.SecondCurrency : this.Settings.FirstCurrency,
buy ? secondBalance : firstBalance);

var ticker = await exchange.GetTickerAsync();
Expand Down

0 comments on commit fa85bef

Please sign in to comment.