Skip to content

Commit 22d7a32

Browse files
author
Scott Page
authored
Merge pull request #1 from page1/dont-check-symbol
Remove base checks for valid currency pairs
2 parents daad328 + 02553ba commit 22d7a32

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

poloniex/api/base.py

-4
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ def api_call(self, *args, **kwargs):
6161

6262
def get_params(self, command, **kwargs):
6363
currency_pair = kwargs.get("currency_pair")
64-
if currency_pair and currency_pair not in constants.CURRENCY_PAIRS + ["all"]:
65-
raise PoloniexError("Currency pair '{}' not available.".format(currency_pair))
6664

6765
depth = kwargs.get("depth")
6866

@@ -167,8 +165,6 @@ def secure_request(self, data, headers):
167165

168166
def get_params(self, command, **kwargs):
169167
currency_pair = kwargs.get("currency_pair")
170-
if currency_pair and currency_pair not in constants.CURRENCY_PAIRS + ["all"]:
171-
raise PoloniexError("Currency pair '{}' not available.".format(currency_pair))
172168

173169
currency = kwargs.get("currency")
174170

0 commit comments

Comments
 (0)