Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Market Data Access Issue #5

Open
JimoZhang opened this issue Mar 10, 2022 · 0 comments
Open

Market Data Access Issue #5

JimoZhang opened this issue Mar 10, 2022 · 0 comments

Comments

@JimoZhang
Copy link

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')>]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant