Ejemplo n.º 1
0
 def __init__(self, client_id: str, client_secret: str, api_url: Optional[ApiUrl] = None):
     setup_api_url = get_api_url(
         api_url, None, host="oauth.zaif.jp", version="v1", dirs=["token"]
     )
     super().__init__(setup_api_url)
     self._client_id = client_id
     self._client_secret = client_secret
Ejemplo n.º 2
0
 def __init__(self, api_url=None):
     api_url = get_api_url(api_url,
                           "stream",
                           protocol="wss",
                           host="ws.zaif.jp",
                           port=8888)
     super().__init__(api_url)
     self._continue = True
Ejemplo n.º 3
0
 def __init__(self, client_id, client_secret, api_url=None):
     api_url = get_api_url(api_url,
                           None,
                           host='oauth.zaif.jp',
                           version='v1',
                           dirs=['token'])
     super().__init__(api_url)
     self._client_id = client_id
     self._client_secret = client_secret
Ejemplo n.º 4
0
 def __init__(self, api_url=None):
     api_url = get_api_url(api_url, "fapi", version=1)
     super().__init__(api_url, FuturesPublicApiValidator())
Ejemplo n.º 5
0
 def __init__(self, api_url: Optional[ApiUrl] = None):
     super().__init__(get_api_url(api_url, "api", version="1"))
Ejemplo n.º 6
0
 def __init__(self, key, secret, api_url=None):
     super().__init__(get_api_url(api_url, 'tapi'))
     self._key = key
     self._secret = secret
Ejemplo n.º 7
0
 def __init__(self, key, secret, api_url=None):
     api_url = get_api_url(api_url, 'tlapi')
     super().__init__(api_url)
     self._key = key
     self._secret = secret
Ejemplo n.º 8
0
 def __init__(self, api_url=None):
     super().__init__(get_api_url(api_url, 'api', version=1))
Ejemplo n.º 9
0
 def __init__(self, api_url=None):
     api_url = get_api_url(api_url, 'stream', protocol='wss', host='ws.zaif.jp', port=8888)
     super().__init__(api_url)
     self._continue = True
Ejemplo n.º 10
0
 def __init__(self, key, secret, api_url=None, loop=None):
     super().__init__(key, secret, get_api_url(api_url, 'tlapi'))
     self._timeout = 3
     self.loop = loop or asyncio.get_event_loop()
Ejemplo n.º 11
0
 def __init__(self, api_url=None, loop=None):
     super().__init__(get_api_url(api_url, 'api', version=1))
     self._timeout = 3
     self.loop = loop or asyncio.get_event_loop()