export type DeleteApiRestApiV1SignalsSignalProviderIdAccountsAccountIdFollowerFeatureArgs = {signalProviderId: string, accountId: string}; export type DeleteApiRestApiV1SignalsSignalProviderIdAccountsAccountIdFollowerFeatureOptions = {baseUrl?: string | undefined, ApiKeyAuth?: string | undefined, fetch?: typeof fetch | undefined}; /** * Remove a follower from the signal provider * * DELETE /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/followerFeature */ export const deleteApiRestApiV1SignalsSignalProviderIdAccountsAccountIdFollowerFeature = async (args: DeleteApiRestApiV1SignalsSignalProviderIdAccountsAccountIdFollowerFeatureArgs, options?: DeleteApiRestApiV1SignalsSignalProviderIdAccountsAccountIdFollowerFeatureOptions) => { const {baseUrl = "https://api.metacopier.io", fetch: fetchFn = fetch, ApiKeyAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (ApiKeyAuth !== undefined) headers.set("X-API-KEY", ApiKeyAuth) const url = `${baseUrl.replace(/\/+$/, '')}/rest/api/v1/signals/${encodeURIComponent(String(args.signalProviderId))}/accounts/${encodeURIComponent(String(args.accountId))}/followerFeature${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };