Python Coinbase API 对不安全端点的警告
Python Coinbase API warning for insecure endpoint
问题
通过 coinbase developer page 上的文档,当 运行 最基本的示例时,我收到有关不安全端点的警告。我想在继续之前解决这个警告。
警告
python3.5/site-packages/coinbase/wallet/util.py:45: UserWarning:
WARNING: this client is sending a request to an insecure API endpoint.
Any API request you make may expose your API key and secret to third
parties. Consider using the default endpoint:
代码
from coinbase.wallet.client import Client
from vars import *
client = Client (
API_KEY,
API_SECRET,
API_VERSION)
print(client.get_accounts)
vars 是一个包含我的常量的文件;密钥、机密和版本。
尝试
老实说,就设置端点而言,google 搜索似乎没有找到任何有用的东西。有什么建议吗?
删除版本控制参数似乎至少沉默警告。
client = Client (
API_KEY,
API_SECRET)
问题
通过 coinbase developer page 上的文档,当 运行 最基本的示例时,我收到有关不安全端点的警告。我想在继续之前解决这个警告。
警告
python3.5/site-packages/coinbase/wallet/util.py:45: UserWarning: WARNING: this client is sending a request to an insecure API endpoint. Any API request you make may expose your API key and secret to third parties. Consider using the default endpoint:
代码
from coinbase.wallet.client import Client
from vars import *
client = Client (
API_KEY,
API_SECRET,
API_VERSION)
print(client.get_accounts)
vars 是一个包含我的常量的文件;密钥、机密和版本。
尝试
老实说,就设置端点而言,google 搜索似乎没有找到任何有用的东西。有什么建议吗?
删除版本控制参数似乎至少沉默警告。
client = Client (
API_KEY,
API_SECRET)