1
我是python的初學者,但我想從我的私人帳戶在cryptocurrency市場bitbay.net上獲取信息數據。Post API授權
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]
您的援助將非常感謝。爲了獲得最佳答案,我想購買小啤酒:)提前謝謝!
感謝您的幫助!你是老闆:)請給我你的cryptocurrency錢包地址 - 我想給你買一杯啤酒:) – Max
不客氣,我很高興能夠幫到你,如果你喜歡它,你可以接受/贊成答案,會很好:) –
好的。謝謝 :) – Max