import ccxt
import time
exchange = ccxt.binance()
exchange.proxies = {
'http': 'socks5://127.0.0.1:19180',
'https': 'socks5h://127.0.0.1:19181'
}
a = exchange.fetch_ticker(symbol='BTC/USD')
print(a)
如何解决??
import ccxt
import time
exchange = ccxt.binance()
exchange.proxies = {
'http': 'socks5://127.0.0.1:19180',
'https': 'socks5h://127.0.0.1:19181'
}
a = exchange.fetch_ticker(symbol='BTC/USD')
print(a)
如何解决??