请求源码下载地址: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://api.bitkop.com/Market/
tradeURL = https://api.bitkop.com/Trade/
assetsURL = https://api.bitkop.com/Assets/

把参数替换成自己的

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

调用函数直接添加在主函数下面就可以了

终端执行
python testAPI.py

results matching ""

    No results matching ""