Closed jcabourne closed 9 months ago
As this is an unofficial Python wrapper for the OKX exchange v5 API do you have any plans to remove print statements from the API in upcoming release?
You may set the API function parameter debug = False
e.g. marketDataAPI = MarketData.MarketAPI(debug=False)
In module: .../okx/client.py, change to: if self.debug == True: pass
print('domain:',self.domain)
and in module: .../okx/utils.py, change to: def pre_hash(timestamp, method, request_path, body,debug = True): if debug == True: pass
print('body: ',body)
def get_header(api_key, sign, timestamp, passphrase, flag,debug = True): header = dict() header[c.CONTENT_TYPE] = c.APPLICATION_JSON header[c.OK_ACCESS_KEY] = api_key header[c.OK_ACCESS_SIGN] = sign header[c.OK_ACCESS_TIMESTAMP] = str(timestamp) header[c.OK_ACCESS_PASSPHRASE] = passphrase header['x-simulated-trading'] = flag if debug == True: pass
print('header: ',header)
def get_header_no_sign(flag,debug = True): header = dict() header[c.CONTENT_TYPE] = c.APPLICATION_JSON header['x-simulated-trading'] = flag if debug == True: pass
print('header: ',header)