Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
john committed Sep 25, 2020
1 parent 21fe7f3 commit ebf04ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
[Semantic Versioning](http://semver.org/).

## 1.18.0.dev (development stage/unreleased/unstable)
### Fixed
- restclient: `symbol` to `symbols`

## 1.18.0
### Added
- binance.com testnets (spot, margin, isolated_margin, future)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ def get_listen_key(self):
:return: listen_key
:rtype: str or False
"""
logging.info("BinanceWebSocketApiRestclient->get_listen_key() symbol=" + str(self.symbols))
logging.info("BinanceWebSocketApiRestclient->get_listen_key() symbols=" + str(self.symbols))
method = "post"
if self.ubwa.exchange == "binance.com-isolated_margin" or self.ubwa.exchange == "binance.com-isolated_margin-testnet":
if self.symbols is False:
logging.critical("BinanceWebSocketApiRestclient->get_listen_key() Info: Parameter `symbol` is missing!")
return False
else:
response = self._request(method, self.path_userdata, False, {'symbol': str(self.symbol)})
response = self._request(method, self.path_userdata, False, {'symbols': str(self.symbols)})
else:
response = self._request(method, self.path_userdata)
try:
Expand Down

0 comments on commit ebf04ca

Please sign in to comment.