Skip to content
Start Trading

Withdraw a live IOI. Repeating a withdrawal returns 404.

v1().privateMarkets().deleteIoi(PrivateMarketDeleteIoiParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
DELETE/v1/private-markets/iois/{ioi_id}

Withdraw a live IOI. Repeating a withdrawal returns 404.

ParametersExpand Collapse
PrivateMarketDeleteIoiParams params
Optional<String> ioiId
long accountId

Withdraw a live IOI. Repeating a withdrawal returns 404.

package com.clearstreet.api.example;

import com.clearstreet.api.client.ClearStreetClient;
import com.clearstreet.api.client.okhttp.ClearStreetOkHttpClient;
import com.clearstreet.api.models.v1.privatemarkets.PrivateMarketDeleteIoiParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        ClearStreetClient client = ClearStreetOkHttpClient.builder()
            .fromEnv()
            .apiKey("My API Key")
            .build();

        PrivateMarketDeleteIoiParams params = PrivateMarketDeleteIoiParams.builder()
            .ioiId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
            .accountId(0L)
            .build();
        client.v1().privateMarkets().deleteIoi(params);
    }
}
Returns Examples