X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=ccxt_wrapper.py;h=366586ce1e0885f4a396011b282a9045b920a1c1;hb=da46cd30c40ddc0131d94e2b846dbd098ee76357;hp=bedf84b47dd3d908ace71fefde768e7cab693ea2;hpb=d8e233ac11edac1481f0315e25f79b0390c45e29;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git diff --git a/ccxt_wrapper.py b/ccxt_wrapper.py index bedf84b..366586c 100644 --- a/ccxt_wrapper.py +++ b/ccxt_wrapper.py @@ -47,6 +47,8 @@ class poloniexE(poloniex): self.session._parent = self def request_wrap(self, *args, **kwargs): + kwargs["headers"]["X-market-id"] = str(self._parent._market.market_id) + kwargs["headers"]["X-user-id"] = str(self._parent._market.user_id) try: r = self.origin_request(*args, **kwargs) self._parent._market.report.log_http_request(args[0],