I noticed that the initialize function at L40 the default endpoint is still used in place of NEW_DEFAULT_ENDPOINT:
    endpoint = opts[:endpoint] || ENV['TD_API_SERVER'] || DEFAULT_ENDPOINT