【发布时间】:2017-10-07 23:28:20
【问题描述】:
我是 python 的初学者,但我想从我在加密货币市场 bitbay.net 上的私人账户获取信息数据。
Api description can be found here:
我在 Python 3.5 中的代码:
import requests
import json
import hashlib
import time
hash_object = hashlib.sha512(b'public_api_xxxxxx')
apihash = hash_object.hexdigest()
timestamp = time.time()
p = requests.post('https://bitbay.net/API/Trading/tradingApi.php', data={'API-Key':'public_api_xxxxxx','API-Hash':apihash,'Moment':timestamp, 'Method':'info' })
p.text
print(p)
我花了很多时间来解决这个问题,但我仍然得到:
响应 [404]
非常感谢您的帮助。为了获得最佳答案,我想买小啤酒:) 提前谢谢!
【问题讨论】:
标签: python python-3.x api