1
This commit is contained in:
parent
9a23417e84
commit
89fb681d02
@ -26,7 +26,8 @@ def _get_top_coins_by_market_cap(top):
|
|||||||
# 获取Binance上的USDT交易对信息
|
# 获取Binance上的USDT交易对信息
|
||||||
def _get_binance_usdt_pairs():
|
def _get_binance_usdt_pairs():
|
||||||
url = "https://api.binance.com/api/v3/exchangeInfo"
|
url = "https://api.binance.com/api/v3/exchangeInfo"
|
||||||
response = requests.get(url)
|
urllib3.disable_warnings(category=urllib3.exceptions.InsecureRequestWarning)
|
||||||
|
response = requests.get(url, verify=False)
|
||||||
data = response.json()
|
data = response.json()
|
||||||
|
|
||||||
usdt_pairs = [symbol['symbol'] for symbol in data['symbols'] if (symbol['quoteAsset'] == 'USDT' and symbol['status'] == 'TRADING')]
|
usdt_pairs = [symbol['symbol'] for symbol in data['symbols'] if (symbol['quoteAsset'] == 'USDT' and symbol['status'] == 'TRADING')]
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import requests
|
import requests
|
||||||
import setting
|
import setting
|
||||||
|
import urllib3
|
||||||
|
|
||||||
# 发送消息
|
# 发送消息
|
||||||
def send_message(chat_id, text):
|
def send_message(chat_id, text):
|
||||||
@ -8,4 +9,5 @@ def send_message(chat_id, text):
|
|||||||
"chat_id" : chat_id,
|
"chat_id" : chat_id,
|
||||||
"text" : text
|
"text" : text
|
||||||
}
|
}
|
||||||
requests.post(url, data= formData)
|
urllib3.disable_warnings(category=urllib3.exceptions.InsecureRequestWarning)
|
||||||
|
requests.post(url, data= formData, verify=False)
|
||||||
Loading…
Reference in New Issue
Block a user