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

creates TorClient class and _RequestManager base class #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xfMissingNo
Copy link

@0xfMissingNo 0xfMissingNo commented Sep 23, 2021

was going to make TorClient for myself; noticed some TODOs that'd look like would helpful to knock out. lmk and I'll remove the TorClient

In [1]: from dydx3.constants import API_HOST_MAINNET

In [2]: from dydx3 import TorClient as Client

In [3]: public_client = Client(
   ...:     host=API_HOST_MAINNET,
   ...: )

In [4]: public_client.public.get_markets()
Out[4]: 
{'markets': {'FIL-USD': {'market': 'FIL-USD',
   'status': 'ONLINE',
   'baseAsset': 'FIL',
   'quoteAsset': 'USD',
   'stepSize': '0.1',

@0xfMissingNo 0xfMissingNo force-pushed the new-session-for-each-client-instance branch from 803a961 to fd01fc6 Compare September 23, 2021 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant