client.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:Bitcoin-Crypto-python-charts 作者: Whalepool 项目源码 文件源码
def _headers(self, path, nonce, body):

        signature = "/api/" + path + nonce + body
        pprint("Signing: " + signature)
        h = hmac.new(self.SECRET.encode('utf8'), signature.encode('utf8'), hashlib.sha384)
        signature = h.hexdigest()

        return {
            "content-type": "application/json",
            "bfx-nonce": nonce,
            "bfx-apikey": self.KEY,
            "bfx-signature": signature,
        }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号