-
-
Notifications
You must be signed in to change notification settings - Fork 74
Description
Hi team,
I am a new user of TCAPY. When I tried to run your sample code, I received the error shown below. It seems that my connection to "127.0.0.1:27017" (market_data_store='arctic-dukascopy') is rejected.
- Is this because "127.0.0.1:27017" of Arctic DB is not public?
- Can I understand in this way: Dukascopy provides free data, but "127.0.0.1:27017" is not accessible to everyone?
- If I want to use Dukascopy as market data and run your examples, how should I do it?
Thanks very much.
Best,
Jimo
Traceback (most recent call last):
File "", line 1, in
File "/Users/jimo.zhang/Projects/tcapy/tcapy/data/databasesource.py", line 595, in get_database_source
password=access_control.arctic_password)
File "/Users/jimo.zhang/Projects/tcapy/tcapy/data/databasesource.py", line 1982, in init
connectTimeoutMS=self.socketTimeoutMS)
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/site-packages/arctic/arctic.py", line 123, in init
mongo_host.server_info()
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1703, in server_info
"buildinfo", read_preference=ReadPreference.PRIMARY, session=session
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/site-packages/pymongo/database.py", line 657, in command
with self.__client._socket_for_reads(read_preference, session) as (sock_info, secondary_ok):
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/contextlib.py", line 112, in enter
return next(self.gen)
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1217, in _socket_for_reads
server = self._select_server(read_preference, session)
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1176, in _select_server
server = topology.select_server(server_selector)
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/site-packages/pymongo/topology.py", line 247, in select_server
servers = self.select_servers(selector, server_selection_timeout, address)
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/site-packages/pymongo/topology.py", line 208, in select_servers
server_descriptions = self._select_servers_loop(selector, server_timeout, address)
File "/Users/jimo.zhang/opt/anaconda3/envs/tcapy_env/lib/python3.7/site-packages/pymongo/topology.py", line 225, in _select_servers_loop
% (self._error_message(selector), timeout, self.description)
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 61] Connection refused, Timeout: 30s, Topology Description: <TopologyDescription id: 622a717a2f0fcd1abba224a0, topology_type: Unknown, servers: [<ServerDescription ('127.0.0.1', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('127.0.0.1:27017: [Errno 61] Connection refused')>]>