Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions gdax/trader.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,12 @@ async def _post(self, path, data=None, decimal_return_fields=None,

async def _delete(self, path, data=None, decimal_return_fields=None,
convert_all=False):
json_data = json.dumps(data)
headers = self._auth_headers(path, method='DELETE', body=json_data)
if data:
json_data = json.dumps(data)
headers = self._auth_headers(path, method='DELETE', body=json_data)
else:
json_data = None
headers = self._auth_headers(path, method='DELETE')
path_url = self.API_URL + path
with async_timeout.timeout(self.timeout_sec):
async with self.session.delete(path_url,
Expand Down