mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-09 07:26:48 +00:00
Add httputil.DumpRequestOut & httputil.DumpResponse to SendPayload (#298)
* First pass adding DumpResponse * WIP * Added httpDebug flag to SendPayload * anx -> coinbase converted * HTTPDebug flag added to all exchanges * Updated Alphapoint: * reworded error message * Corrected itbit and huobihadax sendpayload * Removed setting of default value * don't return body for response as we already get this in verbose mode * body is now included based on verbose setting * WIP * Due to issues with DumpResponse and gzip decoding use raw response from exchange for body output Also adds gzip decoding back as bug fix for OK group exchange * removed additional new line * Added URL path to dumpbody display as well
This commit is contained in:
@@ -87,6 +87,7 @@ func (y *Yobit) Setup(exch *config.ExchangeConfig) {
|
||||
y.SetAPIKeys(exch.APIKey, exch.APISecret, "", false)
|
||||
y.RESTPollingDelay = exch.RESTPollingDelay
|
||||
y.Verbose = exch.Verbose
|
||||
y.HTTPDebugging = exch.HTTPDebugging
|
||||
y.Websocket.SetWsStatusAndConnection(exch.Websocket)
|
||||
y.BaseCurrencies = exch.BaseCurrencies
|
||||
y.AvailablePairs = exch.AvailablePairs
|
||||
@@ -337,7 +338,8 @@ func (y *Yobit) SendHTTPRequest(path string, result interface{}) error {
|
||||
result,
|
||||
false,
|
||||
false,
|
||||
y.Verbose)
|
||||
y.Verbose,
|
||||
y.HTTPDebugging)
|
||||
}
|
||||
|
||||
// SendAuthenticatedHTTPRequest sends an authenticated HTTP request to Yobit
|
||||
@@ -380,7 +382,8 @@ func (y *Yobit) SendAuthenticatedHTTPRequest(path string, params url.Values, res
|
||||
result,
|
||||
true,
|
||||
true,
|
||||
y.Verbose)
|
||||
y.Verbose,
|
||||
y.HTTPDebugging)
|
||||
}
|
||||
|
||||
// GetFee returns an estimate of fee based on type of transaction
|
||||
|
||||
Reference in New Issue
Block a user