12 lines
494 B
Python
12 lines
494 B
Python
from .okxclient import OkxClient
|
|
from .consts import *
|
|
|
|
|
|
class StatusAPI(OkxClient):
|
|
def __init__(self, api_key='-1', api_secret_key='-1', passphrase='-1', use_server_time=None, flag='1', domain = 'https://www.okx.com',debug = True, proxy=None):
|
|
OkxClient.__init__(self, api_key, api_secret_key, passphrase, use_server_time, flag, domain, debug, proxy)
|
|
|
|
def status(self, state=''):
|
|
params = {'state': state}
|
|
return self._request_with_params(GET, STATUS, params)
|