Debugging
The SDK accepts a debug=true
parameter in the make()
method (when instantiating the SDK) to enable debugging.
Enabling debug mode will output each request and response, along with data being sent to and from the socket, straight to the console. This small but useful feature is recommended for helping understand integration issues.
import { Tradr } from '@tradrapi/trading-sdk';
export const tradrApi = Tradr.make({
...,
// Set to true to enable debug mode
debug: true,
});
Debugging will be disabled by default unless explicitly enabled.