請求源碼下載地址:https://github.com/Shiva-ly/api-dependent-file

使用前請先下載requests包

pip install requests

或者

git clone git://github.com/kennethreitz/requests.git
python setup.py install

API使用說明

修改參數
infor.conf文件
[key]
Secret = aQmE8U7bxj16KdJcSd3yX8F8Sakd8aO6LopnHXh27d4kWyb28PxcaTvGrajLDvAw
ApiKey = 03fa7eacabb1269afd010306e6fafaaf
TradePw = 123456
URL = https://apiv2.bitz.com/Market/
tradeURL = https://apiv2.bitz.com/Trade/
assetsURL = https://apiv2.bitz.com/Assets/

把參數替換為自己的

testAPI.py文件
if __name__=="__main__":
    ticker()

調用函數直接添加在主函數下即可调

終端執行
python testAPI.py

results matching ""

    No results matching ""