【发布时间】:2023-01-14 23:07:10
【问题描述】:
我想使用 pycurl 向 FTX Exchange 发送请求。 我试过
import pycurl
import certifi
from io import BytesIO
buffer = BytesIO()
c = pycurl.Curl()
c.setopt(c.URL, 'https://ftx.com/api')
c.setopt(c.WRITEDATA, buffer)
c.setopt(c.CAINFO, certifi.where())
c.perform()
c.close()
body = buffer.getvalue()
print(body.decode('iso-8859-1'))
但我得到一个错误
error code: 1010
有谁知道这个错误是从哪里来的?我想这与我用c.setopt(c.CAINFO, certifi.where())设置的证书包有关
【问题讨论】: