1、接口文档网址:https://www.gate.ac/docs/developers/apiv4/zh_CN/#futures
2、安装python工具:pip3 install gateapi-python
3、下载https://github.com/gateio/gateapi-python
4、解压下载好的gateapi-python-master.zip
5、用pycharm打开gateapi-python-master文件
除了gate_api文件夹外 其它全删
6、新增config.py文件
key = '你申请的api key'
secret = '你申请的secret key'
host = 'https://fx-api.gateio.ws/api/v4'
'''
实盘交易: https://api.gateio.ws/api/v4
合约模拟交易: https://fx-api-testnet.gateio.ws/api/v4
合约实盘交易备选入口(只适用合约 API):https://fx-api.gateio.ws/api/v4
'''