From 87cc56440ab23005100ac9577f630b8d0d7cb9df Mon Sep 17 00:00:00 2001 From: itsdeka Date: Tue, 25 Jan 2022 14:45:22 +0100 Subject: [PATCH] fixed payloads --- bfxapi/rest/bfx_rest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bfxapi/rest/bfx_rest.py b/bfxapi/rest/bfx_rest.py index 4477871..b276f13 100644 --- a/bfxapi/rest/bfx_rest.py +++ b/bfxapi/rest/bfx_rest.py @@ -1025,7 +1025,9 @@ class BfxRest: """ endpoint = f"auth/w/alert/set" payload = { - "Settings": settings + "type": type, + "symbol": symbol, + "price": price } message = await self.post(endpoint, payload) @@ -1041,7 +1043,8 @@ class BfxRest: """ endpoint = f"auth/w/alert/price:{symbol}:{price}/del" payload = { - "Settings": settings + "symbol": symbol, + "price": price } message = await self.post(endpoint, payload)