Refactor previous commits

- Removing `AccountCurrency` from `Cash` and `Brokerage` classes.
`ICurrencyConverter` will now provide the `AccountCurrency`
- Adding new static `OrderFee.Zero` which will return a 0 order fee in
`NullCurrency`
- Adding static `Currencies.USD` value, replacing all "USD".
- Addin new static `Currencies.NullCurrency`
- Updating Bitfinex `FeeModel` so it return fees in quote currency.
Adding unit tests
This commit is contained in:
Martin Molinero
2018-12-12 18:00:47 -03:00
parent e85942f4f0
commit 0933da9303
146 changed files with 1061 additions and 1024 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ class CustomFeeModel(FeeModel):
self.algorithm.Log("CustomFeeModel: " + str(fee))
return OrderFee(CashAmount(
fee,
parameters.Security.QuoteCurrency.AccountCurrency))
parameters.AccountCurrency))
class CustomSlippageModel:
def __init__(self, algorithm):