Working on Bittrex implementation and unit tests

This commit is contained in:
fredfortier
2017-08-28 22:50:46 -04:00
parent 753881bade
commit f4db9f7b1e
6 changed files with 119 additions and 44 deletions
+9 -2
View File
@@ -69,9 +69,9 @@ class InvalidSymbolError(ZiplineError):
).strip()
class InvalidOrderType(ZiplineError):
class InvalidOrderStyle(ZiplineError):
msg = (
'Order type not found.'
'Order style {style} not supported by exchange {exchange}.'
).strip()
@@ -79,3 +79,10 @@ class SidHashError(ZiplineError):
msg = (
'Unable to hash sid from symbol {symbol}.'
).strip()
class MismatchingBaseCurrencies(ZiplineError):
msg = (
'Unable to trade with base currency {base_currency} when the '
'algorithm uses {algo_currency}.'
).strip()